Don't cancel loop tree in parloops
[official-gcc.git] / gcc / ChangeLog
blob831aba8f865afeb340bdffe4c2d7fb71b77cd68f
1 2015-07-31  Tom de Vries  <tom@codesourcery.com>
3         PR tree-optimization/66846
4         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
5         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6         (expand_omp_target) [ENABLE_CHECKING]: Same.
7         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
8         cfun if !LOOPS_NEED_FIXUP.
9         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
10         that omp_for already has its own loop struct.
11         * tree-parloops.c (create_phi_for_local_result)
12         (create_call_for_reduction): Handle simple latch bb.
13         (create_parallel_loop): Add simple latch bb to preserve
14         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
15         (gen_parallel_loop): Remove call to cancel_loop_tree.
16         (parallelize_loops): Skip loops that are inner loops of parallelized
17         loops.
18         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
19         verify_loop_structure.
21 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
23         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
24         * config/v850/v850.md (RV_REGNUM): New constants.
25         * config/v850/v850.c (v850_libcall_value): New functions.
26         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
27         (TARGET_LIBCALL_VALUE): Define.
29 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
31         * rtl.h (lowpart_subreg): Move in file.
32         * loop-iv.c (lowpart_subreg): Move to...
33         * simplify-rtx.c (lowpart_subreg): ...here.
34           (simplify_binary_operation_1): Use lowpart_subreg instead of
35           simplify_gen_subreg.
36         * expr.c (expand_expr_real_2): Ditto.
37         * emit-rtl.c (gen_lowpart_common): Ditto.
38         * combine.c (gen_lowpart_for_combine): Ditto.
39         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
40           expand_debug_source_expr): Ditto.
42 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
44         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
45         (expand_builtin_atomic_clear): Remove support for atomic_clear
46         pattern.
48 2015-07-30  Richard Biener  <rguenther@suse.de>
50         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
51         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
52         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
53         redundant operand canonicalization.
55 2015-07-30  David Sherwood  <david.sherwood@arm.com>
57         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
58         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
59         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
60         * config/arm/arm.c (neon_valid_immediate): Likewise.
61         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
62         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
63         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
64         (expand_vec_perm_vpshufb2_vpermq): Likewise.
65         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
66         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
67         * config/i386/sse.md
68         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
69         (*ssse3_palignr<mode>_perm): Likewise.
70         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
71         * config/spu/spu.c (arith_immediate_p): Likewise.
72         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
73         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
75 2015-07-30  Richard Biener  <rguenther@suse.de>
77         * genmatch.c (decision_tree::gen_gimple): Merge with ...
78         (decision_tree::gen_generic): ... this into ...
79         (decision_tree::gen): ... this.
80         (main): Adjust callers.
82 2015-07-30  Richard Biener  <rguenther@suse.de>
84         * genmatch.c (verbose): New global.
85         (warning_at): Add overload with source_location.
86         (capture_info::capture_info): Add bool whether generating gimple
87         or generic.  Add gimple member.
88         (capture_info::cinfo): Add capture member.
89         (capture_info::walk_match): Record capture.  Warn on
90         non-captured leafs.
91         (capture_info::walk_c_expr): Add more fragments captures cannot
92         escape through.  Warn on escaped captures.
93         (dt_simplify::gen_1): Warn on operands we force to have no
94         side-effects.
95         (main): Initialize verbose.
96         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
98 2015-07-30  Richard Biener  <rguenther@suse.de>
100         PR middle-end/67053
101         * match.pd: Allow both operands to independently have conversion
102         when simplifying compares of addresses.
104 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
106         PR target/66217
107         PR target/67045
108         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
109         around those cases that need one.
111 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
113         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
115 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
117         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
118         New.  Copied from config/i386/gnu-user.h.
119         (ASM_COMMENT_START): Likewise.
120         (DBX_REGISTER_NUMBER): Likewise.
122 2015-07-29  Richard Biener  <rguenther@suse.de>
124         * gimple-fold.c (fold_gimple_cond): Remove.
125         (fold_stmt_1): Do not call it.
127 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
129         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
130         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
132         * config/aarch64/aarch64-modes.def: Add HFmode.
134         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
135         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
137         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
138         aarch64_promoted_type): New.
140         (aarch64_float_const_representable_p): Disable HFmode.
141         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
142         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
143         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
145         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
146         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
148         * config/aarch64/iterators.md (GPF_F16): New.
150 2015-07-29  Richard Biener  <rguenther@suse.de>
152         * match.pd: Merge address comparison patterns and make them
153         handle some more cases.
155 2015-07-29  Richard Biener  <rguenther@suse.de>
157         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
158         (parser::parse_capture): Add bool argument on whether to reject
159         unknown captures.
160         (parser::parse_expr): Adjust.
161         (parser::parse_op): Likewise.
162         (parser::parse_pattern): Likewise.
164 2015-07-29  Richard Biener  <rguenther@suse.de>
166         * gimple-fold.c (has_use_on_stmt): New function.
167         (replace_stmt_with_simplification): Use it to allow
168         abnormals originally referenced in the stmt.
169         (fold_stmt_1): Canonicalize operand order.
171 2015-07-28  David Sherwood  <david.sherwood@arm.com>
173         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
174         GET_MODE_INNER unconditionally.
175         * config/spu/spu.c (arith_immediate_p): Likewise.
176         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
177         * expmed.c (synth_mult): Remove check for VOIDmode result from
178         GET_MODE_INNER.
179         (expand_mult_const): Likewise.
180         * fold-const.c (fold_binary_loc): Replace call to element_precision
181         with call to GET_MODE_PRECISION.
182         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
183         m->name.
184         (emit_mode_inner): Likewise.
185         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
186         result check.
187         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
188         (GET_MODE_UNIT_PRECISION): Likewise.
189         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
190         * simplify-rtx.c (simplify_immed_subreg): Likewise.
191         * stor-layout.c (bitwise_type_for_mode): Update assert.
192         (element_precision): Remove.
194 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
196         * target-insns.def (reload_load_address): New targetm instruction
197         pattern.
198         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
200 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
202         * target-insns.def (atomic_test_and_set): New targetm instruction
203         pattern.
204         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
205         HAVE_*/gen_* interface.
207 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
209         * target-insns.def (can_extend, ptr_extend): New targetm instruction
210         patterns.
211         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
212         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
213         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
214         * rtlanal.c (nonzero_bits1): Likewise.
215         (num_sign_bit_copies1): Likewise.
217 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
219         * target-insns.def (eh_return): New targetm instruction pattern.
220         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
221         interface.
222         * function.c (thread_prologue_and_epilogue_insns): Remove
223         preprocessor condition.
225 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
227         * target-insns.def (indirect_jump): New targetm instruction pattern.
228         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
229         interface.
231 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
233         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
234         instead of nonimmediate_operand.  Remove C condiition.
236 2015-07-28  Richard Biener  <rguenther@suse.de>
238         * match.pd: Add more simplification of address comparisons.
240 2015-07-28  Richard Biener  <rguenther@suse.de>
242         * match.pd: Re-order two cases in comparison with max/min
243         value simplification to make it apply for bools.
245 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
247         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
248         Handle simple SIGN_EXTEND or ZERO_EXTEND.
249         (aarch64_rtx_costs): Properly strip extend or extract before
250         passing down to rtx costs again.
252 2015-07-28  Nick Clifton  <nickc@redhat.com>
254         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
255         Optimizes the case where -mes0 is active and a constant symbolic
256         address is used.
257         * config/rl78/rl78-protos.h: Prototype the new function.
258         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
260 2015-07-28  Tom de Vries  <tom@codesourcery.com>
262         * tree-parloops.c (reduc_stmt_res): New function.
263         (initialize_reductions, add_field_for_reduction)
264         (create_phi_for_local_result, create_loads_for_reductions)
265         (create_stores_for_reduction, build_new_reduction): Handle case that
266         reduc_stmt is a phi.
267         (gather_scalar_reductions): Allow double_reduc reductions.
269 2015-07-28  Richard Biener  <rguenther@suse.de>
271         * fold-const.c (fold_comparison): Remove equality folding
272         of decl addresses ...
273         * match.pd: ... here and merge with existing pattern.
275 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
277         PR tree-optimization/66828
278         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
279         from int64_t to uint64_t.
281 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
283         * opts-common.c (read_cmdline_option): List DriverOnly enum values
284         as valid only in the error message of the driver, not in the
285         messages of the language compilers.
287 2015-07-27  Tom de Vries  <tom@codesourcery.com>
289         * tree-parloops.c (gather_scalar_reductions): Simplify function
290         structure.
292 2015-07-27  Marek Polacek  <polacek@redhat.com>
294         * ipa-devirt.c (types_same_for_odr): Fix typo.
296 2015-07-27  Jason Merrill  <jason@redhat.com>
298         PR debug/66468
299         * dwarf2out.c (gen_inlined_subroutine_die): Check
300         cgraph_function_possibly_inlined_p.
302 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
304         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
305         Place integer variant first.
306         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
308 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
310         PR/63870
311         * config/arm/arm-builtins.c (enum arm_builtins):
312         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
313         (ARM_BUILTIN_NEON_BASE): Rename macro to....
314         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
315         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
316         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
318 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
320         PR/63870
321         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
322         Add qualifier_lane_index.
323         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
324         (arm_getlane_qualifiers): Use qualifier_lane_index.
325         (arm_lanemac_qualifiers): Rename to...
326         (arm_mac_n_qualifiers): ...this.
327         (LANEMAC_QUALIFIERS): Rename to...
328         (MAC_N_QUALIFIERS): ...this.
329         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
330         (arm_setlane_qualifiers): Use qualifier_lane_index.
331         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
332         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
333         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
334         (arm_expand_neon_builtin): Handle qualifier_lane_index.
336         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
337         * config/arm/arm.c (bounds_check): Likewise, improve error message.
338         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
339         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
340         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
341         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
342         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
343         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
344         qualifiers to TERNOP_IMM.
345         (vdup_lane): Change qualifiers to GETLANE.
346         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
347         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
348         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
349         vqdmlsl_n): Change qualifiers to MAC_N.
351         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
352         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
353         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
354         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
355         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
356         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
357         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
358         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
359         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
360         Remove call to neon_lane_bounds.
362 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
364         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
365         Place integer variant first.
367 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
369         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
370         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
371         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
372         for armv6kz targets.
373         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
374         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
375         (FL_FOR_ARCH6ZK): Remove.
376         (FL_FOR_ARCH6KZ): New.
377         (arm_arch6zk): New declaration.
378         * config/arm/arm-tables.opt: Regenerate.
379         * config/arm/arm.c (arm_arch6kz): New.
380         (arm_option_override): Set arm_arch6kz.
381         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
382         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
383         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
385 2015-07-27  Marek Polacek  <polacek@redhat.com>
387         PR c++/66555
388         PR c/54979
389         * doc/invoke.texi: Document -Wtautological-compare.
391 2015-07-27  Richard Biener  <rguenther@suse.de>
393         * genmatch.c (decision_tree::gen_gimple): Split out large
394         subtrees into separate functions.
395         (decision_tree::gen_generic): Likewise.
397 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
399         * config/alpha/alpha.c: Use SUBREG_P predicate.
400         * config/alpha/predicates.md: Ditto.
402 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
404         * config.host (s390*-*-*): Include driver-native.c only when
405         building with s390* as host *and* target.
407 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
409         PR target/66930
410         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
411         T bit register modified_between_p check.
413 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
415         * config/i386/i386.c: Use SUBREG_P predicate.
416         * config/i386/i386.md: Ditto.
417         * config/i386/sse.md: Ditto.
418         * config/i386/predicates.md: Ditto.
420 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
422         PR target/67004
423         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
424         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
426 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
428         * Makefile.in: Remove use of TREEBROWSER.
429         * config.in: Regenerated.
430         * configure: Regenerated.
431         * configure.ac: Remove definition of TREEBROWSER.
432         * tree-browser.c: Removed.
433         * tree-browser.def: Removed.
435 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
437         * graphite-scop-detection.c: Include gimple-pretty-print.h.
438         (stmt_simple_for_scop_p): Print when a stmt is not handled in
439         Graphite.
440         (scopdet_basic_block_info): Print when a loop or bb cannot be
441         represented in Graphite.
443 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
445         PR target/66648
446         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
447         execution guard when min_size is less than size_needed.
449 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
451         * doc/install.texi: Document supported versions of ISL.
453 2015-07-25  Jeff Law  <law@redhat.com>
455         Revert:
456         PR lto/66752
457         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
458         unable to find X NE 0 in the tables, return X as the simplified
459         condition.
460         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
461         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
462         to VISISTED_BBS.  */
463         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
464         after removing the control flow statement and unnecessary edges.
466 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
468         Revert:
469         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
471         PR rtl-optimization/64164
472         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
473         * tree-ssa-copyrename.c: Removed.
474         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
475         -ftree-coalesce-vars.
476         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
477         * common.opt (ftree-copyrename): Ignore.
478         (ftree-coalesce-inlined-vars): Likewise.
479         * doc/invoke.texi: Remove the ignored options above.
480         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
481         * tree-ssa-coalesce.h: ... here.
482         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
483         headers required by it.
484         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
485         across variables when flag_tree_coalesce_vars.  Check register
486         use and promoted modes to allow coalescing.  Moved to
487         tree-ssa-coalesce.c.
488         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
489         with its member functions to tree-ssa-coalesce.c.
490         (var_map_base_init): Likewise.  Renamed to
491         compute_samebase_partition_bases.
492         (partition_view_normal): Drop want_bases parameter.
493         (partition_view_bitmap): Likewise.
494         * tree-ssa-live.h: Adjust declarations.
495         * tree-ssa-coalesce.c: Include explow.h.
496         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
497         default defs at the entry point.
498         (dump_part_var_map): New.
499         (compute_optimized_partition_bases): New, called by...
500         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
501         of compute_samebase_partition_bases.  Adjust.
502         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
503         * cfgexpand.c (leader_merge): New.
504         (get_rtl_for_parm_ssa_default_def): New.
505         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
506         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
507         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
508         redundant MEM attr setting.
509         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
510         from...
511         (expand_one_stack_var): ... this.  New wrapper to check and
512         skip already expanded SSA partitions.
513         (record_alignment_for_reg_var): New, factored out of...
514         (expand_one_var): ... this.
515         (expand_one_ssa_partition): New.
516         (adjust_one_expanded_partition_var): New.
517         (expand_one_register_var): Check and skip already expanded SSA
518         partitions.
519         (expand_used_vars): Don't create DECLs for anonymous SSA
520         names.  Expand all SSA partitions, then adjust all SSA names.
521         (pass::execute): Replace the loops that set
522         SA.partition_to_pseudo from partition leaders and cleared
523         DECL_RTL for multi-location variables, and that which used to
524         rename vars and set attrs, with one that clears DECL_RTL and
525         checks that PARMs and RESULTs default_defs match DECL_RTL.
526         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
527         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
528         * explow.c (promote_ssa_mode): New.
529         * explow.h (promote_ssa_mode): Declare.
530         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
531         * function.c: Include cfgexpand.h.
532         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
533         (use_register_for_parm_decl): Wrapper for the above to
534         special-case the result_ptr.
535         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
536         (split_complex_args): Take assign_parm_data_all argument.
537         Pass it to rtl_for_parm.  Set up rtl and context for split
538         args.
539         (assign_parms_augmented_arg_list): Adjust.
540         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
541         multiple locations.  Recognize split complex args.
542         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
543         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
544         (assign_parm_setup_block): Prefer SSA-assigned location.
545         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
546         if stack_parm is NULL.
547         (assign_parm_setup_stack): Prefer SSA-assigned location.
548         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
549         rtl before testing for pointer bounds.  Special-case result_ptr.
550         (expand_function_start): Maybe reset DECL_RTL of result.
551         Prefer SSA-assigned location for result and static chain.
552         Factor out DECL_RESULT and SET_DECL_RTL.
553         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
554         anonymous SSA names.  Use promote_ssa_mode.
555         (get_temp_reg): Likewise.
556         (remove_ssa_form): Adjust.
557         * stor-layout.c (layout_decl): Don't set mem attributes of
558         non-MEMs.
559         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
560         and get its reg_usage for reg invalidation.
561         (compute_bb_dataflow): Pass it insn.
562         (emit_notes_in_bb): Likewise.
564 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
566         * config/i386/i386.c (ix86_va_start): Remove
567         unneeded !TARGET_64BIT check.
568         (ix86_gimplify_va_arg): Ditto.
570 2015-07-24  Tom de Vries  <tom@codesourcery.com>
572         * graphite-sese-to-poly.c (build_poly_scop): Always call
573         rewrite_commutative_reductions_out_of_ssa.
575 2015-07-24  Tom de Vries  <tom@codesourcery.com>
577         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
578         flag_associative_math to FLOAT_TYPE_P.  Honour
579         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
581 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
583         PR c++/64079
584         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
585         and "%qD" in warning_at instead of "%q+D" in warning.
587 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
589         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
590         (ix86_function_abi): Cleanup.
592 2015-07-24  Michael Darling  <darlingm@gmail.com>
594         PR other/66259
595         * acinclude.m4: Reflects renaming of configure.in to configure.ac
596         * configure: Likewise
597         * configure.ac: Likewise
598         * doc/install.texi: Likewise
599         * doc/tm.texi: Likewise
600         * doc/tm.texi.in: Likewise
602 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
604         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
605         manually swapping values.
606         * cse.c (fold_rtx): Likewise.
607         * lra-eliminations.c (form_sum): Likewise.
609 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
611         PR target/64003
612         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
613         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
614         (*jcc_1, *jcc_2, jump, simple_return_internal)
615         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
616         Set length_nobnd attribute instead of length attribute.
617         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
618         (length_nobnd): Remove attribute.
619         (length): Remove length_nobnd processing.
621 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
623         * gimplify.c (omp_default_clause): New function.  Reorganize flow
624         for clarity. Broken out of ...
625         (omp_notice_variable): ... here.
627 2015-07-24  Gary Funck  <gary@intrepid.com>
629         PR middle-end/66984
630         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
631         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
633 2015-07-24  Tom de Vries  <tom@codesourcery.com>
635         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
636         exit-first loop transform.
638 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
640         PR 66714
641         * tree-cfg.c (struct replace_decls_d): New struct.
642         (replace_block_vars_by_duplicates_1): New function.
643         (replace_block_vars_by_duplicates): Use it to replace the decls
644         in the value exprs by duplicates.
646 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
648         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
649         -shared, -symbolic, -rdynamic.
651 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
653         PR target/65711
654         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
655         -dynamic-linker within %{!static %{!shared, and -rdynamic within
656         %{!static.
658 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
660         PR ipa/66566
661         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
662         edge summary is available.
664 2015-07-24  Richard Biener  <rguenther@suse.de>
666         * genmatch.c (struct dt_node): Add statistic fields.
667         (dt_node::analyze): New method.
668         (decision_tree::gen_gimple): Call analyze on the root node
669         and print statistics to stderr.
670         (decision_tree::gen_generic): Likewise.
672 2015-07-24  Richard Biener  <rguenther@suse.de>
674         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
675         against the highest or lowest possible integer ...
676         * match.pd: ... as patterns here.
678 2015-07-24  Richard Biener  <rguenther@suse.de>
680         * genmatch.c (struct capture_info): Add same_as field.
681         (capture_info::capture_info): Initialize same_as.
682         (capture_info::walk_match): Compute same_as.
683         (capture_info::walk_result): Compute stuff for the leader.
684         (capture_info::walk_c_expr): Likewise.
685         (dt_simplify::gen_1): Only look at leaders when deciding
686         to force no side-effects or emit side-effects of omitted operands.
688 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
690         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
691         reg note to the GPR -> FPR save instructions.
693 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
695         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
696         cheaper.
697         (s390_expand_insv): Don't generate risbg pattern for constant zero
698         sources.
699         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
700         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
701         splitters.
703 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
705         * config/s390/s390.c (s390_reorg): Clean up handling of processors
706         with
707         -mtune=
708         (s390_issue_rate): Likewise.
709         (s390_sched_reorder): Likewise.
710         (s390_sched_variable_issue): Likewise.
711         (s390_loop_unroll_adjust): Likewise.
712         (s390_option_override):  Likewise.
714 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
716         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
717         processor capabilities with -march=native.
718         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
719         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
720         (S390_TARGET_BITS_STRING): Macro to simplify specs.
722 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
724         * config/s390/s390.c (s390_issue_rate): Handle
725         PROCESSOR_2094_Z9_EC.
726         (s390_option_override): Likewise.
727         (s390_adjust_priority): Likewise.
729 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
731         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
732         when cross compiling.
734 2015-07-24  Richard Biener  <rguenther@suse.de>
736         * fold-const.c (maybe_canonicalize_comparison_1): Move
737         A code CST canonicalization ...
738         * match.pd: ... to a pattern here.
740 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
742         Revert:
743         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
744         PR target/63521
745         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
746         (HONOR_REG_ALLOC_ORDER): Define.
748 2015-07-24  Richard Biener  <rguenther@suse.de>
750         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
751         * fold-const.c (fold_comparison): Move parameter does not
752         alias &local simplification ...
753         * match.pd: ... as a pattern here.
755 2015-07-24  Richard Biener  <rguenther@suse.de>
757         * gimple-fold.c (replace_stmt_with_simplification): Special-case
758         valueizing call operands.
759         * gimple-match-head.c (maybe_push_res_to_seq): Take
760         number of call arguments from ops array.
761         (do_valueize): New function.
762         (gimple_simplify): Return true if valueization changed
763         any operand even if the result didn't simplify further.
765 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
767         PR middle-end/25530
768         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
770 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
772         PR middle-end/25529
773         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
775 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
777         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
778         instruction.
780 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
782         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
783         clean up.
785 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
787         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
788         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
789         targets here.
790         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
791         ms_va_list_type_node initialization.
793 2015-07-23  Jeff Law  <law@redhat.com>
795         PR lto/66752
796         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
797         unable to find X NE 0 in the tables, return X as the simplified
798         condition.
799         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
800         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
801         to VISISTED_BBS.  */
802         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
803         after removing the control flow statement and unnecessary edges.
805 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
807         * tree-pass.h (get_current_pass_name): Removed.
809 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
811         PR rtl-optimization/64164
812         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
813         * tree-ssa-copyrename.c: Removed.
814         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
815         -ftree-coalesce-vars.
816         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
817         * common.opt (ftree-copyrename): Ignore.
818         (ftree-coalesce-inlined-vars): Likewise.
819         * doc/invoke.texi: Remove the ignored options above.
820         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
821         * tree-ssa-coalesce.h: ... here.
822         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
823         headers required by it.
824         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
825         across variables when flag_tree_coalesce_vars.  Check register
826         use and promoted modes to allow coalescing.  Moved to
827         tree-ssa-coalesce.c.
828         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
829         with its member functions to tree-ssa-coalesce.c.
830         (var_map_base_init): Likewise.  Renamed to
831         compute_samebase_partition_bases.
832         (partition_view_normal): Drop want_bases parameter.
833         (partition_view_bitmap): Likewise.
834         * tree-ssa-live.h: Adjust declarations.
835         * tree-ssa-coalesce.c: Include explow.h.
836         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
837         default defs at the entry point.
838         (dump_part_var_map): New.
839         (compute_optimized_partition_bases): New, called by...
840         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
841         of compute_samebase_partition_bases.  Adjust.
842         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
843         * cfgexpand.c (leader_merge): New.
844         (get_rtl_for_parm_ssa_default_def): New.
845         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
846         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
847         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
848         redundant MEM attr setting.
849         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
850         from...
851         (expand_one_stack_var): ... this.  New wrapper to check and
852         skip already expanded SSA partitions.
853         (record_alignment_for_reg_var): New, factored out of...
854         (expand_one_var): ... this.
855         (expand_one_ssa_partition): New.
856         (adjust_one_expanded_partition_var): New.
857         (expand_one_register_var): Check and skip already expanded SSA
858         partitions.
859         (expand_used_vars): Don't create DECLs for anonymous SSA
860         names.  Expand all SSA partitions, then adjust all SSA names.
861         (pass::execute): Replace the loops that set
862         SA.partition_to_pseudo from partition leaders and cleared
863         DECL_RTL for multi-location variables, and that which used to
864         rename vars and set attrs, with one that clears DECL_RTL and
865         checks that PARMs and RESULTs default_defs match DECL_RTL.
866         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
867         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
868         * explow.c (promote_ssa_mode): New.
869         * explow.h (promote_ssa_mode): Declare.
870         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
871         * function.c: Include cfgexpand.h.
872         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
873         (use_register_for_parm_decl): Wrapper for the above to
874         special-case the result_ptr.
875         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
876         (split_complex_args): Take assign_parm_data_all argument.
877         Pass it to rtl_for_parm.  Set up rtl and context for split
878         args.
879         (assign_parms_augmented_arg_list): Adjust.
880         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
881         multiple locations.  Recognize split complex args.
882         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
883         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
884         (assign_parm_setup_block): Prefer SSA-assigned location.
885         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
886         if stack_parm is NULL.
887         (assign_parm_setup_stack): Prefer SSA-assigned location.
888         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
889         rtl before testing for pointer bounds.  Special-case result_ptr.
890         (expand_function_start): Maybe reset DECL_RTL of result.
891         Prefer SSA-assigned location for result and static chain.
892         Factor out DECL_RESULT and SET_DECL_RTL.
893         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
894         anonymous SSA names.  Use promote_ssa_mode.
895         (get_temp_reg): Likewise.
896         (remove_ssa_form): Adjust.
897         * stor-layout.c (layout_decl): Don't set mem attributes of
898         non-MEMs.
899         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
900         and get its reg_usage for reg invalidation.
901         (compute_bb_dataflow): Pass it insn.
902         (emit_notes_in_bb): Likewise.
904 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
906         PR target/66217
907         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
908         prototype.
909         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
910         (rs6000_emit_2insn_and): Handle dot forms.
911         * config/rs6000/rs6000.md (and<mode>3): Adjust.
912         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
913         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
915 2015-07-23  Richard Biener  <rguenther@suse.de>
917         * generic-match-head.c: Include cgraph.h.
918         * gimple-match-head.c: Likewise.
919         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
920         SSA names.
921         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
922         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
923         pattern.
925 2015-07-23  Richard Biener  <rguenther@suse.de>
927         * gimple-fold.c (fold_gimple_cond): Do not require folding
928         results to pass valid_gimple_rhs_p.
929         * tree-cfg.h (fold_cond_expr_cond): Remove.
930         * tree-cfg.c (fold_cond_expr_cond): Likewise.
931         (make_edges): Do not call it.
932         * tree-inline.c (tree_function_versioning): Likewise.
934 2015-07-23  Tom de Vries  <tom@codesourcery.com>
936         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
937         vect_force_simple_reduction.
938         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
939         (vect_is_simple_reduction_1): Add and handle
940         need_wrapping_integral_overflow parameter.
941         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
942         need_wrapping_integral_overflow parameter.
943         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
944         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
945         decl.
947 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
949         PR tree-optimization/66926,66951
950         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
951         INNER_LOOP and fix up condition for renaming virtual operands.
953 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
955         * combine.c (try_combine): Use std::swap instead of manually
956         swapping.
958 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
960         * config/mips/i6400.md: New file.
961         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
962         (mips64r6): Likewise.
963         (i6400): Define.
964         * config/mips/mips-tables.opt: Regenerate.
965         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
966         (mips_issue_rate): Add support for i6400.
967         (mips_multipass_dfa_lookahead): Likewise.
968         * config/mips/mips.h (TUNE_I6400): Define.
969         * config/mips/mips.md: Include i6400.md.
970         (processor): Add i6400.
971         * doc/invoke.texi (-march=@var{arch}): Add i6400.
973 2015-07-23  Richard Biener  <rguenther@suse.de>
975         PR middle-end/66916
976         * match.pd: Guard widen and sign-change comparison simplification
977         with single_use.
979 2015-07-23  Richard Biener  <rguenther@suse.de>
981         PR tree-optimization/66945
982         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
983         ::before_dom_children): Force the propagators idea of
984         non-executable edges to materialize, not what the folder
985         chooses.
987 2015-07-23  Richard Biener  <rguenther@suse.de>
989         * gimple.h (gimple_cond_make_false): Use 0 != 0.
990         (gimple_cond_make_true): Use 1 != 0.
992 2015-07-22  DJ Delorie  <dj@redhat.com>
994         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
995         slashes.
997         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
998         (ashrhi3): Likewise.
999         (lshrhi3): Likewise.
1000         (movhi): Take advantage of zero-extend to load small constants.
1001         (movpsi): Likewise.
1002         (and<mode>3): Likewise.
1003         (zero_extendqihi2): Likewise.
1004         (zero_extendqisi2): New.
1005         * config/msp430/constraints.md (N,O): New.
1006         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
1008 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
1010         PR target/66954
1011         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
1012         to enum feature_priority and feature_list.
1013         (fold_builtin_cpu): Add F_AES to enum processor_features
1014         and isa_names_table.
1016 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
1018         PR driver/66737
1019         * config/i386/linux-common.h (MPX_SPEC): Use linker option
1020         for 64bit target only.
1022 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
1024         * config/nvptx/nvptx.c: Expand some comments.
1026 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
1028         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
1029         (cortex_a53_advsimd): ...This.
1031 2015-07-22  Richard Biener  <rguenther@suse.de>
1033         * genmatch.c (expr::gen_transform): Clarify error message
1034         and display location.
1036 2015-07-22  Richard Biener  <rguenther@suse.de>
1038         * genmatch.c (struct operand): Add location member.
1039         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
1040         constructors.
1041         (struct simplify): Remove match_location and result_location
1042         members.
1043         (elsehwere): Adjust.
1045 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
1047         * config/mips/m5100.md: New file.
1048         * config/mips/mips-cpus.def (m5100, m5101): Define.
1049         * config/mips/mips-tables.opt: Regenerate.
1050         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
1051         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
1052         -march=m5101 to -mips32r5.
1053         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
1054         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
1055         !-msoft-float.
1056         * config/mips/mips.md: Include m5100.md.
1057         (processor): Add m5100.
1058         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
1060 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
1062         * config/mips/mips-cpus.def (interaptiv): Define.
1063         * config/mips/mips-tables.opt: Regenerate.
1064         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
1065         -mips32r2.
1066         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
1067         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
1069 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
1071         PR target/63521
1072         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
1073         (HONOR_REG_ALLOC_ORDER): Define.
1075 2015-07-22  Richard Biener  <rguenther@suse.de>
1077         PR tree-optimization/66952
1078         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
1079         blocks we end up executing unconditionally reset all SSA
1080         info such as range and alignment.
1081         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
1082         * tree-ssanames.c (reset_flow_sensitive_info): New function.
1084 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
1086         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
1087         typo in attribute.
1089 2015-07-22  Richard Biener  <rguenther@suse.de>
1091         * genmatch.c (parser::parse_result): Properly handle
1092         match with result operands and conditions.
1094 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
1096         PR target/63870
1097         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1098         Add qualifier_struct_load_store_lane_index.
1099         (aarch64_types_loadstruct_lane_qualifiers): Use
1100         qualifier_struct_load_store_lane_index for lane index argument for
1101         last argument.
1102         (aarch64_types_storestruct_lane_qualifiers): Ditto.
1103         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1104         (aarch64_simd_expand_args): Add new argument describing mode of
1105         builtin. Check lane bounds for arguments with
1106         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1107         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
1108         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1109         (aarch64_simd_expand_builtin): Handle arguments with
1110         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
1111         aarch64_simd_expand_args.
1112         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
1113         vst[234]_lane with BUILTIN_VALLDIF.
1114         * config/aarch64/aarch64-simd.md:
1115         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
1116         endianness reversal on lane index.
1117         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
1118         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
1119         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
1120         (vec_store_lanesci_lane<mode>): Ditto.
1121         (vec_store_lanesxi_lane<mode>): Ditto.
1122         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
1123         reversal of lane index.
1124         (aarch64_ld3_lane<mode>): Ditto.
1125         (aarch64_ld4_lane<mode>): Ditto.
1126         (aarch64_st2_lane<mode>): Ditto.
1127         (aarch64_st3_lane<mode>): Ditto.
1128         (aarch64_st4_lane<mode>): Ditto.
1129         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
1130         to qmode. Add new mode parameter. Update uses.
1131         (__LD3_LANE_FUNC): Ditto.
1132         (__LD4_LANE_FUNC): Ditto.
1133         (__ST2_LANE_FUNC): Ditto.
1134         (__ST3_LANE_FUNC): Ditto.
1135         (__ST4_LANE_FUNC): Ditto.
1137 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
1139         * doc/invoke.texi (Language Independent Options): Rename node to
1140         Diagnostic Message Formatting Options.
1142 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
1144         PR ipa/66424.
1145         * lra-remat.c (operand_to_remat): Prevent using insns with input
1146         subregs processed separately by IRA.
1148 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
1150         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
1151         straight loops.
1152         (single_imm_use): Check for iterator node.
1153         (num_imm_uses): Likewise.
1154         * tree-ssa-operands.c (has_zero_uses_1): Delete.
1155         (single_imm_use_1): Check for iterator node.
1157 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
1158             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1160         * configure.ac: Add check for new options in isl-0.15.
1161         * config.in, configure: Rebuilt.
1162         * graphite-blocking.c: Include <isl/constraint.h>
1163         * graphite-interchange.c,  graphite-poly.c: Likewise.
1164         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
1165         * graphite.c: Likewise.
1166         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
1167         <isl/union_set.h>.
1168         * graphite-dependences.c: Include <isl/constraint.h>.
1169         (max_number_of_out_dimensions): Returns isl_stat.
1170         (extend_schedule_1): Likewise
1171         (extend_schedule): Corresponding changes.
1172         * graphite-optimize-isl.c: Include <isl/constraint.h> and
1173         <isl/union_set.h>.
1174         (getSingleMap): Change return type of isl_stat.
1175         (optimize_isl): Conditionally use
1176         isl_options_set_schedule_serialize_sccs.
1177         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
1178         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
1180 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
1182         PR target/66956
1183         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
1184         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
1186 2015-07-21  Richard Biener  <rguenther@suse.de>
1188         PR tree-optimization/66948
1189         * genmatch.c (capture_info::walk_match): Also recurse to
1190         captures.  Properly compute expr state from captures of
1191         captures.
1192         * match.pd: Add single-use guards to
1193         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
1195 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
1197         * config/nvptx/mkoffload.c (process): Add static destructor call.
1199 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1201         PR middle-end/66915
1202         * match.pd (A - B -> A + (-B)): Don't allow folding
1203         when type if a fixed-point type.
1205 2015-07-20  DJ Delorie  <dj@redhat.com>
1207         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
1208         (iorqi3_real): Likewise for set1.
1210 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
1212         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
1213         for !TARGET_64BIT.
1215 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
1217         * graphite-isl-ast-to-gimple.c:
1218         Refactor so that each function can access 'region'. This will help
1219         maintain a parameter rename_map within a region.
1221 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
1223         * config/rs6000/rs6000.md (*lt0_disi): New.
1225 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
1227         PR target/66217
1228         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
1229         "available letters" comment.
1230         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
1231         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
1232         and_2rld_operand):  Delete.
1233         (and_operand): Adjust.
1234         (rotate_mask_operator): New.
1235         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
1236         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
1237         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
1238         extract_ME): Delete.
1239         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
1240         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
1241         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
1242         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
1243         rs6000_emit_2insn_and): New.
1244         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
1245         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
1246         includes_rldic_lshift_p, includes_rldicr_lshift_p,
1247         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
1248         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
1249         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
1250         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
1251         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
1252         rs6000_emit_2insn_and): New.
1253         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
1254         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
1255         handling.
1256         <NOT>: Don't fall through to next case.
1257         <AND>: Handle the various rotate-and-mask cases directly.
1258         <IOR>: Always cost as one insn.
1259         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
1260         (and<mode>3): Adjust expander for the new patterns.
1261         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
1262         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
1263         (*and<mode>3_imm_dot_shifted): New.
1264         (*and<mode>3_mask): Delete, rewrite as ...
1265         (and<mode>3_mask): ... New.
1266         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
1267         (andsi3_internal0_nomc): Delete.
1268         (*andsi3_internal6): Delete.
1269         (*and<mode>3_2insn): New.
1270         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
1271         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
1272         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
1273         *insvdi_internal3): Delete.
1274         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
1275         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
1276         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
1277         *ior<mode>_mask): New.
1278         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
1279         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
1280         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
1281         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
1282         Delete.
1283         (ashr<mode>3): Delete expander.
1284         (*ashr<mode>3): Rename to ...
1285         (ashr<mode>3): ... This.
1286         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
1287         (*rotldi3_internal4, *rotldi3_internal5 and split,
1288         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
1289         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
1290         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
1291         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
1292         (splitter for loading a mask): Adjust.
1293         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
1295 2015-07-20  Marek Polacek  <polacek@redhat.com>
1297         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
1298         output_add_clobbers, output_added_clobbers_hard_reg_p,
1299         gen_rtx_scratch): Remove declarations.
1301 2015-07-20  Marek Polacek  <polacek@redhat.com>
1303         PR c++/55095
1304         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
1306 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1308         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
1309         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
1311 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1313         * combine.c (combine_simplify_rtx): Move simplification step
1314         before various transformations/substitutions.
1316 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
1318         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
1319         (struct int_traits): Likewise.
1321 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1323         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
1324         function to vmsdbgout_function_decl.
1326 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
1328         PR target/66922
1329         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
1330         from misaligned positions.
1331         (ix86_expand_pinsr): Reject insertions to misaligned positions.
1333 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
1335         PR middle-end/46851
1336         PR middle-end/60340
1337         * Makefile.in: Removed omega.o.
1338         * common.opt: Document flag fcheck-data-deps as deprecated.
1339         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
1340         its associated params: omega-max-vars, omega-max-geqs,
1341         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
1342         omega-max-keys, omega-eliminate-redundant-constraints.
1343         * doc/loop.texi: Remove all the section on Omega.
1344         * graphite-blocking.c: Include missing params.h: it used to be
1345         included through tree-data-ref.h and omega.h.
1346         * graphite-isl-ast-to-gimple.c: Same.
1347         * graphite-optimize-isl.c: Same.
1348         * graphite-sese-to-poly.c: Same.
1349         * graphite.c: Same.
1350         * omega.c: Remove.
1351         * omega.h: Remove.
1352         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
1353         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
1354         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
1355         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
1356         * passes.def: Remove pass_check_data_deps.
1357         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
1358         (dump_conflict_function): Same.
1359         (dump_subscript): Same.
1360         (print_direction_vector): Same.
1361         (print_dir_vectors): Same.
1362         (print_lambda_vector): Same.
1363         (print_dist_vectors): Same.
1364         (dump_data_dependence_relation): Same.
1365         (dump_data_dependence_relations): Same.
1366         (dump_dist_dir_vectors): Same.
1367         (dump_ddrs): Same.
1368         (init_omega_eq_with_af): Removed.
1369         (omega_extract_distance_vectors): Removed.
1370         (omega_setup_subscript): Removed.
1371         (init_omega_for_ddr_1): Removed.
1372         (init_omega_for_ddr): Removed.
1373         (ddr_consistent_p): Removed.
1374         (compute_affine_dependence): Do not use omega to check data
1375         dependences.
1376         (compute_data_dependences_for_bb): Removed.
1377         (analyze_all_data_dependences): Removed.
1378         (tree_check_data_deps): Removed.
1379         * tree-data-ref.h: Do not include omega.h.
1380         (compute_data_dependences_for_bb): Removed.
1381         (tree_check_data_deps): Removed.
1382         * tree-ssa-loop.c (pass_check_data_deps): Removed.
1383         (make_pass_check_data_deps): Removed.
1384         * tree-ssa-phiopt.c: Include params.h.
1385         * tree-vect-data-refs.c: Same.
1386         * tree-vect-slp.c: Same.
1388 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
1390         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
1391         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
1392         (mem->fpreg splitters): Ditto.
1393         (general_operand->nonimmediate_operand splitter): Use explicit modes.
1394         Disable DFmode for TARGET_64BIT.
1396 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
1398         PR target/66906
1399         * config/i386/i386.c (ix86_expand_prologue): Replicate static
1400         chain on the stack.
1402 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
1404         * config/nvptx/mkoffload.c (process): Constify host data.
1405         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
1406         Constify host data.
1407         (generate_host_descr_file): Likewise.
1409 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
1410             Sebastian Pop  <s.pop@samsung.com>
1412         PR middle-end/61929
1413         * graphite-dependences.c (add_pdr_constraints): Renamed
1414         pdr->extent to pdr->subscript_sizes.
1415         * graphite-interchange.c (build_linearized_memory_access): Add
1416         back all gcc_assert's that the "isl_int to isl_val conversion"
1417         patch has removed.  Refactored.
1418         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
1419         * graphite-poly.c (new_poly_dr): Same.
1420         (free_poly_dr): Same.
1421         * graphite-poly.h (struct poly_dr): Same.
1422         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
1423         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
1424         * graphite-scop-detection.h: Fix space.
1425         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
1426         back all gcc_assert's removed by a previous patch.
1427         (wrap): Remove the_isl_ctx global variable that the same patch has
1428         added.
1429         (build_loop_iteration_domains): Same.
1430         (add_param_constraints): Same.
1431         (pdr_add_data_dimensions): Same.  Refactored.
1432         (build_poly_dr): Renamed extent to subscript_sizes.
1434 2015-07-17  Marek Polacek  <polacek@redhat.com>
1436         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
1437         * match.pd: ... here.
1439 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
1441         * config/nvptx/mkoffload.c (process): Constify target data.
1442         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
1443         Constify target data.
1444         (generate_target_offloadend_file): Likewise.
1446 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
1448         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
1449         to allow renaming of PHI arguments on edges incoming from outer
1450         loop header, add corresponding check before start PHI iterator.
1451         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
1452         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
1453         with true force_vectorize.  Set-up dominator for outer loop too.
1454         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
1455         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
1456         was marked with force_vectorize and has restricted cfg.
1457         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
1458         inner loop.
1459         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1460         do peeling for outer loops.
1462 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
1463             Matthias Klose  <doko@ubuntu.com>
1465         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
1466         build-sysroot, sysroot from the `Miscenalleous configure options' to
1467         the `Directories' section and strip trailing `/' from with_sysroot.
1468         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
1469         * configure: Regenerated.
1471 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
1473         PR target/66824
1474         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
1475         (TARGET_HARD_DF_REGS): Ditto.
1476         (TARGET_HARD_XF_REGS): Ditto.
1477         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
1478         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
1479         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
1480         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
1481         (*movsf_internal): Add alternatives 16 and 17. Enable
1482         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
1484 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
1486         PR rtl-optimization/66891
1487         * calls.c (expand_call): Wrap precompute_register_parameters with
1488         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
1490 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
1492         * config/nvptx/mkoffload.c (process): Constify mapping variables.
1493         Define target data struct and initialize it.
1495 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
1497         PR rtl-optimization/66626
1498         * ira.h (emit-rtl.h): Include.
1499         (non_spilled_static_chain_regno_p): New.
1500         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
1501         unless it is non spilled static chain pseudo.
1502         (assign_hard_rego): Spill memory profitable allocno unless it is
1503         non spilled static chain pseudo.
1504         (allocno_spill_priority_compare): Put non spilled static chain
1505         pseudo at the end of sorted array.
1506         (improve_allocation): Do nothing if we have static chain and
1507         non-local goto.
1508         (allocno__priority_compare_func): Put non spilled static chain
1509         pseudo at the beginning of sorted array.
1510         (move_spill_restore): Ignore non spilled static chain pseudo.
1511         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
1512         to non spilled static chain pseudo.
1513         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
1514         pseudo at the beginning of sorted array.
1515         (spill_for): Spill non spilled static chain pseudo last.
1516         * lra-constraints.c (lra_constraints): Remove static chain pseudo
1517         check for equivalence.
1519 2015-07-16  Martin Liska  <mliska@suse.cz>
1521         PR ipa/66896.
1522         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
1523         dst_ctx if it does not exist.
1525 2015-07-16  Martin Liska  <mliska@suse.cz>
1527         * hash-set.h (remove): New function.
1528         (iterator): New iteration class for hash_set.
1530 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1532         * genattrtab.c (make_canonical): Add a file_location parameter.
1533         Use fatal_at rather than fatal.
1534         (get_attr_value): Likewise.  Update call to make_canonical.
1535         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
1536         (make_internal_attr): Update calls accordingly.
1538 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1540         * read-md.h (message_with_line, error_with_line): Delete.
1541         * read-md.c (message_with_line, error_with_line): Delete.
1542         * gensupport.h: Include read-md.h.
1543         (md_rtx_info): New structure.
1544         (read_md_rtx): Use it.  Return a bool success value.
1545         * gensupport.c (read_md_rtx): Likewise.
1546         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
1547         (main): Update after interface changes.
1548         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
1549         (main): Update after interface changes.
1550         * genattrtab.c (insn_code_number): Delete.
1551         (optimize_attrs): Add a max_insn_code parameter and use it instead
1552         of insn_code_number.
1553         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
1554         Use *_at rather than *_with_line functions.
1555         (gen_insn): Likewise.
1556         (gen_delay): Likewise.
1557         (gen_insn_reserv): Likewise.
1558         (gen_bypass): Take an md_rtx_info rather than an rtx.
1559         (main): Update after interface changes.  Use a local max_insn_code
1560         variable instead of insn_code_number.
1561         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
1562         an rtx.  Use fatal_at rather than fatal.
1563         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
1564         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
1565         (gen_absence_set, gen_final_absence_set, gen_automaton)
1566         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
1567         (main): Update after interface changes.
1568         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
1569         and code number.
1570         (main): Update after interface changes.
1571         * genconditions.c (main): Use new read_md_rtx interface.
1572         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
1573         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
1574         (main): Update after interface changes.
1575         * genemit.c (insn_code_number, insn_index_number): Delete.
1576         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
1577         Use fatal_at rather than fatal.
1578         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
1579         rather than fatal.
1580         (gen_split): Likewise.
1581         (main): Update after interface changes.
1582         * genextract.c (line_no): Delete.
1583         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
1584         Update call to walk_rtx.
1585         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
1586         rather than message_with_line.
1587         (walk_rtx): Add an md_rtx_info argument.  Update call to
1588         VEC_safe_set_locstr.
1589         (main): Update after interface changes.
1590         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
1591         and lineno.  Use error_at rather than separate message_with_line
1592         calls and have_error assignments.
1593         (main): Update after interface changes.
1594         * genmddump.c (main): Use new read_md_rtx interface.
1595         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
1596         (main): Update after interface changes.
1597         * genoutput.c (next_code_number): Delete.
1598         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
1599         (gen_peephole, gen_expand, gen_split): Likewise.
1600         (note_constraint): Likewise.  Use *_at rather than *_with_line
1601         functions.
1602         (main): Update after interface changes.
1603         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
1604         rtx and lineno.
1605         (main): Update after interface changes.
1606         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
1607         than an rtx and lineno.
1608         (process_define_constraint): Likewise.
1609         (process_define_register_constraint): Likewise.
1610         (main): Update after interface changes.
1611         * genrecog.c (next_insn_code, pattern_lineno): Delete.
1612         (validate_pattern): Replace top-level rtx with an md_rtx_info.
1613         Use *_at rather than *_with_line functions.
1614         (match_pattern_2): Likewise.
1615         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
1616         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
1617         Use *_at rather than *_with_line functions.
1618         * gentarget-def.c (add_insn): New function.
1619         (main): Use it.  Use new read_md_rtx interface.
1621 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1623         * gensupport.h (compute_test_codes): Take a file_location rather
1624         than a line number.
1625         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
1626         rather than *_with_line functions.
1627         (process_define_predicate): Update call to compute_test_codes.
1628         * genpreds.c (validate_exp): Take a file_location rather than a
1629         line number.  Use *_at functions rather than *_with_line functions.
1630         (process_define_predicate): Update call to validate_exp.
1631         (constraint_data): Replace lineno field with a file_location.
1632         (add_constraint): Take a file_location rather than a line number.
1633         Use *_at functions rather than *_with_line functions.  Fix error
1634         message for address constraints.  Update after changes to
1635         validate_exp, constraint_data and compute_test_codes.
1636         (process_define_constraint): Update accordingly.
1637         (process_define_register_constraint): Likewise.
1639 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1641         * genoutput.c (data): Use a file_location to record the source
1642         position.
1643         (nothing): Delete.
1644         (idata, idata_end): Remove initialization.
1645         (constraint_data): Replace lineno with a file_location.
1646         (output_insn_data): Update after changes to data.
1647         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
1648         (scan_operands): Likewise, using *_at rather than *_with_line
1649         functions.
1650         (process_template): Likewise.
1651         (validate_insn_alternatives): Likewise.
1652         (validate_insn_operands): Likewise.
1653         (validate_optab_operands): Likewise.
1654         (init_insn_for_nothing): Initialize idata and idata_end.
1655         (note_constraint): Update after changes to constraint_data,
1656         using at rather than with_line functions.
1657         (mdep_constraint_len): Take a file_location rather than a
1658         line number.  Use at rather than with_line functions.
1660 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1662         * read-md.h (fatal_at): Declare.
1663         * read-md.c (fatal_at): New function.
1664         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
1665         to record the source position.
1666         (check_attr_test): Take a file_location instead of a line number.
1667         Use fatal_at instead of fatal.
1668         (check_attr_value): Update after above changes, using "at"
1669         rather than "with_line" reporting functions.
1670         (convert_set_attr_alternative): Likewise.
1671         (gen_attr): Likewise.
1672         (check_defs): Likewise.  Don't assign to read_md_filename.
1673         (gen_insn): Update initialization after above changes.
1674         (gen_delay): Likewise.
1675         (write_insn_cases): Print the filename for a define_peephole.
1676         (gen_insn_reserv): Take a line number as argument and update
1677         the call to check_attr_test.
1678         (main): Pass a line number to gen_insn_reserv.
1680 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1682         * read-md.h (file_location): New structure.
1683         (directive_handler_t): Take a file_location rather than a line number.
1684         (message_at, error_at): Declare.
1685         (read_skip_construct): Delete.
1686         * read-md.c (message_with_line_1): Replace with...
1687         (message_at_1): ...this new function.
1688         (message_at, error_at): New functions.
1689         (message_with_line, error_with_line): Update to use message_at_1.
1690         (handle_enum): Take a file_location rather than a line number
1691         and use error_at for error reporting.
1692         (handle_include): Likewise.
1693         (read_skip_construct): Likewise.  Make static.
1694         (handle_file): Update after above changes.  Pass a file_location
1695         rather than a line number to handle_directive.
1696         * gensupport.c (queue_elem): Replace separate filename and lineno
1697         with a file_location.
1698         (queue_pattern): Replace filename and lineno arguments with a
1699         file_location.  Update after change to queue_elem.
1700         (process_define_predicate): Replace lineno argument with a
1701         file_location and use error_at for error reporting.  Update
1702         after above changes.
1703         (process_rtx): Likewise.
1704         (subst_pattern_match): Likewise.
1705         (get_alternatives_number): Likewise.
1706         (alter_predicate_for_insn): Likewise.
1707         (rtx_handle_directive): Likewise.
1708         (is_predicable): Update after above changes, using error_at rather
1709         than error_with_line.
1710         (has_subst_attribute): Likewise.
1711         (identify_predicable_attribute): Likewise.
1712         (alter_attrs_for_subst_insn): Likewise.
1713         (process_one_cond_exec): Likewise.
1714         (process_substs_on_one_elem): Likewise.
1715         (process_define_subst): Likewise.
1716         (check_define_attr_duplicates): Likewise.
1717         (read_md_rtx): Update after change to queue_elem.
1719 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1721         * genoutput.c (next_index_number): Delete.
1722         (data): Remove index_number.
1723         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
1724         (main): Remove manipulation of next_index_number.
1726 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
1728         * genattrtab.c (check_attr_value): Remove handling of null attrs.
1729         (make_canonical): Likewise.
1731 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
1733         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
1734         instead of adjust_address_nv.
1735         (restore_stack_nonlocal): Likewise.
1736         (nonlocal_goto): Likewise.
1738 2015-07-16  Tom de Vries  <tom@codesourcery.com>
1740         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
1741         not have a corresponding loop header phi.
1743 2015-07-16  Tom de Vries  <tom@codesourcery.com>
1745         * tree-parloops.c (create_loads_for_reductions): Handle case that
1746         reduction is unused.
1748 2015-07-16  Richard Biener  <rguenther@suse.de>
1750         PR tree-optimization/66894
1751         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
1752         about deriving NE_EXPR from truncated values.
1754 2015-07-16  Martin Liska  <mliska@suse.cz>
1756         * alloc-pool.h
1757         (object_allocator): Add new class.
1758         (pool_allocator::initialize): Use the underlying class.
1759         (pool_allocator::allocate): Likewise.
1760         (pool_allocator::remove): Likewise.
1761         (operator new): A new generic allocator.
1762         * asan.c (struct asan_mem_ref): Remove unused members.
1763         (asan_mem_ref_new): Replace new operator with
1764         object_allocator::allocate.
1765         (free_mem_ref_resources): Change deallocation.
1766         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
1767         with object_allocator.
1768         * config/sh/sh.c (add_constant): Replace new operator with
1769         object_allocator::allocate.
1770         (sh_reorg): Change call to a release method.
1771         * cselib.c (struct elt_list): Remove unused members.
1772         (new_elt_list): Replace new operator with
1773         object_allocator::allocate.
1774         (new_elt_loc_list): Likewise.
1775         (new_cselib_val): Likewise.
1776         (unchain_one_elt_list): Change delete operator with remove method.
1777         (unchain_one_elt_loc_list): Likewise.
1778         (unchain_one_value): Likewise.
1779         (cselib_finish): Release newly added static allocators.
1780         * cselib.h (struct cselib_val): Remove unused members.
1781         (struct elt_loc_list): Likewise.
1782         * df-problems.c (df_chain_alloc): Replace pool_allocator with
1783         object_allocator.
1784         * df-scan.c (struct df_scan_problem_data): Likewise.
1785         (df_scan_alloc): Likewise.
1786         * df.h (struct dataflow): Likewise.
1787         * dse.c (struct read_info_type): Likewise.
1788         (struct insn_info_type): Likewise.
1789         (struct dse_bb_info_type): Likewise.
1790         (struct group_info): Likewise.
1791         (struct deferred_change): Likewise.
1792         (get_group_info): Likewise.
1793         (delete_dead_store_insn): Likewise.
1794         (free_read_records): Likewise.
1795         (replace_read): Likewise.
1796         (check_mem_read_rtx): Likewise.
1797         (scan_insn): Likewise.
1798         (dse_step1): Likewise.
1799         (dse_step7): Likewise.
1800         * et-forest.c (struct et_occ): Remove unused members.
1801         (et_new_occ): Use allocate instead of new operator.
1802         (et_new_tree): Likewise.
1803         (et_free_tree): Call release method explicitly.
1804         (et_free_tree_force): Likewise.
1805         (et_free_pools): Likewise.
1806         (et_split): Use remove instead of delete operator.
1807         * et-forest.h (struct et_node): Remove unused members.
1808         * ipa-cp.c: Change pool_allocator to object_allocator.
1809         * ipa-inline-analysis.c: Likewise.
1810         * ipa-profile.c: Likewise.
1811         * ipa-prop.c: Likewise.
1812         * ipa-prop.h: Likewise.
1813         * ira-build.c (initiate_cost_vectors): Cast return value.
1814         (ira_allocate_cost_vector): Likewise.
1815         * ira-color.c (struct update_cost_record): Remove unused members.
1816         * lra-int.h (struct lra_live_range): Likewise.
1817         (struct lra_copy): Likewise.
1818         (struct lra_insn_reg): Likewise.
1819         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
1820         * lra.c (new_insn_reg): Replace new operator with allocate method.
1821         (free_insn_regs): Same for operator delete.
1822         (finish_insn_regs): Release new static allocator.
1823         (finish_insn_recog_data): Likewise.
1824         (lra_free_copies): Replace delete operator with remove method.
1825         (lra_create_copy): Replace operator new with allocate method.
1826         (invalidate_insn_data_regno_info): Same for remove method.
1827         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
1828         (free_debug_insn_changes): Replace delete operator with remove method.
1829         (replace_oldest_value_reg): Replace operator new with allocate method.
1830         (pass_cprop_hardreg::execute): Release new static variable.
1831         * sched-deps.c (sched_deps_init): Change pool_allocator to
1832         object_allocator.
1833         * sel-sched-ir.c: Likewise.
1834         * sel-sched-ir.h: Likewise.
1835         * stmt.c (expand_case): Likewise.
1836         (expand_sjlj_dispatch_table): Likewise.
1837         * tree-sra.c (struct access): Remove unused members.
1838         (struct assign_link): Likewise.
1839         (sra_deinitialize): Release newly added static pools.
1840         (create_access_1):Replace operator new with allocate method.
1841         (build_accesses_from_assign): Likewise.
1842         (create_artificial_child_access): Likewise.
1843         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
1844         pool_allocator to object_allocator.
1845         * tree-ssa-pre.c: Likewise.
1846         * tree-ssa-reassoc.c: Likewise.
1847         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1848         * tree-ssa-strlen.c: Likewise.
1849         * tree-ssa-structalias.c: Likewise.
1850         * var-tracking.c (onepart_pool_allocate): New function.
1851         (unshare_variable): Use the newly added function.
1852         (variable_merge_over_cur): Likewise.
1853         (variable_from_dropped): Likewise.
1854         (variable_was_changed): Likewise.
1855         (set_slot_part): Likewise.
1856         (emit_notes_for_differences_1): Likewise.
1857         (vt_finalize): Release newly added static pools.
1859 2015-07-16  Martin Jambor  <mjambor@suse.cz>
1861         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
1862         all uses.  Fix two typos in its general comment.
1863         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
1865 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
1867         * config/i386/linux-common.h (LINK_MPX): New.
1868         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
1869         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
1870         indicating '-z bndplt' support by linker.
1871         * configure: Regenerate.
1872         * config.in: Regenerate.
1874 2015-07-16  Richard Biener  <rguenther@suse.de>
1876         * fold-const.c (fold_widened_comparison): Remove.
1877         (fold_sign_changed_comparison): Likewise.
1878         (fold_comparison): Move widened and sign-changed comparison
1879         simplification ...
1880         * match.pd: ... to patterns here.
1881         * generic-match-head.c: Include target.h.
1882         * gimple-match-head.c: Likewise.
1884 2015-07-16  Richard Biener  <rguenther@suse.de>
1886         * tree-ssa-dom.c (dom_valueize): New function.
1887         (record_temporary_equivalences): Also record equivalences
1888         for dominating stmts that have uses of equivalences we are
1889         about to record.
1891 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
1893         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
1894         add_autoinc_candidates.
1895         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
1896         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
1897         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
1898         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
1899         Call new function.
1900         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
1901         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
1902         Remove parameter struct iv*.  Call add_autoinc_candidates here.
1903         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
1904         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
1905         Call new function.
1906         (find_iv_candidates): Call new functions.
1908 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
1910         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
1911         uninitialized-variable warning.
1913 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
1915         PR target/65249
1916         * config/sh/sh.md (movdi): Split simple reg move to two movsi
1917         when the destination is R0.
1919 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
1921         PR target/66866
1922         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
1923         * config/i386/i386.c (ix86_expand_pextr): New function.
1924         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
1925         for non-lowpart subregs.
1926         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
1927         (insv<mode>): Use SWI248 mode iterator.
1928         (insv<mode>_1): Ditto.
1930 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1931             Sebastian Pop  <s.pop@samsung.com>
1933         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
1934         iterator to use_stmt.
1936 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1937             Sebastian Pop <s.pop@samsung.com>
1939         * graphite-scop-detection.c (build_scops_1): Discard scops for
1940         which entry==exit.
1942 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1943             Sebastian Pop <s.pop@samsung.com>
1945         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
1946         case of a return statement in scop.
1948 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
1949             Sebastian Pop <s.pop@samsung.com>
1951         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
1952         INTEGER_TYPE parameters.
1953         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
1954         VECTOR_CST in scan_tree_for_params.
1955         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
1957 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
1959         * gimple-pretty-print.h: Don't include pretty-print.h.
1960         * tree-streamer.h: Don't include lto-streamer.h.
1961         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
1962         * gimple-streamer-in.c: Remove redundant includes.
1963         * gimple-streamer-out.c: Likewise.
1964         * ipa-devirt.c: Likewise.
1965         * ipa-icf.c: Likewise.
1966         * ipa-inline-analysis.c: Likewise.
1967         * ipa-polymorphic-call.c: Likewise.
1968         * ipa-profile.c: Likewise.
1969         * ipa-prop.c: Likewise.
1970         * ipa-pure-const.c: Likewise.
1971         * lto-cgraph.c: Likewise.
1972         * lto-streamer-in.c: Likewise.
1973         * lto-streamer-out.c: Likewise.
1974         * lto-streamer.c: Likewise.
1975         * tree-streamer-in.c: Likewise.
1976         * tree-streamer-out.c: Likewise.
1977         * tree-streamer.c: Likewise.
1979 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
1981         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
1982         include input.h.
1983         * opts.c: Remove multiline #include comment.
1985 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
1987         * config/nvptx/mkoffload.c (process): Add C++ protection to
1988         emitted code.
1990 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1992         PR target/66854
1993         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
1994         null before IEEE 128-bit floating point support patch.
1996 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1998         * simplify-rtx.c (simplify_ternary_operation): Add simplification
1999         for (!c) != {0,...,0} ? a : b for vector modes.
2001 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
2002             Martin Jambor  <mjambor@suse.cz>
2004         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
2005         struct func_body_info* instead of struct ipa_node_params*, expecting
2006         fbi->info to be filled in.  Replace throughout.  Adjust call to
2007         ipa_load_from_parm_agg.
2008         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
2009         instead of struct ipa_node_params*.  Adjust calls to other functions
2010         so that they pass either fbi or fbi->info.
2011         (set_switch_stmt_execution_predicate): Likewise.
2012         (will_be_nonconstant_predicate): Likewise.
2013         (compute_bb_predicates): Likewise.
2014         (estimate_function_body_sizes): Move asserts earlier.  Fill in
2015         struct func_body_info, replace parms_info with fbi.info.  Adjust
2016         calls to functions that now accept struct func_body_info.
2017         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
2018         (struct func_body_info): Likewise.
2019         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
2020         remove static.  Adjust callers.
2021         (ipa_load_from_parm_agg): Remove.
2022         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
2023         (func_body_info): Likewise.
2024         (ipa_load_from_parm_agg): Adjust prototype.
2026 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2028         * gensupport.c (rtx_handle_directive): Adjust.
2029         * read-rtl.c (apply_iterators): Take vector to add rtxs to
2030         instead of expr list rtx.
2031         (add_define_attr_for_define_subst): Likewise.
2032         (add_define_subst_attr): Likewise.
2033         (read_subst_mapping): Likewise.
2034         (read_rtx): Likewise.
2035         * rtl.h (read_rtx): Adjust.
2037 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2039         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
2041 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
2043         PR target/58066
2044         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
2045         (*tls_local_dynamic_base_64_<mode>): Ditto.
2046         (*tls_local_dynamic_base_64_largepic): Ditto.
2047         (tls_global_dynamic_64_<mode>): Update expander pattern.
2048         (tls_local_dynamic_base_64_<mode>): Ditto.
2050 2015-07-15  Richard Biener  <rguenther@suse.de>
2052         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
2053         and bool_var == 1 -> bool_var simplifications ...
2054         * match.pd: ... to patterns here.  Factor out negate_expr_p
2055         cases from the A - B -> A + (-B) patterns as negate_expr_p
2056         predicate and add a -(A + B) -> (-B) - A pattern.
2058 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
2060         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
2062 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
2063             Robert Suchanek  <robert.suchanek@imgtec.com>
2065         * config/mips/mips.c (mips_int_mask): New enum.
2066         (mips_shadow_set): Likewise.
2067         (int_mask): New variable.
2068         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
2069         (machine_function): Add int_mask and use_shadow_register_set.
2070         (mips_attribute_table): Add attribute handlers for interrupt and
2071         use_shadow_register_set.
2072         (mips_interrupt_mask): New static function.
2073         (mips_handle_interrupt_attr): Likewise.
2074         (mips_handle_use_shadow_register_set_attr): Likewise.
2075         (mips_use_shadow_register_set): Change return type to enum
2076         mips_shadow_set.  Add argument handling for use_shadow_register_set
2077         attribute.
2078         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
2079         compare with mips_shadow_set enum.
2080         (mips_compute_frame_info): Add interrupt mask and
2081         use_shadow_register_set to per-function information structure.
2082         Add a stack slot for EPC unconditionally.
2083         (mips_expand_prologue): Compare use_shadow_register_set value
2084         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
2085         masked interrupt register but in EIC mode use K0 and save Cause in K0.
2086         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
2087         copying the stack pointer from the shadow register set.
2088         * config/mips/mips.h (SR_IM0): New define.
2089         * config/mips/mips.md (mips_rdpgpr): Rename to...
2090         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
2091         * doc/extend.texi (Declaring Attributes of Functions): Document
2092         optional arguments for interrupt and use_shadow_register_set
2093         attributes.
2095 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
2097         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
2098         interrupt attribute.
2099         (mips_expand_prologue): Disable the floating point unit in an ISR.
2100         * config/mips/mips.h (SR_COP1): New define.
2102 2015-07-15  Richard Biener  <rguenther@suse.de>
2104         * genmatch.c (parser::peek, parser::peek_ident): Add argument
2105         to tell how many tokens to peek ahead (default 1).
2106         (parser::eat_token, parser::eat_ident): Return token consumed.
2107         (parser::parse_result): Parse new switch statement.
2108         * match.pd: Use case statements where appropriate.
2110 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
2112         PR rtl-optimization/58066
2113         * calls.c (expand_call): Precompute register parameters before stack
2114         alignment is performed.
2116 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
2118         PR rtl-optimization/66838
2119         * postreload.c (reload_cse_move2add): Also process
2120         CALL_INSN_FUNCTION_USAGE when resetting information of
2121         call-clobbered registers.
2123 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2124             Cesar Philippidis  <cesar@codesourcery.com>
2125             Chung-Lin Tang  <cltang@codesourcery.com>
2127         * config/nios2/constraints.md (U, v): New constraints.
2128         * config/nios2/predicates.md (rdprs_dcache_operand): New.
2129         (ldstex_memory_operand): New.
2130         * config/nios2/sync.md: New file.
2131         * config/nios2/nios2.md (unspecv): Add new builtin function
2132         UNSPECV codes.
2133         (rdprs, flushd, flushda, wrpie, eni): New patterns.
2134         (top-level): Include sync.md.
2135         * config/nios2/nios2.c (N2_FTYPES): Add function types for
2136         new builtins.
2137         (N2_BUILTINS): Add arch field setting, add new builtins.
2138         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
2139         for arch field.
2140         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
2141         Also handle ldex/stex/ldsex/stsex builtins.
2142         (nios2_expand_rdprs_builtin): New function.
2143         (nios2_expand_cache_builtin): New function.
2144         (nios2_expand_wrpie_builtin): New function.
2145         (nios2_expand_eni_builtin): New function.
2146         (nios2_expand_builtin): Add arch field handling and new builtin
2147         cases.
2148         * doc/extend.texi (Altera Nios II Built-in Functions): Document
2149         new builtins.
2150         * doc/md.texi (Machine Constraints): Document U and v constraints.
2152 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2153             Cesar Philippidis  <cesar@codesourcery.com>
2154             Chung-Lin Tang  <cltang@codesourcery.com>
2156         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
2157         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
2158         callee_save_reg_size and uses_anonymous_args fields.
2159         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
2160         (nios2_create_cfa_notes): New function.
2161         (nios2_adjust_stack): New function for adjusting stack.
2162         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
2163         Use nios2_adjust_stack.
2164         (nios2_expand_epilogue): Likewise.
2165         (nios2_expand_return): New function.
2166         (nios2_can_use_return_insn): Update for CDX pop.n usage.
2167         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
2168         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
2169         * config/nios2/nios2.md (return): Use nios2_expand_return.
2171 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2172             Cesar Philippidis  <cesar@codesourcery.com>
2173             Chung-Lin Tang  <cltang@codesourcery.com>
2175         * config/nios2/predicates.md (pop_operation): New.
2176         (ldwm_operation, stwm_operation): New.
2177         (nios2_hard_register_operand): New.
2178         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
2179         (ldstwm_operation_p): Declare.
2180         (gen_ldstwm_peep): Declare.
2181         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
2182         (base_reg_adjustment_p): New.
2183         (pop_operation_p): New.
2184         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
2185         (nios2_ldstwm_regset_p): New.
2186         (ldstwm_operation_p): New.
2187         (gen_ldst): New.
2188         (nios2_ldst_parallel): New.
2189         (struct ldswm_operand): Declare.
2190         (compare_ldstwm_operands): New.
2191         (can_use_cdx_ldstw): New.
2192         (gen_ldstwm_peep): New.
2193         * config/nios2/nios2-ldstwm.sml: New.
2194         * config/nios2/nios2.md: Include ldstwm.md.
2195         * config/nios2/ldstwm.md: Generated.
2197 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2198             Cesar Philippidis  <cesar@codesourcery.com>
2199             Chung-Lin Tang  <cltang@codesourcery.com>
2201         * config/nios2/nios2.h (LABEL_ALIGN): Define.
2202         (REG_ALLOC_ORDER): Define.
2203         (ADJUST_REG_ALLOC_ORDER): Define.
2204         (HONOR_REG_ALLOC_ORDER): Define.
2205         (CDX_REG_P): Define.
2206         (ANDCLEAR_INT): Define.
2207         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
2208         (nios2_label_align): Declare.
2209         (nios2_cdx_narrow_form_p): Declare.
2210         (nios2_adjust_reg_alloc_order): Declare.
2211         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
2212         operation.
2213         (nios2_large_unspec_reloc_p): New function, split from...
2214         (nios2_legitimate_pic_operand_p): ...here.
2215         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
2216         (nios2_print_operand_punct_valid_p): New.
2217         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
2218         (split_mem_address): New.
2219         (split_alu_insn): New.
2220         (cdxreg): New.
2221         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
2222         (enum nios2_add_insn_kind): New.
2223         (nios2_add_insn_names, nios2_add_insn_narrow): New.
2224         (nios2_add_insn_classify): New.
2225         (nios2_add_insn_asm): New.
2226         (nios2_cdx_narrow_form_p): New.
2227         (label_align, min_labelno, max_labelno): New.
2228         (nios2_reorg): New.
2229         (nios2_label_align): New.
2230         (nios2_adjust_reg_alloc_order): New.
2231         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2232         (TARGET_MACHINE_DEPENDENT_REORG): Define.
2233         * config/nios2/constraints.md (P): New constraint.
2234         * config/nios2/predicates.md (const_and_operand): New.
2235         (and_operand): New.
2236         (stack_memory_operand): New.
2237         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
2238         (length): Update to use nios2_cdx_narrow_form_p().
2239         (type): Add new insn type values.
2240         (control, alu, st, ld, shift): Update insn reservations with
2241         new insn type values.
2242         (*high, *lo_sum): Define new insn patterns for constant generation.
2243         (movqi_internal, movhi_internal, movsi_internal): Reduce
2244         alternatives, update asm template to handle CDX variants, update
2245         type attributes.
2246         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
2247         template, update type attributes.
2248         (extendhisi2, extendqi<mode>2): Likewise.
2249         (addsi3): Change to use function for asm string.
2250         (subsi3): Add CDX notation to asm template, update type attributes.
2251         (negsi3, one_cmplsi3): Likewise.
2252         (andsi3): New pattern, specialized from logical patterns.
2253         (<code>si3): Remove and case, combine alternatives, update asm
2254         template.
2255         (<shift_op>si3): Add CDX notation, update type attributes.
2256         (rotrsi3): Update type attribute.
2257         (*merge, extzv, insv): New insn patterns.
2258         (return): Change to define_expand.
2259         (simple_return): Add CDX notation, update type attributes.
2260         (indirect_jump): Add CDX notation.
2261         (jump): Update asm cases, update length attribute expression.
2262         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
2263         (nios2_cbranch): Update asm cases and length attribute expression
2264         to handle CDX variants.
2265         (nios2_cmp<code>): Update asm template.
2266         (nop): Add CDX notation, update type attributes.
2267         (trap): Add CDX notation.
2268         (ctrapsi4): Update asm cases and length attribute expression to
2269         handle CDX variant.
2270         * doc/md.texi (Machine Constraints): Document P constraint.
2272 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2273             Cesar Philippidis  <cesar@codesourcery.com>
2274             Chung-Lin Tang  <cltang@codesourcery.com>
2276         * config/nios2/nios2.h (SMALL_INT12): New macro.
2277         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
2278         (nios2_valid_addr_expr_p): Use it.
2279         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
2280         with implicit "io" instructions on R2.
2281         * config/nios2/constraints.md (w): New constraint.
2282         * config/nios2/predicates.md (ldstio_memory_operand): New.
2283         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
2284         operand predicate and constraint.
2285         (ld<bh>io_signed, st<bhw>io>): Likewise.
2286         * doc/md.texi (Machine Constraints): Document w constraint.
2288 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2289             Cesar Philippidis  <cesar@codesourcery.com>
2290             Chung-Lin Tang  <cltang@codesourcery.com>
2292         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
2293         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
2294         Nios II architecture level.
2295         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
2296         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
2297         (OPTION_DEFAULT_SPECS): Define.
2298         (ASM_SPEC): Add -march= spec strings.
2299         * config/nios2/nios2.c (nios2_option_override): Check for
2300         conflicts involving new options.
2301         * config.gcc (nios2*-*-*): Support --with-arch=.
2302         * doc/invoke.texi (Option Summary, Nios II Options): Document
2303         -march=, -mbmx, and -mcdx.
2305 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
2307         PR rtl-optimization/66626
2308         * lra-constraints.c (lra_constraints): Prevent equivalence
2309         substitution for static chain pseudo in functions with nonlocal
2310         goto.
2312 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2314         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
2315         (nios2_emit_stack_limit_check): Add size parameter.  Handle
2316         -fstack-limit-symbol as well as -fstack-limit-register.
2317         (nios2_expand_prologue): Emit only a single stack limit check,
2318         even if multiple stack adjustments are required.
2319         (nios2_option_override): Diagnose unsupported combination of -fpic
2320         and -stack-limit-symbol.
2322 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
2324         * Makefile.in (top_srcdir): New.
2325         * configure.ac: Use AM_ZLIB.
2326         * configure: Regeneated.
2328 2015-07-14  Matthias Klose  <doko@ubuntu.com>
2330         PR target/66840
2331         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
2333 2015-07-14  Richard Biener  <rguenther@suse.de>
2335         PR tree-optimization/66863
2336         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
2337         what we record for conversion use stmt lhs inequalities.
2339 2015-07-14  Richard Biener  <rguenther@suse.de>
2341         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
2342         (decision_tree::gen_gimple): Likewise.
2344 2015-07-14  Tom de Vries  <tom@codesourcery.com>
2346         * gcc.c (greater_than_spec_func): Declare forward.
2347         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
2348         -ftree-parallelize-loops={0,1}.
2349         (static_spec_functions): Add greater_than_spec_func function with name
2350         "gt".
2351         (greater_than_spec_func): New function.
2353 2015-07-14  Richard Biener  <rguenther@suse.de>
2355         * tree-ssa-dom.c (record_temporary_equivalences): Merge
2356         wideing type conversion case from record_equivalences_from_incoming_edge
2357         and use record_equality to record equivalences.
2358         (record_equivalences_from_incoming_edge): Call
2359         record_temporary_equivalences.
2361 2015-07-14  Richard Biener  <rguenther@suse.de>
2363         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
2364         (struct if_expr): New.
2365         (struct with_expr): Likewise.
2366         (is_a_helper): Add helpers for if_expr and with_expr.
2367         (struct simplify): Add simplify_kind enum and member.  Remove
2368         ifexpr_vec member.
2369         (simplify::simplify): Adjust.
2370         (lower_commutative): Adjust.
2371         (lower_opt_convert): Likewise.
2372         (lower_cond): Likewise.
2373         (replace_id): Handle with_expr and if_expr.
2374         (lower_for): Adjust.
2375         (dt_simplify::gen_1): New recursive worker, split out from ...
2376         (dt_simplify::gen): ... here.  Deal with if and with expansion
2377         recursively.
2378         (capture_info::capture_info): Take context argument
2379         (capture_info::walk_result): Only analyze specific result.
2380         (parser::parse_result): New function.
2381         (parser::parse_simplify): Adjust to parse ifs with then end
2382         else case.
2383         (parser::parse_if): Simplify.
2384         (parser::parse_pattern): Pass down simplify kind.
2385         * match.pd: Convert if structure to new syntax.
2387 2015-07-13  Marek Polacek  <polacek@redhat.com>
2389         * rtl.c (rtx_equal_p_cb): Fix typo.
2391 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
2393         * omega.h: Don't include config.h, don't include params.h again if
2394         omega.h has already been included.
2395         * graphite-poly.h: Include sese.h.
2396         * graphite.c: Don't include sese.h, remove needless includes and
2397         minimize includes outside #ifdef HAVE_isl block.
2398         * graphite-blocking.c: Don't include sese.h, remove needless includes,
2399         and wrap entire file in #ifdef HAVE_isl
2400         * graphite-dependences.c: Likewise.
2401         * graphite-interchange.c: Likewise.
2402         * graphite-isl-ast-to-gimple.c: Likewise.
2403         * graphite-optimize-isl.c: Likewise.
2404         * graphite-poly.c: Likewise.
2405         * graphite-scop-detection.c: Likewise.
2406         * graphite-sese-to-poly.c: Likewise.
2408 2015-07-13  Tom de Vries  <tom@codesourcery.com>
2410         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
2412 2015-07-13  Renlin Li  <renlin.li@arm.com>
2414         PR rtl/66556
2415         * simplify-rtx.c (simplify_const_relational_operation): Add
2416         side_effects_p checks.
2418 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
2420         * bitmap.h: Fix double word typos.
2421         * builtins.c: Same.
2422         * calls.c: Same.
2423         * cfgloopmanip.c: Same.
2424         * cgraph.c: Same.
2425         * cgraph.h: Same.
2426         * cgraphclones.c: Same.
2427         * combine.c: Same.
2428         * config/aarch64/aarch64-protos.h: Same.
2429         * config/aarch64/aarch64.c: Same.
2430         * config/aarch64/aarch64.md: Same.
2431         * config/arm/arm.md: Same.
2432         * config/arm/arm1020e.md: Same.
2433         * config/arm/arm1026ejs.md: Same.
2434         * config/arm/arm926ejs.md: Same.
2435         * config/arm/fa526.md: Same.
2436         * config/arm/fa606te.md: Same.
2437         * config/arm/fa626te.md: Same.
2438         * config/arm/fa726te.md: Same.
2439         * config/arm/fmp626.md: Same.
2440         * config/darwin.c: Same.
2441         * config/epiphany/epiphany.c: Same.
2442         * config/frv/frv.c: Same.
2443         * config/ft32/ft32.c: Same.
2444         * config/gnu-user.h: Same.
2445         * config/h8300/constraints.md: Same.
2446         * config/i386/i386.c: Same.
2447         * config/i386/i386.md: Same.
2448         * config/iq2000/iq2000.md: Same.
2449         * config/mips/mips.c: Same.
2450         * config/mmix/mmix.md: Same.
2451         * config/moxie/moxie.c: Same.
2452         * config/nds32/nds32.md: Same.
2453         * config/pa/pa.h: Same.
2454         * config/rs6000/aix.h: Same.
2455         * config/rs6000/rs6000.h: Same.
2456         * config/sh/sh.c: Same.
2457         * config/tilegx/tilegx.md: Same.
2458         * config/tilepro/gen-mul-tables.cc: Same.
2459         * cse.c: Same.
2460         * dbxout.c: Same.
2461         * doc/invoke.texi: Same.
2462         * dse.c: Same.
2463         * dwarf2out.c: Same.
2464         * final.c: Same.
2465         * gcc.c: Same.
2466         * genmatch.c: Same.
2467         * gimplify.c: Same.
2468         * hash-table.h: Same.
2469         * internal-fn.c: Same.
2470         * ipa-cp.c: Same.
2471         * ipa-devirt.c: Same.
2472         * ipa-icf.c: Same.
2473         * ipa-icf.h: Same.
2474         * ipa-profile.c: Same.
2475         * ipa-prop.c: Same.
2476         * ipa-prop.h: Same.
2477         * ira.c: Same.
2478         * omp-low.c: Same.
2479         * reg-stack.c: Same.
2480         * regcprop.c: Same.
2481         * reorg.c: Same.
2482         * rtl.h: Same.
2483         * sbitmap.h: Same.
2484         * tree-eh.c: Same.
2485         * tree-inline.c: Same.
2486         * tree-sra.c: Same.
2487         * tree-ssa-dom.c: Same.
2488         * tree-ssa-loop-ivopts.c: Same.
2489         * tree-ssa-structalias.c: Same.
2490         * tree-ssa-tail-merge.c: Same.
2491         * tree-ssa-ter.c: Same.
2492         * tree-ssa-threadupdate.c: Same.
2493         * tree-ssa-uninit.c: Same.
2494         * tree-ssanames.c: Same.
2495         * tree-vect-loop-manip.c: Same.
2496         * tree-vrp.c: Same.
2497         * tree.c: Same.
2498         * valtrack.c: Same.
2499         * vec.h: Same.
2501 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
2503         PR middle-end/66726
2504         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
2505         tree_ssa_phiopt_worker): Call it.
2507 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
2509         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
2510         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
2511         REG_EQUAL note.
2513 2015-07-11  Marek Polacek  <polacek@redhat.com>
2515         PR middle-end/66353
2516         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
2517         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
2518         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
2519         rather than bb_has_abnormal_call_pred.
2520         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
2521         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
2522         rather than bb_has_abnormal_call_pred.
2524 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
2526         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2527         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
2528         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2529         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
2530         v850_legitimate_address_p): New functions.
2531         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2533 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
2535         PR target/66819
2536         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
2537         indirect sibcall with register arguments if register available
2538         for argument passing.
2539         (init_cumulative_args): Set cfun->machine->arg_reg_available
2540         to (cum->nregs > 0) or to true if function has a variable
2541         argument list.
2542         (function_arg_advance_32): Set cfun->machine->arg_reg_available
2543         to false if cum->nregs <= 0.
2544         * config/i386/i386.h (machine_function): Add arg_reg_available.
2546 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
2548         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
2549         and gen_higpart instead of gen_rtx_SUBREG.
2550         * config/i386/i386.md
2551         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
2552         (read-modify peephole2): Use gen_lowpart instead of
2553         gen_rtx_SUBREG for operand 5.
2555 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
2557         * config/tilepro/gen-mul-tables.cc (main): Change include list for
2558         generated files.
2559         * config/tilepro/mul-tables.c: Regenerate.
2560         * config/tilegx/mul-tables.c: Regenerate.
2562 2015-07-10  Richard Biener  <rguenther@suse.de>
2564         * fold-const.c (distribute_bit_expr): Remove.
2565         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
2566         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
2567         to A & (B | C) and simplifying A << C1 << C2 to ...
2568         * match.pd: ... patterns here.
2570 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
2572         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2573         Mark mem as READONLY and NOTRAP for PIC symbol.
2575 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
2577         * gimple-predict.h: New file.
2578         (gimple_predict_predictor, gimple_predict_set_predictor,
2579         gimple_predict_outcome, gimple_predict_set_outcome,
2580         gimple_build_predict): Relocate here.
2581         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
2582         gimple_predict_outcome, gimple_predict_set_outcome): Move to
2583         gimple-predict.h.
2584         * gimple.c (gimple_build_predict): Move to gimple-predict.h
2585         * basic-block.h: Don't include cfghooks.h.
2586         * backend.h: Don't include predict.h.
2587         * cfghooks.h: Include predict.h.
2588         * gimple-pretty-print.c: Include gimple-predict.h.
2589         * gimplify.c: Likwise.
2590         * predict.c: Adjust includes.
2591         * tree-inline.c: Likewise.
2592         * asan.c: Likewise.
2593         * auto-inc-dec.c: Likewise.
2594         * auto-profile.c: Likewise.
2595         * bb-reorder.c: Likewise.
2596         * builtins.c: Likewise.
2597         * caller-save.c: Likewise.
2598         * calls.c: Likewise.
2599         * cfganal.c: Likewise.
2600         * cfgbuild.c: Likewise.
2601         * cfg.c: Likewise.
2602         * cfgcleanup.c: Likewise.
2603         * cfgexpand.c: Likewise.
2604         * cfghooks.c: Likewise.
2605         * cfgloopanal.c: Likewise.
2606         * cfgloop.c: Likewise.
2607         * cfgloopmanip.c: Likewise.
2608         * cfgrtl.c: Likewise.
2609         * cgraph.c: Likewise.
2610         * cgraphunit.c: Likewise.
2611         * combine.c: Likewise.
2612         * cprop.c: Likewise.
2613         * cse.c: Likewise.
2614         * dce.c: Likewise.
2615         * dojump.c: Likewise.
2616         * dse.c: Likewise.
2617         * except.c: Likewise.
2618         * expmed.c: Likewise.
2619         * expr.c: Likewise.
2620         * final.c: Likewise.
2621         * fold-const.c: Likewise.
2622         * function.c: Likewise.
2623         * fwprop.c: Likewise.
2624         * gcc-plugin.h: Likewise.
2625         * gcse.c: Likewise.
2626         * genattrtab.c: Likewise.
2627         * genemit.c: Likewise.
2628         * gengtype.c: Likewise.
2629         * genopinit.c: Likewise.
2630         * genoutput.c: Likewise.
2631         * genpreds.c: Likewise.
2632         * genrecog.c: Likewise.
2633         * gimple-fold.c: Likewise.
2634         * gimple-iterator.c: Likewise.
2635         * gimple-ssa-isolate-paths.c: Likewise.
2636         * gimple-ssa-strength-reduction.c: Likewise.
2637         * graph.c: Likewise.
2638         * graphite-blocking.c: Likewise.
2639         * graphite.c: Likewise.
2640         * graphite-dependences.c: Likewise.
2641         * graphite-interchange.c: Likewise.
2642         * graphite-isl-ast-to-gimple.c: Likewise.
2643         * graphite-optimize-isl.c: Likewise.
2644         * graphite-poly.c: Likewise.
2645         * graphite-scop-detection.c: Likewise.
2646         * graphite-sese-to-poly.c: Likewise.
2647         * haifa-sched.c: Likewise.
2648         * ifcvt.c: Likewise.
2649         * internal-fn.c: Likewise.
2650         * ipa-cp.c: Likewise.
2651         * ipa-profile.c: Likewise.
2652         * ipa-split.c: Likewise.
2653         * ipa-utils.c: Likewise.
2654         * ira-build.c: Likewise.
2655         * ira-color.c: Likewise.
2656         * ira-conflicts.c: Likewise.
2657         * ira-costs.c: Likewise.
2658         * ira-emit.c: Likewise.
2659         * ira-lives.c: Likewise.
2660         * jump.c: Likewise.
2661         * loop-doloop.c: Likewise.
2662         * loop-init.c: Likewise.
2663         * loop-invariant.c: Likewise.
2664         * loop-unroll.c: Likewise.
2665         * lower-subreg.c: Likewise.
2666         * lra-assigns.c: Likewise.
2667         * lra.c: Likewise.
2668         * lra-coalesce.c: Likewise.
2669         * lra-constraints.c: Likewise.
2670         * lra-lives.c: Likewise.
2671         * lto-cgraph.c: Likewise.
2672         * lto-streamer-in.c: Likewise.
2673         * mode-switching.c: Likewise.
2674         * modulo-sched.c: Likewise.
2675         * omp-low.c: Likewise.
2676         * optabs.c: Likewise.
2677         * passes.c: Likewise.
2678         * postreload.c: Likewise.
2679         * postreload-gcse.c: Likewise.
2680         * profile.c: Likewise.
2681         * recog.c: Likewise.
2682         * regstat.c: Likewise.
2683         * reload1.c: Likewise.
2684         * reorg.c: Likewise.
2685         * rtlanal.c: Likewise.
2686         * sched-ebb.c: Likewise.
2687         * sel-sched-ir.c: Likewise.
2688         * sese.c: Likewise.
2689         * shrink-wrap.c: Likewise.
2690         * simplify-rtx.c: Likewise.
2691         * stmt.c: Likewise.
2692         * store-motion.c: Likewise.
2693         * tracer.c: Likewise.
2694         * trans-mem.c: Likewise.
2695         * tree-call-cdce.c: Likewise.
2696         * tree-cfg.c: Likewise.
2697         * tree-cfgcleanup.c: Likewise.
2698         * tree-chkp.c: Likewise.
2699         * tree-complex.c: Likewise.
2700         * tree-eh.c: Likewise.
2701         * tree-if-conv.c: Likewise.
2702         * tree-loop-distribution.c: Likewise.
2703         * tree-outof-ssa.c: Likewise.
2704         * tree-parloops.c: Likewise.
2705         * tree-predcom.c: Likewise.
2706         * tree-pretty-print.c: Likewise.
2707         * tree-profile.c: Likewise.
2708         * tree-sra.c: Likewise.
2709         * tree-ssa.c: Likewise.
2710         * tree-ssa-coalesce.c: Likewise.
2711         * tree-ssa-dce.c: Likewise.
2712         * tree-ssa-dom.c: Likewise.
2713         * tree-ssa-forwprop.c: Likewise.
2714         * tree-ssa-ifcombine.c: Likewise.
2715         * tree-ssa-loop-ch.c: Likewise.
2716         * tree-ssa-loop-im.c: Likewise.
2717         * tree-ssa-loop-ivcanon.c: Likewise.
2718         * tree-ssa-loop-ivopts.c: Likewise.
2719         * tree-ssa-loop-manip.c: Likewise.
2720         * tree-ssa-loop-prefetch.c: Likewise.
2721         * tree-ssa-loop-unswitch.c: Likewise.
2722         * tree-ssa-math-opts.c: Likewise.
2723         * tree-ssa-phiopt.c: Likewise.
2724         * tree-ssa-pre.c: Likewise.
2725         * tree-ssa-reassoc.c: Likewise.
2726         * tree-ssa-sink.c: Likewise.
2727         * tree-ssa-tail-merge.c: Likewise.
2728         * tree-ssa-threadedge.c: Likewise.
2729         * tree-ssa-threadupdate.c: Likewise.
2730         * tree-switch-conversion.c: Likewise.
2731         * tree-tailcall.c: Likewise.
2732         * tree-vect-data-refs.c: Likewise.
2733         * tree-vect-loop.c: Likewise.
2734         * tree-vect-loop-manip.c: Likewise.
2735         * tree-vectorizer.c: Likewise.
2736         * tree-vrp.c: Likewise.
2737         * ubsan.c: Likewise.
2738         * value-prof.c: Likewise.
2739         * varasm.c: Likewise.
2740         * var-tracking.c: Likewise.
2741         * config/aarch64/aarch64-builtins.c: Likewise.
2742         * config/aarch64/aarch64.c: Likewise.
2743         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2744         * config/alpha/alpha.c: Likewise.
2745         * config/arc/arc.c: Likewise.
2746         * config/arm/arm.c: Likewise.
2747         * config/avr/avr.c: Likewise.
2748         * config/bfin/bfin.c: Likewise.
2749         * config/c6x/c6x.c: Likewise.
2750         * config/cr16/cr16.c: Likewise.
2751         * config/cris/cris.c: Likewise.
2752         * config/darwin.c: Likewise.
2753         * config/darwin-c.c: Likewise.
2754         * config/epiphany/epiphany.c: Likewise.
2755         * config/epiphany/mode-switch-use.c: Likewise.
2756         * config/epiphany/resolve-sw-modes.c: Likewise.
2757         * config/fr30/fr30.c: Likewise.
2758         * config/frv/frv.c: Likewise.
2759         * config/ft32/ft32.c: Likewise.
2760         * config/h8300/h8300.c: Likewise.
2761         * config/i386/i386.c: Likewise.
2762         * config/i386/winnt.c: Likewise.
2763         * config/ia64/ia64.c: Likewise.
2764         * config/iq2000/iq2000.c: Likewise.
2765         * config/lm32/lm32.c: Likewise.
2766         * config/m32c/m32c.c: Likewise.
2767         * config/m32r/m32r.c: Likewise.
2768         * config/m68k/m68k.c: Likewise.
2769         * config/mcore/mcore.c: Likewise.
2770         * config/mep/mep.c: Likewise.
2771         * config/microblaze/microblaze.c: Likewise.
2772         * config/mips/mips.c: Likewise.
2773         * config/mmix/mmix.c: Likewise.
2774         * config/mn10300/mn10300.c: Likewise.
2775         * config/moxie/moxie.c: Likewise.
2776         * config/msp430/msp430.c: Likewise.
2777         * config/nds32/nds32.c: Likewise.
2778         * config/nds32/nds32-cost.c: Likewise.
2779         * config/nds32/nds32-fp-as-gp.c: Likewise.
2780         * config/nds32/nds32-intrinsic.c: Likewise.
2781         * config/nds32/nds32-isr.c: Likewise.
2782         * config/nds32/nds32-md-auxiliary.c: Likewise.
2783         * config/nds32/nds32-memory-manipulation.c: Likewise.
2784         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2785         * config/nds32/nds32-predicates.c: Likewise.
2786         * config/nios2/nios2.c: Likewise.
2787         * config/nvptx/nvptx.c: Likewise.
2788         * config/pa/pa.c: Likewise.
2789         * config/pdp11/pdp11.c: Likewise.
2790         * config/rl78/rl78.c: Likewise.
2791         * config/rs6000/rs6000.c: Likewise.
2792         * config/rx/rx.c: Likewise.
2793         * config/s390/s390.c: Likewise.
2794         * config/sh/sh.c: Likewise.
2795         * config/sh/sh-mem.cc: Likewise.
2796         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2797         * config/sh/sh_treg_combine.cc: Likewise.
2798         * config/sparc/sparc.c: Likewise.
2799         * config/spu/spu.c: Likewise.
2800         * config/stormy16/stormy16.c: Likewise.
2801         * config/tilegx/tilegx.c: Likewise.
2802         * config/tilepro/tilepro.c: Likewise.
2803         * config/v850/v850.c: Likewise.
2804         * config/vax/vax.c: Likewise.
2805         * config/visium/visium.c: Likewise.
2806         * config/xtensa/xtensa.c: Likewise.
2808 2015-07-10  Richard Biener  <rguenther@suse.de>
2810         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
2811         (decision_tree::gen_gimple): Likewise.
2812         (decision_tree::gen_generic): Likewise.
2814 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
2816         PR target/66813
2817         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
2818         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
2820 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
2822         PR middle-end/66820
2823         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
2824         or ORT_TASK contexts.
2825         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
2826         is non-zero.
2828 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2830         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
2831         above function.
2833 2015-07-10  Tom de Vries  <tom@codesourcery.com>
2835         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
2836         insert nit + 1 bound.
2838 2015-07-10  Richard Biener  <rguenther@suse.de>
2840         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
2841         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
2842         (if_convertible_loop_p_1): For this always compute bb predicates.
2843         (if_convertible_loop_p): And free them.
2845 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2847         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
2848         in dump message.
2850 2015-07-10  Richard Biener  <rguenther@suse.de>
2852         PR tree-optimization/66823
2853         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
2854         inverted predicate.
2856 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
2858         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
2859         to handle mips[32|64]r3 and mips[32|64]r5.
2861 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
2863         PR middle-end/66633
2864         * tree-nested.c (get_static_chain): Or in a flag into
2865         info->static_chain_added.
2866         (get_frame_field, get_nonlocal_debug_decl): Likewise.
2867         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
2868         2015-07-01 changes.
2869         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
2870         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
2871         add it to clauses.
2873         PR tree-optimization/66718
2874         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
2875         field.
2876         (vect_simd_lane_linear): New function.
2877         (vectorizable_simd_clone_call): Support using linear arguments for
2878         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
2880 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
2882         PR target/66821
2883         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
2885 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2887         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
2888         Use machine mode, not enum machine_mode in the prototype.
2890         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
2891         classify 128-bit floating point support.
2892         (FLOAT128_IBM_P): Likewise.
2893         (FLOAT128_VECTOR_P): Likewise.
2894         (FLOAT128_2REG_P): Likewise.
2895         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
2896         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
2897         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2898         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
2900         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
2901         tests against TFmode/TDmode, since those modes do not use VSX
2902         addresses.
2903         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
2904         support.
2905         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
2906         tests against TFmode, etc.
2907         (invalid_e500_subreg): Add tests against IFmode/KFmode.
2908         (reg_offset_addressing_ok_p): Likewise.
2909         (rs6000_legitimate_offset_address_p): Likewise.
2910         (rs6000_legitimize_address): Likewise.
2911         (rs6000_legitimize_reload_address): Likewise.
2912         (rs6000_legitimate_address_p): Clean up tests against TFmode and
2913         TDmode to use the new helper macros, which will include IFmode and
2914         KFmode.
2915         (rs6000_emit_move): Likewise.
2916         (rs6000_darwin64_record_arg_recurse): Likewise.
2917         (print_operand): Likewise.
2918         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
2919         that uses a single vector register as a vector and not as a
2920         floating point register in terms of the calling sequence.
2921         (rs6000_discover_homogeneous_aggregate): Likewise.
2922         (rs6000_return_in_memory): Likewise.
2923         (init_cumulative_args): Likewise.
2924         (rs6000_function_arg_boundary): Likewise.
2925         (rs6000_function_arg_advance_1): Likewise.
2926         (rs6000_function_arg): Likewise.
2927         (rs6000_pass_by_reference): Likewise.
2928         (rs6000_gimplify_va_arg): Likewise.
2929         (rs6000_secondary_reload_memory): Use machine_mode not enum
2930         machine mode.
2931         (rs6000_split_multireg_move): Use new helper macros.
2932         (spe_func_has_64bit_regs_p): Likewise.
2933         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
2934         (output_toc): Use new helper macros.
2935         (rs6000_register_move_cost): Likewise.
2936         (rs6000_function_value): Add IEEE 128-bit floating point calling
2937         sequence support.
2938         (rs6000_libcall_value): Likewise.
2939         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
2940         floating point support.
2941         (rs6000_vector_mode_supported_p): Likewise.
2943 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
2945         PR rtl-optimization/66782
2946         * lra-int.h (struct lra_insn_recog_data): Add comment about
2947         clobbered hard regs for arg_hard_regs.
2948         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
2949         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
2950         Add condition for processing used hard regs.
2951         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
2952         Process clobbered hard regs.
2954 2015-07-09  Michael Matz  <matz@suse.de>
2956         * genmatch.c (fprintf_indent): New function.
2957         (operand::gen_transform): Add indent parameter.
2958         (expr::gen_transform, c_expr::gen_transform,
2959         capture::gen_transform): Ditto and use fprintf_indent.
2960         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
2961         (dt_operand::gen, dt_operand::gen_predicate,
2962         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
2963         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
2964         (decision_tree::gen_gimple): Adjust calls and indent generated
2965         code.
2966         (decision_tree::gen_generic): Ditto.
2967         (write_predicate): Ditto.
2969 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
2971         PR target/66814
2972         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
2973         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
2974         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
2975         {GENERAL,SSE,MMX}_REG_P where appropriate.
2977 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
2979         * lto-streamer.h: Don't include target.h and alloc-pool.h.
2980         * builtins.c: Adjust includes.
2981         * gimple.c: Likewise.
2982         * ipa-icf.c: Likewise.
2983         * lto-opts.c: Likewise.
2984         * ipa-reference.c: Likewise.
2985         * lto-section-out.c: Likewise.
2986         * lto-streamer-in.c: Likewise.
2987         * lto-streamer-out.c: Likewise.
2988         * opts-global.c: Likewise.
2989         * symtab.c: Likewise.
2990         * tree-chkp.c: Likewise.
2991         * tree-ssa-live.c: Likewise.
2992         * tree-streamer-in.c: Likewise.
2993         * tree-streamer-out.c: Likewise.
2994         * config/darwin.c: Likewise.
2995         * config/i386/winnt.c: Likewise.
2997 2015-07-09  Richard Biener  <rguenther@suse.de>
2999         * genmatch.c (struct expr): Add force_single_use flag.
3000         (expr::expr): Add copy constructor.
3001         (capture_info::walk_match): Gather force_single_use captures.
3002         (expr::gen_transform): Use possibly NULLified sequence.
3003         (dt_simplify::gen): Apply single-use restrictions by NULLifying
3004         seq if any constrained expr is not single-use.
3005         (parser::parse_expr): Refactor to allow multiple flags.  Handle
3006         's' flag to force an expression have a single-use if the pattern
3007         simplifies to more than one statement.
3008         * match.pd: Convert most single_use conditionals to :s flags.
3010 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
3012         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
3013         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3014         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
3016 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
3018         * flags.h: Don't include flag-types.h or options.h.
3019         * opts-common.c: Adjust includes.
3020         * opts-global.c: Likewise.
3021         * common/config/epiphany/epiphany-common.c: Likewise.
3023 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
3025         PR target/66818
3026         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
3027         for IA MCU.
3029 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
3031         PR target/66817
3032         * config/i386/i386.c (ix86_return_in_memory): Return true
3033         if int_size_in_bytes returns negative for IA MCU.
3035 2015-07-09  Marek Polacek  <polacek@redhat.com>
3037         PR tree-optimization/66718
3038         * Makefile.in (OBJS): Add gimple-laddress.o.
3039         * passes.def: Schedule pass_laddress.
3040         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
3041         * tree-pass.h (make_pass_laddress): Declare.
3042         * gimple-laddress.c: New file.
3044 2015-07-09  Richard Biener  <rguenther@suse.de>
3046         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
3048 2015-07-09  Richard Biener  <rguenther@suse.de>
3050         PR tree-optimization/66807
3051         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
3053 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
3055         * function.c (stack_protect_epilogue): Use if rather than switch for
3056         check targetm.have_stack_protect_test.
3058 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3060         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
3061         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
3062         * config/arc/arc.h: Likewise.
3063         * config/arm/arm.h: Likewise.
3064         * config/bfin/bfin.h: Likewise.
3065         * config/epiphany/epiphany.h: Likewise.
3066         * config/frv/frv.h: Likewise.
3067         * config/ia64/ia64.h: Likewise.
3068         * config/iq2000/iq2000.h: Likewise.
3069         * config/lm32/lm32.h: Likewise.
3070         * config/m32r/m32r.h: Likewise.
3071         * config/mcore/mcore.h: Likewise.
3072         * config/mep/mep.h: Likewise.
3073         * config/microblaze/microblaze.h: Likewise.
3074         * config/mips/mips.h: Likewise.
3075         * config/mmix/mmix.h: Likewise.
3076         * config/mn10300/mn10300.h: Likewise.
3077         * config/nds32/nds32.h: Likewise.
3078         * config/nios2/nios2.h: Likewise.
3079         * config/pa/pa.h: Likewise.
3080         * config/rl78/rl78.h: Likewise.
3081         * config/sh/sh.h: Likewise.
3082         * config/sparc/sparc.h: Likewise.
3083         * config/stormy16/stormy16.h: Likewise.
3084         * config/tilegx/tilegx.h: Likewise.
3085         * config/tilepro/tilepro.h: Likewise.
3086         * config/v850/v850.h: Likewise.
3087         * config/xtensa/xtensa.h: Likewise.
3088         * doc/tm.texi: Regenerate.
3089         * doc/tm.texi.in: Adjust.
3090         * combine.c (simplify_set): Likewise.
3091         (simplify_comparison): Likewise.
3092         * expr.c (store_constructor): Likewise.
3093         * internal-fn.c (expand_arith_overflow): Likewise.
3094         * reload.c (push_reload): Likewise.
3095         (find_reloads): Likewise.
3096         (find_reloads_subreg_address): Likewise.
3097         * reload1.c (eliminate_regs_1): Likewise.
3098         * rtlanal.c (nonzero_bits1): Likewise.
3099         (num_sign_bit_copies1): Likewise.
3100         * simplify-rtx.c (simplify_truncation): Likewise.
3102 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3104         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
3105         of AUTO_INC_DEC with the preprocessor.
3106         * combine.c (combine_instructions): Likewise.
3107         (can_combine_p): Likewise.
3108         (try_combine): Likewise.
3109         * emit-rtl.c (try_split): Likewise.
3110         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3111         * lower-subreg.c (resolve_simple_move): Likewise.
3112         * lra.c (update_inc_notes): Likewise.
3113         * recog.c (asm_operand_ok): Likewise.
3114         (constrain_operands): Likewise.
3115         * regrename.c (scan_rtx_address): Likewise.
3116         * reload.c (update_auto_inc_notes): Likewise.
3117         (reg_inc_found_and_valid_p): Likewise.
3118         * reload1.c (reload): Likewise.
3119         (emit_input_reload_insns): Likewise.
3120         (delete_output_reload): Likewise.
3121         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3122         * valtrack.c (cleanup_auto_inc_dec): Likewise.
3124 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3126         * rtl.h: Always define AUTO_INC_DEC.
3127         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
3128         * combine.c (combine_instructions): Likewise.
3129         (can_combine_p): Likewise.
3130         (try_combine): Likewise.
3131         * emit-rtl.c (try_split): Likewise.
3132         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3133         * lower-subreg.c (resolve_simple_move): Likewise.
3134         * lra.c (update_inc_notes): Likewise.
3135         * recog.c (asm_operand_ok): Likewise.
3136         (constrain_operands): Likewise.
3137         * regrename.c (scan_rtx_address): Likewise.
3138         * reload.c (update_auto_inc_notes): Likewise.
3139         (find_equiv_reg): Likewise.
3140         * reload1.c (reload): Likewise.
3141         (reload_as_needed): Likewise.
3142         (choose_reload_regs): Likewise.
3143         (emit_input_reload_insns): Likewise.
3144         (delete_output_reload): Likewise.
3145         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3146         * valtrack.c (cleanup_auto_inc_dec): Likewise.
3148 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3150         * combine.c (can_combine_def_p): Don't check the value of
3151         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
3152         (combinable_i3pat): Likewise.
3153         (mark_used_regs_combine): Likewise.
3154         * regrename.c (rename_chains): Likewise.
3155         * reload.c (find_reloads_address): Likewise.
3156         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3158 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3160         * combine.c (update_rsp_from_reg_equal): Don't check if
3161         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
3162         (reg_nonzero_bits_for_combine): Likewise.
3163         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
3164         1.
3165         * config/frv/frv.h: Likewise.
3166         * config/lm32/lm32.h: Likewise.
3167         * config/mep/mep.h: Likewise.
3168         * config/mips/mips.h: Likewise.
3169         * config/rs6000/rs6000.h: Likewise.
3170         * config/sh/sh.h: Likewise.
3171         * config/tilegx/tilegx.h (enum reg_class): Likewise.
3172         * config/tilepro/tilepro.h: Likewise.
3173         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
3174         * doc/tm.texi: Regenerate.
3175         * doc/tm.texi.in: Adjust.
3176         * rtlanal.c (nonzero_bits1): Likewise.
3178 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3180         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
3181         with the preprocessor.
3182         (combine_instructions): Likewise.
3183         (try_combine): Likewise.
3184         (subst): Likewise.
3185         (distribute_notes): Likewise.
3187 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3189         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
3190         defined.
3191         (simplify_set): Likewise.
3192         * cse.c (cse_insn): Likewise.
3193         * fold-const.c (fold_single_bit_test): Likewise.
3194         (fold_unary_loc): Likewise.
3195         * postreload.c (reload_cse_simplify_set): Likewise.
3196         (reload_cse_simplify_operands): Likewise.
3198 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
3200         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
3201         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
3203 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
3205         PR target/66746
3206         * config/i386/x86intrin.h: Include <adxintrin.h> even if
3207         __iamcu__ is defined.
3209 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
3211         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
3213 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
3215         PR target/66523
3216         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
3217         names from preservation.
3219 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
3221         PR target/66806
3222         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
3223         change for IAMCU.
3224         (function_arg_advance_32): Don't pass vectors in registers for
3225         IAMCU.
3226         (function_arg_32): Likewise.
3227         (ix86_return_in_memory): Don't return vectors in registers for
3228         IAMCU.
3230 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
3232         PR middle-end/66334
3233         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
3234         hard regno live at the start of BB with incoming abnormal edges.
3235         * lra-lives.c (process_bb_lives): Ditto.
3237 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
3239         PR libgomp/65099
3240         * config/nvptx/mkoffload.c (main): Create an offload image only in
3241         64-bit configurations.
3243 2015-07-08  Martin Liska  <mliska@suse.cz>
3245         PR bootstrap/66744
3246         * tree-sra.c (create_access_1): Call ctor without brackets.
3247         (create_artificial_child_access): Likewise.
3249 2015-07-08  Richard Biener  <rguenther@suse.de>
3251         PR tree-optimization/66793
3252         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
3253         Properly split the block after stmts ending it.
3255 2015-07-08  Richard Biener  <rguenther@suse.de>
3257         PR tree-optimization/66794
3258         * passes.c (execute_function_todo): Assert that post-dominators
3259         are not computed.
3260         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
3261         Free post-dominators.
3263 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3265         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
3266         with early exit.
3268 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
3270         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
3271         more than or equal 8 and less than 32 when optimizing for size.
3273 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3275         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
3276         COSTS_N_INSNS (1) and increment it appropriately throughout the
3277         function.
3279 2015-07-08  Richard Biener  <rguenther@suse.de>
3281         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
3283 2015-07-08  Alan Modra  <amodra@gmail.com>
3285         * target.def (rtx_costs): Remove "code" param, add "mode".
3286         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
3287         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
3288         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
3289         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
3290         call.  Track mode when given in rtx.
3291         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
3292         (default_address_cost): Pass Pmode to rtx_cost.
3293         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
3294         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
3295         with NULL set.
3296         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
3297         (notreg_cost): Add mode param.  Use it.
3298         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
3299         mode param and pass to set_src_cost.  Update all calls.
3300         (hash_scan_set): Formatting.
3301         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
3302         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
3303         * hooks.h: Ditto.
3304         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
3305         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
3306         emit_store_flag): Update set_src_cost and rtx_cost calls.
3307         * auto-inc-dec.c (attempt_change): Likewise.
3308         * calls.c (precompute_register_parameters): Likewise.
3309         * combine.c (expand_compound_operation, make_extraction,
3310         force_to_mode, distribute_and_simplify_rtx): Likewise.
3311         * dojump.c (prefer_and_bit_test): Likewise.
3312         * dse.c (find_shift_sequence): Likewise.
3313         * expr.c (compress_float_constant): Likewise.
3314         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
3315         * ifcvt.c (noce_try_sign_mask): Likewise.
3316         * loop-doloop.c (doloop_optimize): Likewise.
3317         * loop-invariant.c (create_new_invariant): Likewise.
3318         * lower-subreg.c (shift_cost, compute_costs): Likewise.
3319         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
3320         lshift_cheap_p): Likewise.
3321         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
3322         try_replace_in_use, reload_cse_move2add): Likewise.
3323         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
3324         Likewise.
3325         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3326         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3327         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
3328         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3329         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
3330         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
3331         to rtx_cost calls.
3332         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
3333         * config/arc/arc.c (arc_rtx_costs): Likewise.
3334         * config/arm/arm.c (arm_rtx_costs): Likewise.
3335         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
3336         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
3337         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
3338         * config/cris/cris.c (cris_rtx_costs): Likewise.
3339         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
3340         * config/frv/frv.c (frv_rtx_costs): Likewise.
3341         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
3342         * config/i386/i386.c (ix86_rtx_costs): Likewise.
3343         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
3344         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
3345         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
3346         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
3347         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
3348         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
3349         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
3350         * config/mep/mep.c (mep_rtx_cost): Likewise.
3351         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
3352         * config/mips/mips.c (mips_rtx_costs): Likewise.
3353         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
3354         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
3355         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
3356         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
3357         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
3358         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
3359         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
3360         * config/pa/pa.c (hppa_rtx_costs): Likewise.
3361         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
3362         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
3363         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
3364         * config/s390/s390.c (s390_rtx_costs): Likewise.
3365         * config/sh/sh.c (sh_rtx_costs): Likewise.
3366         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
3367         * config/spu/spu.c (spu_rtx_costs): Likewise.
3368         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
3369         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
3370         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
3371         * config/v850/v850.c (v850_rtx_costs): Likewise.
3372         * config/vax/vax.c (vax_rtx_costs): Likewise.
3373         * config/visium/visium.c (visium_rtx_costs): Likewise.
3374         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
3375         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
3376         "code" param, and pass as outer_code to first rtx_cost call.  Pass
3377         mode to rtx_cost calls.
3378         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
3379         calls.
3380         (aarch64_rtx_costs_wrapper): Update.
3381         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
3382         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
3383         rtx_cost calls.
3384         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
3385         and rtx_cost calls.
3386         (avr_operand_rtx_cost): Similarly.
3387         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
3388         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
3389         * config/mips/mips.c (mips_stack_address_p): Comment typo.
3390         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
3391         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
3392         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
3393         rtx_cost.
3394         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
3395         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
3396         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
3397         * doc/tm.texi: Regenerate.
3399 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
3401         * tree-core.h: Include symtab.h.
3402         * rtl.h: Include hard-reg-set.h but not flags.h.
3403         (HARD_CONST): Remove condition compilation involving HARD_CONST since
3404         hard-reg-set.h is always included.
3405         * regs.h: Don't include hard-reg-set.h or rtl.h.
3406         * cfg.h: Include dominance.h.
3407         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
3408         * backend.h: New.  Aggregate commonly used backend header files.
3409         * gimple-ssa.h: Don't include tree-hasher.h.
3410         * ssa.h: New.  Aggregate commonly used SSA header files.
3411         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
3412         * sel-sched-ir.h: Flatten includes.
3413         * lra-int.h: Flatten completely.
3414         * sel-sched-dump.h: Flatten includes.
3415         * ira-int.h: Flatten includes.
3416         * gimple-streamer.h: Remove all includes.
3417         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
3418         * resource.h: Flatten hard-reg-set.h and df.h.
3419         * sched-int.h: Flatten insn-arrt.h and df.h.
3420         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
3421         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
3422         * genattrtab.c (write_header): Adjust generated includes.
3423         * genautomata.c (main): Likewise.
3424         * genconditions.c (write-header): Likewise.
3425         * genemit.c (main): Likewise.
3426         * gengtype.c (open_base_files): Likewise.
3427         * genopinit.c (main): Likewise.
3428         * genoutput.c (output_prologue): Likewise.
3429         * genpeep.c (main): Likewise.
3430         * genpreds.c (write_insn_preds_c): Likewise.
3431         * genrecog.c (write_header): Likewise.
3432         * alias.c: Adjust includes.
3433         * asan.c: Likewise.
3434         * attribs.c: Likewise.
3435         * auto-inc-dec.c: Likewise.
3436         * auto-profile.c: Likewise.
3437         * bb-reorder.c: Likewise.
3438         * bt-load.c: Likewise.
3439         * builtins.c: Likewise.
3440         * caller-save.c: Likewise.
3441         * calls.c: Likewise.
3442         * ccmp.c: Likewise.
3443         * cfg.c: Likewise.
3444         * cfganal.c: Likewise.
3445         * cfgbuild.c: Likewise.
3446         * cfgcleanup.c: Likewise.
3447         * cfgexpand.c: Likewise.
3448         * cfghooks.c: Likewise.
3449         * cfgloop.c: Likewise.
3450         * cfgloopanal.c: Likewise.
3451         * cfgloopmanip.c: Likewise.
3452         * cfgrtl.c: Likewise.
3453         * cgraph.c: Likewise.
3454         * cgraphbuild.c: Likewise.
3455         * cgraphclones.c: Likewise.
3456         * cgraphunit.c: Likewise.
3457         * cilk-common.c: Likewise.
3458         * combine-stack-adj.c: Likewise.
3459         * combine.c: Likewise.
3460         * compare-elim.c: Likewise.
3461         * convert.c: Likewise.
3462         * coverage.c: Likewise.
3463         * cppbuiltin.c: Likewise.
3464         * cprop.c: Likewise.
3465         * cse.c: Likewise.
3466         * cselib.c: Likewise.
3467         * data-streamer-in.c: Likewise.
3468         * data-streamer-out.c: Likewise.
3469         * data-streamer.c: Likewise.
3470         * dbxout.c: Likewise.
3471         * dce.c: Likewise.
3472         * ddg.c: Likewise.
3473         * debug.c: Likewise.
3474         * df-core.c: Likewise.
3475         * df-problems.c: Likewise.
3476         * df-scan.c: Likewise.
3477         * dfp.c: Likewise.
3478         * dojump.c: Likewise.
3479         * dominance.c: Likewise.
3480         * domwalk.c: Likewise.
3481         * double-int.c: Likewise.
3482         * dse.c: Likewise.
3483         * dumpfile.c: Likewise.
3484         * dwarf2asm.c: Likewise.
3485         * dwarf2cfi.c: Likewise.
3486         * dwarf2out.c: Likewise.
3487         * emit-rtl.c: Likewise.
3488         * et-forest.c: Likewise.
3489         * except.c: Likewise.
3490         * explow.c: Likewise.
3491         * expmed.c: Likewise.
3492         * expr.c: Likewise.
3493         * final.c: Likewise.
3494         * fixed-value.c: Likewise.
3495         * fold-const.c: Likewise.
3496         * function.c: Likewise.
3497         * fwprop.c: Likewise.
3498         * gcc-plugin.h: Likewise.
3499         * gcse-common.c: Likewise.
3500         * gcse.c: Likewise.
3501         * generic-match-head.c: Likewise.
3502         * ggc-page.c: Likewise.
3503         * gimple-builder.c: Likewise.
3504         * gimple-expr.c: Likewise.
3505         * gimple-fold.c: Likewise.
3506         * gimple-iterator.c: Likewise.
3507         * gimple-low.c: Likewise.
3508         * gimple-match-head.c: Likewise.
3509         * gimple-pretty-print.c: Likewise.
3510         * gimple-ssa-isolate-paths.c: Likewise.
3511         * gimple-ssa-strength-reduction.c: Likewise.
3512         * gimple-streamer-in.c: Likewise.
3513         * gimple-streamer-out.c: Likewise.
3514         * gimple-walk.c: Likewise.
3515         * gimple.c: Likewise.
3516         * gimplify-me.c: Likewise.
3517         * gimplify.c: Likewise.
3518         * godump.c: Likewise.
3519         * graph.c: Likewise.
3520         * graphite-blocking.c: Likewise.
3521         * graphite-dependences.c: Likewise.
3522         * graphite-interchange.c: Likewise.
3523         * graphite-isl-ast-to-gimple.c: Likewise.
3524         * graphite-optimize-isl.c: Likewise.
3525         * graphite-poly.c: Likewise.
3526         * graphite-scop-detection.c: Likewise.
3527         * graphite-sese-to-poly.c: Likewise.
3528         * graphite.c: Likewise.
3529         * haifa-sched.c: Likewise.
3530         * hw-doloop.c: Likewise.
3531         * ifcvt.c: Likewise.
3532         * init-regs.c: Likewise.
3533         * internal-fn.c: Likewise.
3534         * ipa-chkp.c: Likewise.
3535         * ipa-comdats.c: Likewise.
3536         * ipa-cp.c: Likewise.
3537         * ipa-devirt.c: Likewise.
3538         * ipa-icf-gimple.c: Likewise.
3539         * ipa-icf.c: Likewise.
3540         * ipa-inline-analysis.c: Likewise.
3541         * ipa-inline-transform.c: Likewise.
3542         * ipa-inline.c: Likewise.
3543         * ipa-polymorphic-call.c: Likewise.
3544         * ipa-profile.c: Likewise.
3545         * ipa-prop.c: Likewise.
3546         * ipa-pure-const.c: Likewise.
3547         * ipa-ref.c: Likewise.
3548         * ipa-reference.c: Likewise.
3549         * ipa-split.c: Likewise.
3550         * ipa-utils.c: Likewise.
3551         * ipa-visibility.c: Likewise.
3552         * ipa.c: Likewise.
3553         * ira-build.c: Likewise.
3554         * ira-color.c: Likewise.
3555         * ira-conflicts.c: Likewise.
3556         * ira-costs.c: Likewise.
3557         * ira-emit.c: Likewise.
3558         * ira-lives.c: Likewise.
3559         * ira.c: Likewise.
3560         * jump.c: Likewise.
3561         * langhooks.c: Likewise.
3562         * lcm.c: Likewise.
3563         * loop-doloop.c: Likewise.
3564         * loop-init.c: Likewise.
3565         * loop-invariant.c: Likewise.
3566         * loop-iv.c: Likewise.
3567         * loop-unroll.c: Likewise.
3568         * lower-subreg.c: Likewise.
3569         * lra-assigns.c: Likewise.
3570         * lra-coalesce.c: Likewise.
3571         * lra-constraints.c: Likewise.
3572         * lra-eliminations.c: Likewise.
3573         * lra-lives.c: Likewise.
3574         * lra-remat.c: Likewise.
3575         * lra-spills.c: Likewise.
3576         * lra.c: Likewise.
3577         * lto-cgraph.c: Likewise.
3578         * lto-compress.c: Likewise.
3579         * lto-opts.c: Likewise.
3580         * lto-section-in.c: Likewise.
3581         * lto-section-out.c: Likewise.
3582         * lto-streamer-in.c: Likewise.
3583         * lto-streamer-out.c: Likewise.
3584         * lto-streamer.c: Likewise.
3585         * mcf.c: Likewise.
3586         * mode-switching.c: Likewise.
3587         * modulo-sched.c: Likewise.
3588         * omega.c: Likewise.
3589         * omp-low.c: Likewise.
3590         * optabs.c: Likewise.
3591         * opts-global.c: Likewise.
3592         * passes.c: Likewise.
3593         * plugin.c: Likewise.
3594         * postreload-gcse.c: Likewise.
3595         * postreload.c: Likewise.
3596         * predict.c: Likewise.
3597         * print-rtl.c: Likewise.
3598         * print-tree.c: Likewise.
3599         * profile.c: Likewise.
3600         * real.c: Likewise.
3601         * realmpfr.c: Likewise.
3602         * recog.c: Likewise.
3603         * ree.c: Likewise.
3604         * reg-stack.c: Likewise.
3605         * regcprop.c: Likewise.
3606         * reginfo.c: Likewise.
3607         * regrename.c: Likewise.
3608         * regstat.c: Likewise.
3609         * reload.c: Likewise.
3610         * reload1.c: Likewise.
3611         * reorg.c: Likewise.
3612         * resource.c: Likewise.
3613         * rtl-chkp.c: Likewise.
3614         * rtlanal.c: Likewise.
3615         * rtlhooks.c: Likewise.
3616         * sanopt.c: Likewise.
3617         * sched-deps.c: Likewise.
3618         * sched-ebb.c: Likewise.
3619         * sched-rgn.c: Likewise.
3620         * sched-vis.c: Likewise.
3621         * sdbout.c: Likewise.
3622         * sel-sched-dump.c: Likewise.
3623         * sel-sched-ir.c: Likewise.
3624         * sel-sched.c: Likewise.
3625         * sese.c: Likewise.
3626         * shrink-wrap.c: Likewise.
3627         * simplify-rtx.c: Likewise.
3628         * stack-ptr-mod.c: Likewise.
3629         * stmt.c: Likewise.
3630         * stor-layout.c: Likewise.
3631         * store-motion.c: Likewise.
3632         * stringpool.c: Likewise.
3633         * symtab.c: Likewise.
3634         * target-globals.c: Likewise.
3635         * targhooks.c: Likewise.
3636         * toplev.c: Likewise.
3637         * tracer.c: Likewise.
3638         * trans-mem.c: Likewise.
3639         * tree-affine.c: Likewise.
3640         * tree-browser.c: Likewise.
3641         * tree-call-cdce.c: Likewise.
3642         * tree-cfg.c: Likewise.
3643         * tree-cfgcleanup.c: Likewise.
3644         * tree-chkp-opt.c: Likewise.
3645         * tree-chkp.c: Likewise.
3646         * tree-chrec.c: Likewise.
3647         * tree-complex.c: Likewise.
3648         * tree-data-ref.c: Likewise.
3649         * tree-dfa.c: Likewise.
3650         * tree-diagnostic.c: Likewise.
3651         * tree-dump.c: Likewise.
3652         * tree-eh.c: Likewise.
3653         * tree-emutls.c: Likewise.
3654         * tree-if-conv.c: Likewise.
3655         * tree-inline.c: Likewise.
3656         * tree-into-ssa.c: Likewise.
3657         * tree-iterator.c: Likewise.
3658         * tree-loop-distribution.c: Likewise.
3659         * tree-nested.c: Likewise.
3660         * tree-nrv.c: Likewise.
3661         * tree-object-size.c: Likewise.
3662         * tree-outof-ssa.c: Likewise.
3663         * tree-parloops.c: Likewise.
3664         * tree-phinodes.c: Likewise.
3665         * tree-predcom.c: Likewise.
3666         * tree-pretty-print.c: Likewise.
3667         * tree-profile.c: Likewise.
3668         * tree-scalar-evolution.c: Likewise.
3669         * tree-sra.c: Likewise.
3670         * tree-ssa-address.c: Likewise.
3671         * tree-ssa-alias.c: Likewise.
3672         * tree-ssa-ccp.c: Likewise.
3673         * tree-ssa-coalesce.c: Likewise.
3674         * tree-ssa-copy.c: Likewise.
3675         * tree-ssa-copyrename.c: Likewise.
3676         * tree-ssa-dce.c: Likewise.
3677         * tree-ssa-dom.c: Likewise.
3678         * tree-ssa-dse.c: Likewise.
3679         * tree-ssa-forwprop.c: Likewise.
3680         * tree-ssa-ifcombine.c: Likewise.
3681         * tree-ssa-live.c: Likewise.
3682         * tree-ssa-loop-ch.c: Likewise.
3683         * tree-ssa-loop-im.c: Likewise.
3684         * tree-ssa-loop-ivcanon.c: Likewise.
3685         * tree-ssa-loop-ivopts.c: Likewise.
3686         * tree-ssa-loop-manip.c: Likewise.
3687         * tree-ssa-loop-niter.c: Likewise.
3688         * tree-ssa-loop-prefetch.c: Likewise.
3689         * tree-ssa-loop-unswitch.c: Likewise.
3690         * tree-ssa-loop.c: Likewise.
3691         * tree-ssa-math-opts.c: Likewise.
3692         * tree-ssa-operands.c: Likewise.
3693         * tree-ssa-phiopt.c: Likewise.
3694         * tree-ssa-phiprop.c: Likewise.
3695         * tree-ssa-pre.c: Likewise.
3696         * tree-ssa-propagate.c: Likewise.
3697         * tree-ssa-reassoc.c: Likewise.
3698         * tree-ssa-sccvn.c: Likewise.
3699         * tree-ssa-scopedtables.c: Likewise.
3700         * tree-ssa-sink.c: Likewise.
3701         * tree-ssa-strlen.c: Likewise.
3702         * tree-ssa-structalias.c: Likewise.
3703         * tree-ssa-tail-merge.c: Likewise.
3704         * tree-ssa-ter.c: Likewise.
3705         * tree-ssa-threadedge.c: Likewise.
3706         * tree-ssa-threadupdate.c: Likewise.
3707         * tree-ssa-uncprop.c: Likewise.
3708         * tree-ssa-uninit.c: Likewise.
3709         * tree-ssa.c: Likewise.
3710         * tree-ssanames.c: Likewise.
3711         * tree-stdarg.c: Likewise.
3712         * tree-streamer-in.c: Likewise.
3713         * tree-streamer-out.c: Likewise.
3714         * tree-streamer.c: Likewise.
3715         * tree-switch-conversion.c: Likewise.
3716         * tree-tailcall.c: Likewise.
3717         * tree-vect-data-refs.c: Likewise.
3718         * tree-vect-generic.c: Likewise.
3719         * tree-vect-loop-manip.c: Likewise.
3720         * tree-vect-loop.c: Likewise.
3721         * tree-vect-patterns.c: Likewise.
3722         * tree-vect-slp.c: Likewise.
3723         * tree-vect-stmts.c: Likewise.
3724         * tree-vectorizer.c: Likewise.
3725         * tree-vrp.c: Likewise.
3726         * tree.c: Likewise.
3727         * tsan.c: Likewise.
3728         * ubsan.c: Likewise.
3729         * valtrack.c: Likewise.
3730         * value-prof.c: Likewise.
3731         * var-tracking.c: Likewise.
3732         * varasm.c: Likewise.
3733         * varpool.c: Likewise.
3734         * vmsdbgout.c: Likewise.
3735         * vtable-verify.c: Likewise.
3736         * web.c: Likewise.
3737         * wide-int.cc: Likewise.
3738         * xcoffout.c: Likewise.
3739         * config/aarch64/aarch64-builtins.c: Likewise.
3740         * config/aarch64/aarch64.c: Likewise.
3741         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3742         * config/alpha/alpha.c: Likewise.
3743         * config/arc/arc.c: Likewise.
3744         * config/arm/aarch-common.c: Likewise.
3745         * config/arm/arm-builtins.c: Likewise.
3746         * config/arm/arm-c.c: Likewise.
3747         * config/arm/arm.c: Likewise.
3748         * config/avr/avr-c.c: Likewise.
3749         * config/avr/avr-log.c: Likewise.
3750         * config/avr/avr.c: Likewise.
3751         * config/bfin/bfin.c: Likewise.
3752         * config/c6x/c6x.c: Likewise.
3753         * config/cr16/cr16.c: Likewise.
3754         * config/cris/cris.c: Likewise.
3755         * config/darwin-c.c: Likewise.
3756         * config/darwin.c: Likewise.
3757         * config/epiphany/epiphany.c: Likewise.
3758         * config/epiphany/mode-switch-use.c: Likewise.
3759         * config/epiphany/resolve-sw-modes.c: Likewise.
3760         * config/fr30/fr30.c: Likewise.
3761         * config/frv/frv.c: Likewise.
3762         * config/ft32/ft32.c: Likewise.
3763         * config/h8300/h8300.c: Likewise.
3764         * config/i386/i386-c.c: Likewise.
3765         * config/i386/i386.c: Likewise.
3766         * config/i386/msformat-c.c: Likewise.
3767         * config/i386/winnt-cxx.c: Likewise.
3768         * config/i386/winnt-stubs.c: Likewise.
3769         * config/i386/winnt.c: Likewise.
3770         * config/ia64/ia64-c.c: Likewise.
3771         * config/ia64/ia64.c: Likewise.
3772         * config/iq2000/iq2000.c: Likewise.
3773         * config/lm32/lm32.c: Likewise.
3774         * config/m32c/m32c-pragma.c: Likewise.
3775         * config/m32c/m32c.c: Likewise.
3776         * config/m32r/m32r.c: Likewise.
3777         * config/m68k/m68k.c: Likewise.
3778         * config/mcore/mcore.c: Likewise.
3779         * config/mep/mep-pragma.c: Likewise.
3780         * config/mep/mep.c: Likewise.
3781         * config/microblaze/microblaze-c.c: Likewise.
3782         * config/microblaze/microblaze.c: Likewise.
3783         * config/mips/mips.c: Likewise.
3784         * config/mmix/mmix.c: Likewise.
3785         * config/mn10300/mn10300.c: Likewise.
3786         * config/moxie/moxie.c: Likewise.
3787         * config/msp430/msp430-c.c: Likewise.
3788         * config/msp430/msp430.c: Likewise.
3789         * config/nds32/nds32-cost.c: Likewise.
3790         * config/nds32/nds32-fp-as-gp.c: Likewise.
3791         * config/nds32/nds32-intrinsic.c: Likewise.
3792         * config/nds32/nds32-isr.c: Likewise.
3793         * config/nds32/nds32-md-auxiliary.c: Likewise.
3794         * config/nds32/nds32-memory-manipulation.c: Likewise.
3795         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3796         * config/nds32/nds32-predicates.c: Likewise.
3797         * config/nds32/nds32.c: Likewise.
3798         * config/nios2/nios2.c: Likewise.
3799         * config/nvptx/nvptx.c: Likewise.
3800         * config/pa/pa.c: Likewise.
3801         * config/pdp11/pdp11.c: Likewise.
3802         * config/rl78/rl78-c.c: Likewise.
3803         * config/rl78/rl78.c: Likewise.
3804         * config/rs6000/rs6000-c.c: Likewise.
3805         * config/rs6000/rs6000.c: Likewise.
3806         * config/rx/rx.c: Likewise.
3807         * config/s390/s390-c.c: Likewise.
3808         * config/s390/s390.c: Likewise.
3809         * config/sh/sh-c.c: Likewise.
3810         * config/sh/sh-mem.cc: Likewise.
3811         * config/sh/sh.c: Likewise.
3812         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3813         * config/sh/sh_treg_combine.cc: Likewise.
3814         * config/sol2-c.c: Likewise.
3815         * config/sol2-cxx.c: Likewise.
3816         * config/sol2-stubs.c: Likewise.
3817         * config/sol2.c: Likewise.
3818         * config/sparc/sparc-c.c: Likewise.
3819         * config/sparc/sparc.c: Likewise.
3820         * config/spu/spu-c.c: Likewise.
3821         * config/spu/spu.c: Likewise.
3822         * config/stormy16/stormy16.c: Likewise.
3823         * config/tilegx/mul-tables.c: Likewise.
3824         * config/tilegx/tilegx-c.c: Likewise.
3825         * config/tilegx/tilegx.c: Likewise.
3826         * config/tilepro/mul-tables.c: Likewise.
3827         * config/tilepro/tilepro-c.c: Likewise.
3828         * config/tilepro/tilepro.c: Likewise.
3829         * config/v850/v850-c.c: Likewise.
3830         * config/v850/v850.c: Likewise.
3831         * config/vax/vax.c: Likewise.
3832         * config/visium/visium.c: Likewise.
3833         * config/vms/vms-c.c: Likewise.
3834         * config/vms/vms.c: Likewise.
3835         * config/vxworks.c: Likewise.
3836         * config/xtensa/xtensa.c: Likewise.
3838 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
3840         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
3841         Remove operand constraints.  Change operand 2 predicate to
3842         nonmemory operand.  Limit const_int values to mode bitsize.  Only
3843         allow const_int values less than 32 when optimizing for size.
3844         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
3845         Remove operand constraints.
3846         (*bt<mode>): Use SImode for const_int values less than 32.
3847         (regmode): Remove mode attribute.
3849 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
3851         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3852         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
3853           moxie_legitimate_address_p): New functions.
3854           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3856 2015-07-07  Tom de Vries  <tom@codesourcery.com>
3858         PR tree-optimization/66642
3859         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
3860         header comment.  Rename split_edge variable to edge_at_split.  Split
3861         exit edge to create new loop exit bb.  Insert loop exit phis in new
3862         loop exit bb.
3864 2015-07-07  Tom de Vries  <tom@codesourcery.com>
3866         * tree-cfg.c (get_virtual_phi): New function.
3867         * tree-cfg.h (get_virtual_phi): Declare.
3868         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
3869         (rewrite_virtuals_into_loop_closed_ssa): New function.
3870         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
3871         Declare.
3872         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
3873         (transform_to_exit_first_loop_alt): Use
3874         rewrite_virtuals_into_loop_closed_ssa.
3876 2015-07-07  Richard Biener  <rguenther@suse.de>
3878         * fold-const.c (fold_binary_loc): Move
3879         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
3880         * match.pd: ... here.
3881         Add (X * C1) % C2 -> 0 simplification pattern derived from
3882         extract_muldiv_1.
3884 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
3886         PR target/66780
3887         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
3888         change for target/65249.
3890 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
3892         * symtab.c (address_matters_1): Fix typo in comment above.
3893         (can_increase_alignment_p): Likewise.
3895 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3897         * function.c (free_after_compilation): Clear PROP_cfg in
3898         f->curr_properties.
3900 2015-07-07  Richard Biener  <rguenther@suse.de>
3902         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
3903         add which use to.
3904         (add_control_edge): Remove excessive vertical space in dumping.
3905         (process_ssa_edge_worklist): Simulate at most one statement and
3906         return whether we did.  Do not simulate PHIs if they are in a
3907         BB not yet simulated.
3908         (ssa_propagate): Adjust to always drain the BB worklist whenever
3909         a BB is available there, likewise the VARYING edges list before
3910         the interesting edge list.
3912 2015-07-07  Christian Bruel  <christian.bruel@st.com>
3914         PR target/52144
3915         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
3917 2015-07-07  Richard Biener  <rguenther@suse.de>
3919         PR middle-end/66739
3920         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
3921         A - B.
3923 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
3925         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
3926         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
3927         Copy operand 0 to a temporary if !ext_register_operand.  Remove
3928         ancient extract_bit_field workaround.
3929         (insv<mode>_1): Rename from mov<mode>_insv_1.
3930         (*insvqi): Rename from *movqi_insv_2.
3931         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
3932         for renamed insvsi_1.
3933         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
3935 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
3937         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
3938         call to nvptx_reorg_subreg.
3940 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
3942         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
3943         * graphite-dependencies.c, graphite-interchange.c,
3944         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
3945         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
3946         Likewise.
3948 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
3950         * match.pd: Remove element_mode inside HONOR_*.
3951         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
3952         (~X | X -> -1, ~X ^ X -> -1): Merge.
3953         * tree.c (build_each_one_cst): New function.
3954         * tree.h (build_each_one_cst): Likewise.
3956 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3958         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3959         PROCESSOR_IAMCU.
3961 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
3963         * config.gcc <mips*-*-*>: Add fused-madd.opt.
3964         * config/mips/mips.opt (mfused-madd): Remove.
3965         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
3966         * config/mips/mips.h (TARGET_MIPS8000): New.
3967         (ISA_HAS_FP_MADD4_MSUB4): Remove.
3968         (ISA_HAS_FP_MADDF_MSUBF): Remove.
3969         (ISA_HAS_FP_MADD3_MSUB3): Remove.
3970         (ISA_HAS_NMADD4_NMSUB4): Remove.
3971         (ISA_HAS_NMADD3_NMSUB3): Remove.
3972         (ISA_HAS_FUSED_MADD4): New.
3973         (ISA_HAS_UNFUSED_MADD4): New.
3974         (ISA_HAS_FUSED_MADDF): New.
3975         (ISA_HAS_FUSED_MADD3): New.
3976         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
3977         (*fma<mode>4_madd3) New.
3978         (*fma<mode>4_madd4) New.
3979         (*fma<mode>4_maddf) New.
3980         (fms<mode>4) New.
3981         (*fms<mode>4_msub3) New.
3982         (*fms<mode>4_msub4) New.
3983         (fnma<mode>4) New.
3984         (*fnma<mode>4_nmadd3) New.
3985         (*fnma<mode>4_nmadd4) New.
3986         (fnms<mode>4) New.
3987         (*fnms<mode>4_nmsub3) New.
3988         (*fnms<mode>4_nmsub4) New.
3989         (*madd4<mode>) Modify to be unfused only.
3990         (*msub4<mode>) Modify to be unfused only.
3991         (*nmadd4<mode>) Modify to be unfused only.
3992         (*nmsub4<mode>) Modify to be unfused only.
3993         (*madd3<mode>) Remove.
3994         (*msub3<mode>) Remove.
3995         (*nmadd3<mode>) Remove.
3996         (*nmsub3<mode>) Remove.
3997         (*nmadd3<mode>_fastmath) Remove.
3998         (*nmsub3<mode>_fastmath) Remove.
3999         (*nmadd4<mode>_fastmath) Update condition.
4000         (*nmsub4<mode>_fastmath) Update condition.
4002 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
4004         PR target/65956
4005         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
4006         alignment attribute, exploring one level down for records and arrays.
4008 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
4010         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
4011         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
4012         Copy operand 1 to a temporary if !ext_register_operand.  Remove
4013         ancient extract_bit_field workaround.
4014         (*extv<mode>): Rename from *mov<mode>_extv_1.
4015         (*extvqi): Rename from *movqi_extv_1.
4016         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
4017         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
4018         to a temporary if !ext_register_operand.  Remove ancient
4019         extract_bit_field workaround.
4020         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
4021         (*extzvqi): Rename from *movqi_extzv_2.
4022         (*testqi_ext_3): Remove modes from const_int_operand predicated
4023         operands.  Add "n" constraint.
4024         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
4025         operand.  Add "J" constraint.
4026         (*btsq, *btrq, *btcq peephole2s): Remove mode from
4027         const_0_to_63 predicated operand.
4028         (regmode): New insn attribute.
4029         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
4030         to nonmemory_operand.  Use regmode insn attribute.
4031         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
4032         (*jcc_bt<mode>_mask): Remove mode from operand 3.
4033         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
4034         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
4035         operands.  Use "N" constraint instead of "n".
4037 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
4039         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
4041 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4043         PR target/66749
4044         * config/i386/i386.c (iamcu_cost): New.
4045         (m_IAMCU): Likewise.
4046         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
4047         (processor_target_table): Add an entry for "iamcu".
4048         (processor_alias_table): Likewise.
4049         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
4050         (ix86_adjust_cost): Likewise.
4051         (ia32_multipass_dfa_lookahead): Likewise.
4052         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
4053         * config/i386/x86-tune.def: Updated for m_IAMCU.
4055 2015-07-06  Richard Biener  <rguenther@suse.de>
4057         PR tree-optimization/66772
4058         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
4059         values are available in the PHI node BB when there are
4060         still unexecutable edges.
4062 2015-07-06  Richard Biener  <rguenther@suse.de>
4064         PR tree-optimization/66767
4065         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
4066         Make sure to build the alignment test on a SSA name without
4067         final alignment info valid only if the alignment test
4068         evaluates to true.
4070 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
4072         PR target/66620
4073         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
4074         loop start when inserting LSETUP.
4076 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4078         PR target/53383
4079         * config/i386/i386.c (ix86_option_override_internal): Allow
4080         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
4082 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4084         * read-md.c (decimal_string): Rename to ...
4085         (md_decimal_string): ... this.
4086         (handle_enum): Reflect this.
4088 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4090         PR target/66731
4091         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
4093 2015-07-06  Richard Biener  <rguenther@suse.de>
4095         PR middle-end/66759
4096         * match.pd: Add missing constraint of y to REAL_CST in
4097         REAL_CST - x CMP y to y - CST CMP x simplification.
4099 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
4101         PR tree-optimization/66757
4102         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
4104 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
4105             Sandra Loosemore <sandra@codesourcery.com>
4107         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
4108         Delete extern declaration.
4109         (gprel_constant_p): Add extern declaration.
4110         * config/nios2/constraints.md ("S"): Use gprel_constant_p
4111         instead of nios2_symbol_ref_in_small_data_p.
4112         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
4113         (nios2_symbol_ref_in_small_data_p): Make static.
4114         (gprel_constant_p): Make non-static.
4116 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
4118         * doc/fragments.texi (Target Fragment): Convert debian.org
4119         link to use https.
4120         * doc/install.texi (Configuration): Ditto.
4122 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
4124         PR tree-optimization/66718
4125         * tree-vect-stmts.c (vectorizable_call): Replace uses of
4126         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
4128         PR tree-optimization/66718
4129         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
4130         vectorizable_load, vectorizable_condition): Move vectype,
4131         nunits, ncopies computation after checking what kind of statement
4132         stmt is.
4134 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4136         * target-insns.def (extv, extzv, insv): New targetm instruction
4137         patterns.
4138         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
4139         interface.
4140         * recog.c (simplify_while_replacing): Likewise.
4142 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4144         * target-insns.def (doloop_begin, doloop_end): New targetm
4145         instruction patterns.
4146         * loop-init.c: Include target.h.
4147         (pass_loop2::gate): Use the new targetm patterns instead of
4148         HAVE_*/gen_* interface.
4149         (pass_rtl_doloop::gate): Likewise.
4150         (pass_rtl_doloop::execute): Remove preprocessor condition.
4151         * hw-doloop.c: Build unconditionally.
4152         * loop-doloop.c: Likewise.
4153         (doloop_optimize): Use the new targetm patterns instead of
4154         HAVE_*/gen_* interface.
4155         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
4156         * modulo-sched.c (doloop_register_get): Likewise.
4158 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4160         * target-insns.def (clear_cache): New targetm instruction pattern.
4161         * builtins.c (expand_builtin___clear_cache): Use it instead of
4162         HAVE_*/gen_* interface.
4164 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4166         * target-insns.def (allocate_stack, check_stack, probe_stack)
4167         (probe_stack_address, split_stack_prologue, split_stack_space_check):
4168         New targetm instruction patterns.
4169         * explow.c (allocate_dynamic_stack_space): Use them instead of
4170         HAVE_*/gen_* interface.
4171         (emit_stack_probe): Likewise.
4172         (probe_stack_range): Likewise.
4173         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4175 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4177         * target-insns.def (stack_protect_set, stack_protect_test): New
4178         targetm instruction patterns.
4179         * cfgexpand.c (stack_protect_prologue): Use them instead of
4180         HAVE_*/gen_* interface.
4181         * function.c (stack_protect_epilogue): Likewise.
4183 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4185         * expr.h (gen_move_insn_uncast): Delete.
4186         * expr.c (gen_move_insn_uncast): Delete.
4188 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4190         * target-insns.def (restore_stack_block, restore_stack_function)
4191         (restore_stack_nonlocal, save_stack_block, save_stack_function)
4192         (save_stack_nonlocal): New targetm instruction patterns.
4193         * builtins.c (expand_builtin_apply): Use them instead of
4194         HAVE_*/gen_* interface.
4195         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
4197 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4199         * target-insns.def (trap): New targetm instruction pattern.
4200         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
4201         interface.
4202         * explow.c (allocate_dynamic_stack_space): Likewise.
4203         * ifcvt.c (find_if_header): Likewise.
4205 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4207         * target-insns.def (prefetch): New targetm instruction pattern.
4208         * tree-ssa-loop-prefetch.c: Include targeth.
4209         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
4210         of HAVE_*/gen_* interface.
4211         * builtins.c (expand_builtin_prefetch): Likewise.
4212         * toplev.c (process_options): Likewise.
4214 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4216         * target-insns.def (untyped_call, untyped_return): New targetm
4217         instruction patterns.
4218         * builtins.c (expand_builtin_apply): Use them instead of
4219         HAVE_*/gen_* interface.
4220         (result_vector): Define unconditionally.
4222 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4224         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
4225         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
4226         (nonlocal_goto_receiver): New targetm instruction patterns.
4227         * builtins.c (expand_builtin_setjmp_setup): Use them instead
4228         of HAVE_*/gen_* interface.
4229         (expand_builtin_setjmp_receiver): Likewise.
4230         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4231         * except.c (expand_dw2_landing_pad_for_region): Likewise.
4233 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4235         * target.def: Add code_for_* hooks.
4236         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
4237         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
4238         * target-insns.def (casesi, tablejump): New targetm instruction
4239         patterns.
4240         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
4241         (do_tablejump): Likewise.
4242         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
4243         (expand_sjlj_dispatch_table): Likewise.
4244         * targhooks.c (default_case_values_threshold): Likewise.
4246 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
4248         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
4249         Use rtx_insn * instead of rtx.
4250         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
4251         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
4252         (nios2_call_tls_get_addr): Likewise.
4253         (nios2_emit_expensive_div): Likewise.
4254         (nios2_emit_move_sequence): Change return type to bool.
4255         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
4256         Change return type to bool.
4258 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4260         PR target/66747
4261         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
4263 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
4265         PR target/66114
4266         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
4267         of register_operand.  Remove constraint.
4269 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
4271         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
4272         the first argument.
4274 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
4276         * attribs.c (decl_attributes): Guard inform with the return value
4277         of the preceding warning.
4279 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
4281         * doc/invoke.texi (moverride): Move to correct section.
4283 2015-07-03  Richard Biener  <rguenther@suse.de>
4285         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
4286         Copy from tree.c
4287         (dt_operand::gen_gimple_expr): After valueizing operands
4288         re-canonicalize operand order for commutative tree codes.
4290 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
4292         PR target/66746.
4293         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
4294         is defined.
4295         (__crc32w): Likewise.
4296         (__crc32d): Likewise.
4297         (__rdpmc): Likewise.
4298         (__rdtscp): Likewise.
4299         (_rdpmc): Likewise.
4300         (_rdtscp): Likewise.
4301         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
4302         is defined.
4304 2015-07-03  Richard Biener  <rguenther@suse.de>
4306         * fold-const.c (fold_mathfn_compare): Remove.
4307         (fold_inf_compare): Likewise.
4308         (fold_comparison): Move floating point comparison simplifications...
4309         * match.pd: ... to patterns here.  Introduce simple_comparisons
4310         operator list and use it for patterns formerly in fold_comparison.
4312 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
4314         PR tree-optimization/66119
4315         * toplev.c (process_options): Don't set up default values for
4316         the sra_max_scalarization_size_{speed,size} parameters.
4317         * tree-sra (analyze_all_variable_accesses): If no values
4318         have been set for the sra_max_scalarization_size_{speed,size}
4319         parameters, call get_move_ratio to get target defaults.
4321 2015-07-03  Richard Biener  <rguenther@suse.de>
4323         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
4324         * match.pd: ... here.
4326 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
4328         PR target/37072
4329         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
4330         is not actually the default on FreeBSD.
4332 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4334         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
4335         definition.
4336         (CMPGE_8HI): Likewise.
4337         (CMPGE_4SI): Likewise.
4338         (CMPGE_2DI): Likewise.
4339         (CMPGE_U16QI): Likewise.
4340         (CMPGE_U8HI): Likewise.
4341         (CMPGE_U4SI): Likewise.
4342         (CMPGE_U2DI): Likewise.
4343         (CMPLE_16QI): Likewise.
4344         (CMPLE_8HI): Likewise.
4345         (CMPLE_4SI): Likewise.
4346         (CMPLE_2DI): Likewise.
4347         (CMPLE_U16QI): Likewise.
4348         (CMPLE_U8HI): Likewise.
4349         (CMPLE_U4SI): Likewise.
4350         (CMPLE_U2DI): Likewise.
4351         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4352         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
4353         ALTIVEC_BUILTIN_VEC_CMPLE.
4354         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
4355         floating-point vector modes.
4356         (vector_nlt<mode>): New define_expand.
4357         (vector_nltu<mode>): Likewise.
4358         (vector_ngt<mode>): Likewise.
4359         (vector_ngtu<mode>): Likewise.
4361 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
4363         PR rtl-optimization/66706
4364         * combine.c (make_compound_operation): If an AND of SUBREG of
4365         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
4367 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
4369         * tree-pass.h (make_pass_ch_vect): New.
4370         * passes.def: Add pass_ch_vect just before pass_if_conversion.
4372         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
4373         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
4374         make_pass_ch_vect): New.
4375         (pass_ch): Extend ch_base.
4377         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
4378         (ch_base::copy_headers): ...here.
4380 2015-07-02  Richard Biener  <rguenther@suse.de>
4382         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
4383         * fold-const.c (get_pointer_modulus_and_residue): Remove.
4384         (fold_binary_loc): Implement (T)ptr & CST in terms of
4385         get_pointer_alignment_1.
4386         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4387         Make sure to build the alignment test on a SSA name without
4388         final alignment info valid only after the prologue.
4390 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
4392         * config/cris/cris.md ("epilogue"): Remove condition.
4393         ("prologue"): Ditto.
4395 2015-07-02  Richard Biener  <rguenther@suse.de>
4397         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
4398         parameter to record a condition that is false.
4399         (record_conditions): When recording an extra NE_EXPR that is
4400         true also record a EQ_EXPR that is false.
4402 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
4404         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
4405         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
4406         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
4407         (set_iv, find_interesting_uses_address, add_candidate_1): New
4408         argument to alloc_iv.
4409         (find_interesting_uses_op, find_interesting_uses_cond): Don't
4410         duplicate struct iv.
4411         (free_loop_data): Don't free struct iv explicitly.
4412         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
4414 2015-07-01  DJ Delorie  <dj@redhat.com>
4416         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
4417         (LIB_SPEC): Add.
4418         (SUPPORTS_DISCRIMINATOR): Define.
4420 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
4422         PR bootstrap/66685
4423         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
4424         there are no CALLs in the same pattern.
4426 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4428         PR rtl-optimization/61047
4429         * rtlanal.c (get_initial_register_offset): New function.
4430         (rtx_addr_can_trap_p_1): Check offsets of stack references.
4432 2015-07-01  Richard Biener  <rguenther@suse.de>
4434         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
4435         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
4436         ~X CMP C -> X CMP' ~C to ...
4437         * match.pd: ... patterns here.
4439 2015-07-01  Nick Clifton  <nickc@redhat.com>
4441         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
4442         a 16-bit value into a 20-bit memory slot.
4444 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
4446         * doc/sourcebuild.texi (AArch64-specific attributes): Document
4447         "aarch64_tiny", "aarch64_small", "aarch64_large",
4448         "aarch64_little_endian", "aarch64_big_endian".
4450 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
4452         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
4453         Document "aarch64_small_fpic".
4455 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
4457         * configure.ac: Add check for aarch64 assembler -fpic relocation
4458         modifier support.
4459         * configure: Regenerate.
4460         * config.in: Regenerate.
4461         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
4462         to -fPIC if not support of -fpic relocation modifier in assembler.
4464 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
4466         PR bootstrap/66685
4467         * rtl.c (classify_insn): Handle returns in PARALLELs.
4469 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
4471         PR middle-end/66633
4472         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
4473         to true if the function is nested and if not optimizing.
4474         (convert_local_omp_clauses): Initialize need_frame to true if the
4475         function contains nested functions and if not optimizing.
4477 2015-07-01  Richard Biener  <rguenther@suse.de>
4479         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
4480         (X & Y) ^ Y -> ~X & Y transforms to ...
4481         * match.pd: ... here.
4483 2015-07-01  Richard Biener <rguenther@suse.de>
4485         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
4486         of converts to avoid uninteresting noise from the conversion
4487         simplifying patterns.
4489 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
4491         * config/c6x/c6x.c (try_rename_operands): Do not depend on
4492         gcc_assert evaluating its argument for side-effect.
4494 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
4496         PR target/64833
4497         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
4498         flag_pic is set.
4500 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
4502         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
4503         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
4504         (hash_scc): Add this_ref_p and ref_p parameters and pass them
4505         to the inner DFS walk.
4507 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
4509         * target-insns.def (jump): New targetm instruction pattern.
4510         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
4511         instead of gen_jump.
4512         (fix_up_crossing_landing_pad): Likewise.
4513         (add_labels_and_missing_jumps): Likewise.
4514         (fix_crossing_conditional_branches): Likewise.
4515         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4516         (force_nonfallthru_and_redirect): Likewise.
4517         * cse.c (cse_insn): Likewise.
4518         * expmed.c (expand_divmod): Likewise.
4519         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
4520         * haifa-sched.c (init_before_recovery): Likewise.
4521         (sched_create_recovery_edges): Likewise.
4522         * ifcvt.c (find_cond_trap): Likewise.
4523         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
4524         (expand_float, expand_fix): Likewise.
4525         * stmt.c (emit_jump): Likewise.
4527 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
4529         * defaults.h (HAVE_load_multiple, gen_load_multiple)
4530         (HAVE_store_multiple, gen_store_multiple): Delete.
4531         * target-insns.def (load_multiple, store_multiple): New targetm
4532         instruction patterns.
4533         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
4534         of HAVE_*/gen_* interface.
4536 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
4538         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
4539         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
4540         (gen_mem_signal_fence): Delete.
4541         * target-insns.def (mem_signal_fence, mem_thread_fence)
4542         (memory_barrier): New targetm instruction patterns.
4543         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
4544         interface.
4545         (expand_mem_signal_fence): Likewise.
4547 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
4549         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
4550         * target-insns.def (epilogue, prologue, sibcall_prologue): New
4551         targetm instruction patterns.
4552         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
4553         interface.
4554         * calls.c (expand_call): Likewise.
4555         * cfgrtl.c (cfg_layout_finalize): Likewise.
4556         * df-scan.c (df_get_entry_block_def_set): Likewise.
4557         (df_get_exit_block_use_set): Likewise.
4558         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
4559         * final.c (final_start_function): Likewise.
4560         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4561         (reposition_prologue_and_epilogue_notes): Likewise.
4562         * reorg.c (find_end_label): Likewise.
4563         * toplev.c (process_options): Likewise.
4565 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
4567         * typed-splay-tree.h: New file.
4569 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
4571         PR debug/66691
4572         * lra-int.h (lra_substitute_pseudo): Add a parameter.
4573         (lra_substitute_pseudo_within_insn): Ditto.
4574         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
4575         of constant.
4576         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
4577         to lra_substitute_pseudo.
4578         * lra-lives.c (process_bb_lives): Add an argument to
4579         lra_substitute_pseudo_within_insn call.
4580         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
4581         argument to lra_substitute_pseudo and
4582         lra_substitute_pseudo_within_insn calls.
4583         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
4585 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
4587         * configure: Regenerated.
4589 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
4591         * config.gcc: Support i[34567]86-*-elfiamcu target.
4592         * config/i386/iamcu.h: New.
4593         * config/i386/i386.opt: Add -miamcu.
4594         * doc/invoke.texi: Document -miamcu.
4595         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
4596         off x87/MMX/SSE/AVX codegen for -miamcu.
4597         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4598         __iamcu/__iamcu__ for -miamcu.
4599         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
4600         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
4601         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
4602         * config/i386/i386.c (ix86_option_override_internal): Ignore and
4603         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
4604         MCU by default.  Default long double to 64-bit for Intel MCU.
4605         Turn on -freg-struct-return for Intel MCU.  Issue an error when
4606         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
4607         AVX is turned on.
4608         (function_arg_advance_32): Pass value whose size is no larger
4609         than 8 bytes in registers for Intel MCU.
4610         (function_arg_32): Likewise.
4611         (ix86_return_in_memory): Return value whose size is no larger
4612         than 8 bytes in registers for Intel MCU.
4613         (iamcu_alignment): New function.
4614         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
4615         true.
4616         (ix86_local_alignment): Don't increase alignment for Intel MCU.
4617         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
4618         true.
4620 2015-06-30  Marek Polacek  <polacek@redhat.com>
4622         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
4623         both operands of the resulting expression.
4625         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
4626         the final expression with the operand's type and then convert
4627         it to the type of the expression.
4629 2015-06-30  Richard Biener  <rguenther@suse.de>
4631         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
4632         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
4633         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
4634         * match.pd: ... to patterns here.
4636 2015-06-30  Richard Biener  <rguenther@suse.de>
4638         PR tree-optimization/66704
4639         * tree-vect-data-refs.c (vect_setup_realignment): Use
4640         make_ssa_name for non-SSA name source.
4642 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
4644         PR middle-end/66702
4645         * omp-low.c (simd_clone_adjust): Handle addressable linear
4646         or uniform parameters or non-gimple type uniform parameters.
4648 2015-06-30  Richard Biener  <rguenther@suse.de>
4650         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
4651         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
4652         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
4653         * match.pd: ... here.
4654         Add a few cases of A - B -> A + (-B) when B "easily" negates.
4655         Move (x & y) | x -> x and friends before
4656         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
4658 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
4660         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
4661         -mfix-ut699 is not specified.
4662         (leon3_load): Rename into...
4663         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
4664         is specified.
4666 2015-06-30  Marek Polacek  <polacek@redhat.com>
4668         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
4669         * match.pd: ... here.
4671 2015-06-30  Richard Biener  <rguenther@suse.de>
4673         * target-insns.def (canonicalize_funcptr_for_compare): Add.
4674         * fold-const.c (build_range_check): Replace uses of
4675         HAVE_canonicalize_funcptr_for_compare.
4676         (fold_widened_comparison): Likewise.
4677         (fold_sign_changed_comparison): Likewise.
4678         * dojump.c: Include "target.h".
4679         (do_compare_and_jump): Replace uses of
4680         HAVE_canonicalize_funcptr_for_compare and
4681         gen_canonicalize_funcptr_for_compare.
4682         * expr.c (do_store_flag): Likewise.
4684 2015-06-30  Tom de Vries  <tom@codesourcery.com>
4686         PR tree-optimization/66652
4687         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
4688         max_loop_iterations to determine if nit + 1 overflows.
4690 2015-06-30  Richard Biener  <rguenther@suse.de>
4692         * tree-vrp.c (register_edge_assert_for_2): Also register
4693         asserts for dominating conversion results.
4695 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
4697         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
4698         field in struct iv.
4700 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
4702         PR target/66509
4703         * configure.ac: Fix filds and fildq test for 64-bit.
4704         * configure: Regenerated.
4706 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
4708         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
4709         (nvptx_reorg): Here.  Keep the non-subreg pieces.
4711 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
4713         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
4714         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4716 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
4718         * config/i386/i386.md (*jcc_1): Use %! in asm template.
4719         Set attribute "length_nobnd" instead of "length".
4720         (*jcc_2): Ditto.
4721         (jump): Ditto.
4722         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
4724 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
4726         * config/nios2/nios2.c (nios2_delegitimize_address): Make
4727         assert less restrictive.
4729 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4731         PR fortran/66605
4732         * cgraphunit.c (cgraph_node::finalize_function): Do not call
4733         do_warn_unused_parameter.
4734         * function.c (do_warn_unused_parameter): Move from here.
4735         * function.h (do_warn_unused_parameter): Do not declare.
4737 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4739         PR target/65697
4740         * gcc.target/arm/armv-sync-comp-swap.c: New.
4741         * gcc.target/arm/armv-sync-op-acquire.c: New.
4742         * gcc.target/arm/armv-sync-op-full.c: New.
4743         * gcc.target/arm/armv-sync-op-release.c: New.
4745 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4747         PR target/65697
4748         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
4749         initial acquire barrier with final barrier.
4751 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4753         PR target/65697
4754         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
4755         initial acquire barrier with final barrier.
4757 2015-06-29  Richard Henderson  <rth@redhat.com>
4759         * config/i386/constraints.md (Bf): New constraint.
4760         * config/i386/i386-c.c (ix86_target_macros): Define
4761         __GCC_ASM_FLAG_OUTPUTS__.
4762         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
4763         as flags outputs.
4764         * doc/extend.texi (FlagOutputOperands): Document them.
4766 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
4768         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
4769         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
4770         unspec name.
4771         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
4772         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
4773         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
4774         (aarch64_symbol_context): Ditto.
4775         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
4776         and use new pattern name.
4777         (aarch64_expand_mov_immediate): Ditto.
4778         (aarch64_print_operand): Ditto.
4779         (aarch64_classify_tls_symbol): Ditto.
4781 2015-06-29  Marek Polacek  <polacek@redhat.com>
4782             Marc Glisse  <marc.glisse@inria.fr>
4784         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
4785         * match.pd: ... pattern here.
4787 2015-06-29  Tom de Vries  <tom@codesourcery.com>
4789         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
4790         function structure.
4792 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
4794         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
4795         feature description, split out the native option, add a link to
4796         the feature documentation, rearrange and slightly rewrite text.
4797         (Aarch64 options, -mcpu): Likewise.
4798         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
4799         +rdma implies Adv. SIMD.
4801 2015-06-29  Marek Polacek  <polacek@redhat.com>
4803         PR c/66322
4804         * function.c (stack_protect_epilogue): Remove a cast to int.
4805         * doc/invoke.texi: Update -Wswitch-bool description.
4807 2015-06-29  Richard Biener  <rguenther@suse.de>
4809         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
4810         * fold-const.c (fold_binary_loc): Move &A - &B simplification
4811         via ptr_difference_const ...
4812         * match.pd: ... here.
4813         When matching (X ^ Y) == Y also match with swapped operands.
4815 2015-06-29  Richard Biener  <rguenther@suse.de>
4817         * lto-streamer.h (LTO_major_version): Bump to 5.
4819 2015-06-29  Richard Biener  <rguenther@suse.de>
4821         PR tree-optimization/66677
4822         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
4823         STMT_VINFO_VEC_STMT clobbering less strict.
4825 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
4827         PR middle-end/64130
4828         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
4829         division, compute max and min when value ranges for dividend and
4830         divisor are available.
4832 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
4833             Sandra Loosemore <sandra@codesourcery.com>
4835         * regrename.h (regrename_do_replace): Change to return bool.
4836         * regrename.c (rename_chains): Check return value of
4837         regname_do_replace.
4838         (regrename_do_replace): Re-validate the modified insns and
4839         return bool status.
4840         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4841         Update to match rename_chains changes.
4842         * config/c6x/c6x.c (try_rename_operands): Assert that
4843         regrename_do_replace returns true.
4845 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
4847         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
4848         operand 2 here.  Use copy_addr_to_reg to copy non-index
4849         register operand 2 to a temporary.
4850         (<mode>_stx): Ditto for operand 1.
4851         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
4852         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
4853         (ix86_store_bounds): Ditto.
4855 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
4857         * print-tree.c (print_node) [TREE_VEC]: Print its length.
4859 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
4861         * gimple.c (gimple_call_set_fndecl): Remove.
4862         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
4863         build1_loc directly instead of build_fold_addr_expr_loc.
4865 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
4867         * hash-map.h (hash_map::traverse): Use the definition of the
4868         Key typedef rather than the typedef itself.
4870 2015-06-26  Martin Jambor  <mjambor@suse.cz>
4872         PR debug/66301
4873         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
4874         NULL instead of calling dump_enabled_p.
4876 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4878         * config/aarch64/aarch64.opt: (override): New.
4879         * doc/invoke.texi (override): Document.
4880         * config/aarch64/aarch64.c (aarch64_flag_desc): New
4881         (aarch64_fusible_pairs): Likewise.
4882         (aarch64_tuning_flags): Likewise.
4883         (aarch64_tuning_override_function): Likewise.
4884         (aarch64_tuning_override_functions): Likewise.
4885         (aarch64_parse_one_option_token): Likewise.
4886         (aarch64_parse_boolean_options): Likewise.
4887         (aarch64_parse_fuse_string): Likewise.
4888         (aarch64_parse_tune_string): Likewise.
4889         (aarch64_parse_one_override_token): Likewise.
4890         (aarch64_parse_override_string): Likewise.
4891         (aarch64_override_options): Parse the -override string if it
4892         is present.
4894 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4896         * config/aarch64/aarch64-protos.h (tune_params): Remove
4897         const from members.
4898         (aarch64_tune_params): Remove const, change to no longer be
4899         a pointer.
4900         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
4901         change to no longer be a pointer, initialize to generic_tunings.
4902         (aarch64_min_divisions_for_recip_mul): Change dereference of
4903         aarch64_tune_params to member access.
4904         (aarch64_reassociation_width): Likewise.
4905         (aarch64_rtx_mult_cost): Likewise.
4906         (aarch64_address_cost): Likewise.
4907         (aarch64_branch_cost): Likewise.
4908         (aarch64_rtx_costs): Likewise.
4909         (aarch64_register_move_cost): Likewise.
4910         (aarch64_memory_move_cost): Likewise.
4911         (aarch64_sched_issue_rate): Likewise.
4912         (aarch64_builtin_vectorization_cost): Likewise.
4913         (aarch64_override_options): Take a copy of the selected tuning
4914         struct in to aarch64_tune_params, rather than just setting
4915         a pointer, change dereferences of aarch64_tune_params to member
4916         accesses.
4917         (aarch64_override_options_after_change): Change dereferences of
4918         aarch64_tune_params to member access.
4919         (aarch64_macro_fusion_p): Likewise.
4920         (aarch_macro_fusion_pair_p): Likewise.
4921         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
4923 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4925         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
4926         (aarch64_tune_flags): Likewise.
4927         (AARCH64_TUNE_FMA_STEERING): Likewise.
4928         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
4929         to AARCH64_FL_USE_FMA_STEERING_PASS.
4930         (cortex-a57.cortex-a53): Likewise.
4931         (cortex-a72): Use cortexa72_tunings.
4932         (cortex-a72.cortex-a53): Likewise.
4933         (exynos-m1): Likewise.
4934         * config/aarch64/aarch64-protos.h (tune_params): Add
4935         a field: extra_tuning_flags.
4936         * config/aarch64/aarch64-tuning-flags.def: New.
4937         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
4938         (aarch64_extra_tuning_flags): Likewise.
4939         (aarch64_tune_params): Declare here.
4940         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
4941         (cortexa53_tunings): Likewise.
4942         (cortexa57_tunings): Likewise.
4943         (thunderx_tunings): Likewise.
4944         (xgene1_tunings): Likewise.
4945         (cortexa72_tunings): New.
4946         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
4947          (gate): Check against aarch64_tune_params.
4948         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
4949         aarch64-protos.h.
4951 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4953         * config/aarch64/aarch64-fusion-pairs.def: New.
4954         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
4955         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
4956         aarch64_fusion_pairs.
4957         (AARCH64_FUSE_MOV_MOVK): Likewise.
4958         (AARCH64_FUSE_ADRP_ADD): Likewise.
4959         (AARCH64_FUSE_MOVK_MOVK): Likewise.
4960         (AARCH64_FUSE_ADRP_LDR): Likewise.
4961         (AARCH64_FUSE_CMP_BRANCH): Likewise.
4963 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
4965         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
4966         SYMBOL_SMALL_GOT_28K.
4967         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
4968         relocation modifiers.
4969         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
4970         (ldr_got_small_28k_<mode>): New.
4971         (ldr_got_small_28k_sidi): New.
4972         * config/aarch64/iterators.md (got_modifier): New mode iterator.
4973         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
4974         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
4975         SYMBOL_SMALL_GOT_28K.
4976         (aarch64_rtx_costs): Add costs for new instruction sequences.
4977         (initialize_aarch64_code_model): Initialize new model.
4978         (aarch64_classify_symbol): Recognize new model and new symbol classification.
4979         (aarch64_asm_preferred_eh_data_format): Support new model.
4980         (aarch64_load_symref_appropriately): Generate new instruction
4981         sequences for -fpic.
4982         (TARGET_USE_PSEUDO_PIC_REG): New definition.
4983         (aarch64_use_pseudo_pic_reg): New function.
4985 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
4987         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4988         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
4989         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
4990         (aarch64_expand_mov_immediate): Ditto.
4991         (aarch64_print_operand): Ditto.
4992         (aarch64_classify_symbol): Ditto.
4994 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
4996         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
4998 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
5000         PR bootstrap/66638
5001         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
5002         assertion failed.  Remove assertion itself.
5004 2015-06-26  Richard Biener  <rguenther@suse.de>
5006         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
5007         and -A CMP CST -> A CMP -CST which is redundant with a pattern
5008         in match.pd.
5009         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
5010         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
5011         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
5012         * match.pd: ... patterns here.
5014 2015-06-26  Marek Polacek  <polacek@redhat.com>
5016         * match.pd ((x | y) & ~(x & y) -> x ^ y,
5017         (x | y) & (~x ^ y) -> x & y): New patterns.
5019 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
5021         * rtl.h (emit): Add an optional boolean parameter to control
5022         whether barriers are emitted.
5023         * emit-rtl.c (emit): Likewise.
5024         * gensupport.c (get_emit_function): Return null rather than "emit".
5025         * genemit.c (gen_emit_seq): Handle the null return value.
5026         Don't emit barriers after the final instruction in the sequence.
5027         * gentarget-def.c (main): Don't emit barriers after the instruction.
5029 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5031         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
5032         TARGET_UNIFIED_ASM.
5034 2015-06-26  Richard Biener  <rguenther@suse.de>
5036         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
5038 2015-06-26  Richard Biener  <rguenther@suse.de>
5040         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
5041         irrespective on whether the inner operation has a single use
5042         of both off are constant.
5044 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
5045             Segher Boessenkool  <segher@kernel.crashing.org>
5047         PR target/66412
5048         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
5049         before doing PUT_MODE or PUT_CODE on operands to avoid
5050         in-place RTX modification.
5052 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
5054         * gentarget-def.c (def_target_insn): Cast return of strtol to
5055         unsigned int.
5057 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5059         * gimple.h (gimple_call_set_fn): Move inline function.
5060         * gimple.c (gimple_call_set_fn): Relocate here.
5062 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
5064         PR target/65979
5065         PR target/66611
5066         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
5067         the replacement insn will work.
5069 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
5071         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
5072         by default.
5074 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5076         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
5077         * cgraph.h: Include ipa-ref.h and plugin-api.h.
5078         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
5079         (symtab_node::address_can_be_compared_p): Move function.
5080         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
5081         definition here.
5082         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
5083         * auto-profile.c: Likewise.
5084         * bb-reorder.c: Likewise.
5085         * builtins.c: Likewise.
5086         * calls.c: Likewise.
5087         * cfgexpand.c: Likewise.
5088         * cgraphbuild.c: Likewise.
5089         * cgraphclones.c: Likewise.
5090         * cgraphunit.c: Likewise.
5091         * combine.c: Likewise.
5092         * coverage.c: Likewise.
5093         * data-streamer-in.c: Likewise.
5094         * data-streamer-out.c: Likewise.
5095         * data-streamer.c: Likewise.
5096         * dbxout.c: Likewise.
5097         * dwarf2out.c: Likewise.
5098         * except.c: Likewise.
5099         * expr.c: Likewise.
5100         * final.c: Likewise.
5101         * fold-const.c: Likewise.
5102         * ggc-page.c: Likewise.
5103         * gimple-fold.c: Likewise.
5104         * gimple-iterator.c: Likewise.
5105         * gimple-pretty-print.c: Likewise.
5106         * gimple-streamer-in.c: Likewise.
5107         * gimple-streamer-out.c: Likewise.
5108         * gimple.c: Likewise.
5109         * gimplify.c: Likewise.
5110         * ipa-chkp.c: Likewise.
5111         * ipa-comdats.c: Likewise.
5112         * ipa-cp.c: Likewise.
5113         * ipa-devirt.c: Likewise.
5114         * ipa-icf-gimple.c: Likewise.
5115         * ipa-icf.c: Likewise.
5116         * ipa-inline-analysis.c: Likewise.
5117         * ipa-inline-transform.c: Likewise.
5118         * ipa-inline.c: Likewise.
5119         * ipa-polymorphic-call.c: Likewise.
5120         * ipa-profile.c: Likewise.
5121         * ipa-prop.c: Likewise.
5122         * ipa-pure-const.c: Likewise.
5123         * ipa-ref.c: Likewise.
5124         * ipa-reference.c: Likewise.
5125         * ipa-split.c: Likewise.
5126         * ipa-utils.c: Likewise.
5127         * ipa-visibility.c: Likewise.
5128         * ipa.c: Likewise.
5129         * langhooks.c: Likewise.
5130         * lto-cgraph.c: Likewise.
5131         * lto-compress.c: Likewise.
5132         * lto-opts.c: Likewise.
5133         * lto-section-in.c: Likewise.
5134         * lto-section-out.c: Likewise.
5135         * lto-streamer-in.c: Likewise.
5136         * lto-streamer-out.c: Likewise.
5137         * lto-streamer.c: Likewise.
5138         * omp-low.c: Likewise.
5139         * opts-global.c: Likewise.
5140         * passes.c: Likewise.
5141         * predict.c: Likewise.
5142         * print-tree.c: Likewise.
5143         * profile.c: Likewise.
5144         * ree.c: Likewise.
5145         * sanopt.c: Likewise.
5146         * stor-layout.c: Likewise.
5147         * symtab.c: Likewise.
5148         * toplev.c: Likewise.
5149         * trans-mem.c: Likewise.
5150         * tree-cfg.c: Likewise.
5151         * tree-chkp.c: Likewise.
5152         * tree-eh.c: Likewise.
5153         * tree-emutls.c: Likewise.
5154         * tree-inline.c: Likewise.
5155         * tree-nested.c: Likewise.
5156         * tree-parloops.c: Likewise.
5157         * tree-pretty-print.c: Likewise.
5158         * tree-profile.c: Likewise.
5159         * tree-sra.c: Likewise.
5160         * tree-ssa-alias.c: Likewise.
5161         * tree-ssa-live.c: Likewise.
5162         * tree-ssa-loop-ivcanon.c: Likewise.
5163         * tree-ssa-loop-ivopts.c: Likewise.
5164         * tree-ssa-pre.c: Likewise.
5165         * tree-ssa-sccvn.c: Likewise.
5166         * tree-ssa-strlen.c: Likewise.
5167         * tree-ssa-structalias.c: Likewise.
5168         * tree-streamer-in.c: Likewise.
5169         * tree-streamer-out.c: Likewise.
5170         * tree-streamer.c: Likewise.
5171         * tree-switch-conversion.c: Likewise.
5172         * tree-tailcall.c: Likewise.
5173         * tree-vect-data-refs.c: Likewise.
5174         * tree-vect-stmts.c: Likewise.
5175         * tree-vectorizer.c: Likewise.
5176         * tree.c: Likewise.
5177         * tsan.c: Likewise.
5178         * ubsan.c: Likewise.
5179         * value-prof.c: Likewise.
5180         * varasm.c: Likewise.
5181         * varpool.c: Likewise.
5182         * config/arm/arm.c: Likewise.
5183         * config/bfin/bfin.c: Likewise.
5184         * config/c6x/c6x.c: Likewise.
5185         * config/cris/cris.c: Likewise.
5186         * config/darwin-c.c: Likewise.
5187         * config/darwin.c: Likewise.
5188         * config/i386/i386.c: Likewise.
5189         * config/i386/winnt.c: Likewise.
5190         * config/microblaze/microblaze.c: Likewise.
5191         * config/mips/mips.c: Likewise.
5192         * config/rs6000/rs6000.c: Likewise.
5193         * config/rx/rx.c: Likewise.
5194         * config/s390/s390.c: Likewise.
5195         * config/tilegx/mul-tables.c: Likewise.
5197 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5199         * config/aarch64/aarch64.c, config/alpha/alpha.c,
5200         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
5201         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
5202         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
5203         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
5204         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
5205         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
5206         config/microblaze/microblaze.c, config/mips/mips.c,
5207         config/mmix/mmix.c, config/mn10300/mn10300.c,
5208         config/moxie/moxie.c, config/msp430/msp430.c,
5209         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
5210         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
5211         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
5212         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
5213         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
5214         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
5215         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
5216         target-def.h include.
5217         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
5219 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5221         * Makefile.in (TARGET_DEF): Add target-insns.def.
5222         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
5223         (build/gentarget-def.o): New rule.
5224         (genprogrtl): Add target-def.
5225         * target-insns.def, gentarget-def.c: New files.
5226         * target.def: Add targetm.have_* and targetm.gen_* hooks,
5227         based on the contents of target-insns.def.
5228         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
5229         (HAVE_return, gen_return): Delete.
5230         * target-def.h: Include insn-target-def.h.
5231         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
5232         instead of direct calls.  Rely on them to do the appropriate assertions.
5233         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
5234         (convert_jumps_to_returns): Use targetm interface instead of
5235         direct calls.
5236         (thread_prologue_and_epilogue_insns): Likewise.
5237         * reorg.c (find_end_label, dbr_schedule): Likewise.
5238         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
5239         * shrink-wrap.c (convert_to_simple_return): Likewise.
5240         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
5242 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5244         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
5245         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5246         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
5247         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
5248         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
5249         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
5250         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
5251         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
5252         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
5253         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
5254         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
5255         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
5256         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
5257         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
5258         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
5259         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
5260         includes to end.
5262 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5264         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
5265         (unbounded_int_hashmap_traits::key_type): Likewise.
5266         * hash-map.h (hash_map): Get the key type from the traits.
5267         * hash-traits.h (default_hash_traits): By default, inherit from the
5268         template parameter.
5269         * alias.c (alias_set_traits): Delete.
5270         (alias_set_entry_d::children): Use alias_set_hash as the first
5271         template parameter.
5272         (record_alias_subset): Update accordingly.
5273         * except.c (tree_hash_traits): Delete.
5274         (type_to_runtime_map): Use tree_hash as the first template parameter.
5275         (init_eh): Update accordingly.
5276         * genmatch.c (capture_id_map_hasher): Delete.
5277         (cid_map_t): Use nofree_string_hash as first template parameter.
5278         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
5279         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
5280         Use symbol_compare_hash as the first template parameter in
5281         subdivide_hash_map.
5282         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
5283         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
5284         template parameter.
5285         * passes.c (pass_registry_hasher): Delete.
5286         (name_to_pass_map): Use nofree_string_hash as the first template
5287         parameter.
5288         (register_pass_name): Update accordingly.
5289         * sanopt.c (sanopt_tree_map_traits): Delete.
5290         (sanopt_tree_triplet_map_traits): Delete.
5291         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
5292         template parameter.
5293         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
5294         the first template parameter.
5295         * sese.c (rename_map_hasher): Delete.
5296         (rename_map_type): Use tree_ssa_name_hash as the first template
5297         parameter.
5298         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
5299         (function_summary::m_map): Use map_hash as the first template
5300         parameter.
5301         (function_summary::release): Update accordingly.
5302         * tree-if-conv.c (phi_args_hash_traits): Delete.
5303         (predicate_scalar_phi): Use tree_operand_hash as the first template
5304         parameter to phi_arg_map.
5305         * tree-inline.h (dependence_hasher): Delete.
5306         (copy_body_data::dependence_map): Use dependence_hash as the first
5307         template parameter.
5308         * tree-inline.c (remap_dependence_clique): Update accordingly.
5309         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
5310         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
5311         parameter.
5312         (addr_stridxptr): Update accordingly.
5313         * value-prof.c (profile_id_traits): Delete.
5314         (cgraph_node_map): Use profile_id_hash as the first template
5315         parameter.
5316         (init_node_map): Update accordingly.
5317         * config/alpha/alpha.c (string_traits): Delete.
5318         (machine_function::links): Use nofree_string_hash as the first
5319         template parameter.
5320         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
5321         * config/m32c/m32c.c (pragma_traits): Delete.
5322         (pragma_htab): Use nofree_string_hash as the first template parameter.
5323         (m32c_note_pragma_address): Update accordingly.
5324         * config/mep/mep.c (pragma_traits): Delete.
5325         (pragma_htab): Use nofree_string_hash as the first template parameter.
5326         (mep_note_pragma_flag): Update accordingly.
5327         * config/mips/mips.c (mips16_flip_traits): Delete.
5328         (mflip_mips16_htab): Use nofree_string_hash as the first template
5329         parameter.
5330         (mflip_mips16_use_mips16_p): Update accordingly.
5331         (local_alias_traits): Delete.
5332         (mips16_local_aliases): Use nofree_string_hash as the first template
5333         parameter.
5334         (mips16_local_alias): Update accordingly.
5336 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5338         * hash-map-traits.h (default_hashmap_traits): Delete.
5340 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5342         * hash-map-traits.h (unbounded_hashmap_traits): New class.
5343         (unbounded_int_hashmap_traits): Likewise.
5344         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
5346 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5348         * ipa-icf.h (symbol_compare_hash): New class.
5349         (symbol_compare_hashmap_traits): Use it.
5350         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
5351         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
5352         (mem_alloc_description::reverse_mem_map_t): Remove redundant
5353         default_hashmap_traits.
5354         * sanopt.c (sanopt_tree_triplet_hash): New class.
5355         (sanopt_tree_triplet_map_traits): Use it.
5357 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5359         * gengtype-parse.c (require_template_declaration): Allow '+' in
5360         template parameters.  Consolidate cases.
5361         * hash-traits.h (int_hash): New class.
5362         * alias.c (alias_set_hash): New structure.
5363         (alias_set_traits): Use it.
5364         * symbol-summary.h (function_summary::map_hash): New class.
5365         (function_summary::summary_hashmap_traits): Use it.
5366         * tree-inline.h (dependence_hash): New class.
5367         (dependence_hasher): Use it.
5368         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
5369         * value-prof.c (profile_id_hash): New class.
5370         (profile_id_traits): Use it.
5372 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5374         * config/mips/mips.c (mips16_flip_traits): Use it.
5375         (local_alias_traits, mips16_local_aliases): Convert from a map of
5376         rtxes to a map of symbol names.
5377         (mips16_local_alias): Update accordingly.
5379 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5381         * hash-traits.h (string_hash, nofree_string_hash): New classes.
5382         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
5383         * passes.c (pass_registry_hasher): Likewise.
5384         * config/alpha/alpha.c (string_traits): Likewise.
5385         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
5386         * config/m32c/m32c.c (pragma_traits): Likewise.
5387         * config/mep/mep.c (pragma_traits): Likewise.
5389 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5391         * tree-hash-traits.h (tree_hash): New class.
5392         * except.c: Include tree-hash-traits.h.
5393         (tree_hash_traits): Use tree_hash.
5395 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5397         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
5398         * sese.c: Include tree-hash-traits.h.
5399         (rename_map_hasher): Use tree_ssa_name_hasher.
5401 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5403         * tree-hash-traits.h (tree_decl_hash): New class.
5404         * tree-ssa-strlen.c: Include tree-hash-traits.h.
5405         (stridxlist_hash_traits): Use tree_decl_hash.
5407 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5409         * tree-hash-traits.h: New file.
5410         (tree_operand_hash): New class.
5411         * sanopt.c: Include tree-hash-traits.h.
5412         (sanopt_tree_map_traits): Use tree_operand_hash.
5413         * tree-if-conv.c: Include tree-hash-traits.h.
5414         (phi_args_hash_traits): Use tree_operand_hash.
5415         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
5416         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
5418 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5420         * hash-map-traits.h: Include hash-traits.h.
5421         (simple_hashmap_traits): New class.
5422         * mem-stats.h (hash_map): Change the default traits to
5423         simple_hashmap_traits<default_hash_traits<Key> >.
5425 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5427         * hash-table.h: Update comments.
5429 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5431         * hash-traits.h (default_hash_traits): New structure.
5432         * hash-set.h (default_hashset_traits): Delete.
5433         (hash_set): Use default_hash_traits<Key> instead of
5434         default_hashset_traits.  Delete hash_entry type and use Key directly.
5435         * ipa-devirt.c (pair_traits): Delete.
5436         (default_hash_traits <type_pair>): Override.
5437         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
5438         (odr_types_equivalent_p, add_type_duplicate): Likewise.
5440 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5442         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
5444 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5446         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
5447         (has_is_empty, is_empty_helper): Delete.
5448         (has_mark_deleted, mark_deleted_helper): Delete.
5449         (has_mark_empty, mark_empty_helper): Delete.
5450         (hash_table::is_deleted): Call the Descriptor unconditionally.
5451         (hash_table::is_empty): Likewise.
5452         (hash_table::mark_deleted): Likewise.
5453         (hash_table::mark_empty): Likewise.
5455 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5457         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
5458         redundant typedefs and members.
5459         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
5460         redundant typedefs.
5461         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
5462         * ipa-devirt.c (odr_name_hasher): Likewise.
5463         (polymorphic_call_target_hasher): Likewise.
5464         * ira-costs.c (cost_classes_hasher): Likewise.
5465         * statistics.c (stats_counter_hasher): Likewise.
5466         * trans-mem.c (log_entry_hasher): Likewise.
5467         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
5468         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
5469         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
5470         * var-tracking.c (variable_hasher): Likewise.
5471         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
5472         Remove redundant typedefs and members.
5474 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5476         * hash-traits.h (ggc_cache_hasher): Rename to...
5477         (ggc_cache_remove): ...this and remove typedefs.
5478         (ggc_cache_ptr_hash): New class.
5479         * hash-table.h: Update commentary.
5480         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
5481         rather than ggc_cache_hasher.
5482         (const_wide_int_hasher, reg_attr_hasher): Likewise.
5483         (const_double_hasher, const_fixed_hasher): Likewise.
5484         * function.c (insn_cache_hasher): Likewise.
5485         * trans-mem.c (tm_wrapper_hasher): Likewise.
5486         * tree.h (tree_decl_map_cache_hasher): Likewise.
5487         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
5488         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
5489         * ubsan.c (tree_type_map_cache_hasher): Likewise.
5490         * varasm.c (tm_clone_hasher): Likewise.
5491         * config/i386/i386.c (dllimport_hasher): Likewise.
5492         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
5493         (tree_hasher): Likewise.
5495 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5497         * hash-traits.h (ggc_hasher): Rename to...
5498         (ggc_remover): ...this and remove typedefs.
5499         (ggc_cache_hasher): Update accordingly.  Add typedefs.
5500         (ggc_ptr_hash): New class.
5501         * hash-table.h: Update comment.
5502         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
5503         ggc_hasher.
5504         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
5505         (tree_descriptor_hasher): Likewise.
5506         * cgraph.c (function_version_hasher): Likewise.
5507         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
5508         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
5509         (dw_loc_list_hasher, addr_hasher): Likewise.
5510         * function.h (used_type_hasher): Likewise.
5511         * function.c (temp_address_hasher): Likewise.
5512         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
5513         * libfuncs.h (libfunc_hasher): Likewise.
5514         * lto-streamer.h (decl_state_hasher): Likewise.
5515         * optabs.c (libfunc_decl_hasher): Likewise.
5516         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
5517         * varasm.c (section_hasher, object_block_hasher): Likewise.
5518         (const_rtx_desc_hasher): Likewise.
5519         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
5520         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
5522 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5524         * hash-traits.h (free_ptr_hash): New class.
5525         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
5526         rather than typed_free_remove.  Remove redudant typedefs.
5527         (external_ref_hasher): Likewise.
5528         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
5529         (ehspec_hasher): Likewise.
5530         * ggc-common.c (saving_hasher): Likewise.
5531         * gimplify.c (gimplify_hasher): Likewise.
5532         * haifa-sched.c (delay_i2_hasher): Likewise.
5533         * loop-invariant.c (invariant_expr_hasher): Likewise.
5534         * loop-iv.c (biv_entry_hasher): Likewise.
5535         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
5536         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
5537         * tree-cfg.c (locus_discrim_hasher): Likewise.
5538         * tree-eh.c (finally_tree_hasher): Likewise.
5539         * tree-into-ssa.c (var_info_hasher): Likewise.
5540         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
5541         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
5542         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
5543         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
5544         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
5545         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
5546         (shared_bitmap_hasher): Likewise.
5547         * tree-ssa-threadupdate.c (redirection_data): Likewise.
5548         * tree-vectorizer.h (peel_info_hasher): Likewise.
5549         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
5550         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
5552 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5554         * hash-table.h: Update comments.
5555         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
5556         (nofree_ptr_hash): New class.
5557         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
5558         than typed_noop_remove.  Remove redudant typedefs.
5559         * attribs.c (attribute_hasher): Likewise.
5560         * cfg.c (bb_copy_hasher): Likewise.
5561         * cselib.c (cselib_hasher): Likewise.
5562         * dse.c (invariant_group_base_hasher): Likewise.
5563         * dwarf2cfi.c (trace_info_hasher): Likewise.
5564         * dwarf2out.c (macinfo_entry_hasher): Likewise.
5565         (comdat_type_hasher, loc_list_hasher): Likewise.
5566         * gcse.c (pre_ldst_expr_hasher): Likewise.
5567         * genmatch.c (id_base): Likewise.
5568         * genrecog.c (test_pattern_hasher): Likewise.
5569         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
5570         * haifa-sched.c (delay_i1_hasher): Likewise.
5571         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
5572         * ipa-icf.h (congruence_class_group_hash): Likewise.
5573         * ipa-profile.c (histogram_hash): Likewise.
5574         * ira-color.c (allocno_hard_regs_hasher): Likewise.
5575         * lto-streamer.h (string_slot_hasher): Likewise.
5576         * lto-streamer.c (tree_entry_hasher): Likewise.
5577         * plugin.c (event_hasher): Likewise.
5578         * postreload-gcse.c (expr_hasher): Likewise.
5579         * store-motion.c (st_expr_hasher): Likewise.
5580         * tree-sra.c (uid_decl_hasher): Likewise.
5581         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
5582         (ssa_name_var_hash): Likewise.
5583         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
5584         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
5585         * tree-ssa-pre.c (pre_expr_d): Likewise.
5586         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
5587         * vtable-verify.h (registration_hasher): Likewise.
5588         * vtable-verify.c (vtbl_map_hasher): Likewise.
5589         * config/arm/arm.c (libcall_hasher): Likewise.
5590         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
5591         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
5592         * config/sol2.c (comdat_entry_hasher): Likewise.
5593         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
5594         (print_fold_checksum, fold_checksum_tree): Likewise.
5595         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
5596         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
5597         (fold_build_call_array_loc): Likewise.
5598         * tree-ssa-ccp.c (gimple_htab): Likewise.
5599         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
5600         rather than pointer_type.
5602 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5604         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
5605         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
5607 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5609         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
5610         (ggc_hasher::ggc_mx): Likewise.
5611         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
5612         that duplicate ggc_hasher ones.
5614 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5616         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
5617         (gt_cleare_cache): Check here for deleted and empty entries.
5618         Replace handle_cache_entry with a call to keep_cache_entry.
5619         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
5620         (ggc_cache_hasher::keep_cache_entry): New function.
5621         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
5622         (tm_wrapper_hasher::keep_cache_entry): New function.
5623         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
5624         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
5625         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
5626         (type_cache_hasher::keep_cache_entry): New function.
5627         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
5628         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
5629         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
5630         (tree_type_map_cache_hasher::keep_cache_entry): New function.
5631         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
5632         (tm_clone_hasher::keep_cache_entry): New function.
5633         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
5634         (dllimport_hasher::keep_cache_entry): New function.
5636 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5638         * hash-table.h: Include hash-traits.h.
5639         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
5640         (ggc_cache_hasher): Move to...
5641         * hash-traits.h: ...this new file.
5643 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5645         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
5646         struct cl_optimization.
5647         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
5648         * tree.c (make_node_stat): Allocate cl_optimization struct.
5649         (copy_node_stat): Allocate and copy cl_optimization struct.
5651 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5653         * function.h (struct incoming_args): Move struct.
5654         (pass_by_reference, reference_callee_copied): Remove prototypes.
5655         * emit-rtl.h (struct incoming_args): Relocate struct here.
5656         * calls.h (pass_by_reference, reference_callee_copied): Relocate
5657         prototypes here.
5658         * function.c (pass_by_reference, reference_callee_copied): Move.
5659         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
5660         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
5661         * ipa-chkp.c: Include calls.h.
5663 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
5665         * alias.h (alias_set_type): Move typedef.
5666         * coretypes.h (alias_set_type): Relocate typedef here.
5667         * rtl.h: Don't include alias.h.
5669 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5671         * cgraph.h (cgraph_rtl_info): Move to rtl.h
5672         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
5673         and instance.
5674         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
5675         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
5676         doesn't exist.
5677         * calls.c: Include hard-reg-set.h before rtl.h.
5678         * ira.c: Likewise.
5680 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
5681             Vladimir Makarov  <vmakarov@redhat.com>
5683         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
5684         Add assert.
5686 2015-06-25  Richard Biener  <rguenther@suse.de>
5688         * fold-const.c (fold_binary_loc): Move simplification of
5689         (X <<>> C1) & C2 ...
5690         * match.pd: ... here.
5692 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
5694         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
5696 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5698         * match.pd: Add patterns for vec_conds between 1 and 0.
5700 2015-06-25  Richard Biener  <rguenther@suse.de>
5702         * tree-vect-stmts.c (vectorizable_conversion): Do not set
5703         STMT_VINFO_VEC_STMT for SLP.
5704         (vectorizable_store): Likewise.
5705         (vectorizable_load): Likewise.
5706         (vect_transform_stmt): Catch SLP vectorization clobbering
5707         STMT_VINFO_VEC_STMT.
5709 2015-06-25  Richard Biener  <rguenther@suse.de>
5711         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
5712         dumping.
5713         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
5714         cleanup resulting dead code and parameters.
5715         (vect_transform_slp_perm_load): Adjust.
5717 2015-06-25  Nick Clifton  <nickc@redhat.com>
5719         * config/bfin/bfin.c (bfin_expand_prologue): Set
5720         current_function_static_stack_size if flag_stack_usage_info is set.
5721         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5722         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
5723         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5724         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
5726 2015-06-25  Tom de Vries  <tom@codesourcery.com>
5728         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
5729         comment that the generated IV is unsigned.
5731 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5733         PR target/29693
5734         * config/arm/arm.c (arm_dbx_register_number): Return
5735         DWARF_FRAME_REGISTERS by default.
5737 2015-06-25  Tom de Vries  <tom@codesourcery.com>
5739         * dominance.c (calculate_dominance_info): Fix verify_dominators call
5740         argument.  Call verify_dominator when reusing dominator info.
5742 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
5744         PR target/66563
5745         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
5746         an additional element of the unspec vector.  Modify indices
5747         of operands.
5748         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
5749         * config/sh/sh.c (prepare_move_operands): Pass incremented
5750         const_int to gen_GOTaddr2picreg.
5751         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
5753 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
5755         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
5756         Condition on TARGET_FLOAT.
5758 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
5760         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
5761         and (no)crypto.
5763 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
5765         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
5767         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
5768         aarch64_err_no_fpadvsimd.
5770         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
5771         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
5772         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
5773         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
5774         Turn error into assert, test TARGET_FLOAT.
5775         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
5776         TARGET_FLOAT.
5778 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
5780         PR debug/66482
5781         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
5783 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
5785         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
5787 2015-06-24 Renlin Li <renlin.li@arm.com>
5789         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
5790         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
5792 2015-06-24  Richard Biener  <rguenther@suse.de>
5794         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
5795         (main): Likewise.
5796         (lower_opt_convert): Support lowering of conditional view_convert.
5797         (parser::parse_operation): Likewise.
5798         (parser::parse_for): Likewise.
5800 2015-06-24  Renlin Li  <renlin.li@arm.com>
5802         * varasm.c (emit_local): Use unsigned int for align variable.
5804 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5806         PR target/63408
5807         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
5808         for negative numbers.
5810 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5812         PR rtl-optimization/66306
5813         * reload.c (find_reloads): Swap the match_dup info for
5814         commutative operands.
5816 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5818         * config/s390/vx-builtins.md
5819         ("vec_scatter_element<mode>_<non_vec_int>")
5820         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
5821         attribute with bhfgq.
5823 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5825         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
5827 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5829         * config/s390/s390-builtin-types.def: Add flag to indicate the
5830         options under which the function type is needed.
5831         * config/s390/s390-builtins.def: Add flag to indicate the options
5832         under which the builtin is enabled.
5833         * config/s390/s390-builtins.h: Add flags parameter to macro
5834         definitions.
5835         (bflags_for_builtin): New function.
5836         (flags_for_builtin): Renamed to ...
5837         (opflags_for_builtin): ... this.
5838         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
5839         flags_for_builtin to bflags_for_builtin and
5840         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
5841         * config/s390/s390.c: Add initialization of bflags_builtin and
5842         opflags_builtin arrays.
5843         Remove code for flags_builtin.
5844         (s390_init_builtins): Only create builtin function types if one of
5845         their flags is active.
5846         Only create builtins if all of their flags are active.
5847         (s390_expand_builtin): Rename flags_for_builtin to
5848         opflags_for_builtin.
5850 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5852         * config/s390/vecintrin.h: Remove internal builtins.
5854 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5856         * config/s390/s390.c (s390_secondary_reload): Fix check for
5857         GENERAL_REGS register class.
5859 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5861         * config/s390/s390.c (s390_support_vector_misalignment): Call
5862         default implementation for !TARGET_VX.
5864 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5866         * config/s390/s390.c (s390_legitimate_constant_p): Add
5867         TARGET_VX check.
5869 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5871         * config/s390/s390.c (s390_vector_abi): New variable definition.
5872         (s390_check_type_for_vector_abi): New function.
5873         (TARGET_ASM_FILE_END): New macro definition.
5874         (s390_asm_file_end): New function.
5875         (s390_function_arg): Call s390_check_type_for_vector_abi.
5876         (s390_gimplify_va_arg): Likewise.
5877         * configure: Regenerate.
5878         * configure.ac: Check for .gnu_attribute Binutils feature.
5880 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
5882         PR target/65803
5883         * config/bfin/bfin.c (hwloop_optimize): Initialize
5884         JUMP_LABEL for newly created jump.
5886 2015-06-23  Tristan Gingold  <gingold@adacore.com>
5888         * collect-utils.c (collect_wait): Unlink the response file here
5889         instead of...
5890         (do_wait): ...here.
5891         (utils_cleanup): ...and here.
5893 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
5895         * df-scan.c: Don't include target-def.h.
5896         * targhooks.c: Likewise.
5897         * config/arm/arm-c.c: Likewise.
5898         * config/i386/i386-c.c: Likewise.
5899         * config/nds32/nds32-cost.c: Likewise.
5900         * config/nds32/nds32-fp-as-gp.c: Likewise.
5901         * config/nds32/nds32-intrinsic.c: Likewise.
5902         * config/nds32/nds32-isr.c: Likewise.
5903         * config/nds32/nds32-md-auxiliary.c: Likewise.
5904         * config/nds32/nds32-memory-manipulation.c: Likewise.
5905         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5906         * config/nds32/nds32-predicates.c: Likewise.
5908 2015-06-23  Richard Biener  <rguenther@suse.de>
5910         PR tree-optimization/66636
5911         * tree-vect-stmts.c (vectorizable_store): Properly compute the
5912         def type for further defs for strided stores.
5914 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
5916         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
5917         conditional selects.
5918         (setcc_int<mode>, setcc_float<mode>): Reformat.
5920 2015-06-23  Marek Polacek  <polacek@redhat.com>
5922         * match.pd ((x + y) - (x | y) -> x & y,
5923         (x + y) - (x & y) -> x | y): New patterns.
5925 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
5927         PR 65711
5928         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
5929         '-dynamic-linker' within %{!shared: ...}.
5931 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
5933         PR target/66560
5934         * config/i386/predicates.md (addsub_vm_operator): New predicate.
5935         (addsub_vs_operator): Ditto.
5936         (addsub_vs_parallel): Ditto.
5937         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
5938         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
5939         Put minus RTX before plus and adjust vec_merge selector.
5940         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
5941         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
5942         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
5943         (addsub vec_merge splitters): New combiner splitters.
5944         (addsub vec_select/vec_concat splitters): Ditto.
5946 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
5948         PR tree-optimization/66449
5949         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
5950         POINTER_PLUS_EXPR for pointers.
5952 2015-06-23  Alan Modra  <amodra@gmail.com>
5954         * rtlanal.c (commutative_operand_precedence): Correct comments.
5955         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
5956         declaration.  Return an int.  Distinguish REG,REG return from
5957         others.
5958         (struct simplify_plus_minus_op_data): Make local to function.
5959         (simplify_plus_minus): Don't set canonicalized if merely sorting
5960         registers.  Avoid packing ops if nothing changes.  White space fixes.
5962 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
5964         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
5965         -fdump-ada-spec is passed but not if -fsyntax-only is.
5967 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
5969         PR bootstrap/63740
5970         * lra-lives.c (process_bb_lives): Check insn copying the same
5971         reload pseudo and don't create a copy for it.
5973 2015-06-22  Tom de Vries  <tom@codesourcery.com>
5975         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
5976         for cond_stmt.
5978 2015-06-22  Tom de Vries  <tom@codesourcery.com>
5980         * builtins.def (DEF_GOMP_BUILTIN): Test
5981         'flag_tree_parallelize_loops > 1' instead of
5982         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
5984 2015-06-22  Tom de Vries  <tom@codesourcery.com>
5986         * dominance.c (calculate_dominance_info): Verify dominators if
5987         early-out.
5989 2015-06-22  Marek Polacek  <polacek@redhat.com>
5991         * match.pd ((x ^ y) ^ (x | y) -> x & y,
5992         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
5993         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
5994         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
5996 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
5998         PR target/65871
5999         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
6000         cost of embedded comparison.
6002 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6004         PR target/65914
6005         * config/rs6000/predicates.md (altivec_register_operand): Permit
6006         virtual stack registers.
6007         (vsx_register_operand): Likewise.
6008         (vfloat_operand): Likewise.
6009         (vint_operand): Likewise.
6010         (vlogical_operand): Likewise.
6012 2015-06-22  Richard Biener  <rguenther@suse.de>
6014         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
6015         and single_scalar_iteration_cost members.
6016         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
6017         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
6018         (vect_get_single_scalar_iteration_cost): Remove.
6019         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
6020         Use LOOP_VINFO_SCALAR_ITERATION_COST.
6021         * tree-vect-loop.c (destroy_loop_vec_info): Free
6022         scalar_cost_vec.
6023         (vect_get_single_scalar_iteration_cost): Compute result into
6024         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
6025         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
6026         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
6027         (vect_estimate_min_profitable_iters): Use them.
6029 2015-06-22  Christian Bruel  <christian.bruel@st.com>
6031         PR target/52144
6032         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
6033         (TARGET_INSERT_ATTRIBUTES): Define.
6034         (thumb_flipper): New var.
6035         * config/arm/arm.opt (-mflip-thumb): New switch.
6037 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
6038             Martin Liska  <mliska@suse.cz>
6040         PR ipa/65908
6041         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
6042         construction of arg_types.
6043         (sem_function::sem_function): Likewise.
6044         (sem_function::~sem_function): Remove destruction of arg_types.
6045         (sem_function::compatible_parm_types_p): New function.
6046         (sem_function::equals_wpa): Reorg matching of return values
6047         and parameter types.
6048         (sem_function::equals_private): Reorg mathcing of argument types.
6049         (sem_function::parse_tree_args): Remove.
6050         * ipa-icf.h (init_wpa): Do not call it.
6051         (parse_tree_args): Remove.
6052         (compatible_parm_types_p): Declare.
6053         (result_type): Remove.
6054         (arg_types): Remove.
6056 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
6058         PR ipa/66351
6059         * ipa-polymorphic-call.c
6060         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
6061         initializing alias oracle; fix formating; set base_alias_set if it
6062         is known.
6064 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
6066         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
6067         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
6068         (find_inc): Likewise.
6069         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
6070         swapping.
6071         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
6072         * df-scan.c (df_swap_refs): Remove.
6073         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
6074         * dominance.c (link_roots): Use std::swap instead of manually swapping.
6075         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
6076         * fold-const.c (fold_relational_const): Likewise.
6077         * genattrtab.c (simplify_test_exp): Likewise.
6078         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
6079         gimple_simplify): Likewise.
6080         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
6081         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
6082         * ipa-devirt.c (add_type_duplicate): Likewise.
6083         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
6084         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
6085         * lra.c (lra_create_copy): Likewise.
6086         * lto-streamer-out.c (DFS::DFS): Likewise.
6087         * modulo-sched.c (get_sched_window): Likewise.
6088         * omega.c (omega_pretty_print_problem): Likewise.
6089         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
6090         * reload1.c (reloads_unique_chain_p): Likewise.
6091         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
6092         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
6093         use std::swap.
6094         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
6095         manually swapping.
6096         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
6097         predicate_mem_writes): Likewise.
6098         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
6099         * tree-predcom.c (combine_chains): Likewise.
6100         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
6101         refs_may_alias_p_1): Likewise.
6102         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
6103         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
6104         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
6105         number_of_iterations_cond): Likewise.
6106         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6107         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6108         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6109         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
6110         * tree-vrp.c (extract_range_from_binary_expr_1,
6111         extract_range_from_unary_expr_1): Likewise.
6113 2015-06-20  Marek Polacek  <polacek@redhat.com>
6115         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
6117 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6119         PR target/66591
6120         * config/sh/sh.c (prepare_move_operands): Replace subreg
6121         index term with R0 for base and index addressing.
6123 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
6125         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
6126         op1 is an fp zero.
6127         (movsf_aarch64): Change condition from register_operand to
6128         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
6129         load1.  Change type for alternative 7 to store1.
6130         (movdf_aarch64): Likewise.
6132 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
6134         * config/vax/vax.md: Adjust sign/zero extend patterns to
6135         handle SUBREGs in operands[1].
6137 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6139         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
6140         of manually swapping.
6141         (expand_vec_perm_interleave2): Likewise.
6143 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
6145         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
6146         reuse bounds created for abnormal ssa names.
6148 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
6150         * config/nvptx/nvptx.md (allocate_stack): Rename to...
6151         (allocate_stack_<mode>): ... this, and add :P on both
6152         match_operand and unspec.
6153         (allocate_stack): New expander.
6155 2015-06-19  Christian Bruel  <christian.bruel@st.com>
6157         PR target/66541
6158         PR target/52144
6159         * config/arm/arm.c (arm_set_current_function): Handle
6160         explicit default options.
6162 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
6164         * config/i386/i386.md (*movsicc_noc_zext): New insn.
6165         (zero-extended cmove with mem peephole2): New pattern.
6166         (cmove with mem peephole2): Merge patterns.
6168 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
6170         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
6172 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
6174         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
6175         * config/mips/mips.md (*madd4<mode>): Ditto.
6176         (*nmadd3<mode>) Ditto.
6177         (*nmadd4<mode>_fastmath): Ditto.
6178         (*nmadd3<mode>_fastmath): Ditto.
6179         (*nmsub4<mode>): Ditto.
6180         (*nmsub3<mode>): Ditto.
6181         (*nmsub4<mode>_fastmath): Ditto.
6182         (*nmsub3<mode>_fastmath): Ditto.
6184 2015-06-18  Michael Matz  <matz@suse.de>
6186         PR middle-end/66253
6187         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
6188         grouped strided stores.
6189         (vectorizable_load): Don't use the DR from first_stmt in
6190         the non-SLP grouped strided case.
6192 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
6194         PR target/66569
6195         * function.c (assign_bounds): Add arguments assign_regs,
6196         assign_special, assign_bt.
6197         (assign_parms): For vararg functions handle bounds in BT
6198         and special slots after incoming vararg bounds.
6200 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
6202         PR middle-end/66568
6203         * cfgexpand.c (expand_return): Handle missing bounds.
6204         (expand_gimple_stmt_1): Likewise.
6205         * tree-chkp.c (chkp_expand_zero_bounds): New.
6206         * tree-chkp.h (chkp_expand_zero_bounds): New.
6208 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
6210         PR middle-end/66567
6211         * ipa-chkp.c (chkp_maybe_create_clone): Require
6212         functions to be instrumentable.
6213         * tree-chkp.c (chkp_replace_function_pointer): Use
6214         chkp_instrumentable_p instead of attribute check.
6216 2015-06-18  Richard Biener  <rguenther@suse.de>
6218         PR tree-optimization/66510
6219         * tree-vect-stmts.c (vectorizable_load): Properly compute the
6220         number of vector loads for SLP permuted loads.
6221         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
6222         check the stride for loop vectorization.
6223         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
6224         vectorization factor.
6225         (vect_analyze_group_access): If the group size is not a power
6226         of two require a epilogue loop.
6227         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
6228         compute and optimizing and alias test pruning after final
6229         vectorization factor computation.
6230         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
6231         vector alignment.
6232         (vect_transform_slp_perm_load): Properly compute the original
6233         number of vector load stmts.
6235 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
6237         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
6238         "unlikely character , in @var" warning.
6240 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
6242         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
6243         (ix86_function_arg_advance): Ditto.
6244         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
6246 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
6248         * function.h (struct rtl_data): Remove struct and accessor macros.
6249         * emit-rtl.h (struct rtl_data): Relocate to here.
6250         * Makefile.in (GTFILES): Add emit-rtl.h.
6251         * df-core.c: Include emit-rtl.h.
6252         * genattrtab.c: Likewise.
6253         * genconditions.c: Likewise.
6254         * genpreds.c: Likewise.
6255         * genrecog.c: Likewise.
6256         * regcprop.c: Likewise.
6257         * resource.c: Likewise.
6258         * sched-rgn.c: Likewise.
6259         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6260         * config/i386/winnt.c: Likewise.
6262 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
6264         PR middle-end/66429
6265         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
6266         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
6267         and has_force_vectorize_loops flags from cfun into
6268         child_cfun.
6269         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
6270         if simduid is non-NULL.
6271         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
6272         * passes.def (pass_simduid_cleanup): Add new pass after loop
6273         passes.
6274         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
6275         indirection from htab argument's type.
6276         (shrink_simd_arrays): New function.
6277         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
6278         Don't call adjust_simduid_builtins if there are no loops.
6279         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
6280         (pass_simduid_cleanup::execute): New method.
6281         (make_pass_simduid_cleanup): New function.
6283 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
6285         * tree-core.h (tree_target_option): Make opts field a pointer to a
6286         cl_target_option instead of an instance of the struct.
6287         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
6288         the structure.
6289         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
6290         TARGET_OPTION_NODE.
6291         (copy_node_stat): Allocate and copy struct cl_target_option.
6293 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
6295         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
6296         Remove conditional exposure of prototypes.
6297         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
6298         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
6299         definitions in tree.h with functions.
6300         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
6301         anon_aggrname_p.
6302         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
6304 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
6306         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
6307         (*cmp<mode>_signed): ... this.
6308         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
6309         (*cmp<mode>_unsigned): ... this.  Remove %b.
6311 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
6313         * coretypes.h: Include input.h and as-a.h.
6314         * rtl.h: Include input.h and as-a.h for generator files.
6315         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
6316         * vec.c: Don't include diagnostic-core.h.
6317         * alias.c: Do not include input.h, line-map.h or is-a.h.
6318         * asan.c: Likewise.
6319         * attribs.c: Likewise.
6320         * auto-inc-dec.c: Likewise.
6321         * auto-profile.c: Likewise.
6322         * bb-reorder.c: Likewise.
6323         * bt-load.c: Likewise.
6324         * builtins.c: Likewise.
6325         * caller-save.c: Likewise.
6326         * calls.c: Likewise.
6327         * ccmp.c: Likewise.
6328         * cfg.c: Likewise.
6329         * cfganal.c: Likewise.
6330         * cfgbuild.c: Likewise.
6331         * cfgcleanup.c: Likewise.
6332         * cfgexpand.c: Likewise.
6333         * cfghooks.c: Likewise.
6334         * cfgloop.c: Likewise.
6335         * cfgloop.h: Likewise.
6336         * cfgloopanal.c: Likewise.
6337         * cfgloopmanip.c: Likewise.
6338         * cfgrtl.c: Likewise.
6339         * cgraph.c: Likewise.
6340         * cgraphbuild.c: Likewise.
6341         * cgraphclones.c: Likewise.
6342         * cgraphunit.c: Likewise.
6343         * cilk-common.c: Likewise.
6344         * combine-stack-adj.c: Likewise.
6345         * combine.c: Likewise.
6346         * compare-elim.c: Likewise.
6347         * convert.c: Likewise.
6348         * coverage.c: Likewise.
6349         * cppbuiltin.c: Likewise.
6350         * cprop.c: Likewise.
6351         * cse.c: Likewise.
6352         * cselib.c: Likewise.
6353         * data-streamer-in.c: Likewise.
6354         * data-streamer-out.c: Likewise.
6355         * data-streamer.c: Likewise.
6356         * dbxout.c: Likewise.
6357         * dce.c: Likewise.
6358         * ddg.c: Likewise.
6359         * debug.c: Likewise.
6360         * df-core.c: Likewise.
6361         * df-problems.c: Likewise.
6362         * df-scan.c: Likewise.
6363         * df.h: Likewise.
6364         * dfp.c: Likewise.
6365         * diagnostic-core.h: Likewise.
6366         * diagnostic.c: Likewise.
6367         * dojump.c: Likewise.
6368         * dominance.c: Likewise.
6369         * domwalk.c: Likewise.
6370         * double-int.c: Likewise.
6371         * dse.c: Likewise.
6372         * dumpfile.c: Likewise.
6373         * dumpfile.h: Likewise.
6374         * dwarf2asm.c: Likewise.
6375         * dwarf2cfi.c: Likewise.
6376         * dwarf2out.c: Likewise.
6377         * emit-rtl.c: Likewise.
6378         * et-forest.c: Likewise.
6379         * except.c: Likewise.
6380         * explow.c: Likewise.
6381         * expmed.c: Likewise.
6382         * expr.c: Likewise.
6383         * final.c: Likewise.
6384         * fixed-value.c: Likewise.
6385         * fold-const.c: Likewise.
6386         * function.c: Likewise.
6387         * fwprop.c: Likewise.
6388         * gcc-plugin.h: Likewise.
6389         * gcse.c: Likewise.
6390         * generic-match-head.c: Likewise.
6391         * ggc-page.c: Likewise.
6392         * gimple-builder.c: Likewise.
6393         * gimple-expr.c: Likewise.
6394         * gimple-fold.c: Likewise.
6395         * gimple-iterator.c: Likewise.
6396         * gimple-low.c: Likewise.
6397         * gimple-match-head.c: Likewise.
6398         * gimple-pretty-print.c: Likewise.
6399         * gimple-ssa-isolate-paths.c: Likewise.
6400         * gimple-ssa-strength-reduction.c: Likewise.
6401         * gimple-streamer-in.c: Likewise.
6402         * gimple-streamer-out.c: Likewise.
6403         * gimple-streamer.h: Likewise.
6404         * gimple-walk.c: Likewise.
6405         * gimple.c: Likewise.
6406         * gimplify-me.c: Likewise.
6407         * gimplify.c: Likewise.
6408         * godump.c: Likewise.
6409         * graph.c: Likewise.
6410         * graphite-blocking.c: Likewise.
6411         * graphite-dependences.c: Likewise.
6412         * graphite-interchange.c: Likewise.
6413         * graphite-isl-ast-to-gimple.c: Likewise.
6414         * graphite-optimize-isl.c: Likewise.
6415         * graphite-poly.c: Likewise.
6416         * graphite-scop-detection.c: Likewise.
6417         * graphite-sese-to-poly.c: Likewise.
6418         * graphite.c: Likewise.
6419         * haifa-sched.c: Likewise.
6420         * hw-doloop.c: Likewise.
6421         * ifcvt.c: Likewise.
6422         * init-regs.c: Likewise.
6423         * input.c: Likewise.
6424         * internal-fn.c: Likewise.
6425         * ipa-chkp.c: Likewise.
6426         * ipa-comdats.c: Likewise.
6427         * ipa-cp.c: Likewise.
6428         * ipa-devirt.c: Likewise.
6429         * ipa-icf-gimple.c: Likewise.
6430         * ipa-icf.c: Likewise.
6431         * ipa-inline-analysis.c: Likewise.
6432         * ipa-inline-transform.c: Likewise.
6433         * ipa-inline.c: Likewise.
6434         * ipa-polymorphic-call.c: Likewise.
6435         * ipa-profile.c: Likewise.
6436         * ipa-prop.c: Likewise.
6437         * ipa-pure-const.c: Likewise.
6438         * ipa-ref.c: Likewise.
6439         * ipa-reference.c: Likewise.
6440         * ipa-split.c: Likewise.
6441         * ipa-utils.c: Likewise.
6442         * ipa-visibility.c: Likewise.
6443         * ipa.c: Likewise.
6444         * ira-build.c: Likewise.
6445         * ira-color.c: Likewise.
6446         * ira-conflicts.c: Likewise.
6447         * ira-costs.c: Likewise.
6448         * ira-emit.c: Likewise.
6449         * ira-lives.c: Likewise.
6450         * ira.c: Likewise.
6451         * jump.c: Likewise.
6452         * langhooks.c: Likewise.
6453         * lcm.c: Likewise.
6454         * loop-doloop.c: Likewise.
6455         * loop-init.c: Likewise.
6456         * loop-invariant.c: Likewise.
6457         * loop-iv.c: Likewise.
6458         * loop-unroll.c: Likewise.
6459         * lower-subreg.c: Likewise.
6460         * lra-assigns.c: Likewise.
6461         * lra-coalesce.c: Likewise.
6462         * lra-constraints.c: Likewise.
6463         * lra-eliminations.c: Likewise.
6464         * lra-lives.c: Likewise.
6465         * lra-remat.c: Likewise.
6466         * lra-spills.c: Likewise.
6467         * lra.c: Likewise.
6468         * lto-cgraph.c: Likewise.
6469         * lto-compress.c: Likewise.
6470         * lto-opts.c: Likewise.
6471         * lto-section-in.c: Likewise.
6472         * lto-section-out.c: Likewise.
6473         * lto-streamer-in.c: Likewise.
6474         * lto-streamer-out.c: Likewise.
6475         * lto-streamer.c: Likewise.
6476         * mcf.c: Likewise.
6477         * mode-switching.c: Likewise.
6478         * modulo-sched.c: Likewise.
6479         * omega.c: Likewise.
6480         * omp-low.c: Likewise.
6481         * optabs.c: Likewise.
6482         * opts-global.c: Likewise.
6483         * opts.h: Likewise.
6484         * passes.c: Likewise.
6485         * plugin.c: Likewise.
6486         * postreload-gcse.c: Likewise.
6487         * postreload.c: Likewise.
6488         * predict.c: Likewise.
6489         * pretty-print.h: Likewise.
6490         * print-rtl.c: Likewise.
6491         * print-tree.c: Likewise.
6492         * profile.c: Likewise.
6493         * real.c: Likewise.
6494         * realmpfr.c: Likewise.
6495         * recog.c: Likewise.
6496         * ree.c: Likewise.
6497         * reg-stack.c: Likewise.
6498         * regcprop.c: Likewise.
6499         * reginfo.c: Likewise.
6500         * regrename.c: Likewise.
6501         * regstat.c: Likewise.
6502         * reload.c: Likewise.
6503         * reload1.c: Likewise.
6504         * reorg.c: Likewise.
6505         * resource.c: Likewise.
6506         * rtl-chkp.c: Likewise.
6507         * rtl-error.c: Likewise.
6508         * rtlanal.c: Likewise.
6509         * rtlhooks.c: Likewise.
6510         * sanopt.c: Likewise.
6511         * sched-deps.c: Likewise.
6512         * sched-ebb.c: Likewise.
6513         * sched-rgn.c: Likewise.
6514         * sched-vis.c: Likewise.
6515         * sdbout.c: Likewise.
6516         * sel-sched-dump.c: Likewise.
6517         * sel-sched-ir.c: Likewise.
6518         * sel-sched.c: Likewise.
6519         * sese.c: Likewise.
6520         * shrink-wrap.c: Likewise.
6521         * simplify-rtx.c: Likewise.
6522         * stack-ptr-mod.c: Likewise.
6523         * statistics.c: Likewise.
6524         * stmt.c: Likewise.
6525         * stor-layout.c: Likewise.
6526         * store-motion.c: Likewise.
6527         * streamer-hooks.c: Likewise.
6528         * stringpool.c: Likewise.
6529         * symtab.c: Likewise.
6530         * target-globals.c: Likewise.
6531         * targhooks.c: Likewise.
6532         * toplev.c: Likewise.
6533         * tracer.c: Likewise.
6534         * trans-mem.c: Likewise.
6535         * tree-affine.c: Likewise.
6536         * tree-browser.c: Likewise.
6537         * tree-call-cdce.c: Likewise.
6538         * tree-cfg.c: Likewise.
6539         * tree-cfgcleanup.c: Likewise.
6540         * tree-chkp-opt.c: Likewise.
6541         * tree-chkp.c: Likewise.
6542         * tree-chrec.c: Likewise.
6543         * tree-complex.c: Likewise.
6544         * tree-data-ref.c: Likewise.
6545         * tree-dfa.c: Likewise.
6546         * tree-diagnostic.c: Likewise.
6547         * tree-dump.c: Likewise.
6548         * tree-eh.c: Likewise.
6549         * tree-emutls.c: Likewise.
6550         * tree-if-conv.c: Likewise.
6551         * tree-inline.c: Likewise.
6552         * tree-into-ssa.c: Likewise.
6553         * tree-iterator.c: Likewise.
6554         * tree-loop-distribution.c: Likewise.
6555         * tree-nested.c: Likewise.
6556         * tree-nrv.c: Likewise.
6557         * tree-object-size.c: Likewise.
6558         * tree-outof-ssa.c: Likewise.
6559         * tree-parloops.c: Likewise.
6560         * tree-phinodes.c: Likewise.
6561         * tree-predcom.c: Likewise.
6562         * tree-pretty-print.c: Likewise.
6563         * tree-profile.c: Likewise.
6564         * tree-scalar-evolution.c: Likewise.
6565         * tree-sra.c: Likewise.
6566         * tree-ssa-address.c: Likewise.
6567         * tree-ssa-alias.c: Likewise.
6568         * tree-ssa-ccp.c: Likewise.
6569         * tree-ssa-coalesce.c: Likewise.
6570         * tree-ssa-copy.c: Likewise.
6571         * tree-ssa-copyrename.c: Likewise.
6572         * tree-ssa-dce.c: Likewise.
6573         * tree-ssa-dom.c: Likewise.
6574         * tree-ssa-dse.c: Likewise.
6575         * tree-ssa-forwprop.c: Likewise.
6576         * tree-ssa-ifcombine.c: Likewise.
6577         * tree-ssa-live.c: Likewise.
6578         * tree-ssa-loop-ch.c: Likewise.
6579         * tree-ssa-loop-im.c: Likewise.
6580         * tree-ssa-loop-ivcanon.c: Likewise.
6581         * tree-ssa-loop-ivopts.c: Likewise.
6582         * tree-ssa-loop-manip.c: Likewise.
6583         * tree-ssa-loop-niter.c: Likewise.
6584         * tree-ssa-loop-prefetch.c: Likewise.
6585         * tree-ssa-loop-unswitch.c: Likewise.
6586         * tree-ssa-loop.c: Likewise.
6587         * tree-ssa-math-opts.c: Likewise.
6588         * tree-ssa-operands.c: Likewise.
6589         * tree-ssa-phiopt.c: Likewise.
6590         * tree-ssa-phiprop.c: Likewise.
6591         * tree-ssa-pre.c: Likewise.
6592         * tree-ssa-propagate.c: Likewise.
6593         * tree-ssa-reassoc.c: Likewise.
6594         * tree-ssa-sccvn.c: Likewise.
6595         * tree-ssa-scopedtables.c: Likewise.
6596         * tree-ssa-sink.c: Likewise.
6597         * tree-ssa-strlen.c: Likewise.
6598         * tree-ssa-structalias.c: Likewise.
6599         * tree-ssa-tail-merge.c: Likewise.
6600         * tree-ssa-ter.c: Likewise.
6601         * tree-ssa-threadedge.c: Likewise.
6602         * tree-ssa-threadupdate.c: Likewise.
6603         * tree-ssa-uncprop.c: Likewise.
6604         * tree-ssa-uninit.c: Likewise.
6605         * tree-ssa.c: Likewise.
6606         * tree-ssanames.c: Likewise.
6607         * tree-stdarg.c: Likewise.
6608         * tree-streamer-in.c: Likewise.
6609         * tree-streamer-out.c: Likewise.
6610         * tree-streamer.c: Likewise.
6611         * tree-switch-conversion.c: Likewise.
6612         * tree-tailcall.c: Likewise.
6613         * tree-vect-data-refs.c: Likewise.
6614         * tree-vect-generic.c: Likewise.
6615         * tree-vect-loop-manip.c: Likewise.
6616         * tree-vect-loop.c: Likewise.
6617         * tree-vect-patterns.c: Likewise.
6618         * tree-vect-slp.c: Likewise.
6619         * tree-vect-stmts.c: Likewise.
6620         * tree-vectorizer.c: Likewise.
6621         * tree-vrp.c: Likewise.
6622         * tree.c: Likewise.
6623         * tsan.c: Likewise.
6624         * ubsan.c: Likewise.
6625         * valtrack.c: Likewise.
6626         * value-prof.c: Likewise.
6627         * var-tracking.c: Likewise.
6628         * varasm.c: Likewise.
6629         * varpool.c: Likewise.
6630         * vmsdbgout.c: Likewise.
6631         * vtable-verify.c: Likewise.
6632         * web.c: Likewise.
6633         * wide-int.cc: Likewise.
6634         * xcoffout.c: Likewise.
6635         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
6636         * common/common-targhooks.c: Likewise.
6637         * config/aarch64/aarch64-builtins.c: Likewise.
6638         * config/aarch64/aarch64.c: Likewise.
6639         * config/alpha/alpha.c: Likewise.
6640         * config/arc/arc.c: Likewise.
6641         * config/arm/aarch-common.c: Likewise.
6642         * config/arm/arm-builtins.c: Likewise.
6643         * config/arm/arm-c.c: Likewise.
6644         * config/arm/arm.c: Likewise.
6645         * config/avr/avr-c.c: Likewise.
6646         * config/avr/avr-log.c: Likewise.
6647         * config/avr/avr.c: Likewise.
6648         * config/bfin/bfin.c: Likewise.
6649         * config/c6x/c6x.c: Likewise.
6650         * config/cr16/cr16.c: Likewise.
6651         * config/cris/cris.c: Likewise.
6652         * config/darwin-c.c: Likewise.
6653         * config/darwin.c: Likewise.
6654         * config/default-c.c: Likewise.
6655         * config/epiphany/epiphany.c: Likewise.
6656         * config/epiphany/mode-switch-use.c: Likewise.
6657         * config/epiphany/resolve-sw-modes.c: Likewise.
6658         * config/fr30/fr30.c: Likewise.
6659         * config/frv/frv.c: Likewise.
6660         * config/ft32/ft32.c: Likewise.
6661         * config/glibc-c.c: Likewise.
6662         * config/h8300/h8300.c: Likewise.
6663         * config/i386/i386-c.c: Likewise.
6664         * config/i386/i386.c: Likewise.
6665         * config/i386/msformat-c.c: Likewise.
6666         * config/i386/winnt-cxx.c: Likewise.
6667         * config/i386/winnt-stubs.c: Likewise.
6668         * config/i386/winnt.c: Likewise.
6669         * config/ia64/ia64-c.c: Likewise.
6670         * config/ia64/ia64.c: Likewise.
6671         * config/iq2000/iq2000.c: Likewise.
6672         * config/lm32/lm32.c: Likewise.
6673         * config/m32c/m32c-pragma.c: Likewise.
6674         * config/m32c/m32c.c: Likewise.
6675         * config/m32r/m32r.c: Likewise.
6676         * config/m68k/m68k.c: Likewise.
6677         * config/mcore/mcore.c: Likewise.
6678         * config/mep/mep-pragma.c: Likewise.
6679         * config/mep/mep.c: Likewise.
6680         * config/microblaze/microblaze-c.c: Likewise.
6681         * config/microblaze/microblaze.c: Likewise.
6682         * config/mips/mips.c: Likewise.
6683         * config/mmix/mmix.c: Likewise.
6684         * config/mn10300/mn10300.c: Likewise.
6685         * config/moxie/moxie.c: Likewise.
6686         * config/msp430/msp430-c.c: Likewise.
6687         * config/msp430/msp430.c: Likewise.
6688         * config/nds32/nds32-cost.c: Likewise.
6689         * config/nds32/nds32-fp-as-gp.c: Likewise.
6690         * config/nds32/nds32-intrinsic.c: Likewise.
6691         * config/nds32/nds32-isr.c: Likewise.
6692         * config/nds32/nds32-md-auxiliary.c: Likewise.
6693         * config/nds32/nds32-memory-manipulation.c: Likewise.
6694         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6695         * config/nds32/nds32-predicates.c: Likewise.
6696         * config/nds32/nds32.c: Likewise.
6697         * config/nios2/nios2.c: Likewise.
6698         * config/nvptx/nvptx.c: Likewise.
6699         * config/pa/pa.c: Likewise.
6700         * config/pdp11/pdp11.c: Likewise.
6701         * config/rl78/rl78-c.c: Likewise.
6702         * config/rl78/rl78.c: Likewise.
6703         * config/rs6000/rs6000-c.c: Likewise.
6704         * config/rs6000/rs6000.c: Likewise.
6705         * config/rx/rx.c: Likewise.
6706         * config/s390/s390-c.c: Likewise.
6707         * config/s390/s390.c: Likewise.
6708         * config/sh/sh-c.c: Likewise.
6709         * config/sh/sh-mem.cc: Likewise.
6710         * config/sh/sh.c: Likewise.
6711         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6712         * config/sh/sh_treg_combine.cc: Likewise.
6713         * config/sol2-c.c: Likewise.
6714         * config/sol2-cxx.c: Likewise.
6715         * config/sol2-stubs.c: Likewise.
6716         * config/sol2.c: Likewise.
6717         * config/sparc/sparc-c.c: Likewise.
6718         * config/sparc/sparc.c: Likewise.
6719         * config/spu/spu-c.c: Likewise.
6720         * config/spu/spu.c: Likewise.
6721         * config/stormy16/stormy16.c: Likewise.
6722         * config/tilegx/mul-tables.c: Likewise.
6723         * config/tilegx/tilegx-c.c: Likewise.
6724         * config/tilegx/tilegx.c: Likewise.
6725         * config/tilepro/mul-tables.c: Likewise.
6726         * config/tilepro/tilepro-c.c: Likewise.
6727         * config/tilepro/tilepro.c: Likewise.
6728         * config/v850/v850-c.c: Likewise.
6729         * config/v850/v850.c: Likewise.
6730         * config/vax/vax.c: Likewise.
6731         * config/visium/visium.c: Likewise.
6732         * config/vms/vms-c.c: Likewise.
6733         * config/vms/vms.c: Likewise.
6734         * config/vxworks.c: Likewise.
6735         * config/winnt-c.c: Likewise.
6736         * config/xtensa/xtensa.c: Likewise.
6738 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
6740         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
6741         function.
6742         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
6744 2015-06-17  Richard Biener  <rguenther@suse.de>
6746         PR tree-optimization/66251
6747         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
6748         stmts for SLP strided stores.
6750         Revert
6751         2015-05-22  Richard Biener  <rguenther@suse.de>
6753         PR tree-optimization/66251
6754         * tree-vect-stmts.c (vectorizable_conversion): Properly
6755         set STMT_VINFO_VEC_STMT even for the SLP case.
6757         2015-05-26  Michael Matz  <matz@suse.de>
6759         PR middle-end/66251
6760         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
6761         STMT_VINFO_VEC_STMT, also with SLP.
6763 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
6765         PR target/56766
6766         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
6767         (*avx_addsubv4df3_1s): Ditto.
6768         (*sse3_addsubv2df3_1): Ditto.
6769         (*sse3_addsubv2df3_1s): Ditto.
6770         (*avx_addsubv8sf3_1): Ditto.
6771         (*avx_addsubv8sf3_1s): Ditto.
6772         (*sse3_addsubv4sf3_1): Ditto.
6773         (*sse3_addsubv4sf3_1s): Ditto.
6775 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
6777         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
6778         (SYSROOT_SUFFIX_SPEC): Update.
6779         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
6780         (STARTFILE_PREFIX_SPEC): Update.
6781         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
6782         (MULTILIB_REQUIRED): New.
6783         (MULTILIB_OSDIRNAMES): New.
6784         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
6785         (MULTILIB_REQUIRED): New.
6786         (MULTILIB_OSDIRNAMES): New.
6788 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
6790         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
6791         * config/aarch64/aarch64-options-extensions.def: Update "fP",
6792         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
6793         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
6794         (AARCH64_FL_PAN): New.
6795         (AARCH64_FL_LOR): New.
6796         (AARCH64_FL_RDMA): New.
6797         (AARCH64_FL_FOR_ARCH8_1): New.
6798         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
6799         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
6801 2015-06-16  Martin Liska  <mliska@suse.cz>
6803         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
6804         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
6805         guard.
6807 2015-06-16  Richard Biener  <rguenther@suse.de>
6809         * tree-vect-stmts.c (vectorizable_store): Adjust.
6810         (vectorizable_load): Likewise.
6811         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6812         Simplify.
6813         (vect_create_data_ref_ptr): Likewise.
6814         (bump_vector_ptr): Adjust.
6816 2015-06-16  Richard Biener  <rguenther@suse.de>
6818         * tree-vect-stmts.c (vectorizable_load): Properly start loads
6819         with the first element if this is grouped loads.
6821 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
6823         * config/arm/arm-protos.h (struct tune_params): Rename
6824         log_op_non_sc to log_op_non_short_circuit, and rename enum
6825         values to expand SC to SHORT_CIRCUIT.
6826         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
6827         to LOG_OP_NON_SHORT_CIRCUIT.
6828         (arm_fastmul_tune):Likewise
6829         (arm_strongarm_tune): Likewise.
6830         (arm_xscale_tune): Likewise.
6831         (arm_9e_tune): Likewise.
6832         (arm_marvell_pj4_tune): Likewise.
6833         (arm_v6t2_tune): Likewise.
6834         (arm_cortex_tune): Likewise.
6835         (arm_cortex_a8_tune): Likewise.
6836         (arm_cortex_a7_tune): Likewise.
6837         (arm_cortex_a15_tune): Likewise.
6838         (arm_cortex_a53_tune): Likewise.
6839         (arm_cortex_a57_tune): Likewise.
6840         (arm_xgene1_tune): Likewise.
6841         (arm_cortex_a5_tune): Likewise.
6842         (arm_cortex_a9_tune): Likewise.
6843         (arm_cortex_a12_tune): Likewise.
6844         (arm_v7m_tune): Likewise.
6845         (arm_cortex_m7_tune): Likewise.
6846         (arm_v6m_tune): Likewise.
6847         (arm_fa726te_tune): Likewise.
6849 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
6851         * altivec.md: Delete UNSPEC_VMLADDUHM.
6852         (mulv4si3_p8): New pattern.
6853         (mulv4si3): Use it for POWER8.
6854         (mulv8hi3): Use vmladduhm with zero addend.
6855         (altivec_vmladduhm): Descriptive RTL.
6857 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
6859         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
6860         to use neon_move instead of mov_imm.
6861         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
6862         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
6864         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
6865         aarch64_float_const_zero_rtx_p check before TFmode check.
6866         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
6867         an fp zero.
6868         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
6869         code and attributes to match.  Change condition from register_operand
6870         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
6871         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
6872         to store2.
6874 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
6876         PR debug/66535
6877         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
6878         there is no parent.
6880 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
6882         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
6883         HOST_WIDE_INT parameter.
6885 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
6887         PR ipa/66181
6888         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
6889         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
6890         TYPE_NO_FORCE_BLK.
6891         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6893 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
6895         * rtl.h (classify_insn): Declare.
6896         * emit-rtl.c (classify_insn): Move to...
6897         * rtl.c: ...here and add generator support.
6898         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
6899         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
6900         * genemit.c (gen_emit_seq): New function.
6901         (gen_expand, gen_split): Use it.
6903 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
6905         * tree.c (make_vector_stat): Fix comment to state that the
6906         function returns a VECTOR_CST.
6908 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
6910         * gensupport.h (add_implicit_parallel): Declare.
6911         * genrecog.c (add_implicit_parallel): Move to...
6912         * gensupport.c (add_implicit_parallel): ...here.
6913         (process_one_cond_exec): Use it.
6914         * genemit.c (gen_insn): Likewise.
6916 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
6918         PR bootstrap/66448
6919         * passes.c (rest_of_decl_compilation): Do not register globals for
6920         early debug if they are declared in built-ins.
6922 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
6924         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
6926 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6928         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
6929         manually swapping.
6930         (noce_try_cmove_arith): Likewise.
6931         (noce_get_alt_condition): Likewise.
6933 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6935         * common/config/i386/i386-common.c
6936         (OPTION_MASK_ISA_MWAITX_SET): New.
6937         (ix86_handle_option): Handle mwaitx.
6938         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
6939         (x86_64-*-*): Likewise.
6940         * config/i386/mwaitxintrin.h: New header.
6941         * config/i386/cpuid.h (bit_MWAITX):  Define.
6942         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6943         MWAITX support.
6944         * config/i386/i386.opt (mwaitx): New.
6945         * config/i386/i386-builtin-types.def
6946         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
6947         * config/i386/i386-c.c: Define __MWAITX__ if needed.
6948         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
6949         (PTA_MWAITX): New.
6950         (ix86_option_override_internal): Handle new option.
6951         (processor_alias_table): Added PTA_MWAITX.
6952         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
6953         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
6954         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
6955         IX86_BUILTIN_MONITORX  built-ins.
6956         * config/i386/i386.h (TARGET_MWAITX): New.
6957         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
6958         UNSPEC_MONITORX.
6959         (mwaitx):  New pattern.
6960         (monitorx_<mode>): New pattern.
6961         * config/i386/x86intrin.h: Include mwaitxintrin.h.
6962         * doc/extend.texi: Document monitorx and mwaitx builtins.
6963         * doc/invoke.texi: Document -mmwaitx option.
6965 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
6967         * emit-rtl.c (need_atomic_barrier_p): Mask model with
6968         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
6970 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
6972         * dbxout.c (xcoff_debug_hooks): Provide a function for
6973         register_main_translation_unit hook.
6975 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
6977         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
6978         variants cases from switch.
6979         (rs6000_post_atomic_barrier): Same.
6980         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
6981         (rs6000_expand_atomic_exchange): Same.
6982         (rs6000_expand_atomic_op): Same.
6983         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
6984         SYNC variants cases from switch.
6985         (atomic_load): Same.
6986         (atomic_store): Same.
6988 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
6990         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
6991         CONST_INT for goto.
6993 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
6995         PR bootstrap/66448
6996         * dwarf2out.c (check_die): Check for common duplicate attributes.
6997         (add_location_or_const_value_attribute): Do not add duplicate
6998         attributes.
6999         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
7000         time around.
7001         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
7002         (gen_type_die_with_usage): Call check_die.
7003         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
7005 2015-06-11  Jason Merrill  <jason@redhat.com>
7007         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
7008         dies.
7010 2015-06-11  Marek Polacek  <polacek@redhat.com>
7012         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
7014 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
7016         PR bootstrap/66252
7017         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
7018         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
7019         (*addx_extend_sp32): Fix pasto.
7020         (*subx_extend): Rename into...
7021         (*subx_extend_sp32): ...this.
7022         (*adddi3_extend_sp32): Add earlyclobber.
7023         (*subdi3_insn_sp32): Likewise.
7024         (*subdi3_extend_sp32): Likewise.
7025         (*and_not_di_sp32): Likewise.
7026         (*or_not_di_sp32): Likewise.
7027         (*xor_not_di_sp32): Likewise.
7028         (*negdi2_sp32): Likewise.
7029         (*one_cmpldi2_sp32): Likewise.
7031 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
7033         * debug.h (struct gcc_debug_hooks): Add a
7034         register_main_translation_unit hook.
7035         * debug.c (do_nothing_debug_hooks): Provide a function for this
7036         new hook.
7037         * dbxout.c (dbx_debug_hooks): Likewise.
7038         * sdbout.c (sdb_debug_hooks): Likewise.
7039         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7040         * dwarf2out.c (main_translation_unit): New global variable.
7041         (dwarf2out_register_main_translation_unit): New function
7042         implementing the new hook.
7043         (dwarf2_debug_hooks): Assign
7044         dwarf2out_register_main_translation_unit to this new hook.
7045         (dwarf2out_init): Associate any main translation unit to
7046         comp_unit_die ().
7048 2015-06-11  Marek Polacek  <polacek@redhat.com>
7050         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
7052 2015-06-11  Marek Polacek  <polacek@redhat.com>
7054         * match.pd: Use single_use throughout.
7056 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7058         * config/arm/arm.c (arm_option_params_internal): When optimising
7059         for speed set max_insns_skipped when arm_restrict_it.
7061 2015-06-11  Christian Bruel  <christian.bruel@st.com>
7063         PR target/52144
7064         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
7065          macros in ...
7066         (arm_cpu_builtins): New function.
7067         (arm_pragma_target_parse): Call arm_cpu_builtins.
7068         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
7069         (arm_register_target_pragmas): Likewise.
7070         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
7071          Call arm_register_target_pragmas.
7072         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
7073         (arm_pragma_target_parse): Likewise.
7075 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
7077         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
7078         of the second operand.
7080 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
7082         PR target/66473
7083         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
7084         to prepare mask operand for AVX512 modes.
7086 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
7088         PR target/66474
7089         * doc/md.texi (Machine Constraints): Document that on the PowerPC
7090         if you use a constraint that targets a VSX register, you must use
7091         %x<n> in the template.
7093 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
7095         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
7096         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
7097         (define_insn "trap"): New definition.
7099 2015-06-10  Richard Biener  <rguenther@suse.de>
7101         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
7102         out from ...
7103         (vect_supported_load_permutation_p): ... here.  Handle
7104         supportable permutations in reductions.
7105         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
7106         for vectorizing strided group loads.
7108 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
7110         PR target/66470
7111         * config/i386/i386.c (ix86_split_long_move): For collisions
7112         involving direct tls segment refs, move the UNSPEC_TP possibly
7113         wrapped in ZERO_EXTEND out of the address for lea, to each of
7114         the memory loads.
7116 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7118         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
7119         dmb sy. Adjust tabs.
7121 2015-06-10  Tom de Vries  <tom@codesourcery.com>
7123         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
7125 2015-06-10  Martin Liska  <mliska@suse.cz>
7127         PR bootstrap/66471
7128         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
7129         all enum values in mem_alloc_origin.
7130         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
7131         name.
7132         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
7133         * bitmap.c (bitmap_register): Likewise.
7134         (dump_bitmap_statistics): Likewise.
7135         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7136         (ggc_record_overhead): Likewise.
7137         * hash-map.h: Likewise.
7138         * hash-set.h: Likewise.
7139         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
7140         * hash-table.h: Likewise.
7141         * vec.c (vec_prefix::register_overhead): Likewise.
7142         (vec_prefix::release_overhead): Likewise.
7143         (dump_vec_loc_statistics): Likewise.
7145 2015-06-09  Christian Bruel  <christian.bruel@st.com>
7147         PR target/52144
7148         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
7149         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
7150         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
7151         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
7152         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
7153         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
7154         (arm_valid_target_attribute_p): Likewise.
7155         (arm_set_current_function, arm_can_inline_p): Likewise.
7156         (arm_valid_target_attribute_rec): Likewise.
7157         (arm_previous_fndecl): New variable.
7158         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
7159         (TARGET_CAN_INLINE_P): Define.
7160         (arm_asm_trampoline_template): Emit mode.
7161         (arm_file_start): Don't set unified syntax.
7162         (arm_declare_function_name): Set unified syntax and mode.
7163         (arm_option_override): Init target_option_default_node.
7164         and target_option_current_node.
7165         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
7166         (*call_symbol): Likewise.
7167         * doc/extend.texi: Document ARM/Thumb target attribute.
7168         * doc/invoke.texi: Likewise.
7170 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
7172         Revert:
7173         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
7174         PR rtl-optimization/64164
7175         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7176         * tree-ssa-copyrename.c: Removed.
7177         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
7178         -ftree-coalesce-vars.
7179         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7180         * common.opt (ftree-copyrename): Ignore.
7181         (ftree-coalesce-inlined-vars): Likewise.
7182         * doc/invoke.texi: Remove the ignored options above.
7183         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7184         * tree-ssa-coalesce.h: ... here.
7185         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7186         headers required by it.
7187         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7188         across variables when flag_tree_coalesce_vars.  Check register
7189         use and promoted modes to allow coalescing.  Moved to
7190         tree-ssa-coalesce.c.
7191         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7192         with its member functions to tree-ssa-coalesce.c.
7193         (var_map_base_init): Likewise.  Renamed to
7194         compute_samebase_partition_bases.
7195         (partition_view_normal): Drop want_bases parameter.
7196         (partition_view_bitmap): Likewise.
7197         * tree-ssa-live.h: Adjust declarations.
7198         * tree-ssa-coalesce.c: Include explow.h.
7199         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7200         default defs at the entry point.
7201         (dump_part_var_map): New.
7202         (compute_optimized_partition_bases): New, called by...
7203         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7204         of compute_samebase_partition_bases.  Adjust.
7205         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7206         * cfgexpand.c (leader_merge): New.
7207         (get_rtl_for_parm_ssa_default_def): New.
7208         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7209         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7210         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
7211         redundant MEM attr setting.
7212         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
7213         from...
7214         (expand_one_stack_var): ... this.  New wrapper to check and
7215         skip already expanded SSA partitions.
7216         (record_alignment_for_reg_var): New, factored out of...
7217         (expand_one_var): ... this.
7218         (expand_one_ssa_partition): New.
7219         (adjust_one_expanded_partition_var): New.
7220         (expand_one_register_var): Check and skip already expanded SSA
7221         partitions.
7222         (expand_used_vars): Don't create DECLs for anonymous SSA
7223         names.  Expand all SSA partitions, then adjust all SSA names.
7224         (pass::execute): Replace the loops that set
7225         SA.partition_to_pseudo from partition leaders and cleared
7226         DECL_RTL for multi-location variables, and that which used to
7227         rename vars and set attrs, with one that clears DECL_RTL and
7228         checks that PARMs and RESULTs default_defs match DECL_RTL.
7229         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7230         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7231         * explow.c (promote_ssa_mode): New.
7232         * explow.h (promote_ssa_mode): Declare.
7233         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7234         * function.c: Include cfgexpand.h.
7235         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7236         (use_register_for_parm_decl): Wrapper for the above to
7237         special-case the result_ptr.
7238         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7239         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7240         multiple locations.
7241         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7242         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
7243         (assign_parm_setup_block): Prefer SSA-assigned location.
7244         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
7245         if stack_parm is NULL.
7246         (assign_parm_setup_stack): Prefer SSA-assigned location.
7247         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
7248         rtl before testing for pointer bounds.  Special-case result_ptr.
7249         (expand_function_start): Maybe reset DECL_RTL of result.
7250         Prefer SSA-assigned location for result and static chain.
7251         Factor out DECL_RESULT and SET_DECL_RTL.
7252         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7253         anonymous SSA names.  Use promote_ssa_mode.
7254         (get_temp_reg): Likewise.
7255         (remove_ssa_form): Adjust.
7256         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7257         and get its reg_usage for reg invalidation.
7258         (compute_bb_dataflow): Pass it insn.
7259         (emit_notes_in_bb): Likewise.
7260         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
7261         fail assert on conversion between unsigned types.
7263 2015-06-09  Tom de Vries  <tom@codesourcery.com>
7265         PR tree-optimization/65460
7266         * omp-low.c (expand_omp_target): Set parallelized_function on
7267         cgraph_node for child_fn.
7269 2015-06-09  Tom de Vries  <tom@codesourcery.com>
7271         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
7272         parallelized_function before add_new_function.
7274 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
7276         * gcc-plugin.h: Move decls to plugin.h and include it.
7277         * plugin.h: Relocate decls from gcc-plugin.h
7278         * ggc-page.c: Include required header files.
7279         * passes.c: Likewise.
7280         * cgraphunit.c: Likewise.
7282 2015-06-09  Tom de Vries  <tom@codesourcery.com>
7284         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
7286 2015-06-09  Jason Merrill  <jason@redhat.com>
7288         PR bootstrap/66448
7289         * toplev.c (check_global_declaration): Don't warn about a clone.
7291 2015-06-09  Marek Polacek  <polacek@redhat.com>
7293         PR tree-optimization/66299
7294         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
7295         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
7296         patterns.
7298 2015-06-09  Richard Biener  <rguenther@suse.de>
7300         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
7301         (vect_analyze_slp_instance): Instead do not falsely drop
7302         load permutations.
7304 2015-06-09  Richard Biener  <rguenther@suse.de>
7306         PR middle-end/66423
7307         * match.pd: Handle A % (unsigned)(1 << B).
7309 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
7311         * varasm.c (output_object_block_htab): Remove.
7312         (output_object_block_compare): New.
7313         (output_object_blocks): Sort named object_blocks before outputting
7314         them.
7316 2015-06-09  Richard Biener  <rguenther@suse.de>
7318         PR tree-optimization/66419
7319         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
7320         consider GROUP_GAP when detecting a perfect subchain.
7322 2015-06-09  Nick Clifton  <nickc@redhat.com>
7324         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
7325         place read only data in the .frodata section.
7327 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
7329         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
7330         (atomic_store<mode>): Likewise.
7332 2015-06-09  Richard Biener  <rguenther@suse.de>
7334         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
7336 2015-06-09  Richard Biener  <rguenther@suse.de>
7338         PR middle-end/66413
7339         * tree-inline.c (insert_init_debug_bind): Unshare value.
7341 2015-06-09  Richard Biener  <rguenther@suse.de>
7343         PR tree-optimization/66396
7344         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
7345         Rename virtual operands.
7347 2015-06-09  Tom de Vries  <tom@codesourcery.com>
7349         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
7350         always return false.
7352 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
7354         PR rtl-optimization/64164
7355         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7356         * tree-ssa-copyrename.c: Removed.
7357         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
7358         -ftree-coalesce-vars.
7359         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7360         * common.opt (ftree-copyrename): Ignore.
7361         (ftree-coalesce-inlined-vars): Likewise.
7362         * doc/invoke.texi: Remove the ignored options above.
7363         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7364         * tree-ssa-coalesce.h: ... here.
7365         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7366         headers required by it.
7367         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7368         across variables when flag_tree_coalesce_vars.  Check register
7369         use and promoted modes to allow coalescing.  Moved to
7370         tree-ssa-coalesce.c.
7371         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7372         with its member functions to tree-ssa-coalesce.c.
7373         (var_map_base_init): Likewise.  Renamed to
7374         compute_samebase_partition_bases.
7375         (partition_view_normal): Drop want_bases parameter.
7376         (partition_view_bitmap): Likewise.
7377         * tree-ssa-live.h: Adjust declarations.
7378         * tree-ssa-coalesce.c: Include explow.h.
7379         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7380         default defs at the entry point.
7381         (dump_part_var_map): New.
7382         (compute_optimized_partition_bases): New, called by...
7383         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7384         of compute_samebase_partition_bases.  Adjust.
7385         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7386         * cfgexpand.c (leader_merge): New.
7387         (get_rtl_for_parm_ssa_default_def): New.
7388         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7389         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7390         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
7391         redundant MEM attr setting.
7392         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
7393         from...
7394         (expand_one_stack_var): ... this.  New wrapper to check and
7395         skip already expanded SSA partitions.
7396         (record_alignment_for_reg_var): New, factored out of...
7397         (expand_one_var): ... this.
7398         (expand_one_ssa_partition): New.
7399         (adjust_one_expanded_partition_var): New.
7400         (expand_one_register_var): Check and skip already expanded SSA
7401         partitions.
7402         (expand_used_vars): Don't create DECLs for anonymous SSA
7403         names.  Expand all SSA partitions, then adjust all SSA names.
7404         (pass::execute): Replace the loops that set
7405         SA.partition_to_pseudo from partition leaders and cleared
7406         DECL_RTL for multi-location variables, and that which used to
7407         rename vars and set attrs, with one that clears DECL_RTL and
7408         checks that PARMs and RESULTs default_defs match DECL_RTL.
7409         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7410         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7411         * explow.c (promote_ssa_mode): New.
7412         * explow.h (promote_ssa_mode): Declare.
7413         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7414         * function.c: Include cfgexpand.h.
7415         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7416         (use_register_for_parm_decl): Wrapper for the above to
7417         special-case the result_ptr.
7418         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7419         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7420         multiple locations.
7421         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7422         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
7423         (assign_parm_setup_block): Prefer SSA-assigned location.
7424         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
7425         if stack_parm is NULL.
7426         (assign_parm_setup_stack): Prefer SSA-assigned location.
7427         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
7428         rtl before testing for pointer bounds.  Special-case result_ptr.
7429         (expand_function_start): Maybe reset DECL_RTL of result.
7430         Prefer SSA-assigned location for result and static chain.
7431         Factor out DECL_RESULT and SET_DECL_RTL.
7432         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7433         anonymous SSA names.  Use promote_ssa_mode.
7434         (get_temp_reg): Likewise.
7435         (remove_ssa_form): Adjust.
7436         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7437         and get its reg_usage for reg invalidation.
7438         (compute_bb_dataflow): Pass it insn.
7439         (emit_notes_in_bb): Likewise.
7440         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
7441         fail assert on conversion between unsigned types.
7443 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
7445         PR debug/58315
7446         * tree-inline.c (reset_debug_binding): New.
7447         (reset_debug_bindings): Likewise.
7448         (expand_call_inline): Call it.
7450 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
7452         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
7453         TYPE_STRING_FLAG.
7455 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
7457         * lto-streamer-out.c (lto_output_location): Stream
7458         reserved locations correctly.
7459         * lto-streamer-in.c (lto_output_location): Likewise.
7461 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
7463         * coretypes.h: Include hash-table.h and hash-set.h for host files.
7464         * ggc.h: Don't include statistics.h>
7465         * hash-map.h: Remove all includes.
7466         * hash-set.h: Likewise.
7467         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
7468         the include list. Remove <new>.
7469         * inchash.h: Remove all includes.
7470         * mem-stats.h: Likewise.
7471         * vec.h: No special processing for generators or ggc.
7472         * alias.c : Adjust include files.
7473         * alloc-pool.c : Likewise.
7474         * alloc-pool.h : Likewise.
7475         * asan.c : Likewise.
7476         * attribs.c : Likewise.
7477         * auto-inc-dec.c : Likewise.
7478         * auto-profile.c : Likewise.
7479         * bb-reorder.c : Likewise.
7480         * bitmap.c : Likewise.
7481         * bitmap.h : Likewise.
7482         * bt-load.c : Likewise.
7483         * builtins.c : Likewise.
7484         * caller-save.c : Likewise.
7485         * calls.c : Likewise.
7486         * ccmp.c : Likewise.
7487         * cfg.c : Likewise.
7488         * cfganal.c : Likewise.
7489         * cfgbuild.c : Likewise.
7490         * cfgcleanup.c : Likewise.
7491         * cfgexpand.c : Likewise.
7492         * cfghooks.c : Likewise.
7493         * cfgloop.c : Likewise.
7494         * cfgloop.h : Likewise.
7495         * cfgloopanal.c : Likewise.
7496         * cfgloopmanip.c : Likewise.
7497         * cfgrtl.c : Likewise.
7498         * cgraph.c : Likewise.
7499         * cgraphbuild.c : Likewise.
7500         * cgraphclones.c : Likewise.
7501         * cgraphunit.c : Likewise.
7502         * cilk-common.c : Likewise.
7503         * combine-stack-adj.c : Likewise.
7504         * combine.c : Likewise.
7505         * compare-elim.c : Likewise.
7506         * context.c : Likewise.
7507         * convert.c : Likewise.
7508         * coverage.c : Likewise.
7509         * cppbuiltin.c : Likewise.
7510         * cprop.c : Likewise.
7511         * cse.c : Likewise.
7512         * cselib.c : Likewise.
7513         * data-streamer-in.c : Likewise.
7514         * data-streamer-out.c : Likewise.
7515         * data-streamer.c : Likewise.
7516         * data-streamer.h : Likewise.
7517         * dbxout.c : Likewise.
7518         * dce.c : Likewise.
7519         * ddg.c : Likewise.
7520         * debug.c : Likewise.
7521         * df-core.c : Likewise.
7522         * df-problems.c : Likewise.
7523         * df-scan.c : Likewise.
7524         * df.h : Likewise.
7525         * dfp.c : Likewise.
7526         * dojump.c : Likewise.
7527         * dominance.c : Likewise.
7528         * domwalk.c : Likewise.
7529         * double-int.c : Likewise.
7530         * dse.c : Likewise.
7531         * dumpfile.c : Likewise.
7532         * dwarf2asm.c : Likewise.
7533         * dwarf2cfi.c : Likewise.
7534         * dwarf2out.c : Likewise.
7535         * emit-rtl.c : Likewise.
7536         * et-forest.c : Likewise.
7537         * except.c : Likewise.
7538         * except.h : Likewise.
7539         * explow.c : Likewise.
7540         * expmed.c : Likewise.
7541         * expr.c : Likewise.
7542         * final.c : Likewise.
7543         * fixed-value.c : Likewise.
7544         * fold-const.c : Likewise.
7545         * function.c : Likewise.
7546         * fwprop.c : Likewise.
7547         * gcc-plugin.h : Likewise.
7548         * gcc.c : Likewise.
7549         * gcse-common.c : Likewise.
7550         * gcse.c : Likewise.
7551         * genattrtab.c : Likewise.
7552         * genautomata.c : Likewise.
7553         * genconditions.c : Likewise.
7554         * genemit.c : Likewise.
7555         * generic-match-head.c : Likewise.
7556         * genextract.c : Likewise.
7557         * gengtype-state.c : Likewise.
7558         * gengtype.c : Likewise.
7559         * genhooks.c : Likewise.
7560         * genmatch.c : Likewise.
7561         * genmodes.c : Likewise.
7562         * genrecog.c : Likewise.
7563         * gensupport.c : Likewise.
7564         * ggc-common.c : Likewise.
7565         * ggc-internal.h : Likewise.
7566         * ggc-none.c : Likewise.
7567         * ggc-page.c : Likewise.
7568         * gimple-builder.c : Likewise.
7569         * gimple-expr.c : Likewise.
7570         * gimple-fold.c : Likewise.
7571         * gimple-iterator.c : Likewise.
7572         * gimple-low.c : Likewise.
7573         * gimple-match-head.c : Likewise.
7574         * gimple-pretty-print.c : Likewise.
7575         * gimple-ssa-isolate-paths.c : Likewise.
7576         * gimple-ssa-strength-reduction.c : Likewise.
7577         * gimple-ssa.h : Likewise.
7578         * gimple-streamer-in.c : Likewise.
7579         * gimple-streamer-out.c : Likewise.
7580         * gimple-streamer.h : Likewise.
7581         * gimple-walk.c : Likewise.
7582         * gimple.c : Likewise.
7583         * gimplify-me.c : Likewise.
7584         * gimplify.c : Likewise.
7585         * godump.c : Likewise.
7586         * graph.c : Likewise.
7587         * graphds.c : Likewise.
7588         * graphite-blocking.c : Likewise.
7589         * graphite-dependences.c : Likewise.
7590         * graphite-interchange.c : Likewise.
7591         * graphite-isl-ast-to-gimple.c : Likewise.
7592         * graphite-optimize-isl.c : Likewise.
7593         * graphite-poly.c : Likewise.
7594         * graphite-scop-detection.c : Likewise.
7595         * graphite-sese-to-poly.c : Likewise.
7596         * graphite.c : Likewise.
7597         * haifa-sched.c : Likewise.
7598         * hard-reg-set.h : Likewise.
7599         * hw-doloop.c : Likewise.
7600         * ifcvt.c : Likewise.
7601         * inchash.c : Likewise.
7602         * incpath.c : Likewise.
7603         * init-regs.c : Likewise.
7604         * input.c : Likewise.
7605         * internal-fn.c : Likewise.
7606         * ipa-chkp.c : Likewise.
7607         * ipa-comdats.c : Likewise.
7608         * ipa-cp.c : Likewise.
7609         * ipa-devirt.c : Likewise.
7610         * ipa-icf-gimple.c : Likewise.
7611         * ipa-icf.c : Likewise.
7612         * ipa-inline-analysis.c : Likewise.
7613         * ipa-inline-transform.c : Likewise.
7614         * ipa-inline.c : Likewise.
7615         * ipa-polymorphic-call.c : Likewise.
7616         * ipa-profile.c : Likewise.
7617         * ipa-prop.c : Likewise.
7618         * ipa-pure-const.c : Likewise.
7619         * ipa-ref.c : Likewise.
7620         * ipa-reference.c : Likewise.
7621         * ipa-split.c : Likewise.
7622         * ipa-utils.c : Likewise.
7623         * ipa-visibility.c : Likewise.
7624         * ipa.c : Likewise.
7625         * ira-build.c : Likewise.
7626         * ira-color.c : Likewise.
7627         * ira-conflicts.c : Likewise.
7628         * ira-costs.c : Likewise.
7629         * ira-emit.c : Likewise.
7630         * ira-lives.c : Likewise.
7631         * ira.c : Likewise.
7632         * jump.c : Likewise.
7633         * langhooks.c : Likewise.
7634         * lcm.c : Likewise.
7635         * libfuncs.h : Likewise.
7636         * lists.c : Likewise.
7637         * loop-doloop.c : Likewise.
7638         * loop-init.c : Likewise.
7639         * loop-invariant.c : Likewise.
7640         * loop-iv.c : Likewise.
7641         * loop-unroll.c : Likewise.
7642         * lower-subreg.c : Likewise.
7643         * lra-assigns.c : Likewise.
7644         * lra-coalesce.c : Likewise.
7645         * lra-constraints.c : Likewise.
7646         * lra-eliminations.c : Likewise.
7647         * lra-lives.c : Likewise.
7648         * lra-remat.c : Likewise.
7649         * lra-spills.c : Likewise.
7650         * lra.c : Likewise.
7651         * lto-cgraph.c : Likewise.
7652         * lto-compress.c : Likewise.
7653         * lto-opts.c : Likewise.
7654         * lto-section-in.c : Likewise.
7655         * lto-section-out.c : Likewise.
7656         * lto-streamer-in.c : Likewise.
7657         * lto-streamer-out.c : Likewise.
7658         * lto-streamer.c : Likewise.
7659         * lto-streamer.h : Likewise.
7660         * mcf.c : Likewise.
7661         * mode-switching.c : Likewise.
7662         * modulo-sched.c : Likewise.
7663         * omega.c : Likewise.
7664         * omp-low.c : Likewise.
7665         * optabs.c : Likewise.
7666         * opts-global.c : Likewise.
7667         * opts.h : Likewise.
7668         * passes.c : Likewise.
7669         * plugin.c : Likewise.
7670         * postreload-gcse.c : Likewise.
7671         * postreload.c : Likewise.
7672         * predict.c : Likewise.
7673         * print-rtl.c : Likewise.
7674         * print-tree.c : Likewise.
7675         * profile.c : Likewise.
7676         * read-md.c : Likewise.
7677         * read-md.h : Likewise.
7678         * read-rtl.c : Likewise.
7679         * real.c : Likewise.
7680         * realmpfr.c : Likewise.
7681         * recog.c : Likewise.
7682         * ree.c : Likewise.
7683         * reg-stack.c : Likewise.
7684         * regcprop.c : Likewise.
7685         * reginfo.c : Likewise.
7686         * regrename.c : Likewise.
7687         * regstat.c : Likewise.
7688         * reload.c : Likewise.
7689         * reload1.c : Likewise.
7690         * reorg.c : Likewise.
7691         * resource.c : Likewise.
7692         * rtl-chkp.c : Likewise.
7693         * rtl.c : Likewise.
7694         * rtl.h : Likewise.
7695         * rtlanal.c : Likewise.
7696         * rtlhash.c : Likewise.
7697         * rtlhash.h : Likewise.
7698         * rtlhooks.c : Likewise.
7699         * sanopt.c : Likewise.
7700         * sched-deps.c : Likewise.
7701         * sched-ebb.c : Likewise.
7702         * sched-rgn.c : Likewise.
7703         * sched-vis.c : Likewise.
7704         * sdbout.c : Likewise.
7705         * sel-sched-dump.c : Likewise.
7706         * sel-sched-ir.c : Likewise.
7707         * sel-sched-ir.h : Likewise.
7708         * sel-sched.c : Likewise.
7709         * sese.c : Likewise.
7710         * shrink-wrap.c : Likewise.
7711         * shrink-wrap.h : Likewise.
7712         * simplify-rtx.c : Likewise.
7713         * stack-ptr-mod.c : Likewise.
7714         * statistics.c : Likewise.
7715         * stmt.c : Likewise.
7716         * stor-layout.c : Likewise.
7717         * store-motion.c : Likewise.
7718         * stringpool.c : Likewise.
7719         * symtab.c : Likewise.
7720         * target-globals.c : Likewise.
7721         * targhooks.c : Likewise.
7722         * tlink.c : Likewise.
7723         * toplev.c : Likewise.
7724         * tracer.c : Likewise.
7725         * trans-mem.c : Likewise.
7726         * tree-affine.c : Likewise.
7727         * tree-affine.h : Likewise.
7728         * tree-browser.c : Likewise.
7729         * tree-call-cdce.c : Likewise.
7730         * tree-cfg.c : Likewise.
7731         * tree-cfgcleanup.c : Likewise.
7732         * tree-chkp-opt.c : Likewise.
7733         * tree-chkp.c : Likewise.
7734         * tree-chrec.c : Likewise.
7735         * tree-complex.c : Likewise.
7736         * tree-data-ref.c : Likewise.
7737         * tree-dfa.c : Likewise.
7738         * tree-diagnostic.c : Likewise.
7739         * tree-dump.c : Likewise.
7740         * tree-eh.c : Likewise.
7741         * tree-eh.h : Likewise.
7742         * tree-emutls.c : Likewise.
7743         * tree-hasher.h : Likewise.
7744         * tree-if-conv.c : Likewise.
7745         * tree-inline.c : Likewise.
7746         * tree-inline.h : Likewise.
7747         * tree-into-ssa.c : Likewise.
7748         * tree-iterator.c : Likewise.
7749         * tree-loop-distribution.c : Likewise.
7750         * tree-nested.c : Likewise.
7751         * tree-nrv.c : Likewise.
7752         * tree-object-size.c : Likewise.
7753         * tree-outof-ssa.c : Likewise.
7754         * tree-parloops.c : Likewise.
7755         * tree-phinodes.c : Likewise.
7756         * tree-predcom.c : Likewise.
7757         * tree-pretty-print.c : Likewise.
7758         * tree-profile.c : Likewise.
7759         * tree-scalar-evolution.c : Likewise.
7760         * tree-sra.c : Likewise.
7761         * tree-ssa-address.c : Likewise.
7762         * tree-ssa-alias.c : Likewise.
7763         * tree-ssa-ccp.c : Likewise.
7764         * tree-ssa-coalesce.c : Likewise.
7765         * tree-ssa-copy.c : Likewise.
7766         * tree-ssa-copyrename.c : Likewise.
7767         * tree-ssa-dce.c : Likewise.
7768         * tree-ssa-dom.c : Likewise.
7769         * tree-ssa-dse.c : Likewise.
7770         * tree-ssa-forwprop.c : Likewise.
7771         * tree-ssa-ifcombine.c : Likewise.
7772         * tree-ssa-live.c : Likewise.
7773         * tree-ssa-loop-ch.c : Likewise.
7774         * tree-ssa-loop-im.c : Likewise.
7775         * tree-ssa-loop-ivcanon.c : Likewise.
7776         * tree-ssa-loop-ivopts.c : Likewise.
7777         * tree-ssa-loop-manip.c : Likewise.
7778         * tree-ssa-loop-niter.c : Likewise.
7779         * tree-ssa-loop-prefetch.c : Likewise.
7780         * tree-ssa-loop-unswitch.c : Likewise.
7781         * tree-ssa-loop.c : Likewise.
7782         * tree-ssa-math-opts.c : Likewise.
7783         * tree-ssa-operands.c : Likewise.
7784         * tree-ssa-phiopt.c : Likewise.
7785         * tree-ssa-phiprop.c : Likewise.
7786         * tree-ssa-pre.c : Likewise.
7787         * tree-ssa-propagate.c : Likewise.
7788         * tree-ssa-reassoc.c : Likewise.
7789         * tree-ssa-sccvn.c : Likewise.
7790         * tree-ssa-scopedtables.c : Likewise.
7791         * tree-ssa-sink.c : Likewise.
7792         * tree-ssa-strlen.c : Likewise.
7793         * tree-ssa-structalias.c : Likewise.
7794         * tree-ssa-tail-merge.c : Likewise.
7795         * tree-ssa-ter.c : Likewise.
7796         * tree-ssa-threadedge.c : Likewise.
7797         * tree-ssa-threadupdate.c : Likewise.
7798         * tree-ssa-uncprop.c : Likewise.
7799         * tree-ssa-uninit.c : Likewise.
7800         * tree-ssa.c : Likewise.
7801         * tree-ssanames.c : Likewise.
7802         * tree-stdarg.c : Likewise.
7803         * tree-streamer-in.c : Likewise.
7804         * tree-streamer-out.c : Likewise.
7805         * tree-streamer.c : Likewise.
7806         * tree-streamer.h : Likewise.
7807         * tree-switch-conversion.c : Likewise.
7808         * tree-tailcall.c : Likewise.
7809         * tree-vect-data-refs.c : Likewise.
7810         * tree-vect-generic.c : Likewise.
7811         * tree-vect-loop-manip.c : Likewise.
7812         * tree-vect-loop.c : Likewise.
7813         * tree-vect-patterns.c : Likewise.
7814         * tree-vect-slp.c : Likewise.
7815         * tree-vect-stmts.c : Likewise.
7816         * tree-vectorizer.c : Likewise.
7817         * tree-vectorizer.h : Likewise.
7818         * tree-vrp.c : Likewise.
7819         * tree.c : Likewise.
7820         * tsan.c : Likewise.
7821         * ubsan.c : Likewise.
7822         * valtrack.c : Likewise.
7823         * valtrack.h : Likewise.
7824         * value-prof.c : Likewise.
7825         * var-tracking.c : Likewise.
7826         * varasm.c : Likewise.
7827         * varpool.c : Likewise.
7828         * vec.c: Likewise.
7829         * vmsdbgout.c : Likewise.
7830         * vtable-verify.c : Likewise.
7831         * vtable-verify.h : Likewise.
7832         * web.c : Likewise.
7833         * wide-int.cc : Likewise.
7834         * xcoffout.c : Likewise.
7835         * config/aarch64/aarch64-builtins.c : Likewise.
7836         * config/aarch64/aarch64.c : Likewise.
7837         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
7838         * config/alpha/alpha.c : Likewise.
7839         * config/arc/arc.c : Likewise.
7840         * config/arm/aarch-common.c : Likewise.
7841         * config/arm/arm-builtins.c : Likewise.
7842         * config/arm/arm-c.c : Likewise.
7843         * config/arm/arm.c : Likewise.
7844         * config/avr/avr-c.c : Likewise.
7845         * config/avr/avr-log.c : Likewise.
7846         * config/avr/avr.c : Likewise.
7847         * config/bfin/bfin.c : Likewise.
7848         * config/c6x/c6x.c : Likewise.
7849         * config/cr16/cr16.c : Likewise.
7850         * config/cris/cris.c : Likewise.
7851         * config/darwin-c.c : Likewise.
7852         * config/darwin.c : Likewise.
7853         * config/default-c.c : Likewise.
7854         * config/epiphany/epiphany.c : Likewise.
7855         * config/epiphany/mode-switch-use.c : Likewise.
7856         * config/epiphany/resolve-sw-modes.c : Likewise.
7857         * config/fr30/fr30.c : Likewise.
7858         * config/frv/frv.c : Likewise.
7859         * config/ft32/ft32.c : Likewise.
7860         * config/glibc-c.c : Likewise.
7861         * config/h8300/h8300.c : Likewise.
7862         * config/i386/i386-c.c : Likewise.
7863         * config/i386/i386.c : Likewise.
7864         * config/i386/msformat-c.c : Likewise.
7865         * config/i386/winnt-cxx.c : Likewise.
7866         * config/i386/winnt-stubs.c : Likewise.
7867         * config/i386/winnt.c : Likewise.
7868         * config/ia64/ia64-c.c : Likewise.
7869         * config/ia64/ia64.c : Likewise.
7870         * config/iq2000/iq2000.c : Likewise.
7871         * config/lm32/lm32.c : Likewise.
7872         * config/m32c/m32c-pragma.c : Likewise.
7873         * config/m32c/m32c.c : Likewise.
7874         * config/m32r/m32r.c : Likewise.
7875         * config/m68k/m68k.c : Likewise.
7876         * config/mcore/mcore.c : Likewise.
7877         * config/mep/mep-pragma.c : Likewise.
7878         * config/mep/mep.c : Likewise.
7879         * config/microblaze/microblaze-c.c : Likewise.
7880         * config/microblaze/microblaze.c : Likewise.
7881         * config/mips/mips.c : Likewise.
7882         * config/mmix/mmix.c : Likewise.
7883         * config/mn10300/mn10300.c : Likewise.
7884         * config/moxie/moxie.c : Likewise.
7885         * config/msp430/msp430-c.c : Likewise.
7886         * config/msp430/msp430.c : Likewise.
7887         * config/nds32/nds32-cost.c : Likewise.
7888         * config/nds32/nds32-fp-as-gp.c : Likewise.
7889         * config/nds32/nds32-intrinsic.c : Likewise.
7890         * config/nds32/nds32-isr.c : Likewise.
7891         * config/nds32/nds32-md-auxiliary.c : Likewise.
7892         * config/nds32/nds32-memory-manipulation.c : Likewise.
7893         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
7894         * config/nds32/nds32-predicates.c : Likewise.
7895         * config/nds32/nds32.c : Likewise.
7896         * config/nios2/nios2.c : Likewise.
7897         * config/nvptx/nvptx.c : Likewise.
7898         * config/pa/pa.c : Likewise.
7899         * config/pdp11/pdp11.c : Likewise.
7900         * config/rl78/rl78-c.c : Likewise.
7901         * config/rl78/rl78.c : Likewise.
7902         * config/rs6000/rs6000-c.c : Likewise.
7903         * config/rs6000/rs6000.c : Likewise.
7904         * config/rx/rx.c : Likewise.
7905         * config/s390/s390-c.c : Likewise.
7906         * config/s390/s390.c : Likewise.
7907         * config/sh/sh-c.c : Likewise.
7908         * config/sh/sh-mem.cc : Likewise.
7909         * config/sh/sh.c : Likewise.
7910         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
7911         * config/sh/sh_treg_combine.cc : Likewise.
7912         * config/sol2-c.c : Likewise.
7913         * config/sol2-cxx.c : Likewise.
7914         * config/sol2-stubs.c : Likewise.
7915         * config/sol2.c : Likewise.
7916         * config/sparc/sparc-c.c : Likewise.
7917         * config/sparc/sparc.c : Likewise.
7918         * config/spu/spu-c.c : Likewise.
7919         * config/spu/spu.c : Likewise.
7920         * config/stormy16/stormy16.c : Likewise.
7921         * config/tilegx/mul-tables.c : Likewise.
7922         * config/tilegx/tilegx-c.c : Likewise.
7923         * config/tilegx/tilegx.c : Likewise.
7924         * config/tilepro/mul-tables.c : Likewise.
7925         * config/tilepro/tilepro-c.c : Likewise.
7926         * config/tilepro/tilepro.c : Likewise.
7927         * config/v850/v850-c.c : Likewise.
7928         * config/v850/v850.c : Likewise.
7929         * config/vax/vax.c : Likewise.
7930         * config/visium/visium.c : Likewise.
7931         * config/vms/vms-c.c : Likewise.
7932         * config/vms/vms.c : Likewise.
7933         * config/vxworks.c : Likewise.
7934         * config/winnt-c.c : Likewise.
7935         * config/xtensa/xtensa.c : Likewise.
7937 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
7939         PR lto/65378
7940         * ipa-utils.h (warn_types_mismatch): Update prototype.
7941         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
7942         parameters.
7943         (type_mismatch_p): New function.
7944         (warn_types_mismatch): Reorg to work better on non-C++ types.
7945         (odr_types_equivalent_p): Add loc1/loc2 parameters.
7946         (add_type_duplicate): Update.
7948 2015-06-08  Tom de Vries  <tom@codesourcery.com>
7950         PR rtl-optimization/66444
7951         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
7952         call_used_regs.
7954 2015-06-08  Richard Biener  <rguenther@suse.de>
7956         PR tree-optimization/66422
7957         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
7958         block after inserted gcc_unreachable.
7960 2015-06-08  Nick Clifton  <nickc@redhat.com>
7962         * config/rx/rx.c (rx_function_value): Do not promote vector types.
7963         (rx_promote_function_mode): Likewise.
7964         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
7966 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
7968         * genattrtab.c (insn_alternatives): Change type from int *
7969         to uint64_t *.
7970         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
7971         (get_attr_value): Change type of num_alt to uint64_t.
7972         (compute_alternative_mask): Change return type from
7973         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
7974         (make_alternative_compare, mk_attr_alt): Change argument type
7975         from int to uint64_t.
7976         (simplify_test_exp): Change type of i from int to uint64_t.
7977         Shift ((uint64_t) 1) instead of 1 up.
7978         (main): Adjust oballocvec first argument from int to uint64_t.
7979         Shift ((uint64_t) 1) instead of 1 up.
7981 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7983         PR other/65366
7984         * gdbhooks.py: Import sys.
7985         (intptr): New function.  Replace int(...) by intptr(...).
7987 2015-06-08  Richard Biener  <rguenther@suse.de>
7989         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
7990         adjustment for gaps at the end of a SLP load group properly.
7991         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
7992         all permutations we can generate.
7993         (vect_transform_slp_perm_load): Use the correct group-size.
7995 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
7997         * genmatch.c (expr::gen_transform): For conditions, guess the type
7998         from the second operand.
8000 2015-06-08  Tom de Vries  <tom@codesourcery.com>
8002         PR tree-optimization/66442
8003         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
8004         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
8005         if the loop latch is not a singleton.  Use
8006         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
8008 2015-06-08  Marek Polacek  <polacek@redhat.com>
8010         PR sanitizer/66452
8011         * toplev.c (check_global_declaration): Don't warn about artificial
8012         decls.
8014 2015-06-08  Tom de Vries  <tom@codesourcery.com>
8016         PR tree-optimization/66436
8017         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
8018         dump file.
8019         * gimplify.c: Add tree-dump.h include.
8020         (gimplify_function_tree): Dump function to gimple dump file.
8021         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
8022         dump file.
8024 2015-06-08  Tom de Vries  <tom@codesourcery.com>
8026         PR tree-optimization/66435
8027         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
8028         function.
8030 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
8032         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
8033         of ptr_type_node to not be ptr_to_node.
8034         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
8035         TREE_TYPE of pointers.
8036         * gimple-expr.c (useless_type_conversion): Reorder the check for
8037         function pointers and TYPE_CANONICAL.
8039 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
8041         PR bootstrap/66319
8042         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
8043         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
8044         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
8045         later.
8046         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
8047         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
8048         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
8049         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
8050         and non iso if unix2003.
8052 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
8054         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
8056 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
8058         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
8059         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
8060         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
8061         except.c, final.c, function.c, gcse-common.c, genemit.c,
8062         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
8063         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
8064         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
8065         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
8066         more derived ones.
8068 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
8070         * combine.c (combine_split_insns): Remove cast.
8071         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
8072         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
8073         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
8074         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
8075         * genemit.c (gen_split): Change return type of generated functions to
8076         rtx_insn.
8077         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
8078         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
8079         gen_peephole2_* functions.
8080         (print_subroutine, main): Likewise.
8081         * recog.c (peephole2_optimize): Remove cast.
8082         (peep2_next_insn): Promote return type to rtx_insn.
8083         * recog.h (peep2_next_insn): Fix prototype.
8084         * rtl.h (try_split, split_insns): Likewise.
8086 2015-06-06  DJ Delorie  <dj@redhat.com>
8088         * config/msp430/msp430.c (msp430_asm_integer): Support addition
8089         and subtraction too.
8091 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
8093         PR target/66410
8094         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
8095         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
8096         instead of Snd.  Disparage Sid/z alternative with '^'.
8098 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
8100         * dwarf2out.c: Remove deferred_locations*.
8101         (dwarf2_debug_hooks): Add early_finish hook.
8102         Remove global_decl hook.
8103         Add early_global_decl and late_global_decl hook.
8104         New global early_dwarf.
8105         New structure set_early_dwarf.
8106         (output_die): Indicate whether a DIE was generated early
8107         when generating assembly with -dA.
8108         (struct limbo_die_struct): Document created_for field.
8109         Remove file_table_last_lookup.
8110         (remove_AT): Return TRUE if successful.
8111         (remove_child_TAG): Clear die_parent.
8112         (reparent_child): New function abstracted from...
8113         (splice_child_die): ...here.
8114         (new_die): ICE if a DIE ends up in limbo too late.
8115         (check_die): New.
8116         (defer_location): Remove.
8117         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
8118         (fill_variable_array_bounds): New.
8119         (decl_start_label): Call fill_variable_array_bounds.
8120         (gen_formal_parameter_die): Rewrite to reuse previously generated
8121         DIEs.
8122         (gen_subprogram_die): Same.
8123         (gen_variable_die): Same.
8124         (gen_const_die): Same.
8125         (gen_label_die): Same.
8126         (gen_lexical_block_die): Same.
8127         (decl_will_get_specification_p): New.
8128         (local_function_static): New.
8129         (gen_struct_or_union_type_die): Fill in variable-length fields.
8130         (gen_typedef_die): Fill in variable-length typedefs.
8131         (gen_tagged_type_die): Gracefully return on error_mark_node.
8132         Handle re-entrancy.
8133         (gen_type_die_with_usage): Handle variable-length types.
8134         Remove duplicate code for ARRAY_TYPE case.
8135         (process_scope_var): Only process imported modules during early
8136         dwarf.
8137         (dwarf2out_early_global_decl): New.
8138         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
8139         (dwarf2out_type_decl): Set early_dwarf while calling
8140         dwarf2out_decl.
8141         (dwarf2out_decl): Verify that we did not recreate a previously
8142         generated DIE.
8143         Do not return on DECL_EXTERNALs in VAR_DECLs.
8144         Abstract some code to local_function_static.
8145         (lookup_filename): Remove use of file_table_last_lookup.
8146         Gracefully exit on missing file_name.
8147         (dwarf2out_finish): Verify limbo list.
8148         Remove deferred_locations_list use.
8149         Move deferred_asm_name and limbo flushing to...
8150         (dwarf2out_early_finish): ...here.  New.
8151         (dwarf2out_c_finalize): Remove set of deferred_location_list,
8152         deferred_asm_name, and file_table_last_lookup.
8153         * cgraph.h (referred_to_p): Add default argument.
8154         * cgraphunit.c (referred_to_p): Add and handle include_self
8155         argument.
8156         (analyze_functions): Add first_time argument.
8157         Call check_global_declaration for all symbols.
8158         Call late_global_decl for nodes for moribund nodes.
8159         (finalize_compilation_unit): Add new argument to
8160         analyze_functions.
8161         Call early_global_decl for functions.
8162         Call early_finish debug hook.
8163         * dbxout.c (dbxout_early_global_decl): New.
8164         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
8165         (dbx_debug_hooks): Add new hooks.
8166         (xcoff_debug_hooks): Same.
8167         * debug.c (do_nothing_debug_hooks): Add early_finish field.
8168         Add early and late debug hooks.
8169         Remove global_decl hook.
8170         * debug.h (struct gcc_debug_hooks): Add early_finish,
8171         early_global_decl, and late_global_decl fields.
8172         Remove global_decl field.
8173         Document gcc_debug_hooks.
8174         * gengtype.c (output_typename): Remove.
8175         * godump.c (go_early_global_decl): New.
8176         (go_late_global_decl): New.
8177         (go_global_decl): Remove.
8178         (dump_go_spec_init): Remove global_decl.  Add
8179         {early,late}_global_decl.
8180         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
8181         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
8182         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
8183         (write_global_declarations): Remove.
8184         (global_decl_processing): New.
8185         * langhooks.h (struct lang_hooks_for_decls): Remove
8186         final_write_globals field.
8187         Add post_compilation_parsing_cleanups field.
8188         * passes.c (rest_of_decl_compilation): Call early_global_decl.
8189         * sdbout.c: Add early and late_global_decl hooks.  Remove
8190         sdbout_global_decl hook.
8191         Add early_finish field for sdb_debug_hooks.
8192         (sdbout_global_decl): Remove.
8193         (sdbout_early_global_decl): New.
8194         (sdbout_late_global_decl): New.
8195         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
8196         * toplev.c (check_global_declaration): Rename from
8197         check_global_declaration_1.
8198         Adapt to use symtab infrastructure.
8199         (check_global_declarations): Remove.
8200         (emit_debug_global_declarations): Remove.
8201         (compile_file): Remove call to final_write_globals langhook.
8202         Run the actual compilation process.
8203         Perform any post compilation parser cleanups.
8204         Generate late debug info.
8205         * toplev.h (check_global_declaration): New.
8206         (check_global_declaration_1): Remove.
8207         (check_global_declarations): Remove.
8208         (write_global_declarations): Remove.
8209         (emit_debug_global_declarations): Remove.
8210         (global_decl_processing): New.
8211         * tree-core.h (struct tree_block): Add DIE field.
8212         * tree.h (BLOCK_DIE): New.
8213         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
8214         throughout.
8215         (vmsdbgout_early_global_decl): New.
8216         (vmsdbgout_late_global_decl): New.
8217         Add early_finish debug hook field to vmsdbg_debug_hooks.
8218         Remove vmsdbgout_decl to vmsdbgout_function_decl.
8219         Add early and late_global_decl debug hooks.
8221 2015-06-05  Julian Brown  <julian@codesourcery.com>
8222             Sandra Loosemore  <sandra@codesourcery.com>
8224         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
8225         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
8226         to print-sysroot-suffix.sh script.
8228 2015-06-05  Tom de Vries  <tom@codesourcery.com>
8230         merge from gomp4 branch:
8231         2015-05-28  Tom de Vries  <tom@codesourcery.com>
8233         PR tree-optimization/65443
8234         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
8235         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
8236         (try_transform_to_exit_first_loop_alt): New function.
8237         (transform_to_exit_first_loop): Use
8238         try_transform_to_exit_first_loop_alt.
8240 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
8242         * builtins.c (expand_builtin_atomic_compare_exchange): Call
8243         emit_cmp_and_jump_insns with the mode of target.
8245 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8247         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
8249 2015-06-04  DJ Delorie  <dj@redhat.com>
8251         * config/msp430/msp430.md (movsi_s): New.  Special case for
8252         storing a 20-bit symbol into a 32-bit register.
8253         * config/msp430/msp430.c (msp430_subreg): Add support for it.
8254         * config/msp430/predicates.md (msp430_symbol_operand): New.
8256 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
8258         * c-family/c-common.c (noplt): New attribute.
8259         (handle_noplt_attribute): New handler.
8260         * calls.c (prepare_call_address): Check for noplt
8261         attribute.
8262         * config/i386/i386.c (ix86_expand_call): Check
8263         for noplt attribute.
8264         (ix86_nopic_noplt_attribute_p): New function.
8265         (ix86_output_call_insn): Output indirect call for non-pic
8266         no plt calls.
8267         * doc/extend.texi (noplt): Document new attribute.
8268         * doc/invoke.texi: Document new attribute.
8270 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
8272         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
8273         real.h, and fixed-value.h when included in host source files.
8274         * double-int.h: Remove redundant #includes listed above.
8275         * fixed-value.h: Likewise.
8276         * real.h: Likewise.
8277         * wide-int.h: Likewise.
8278         * inchash.h: Likewise.
8279         * rtl.h: Add some include files When included from a generator file.
8280         * target.h: Remove wide-int.h and insn-modes.h from the include list.
8281         * internal-fn.h: Don't include coretypes.h.
8282         * alias.c: Adjust includes for restructured coretypes.h.
8283         * asan.c: Likewise.
8284         * attribs.c: Likewise.
8285         * auto-inc-dec.c: Likewise.
8286         * auto-profile.c: Likewise.
8287         * bb-reorder.c: Likewise.
8288         * bt-load.c: Likewise.
8289         * builtins.c: Likewise.
8290         * caller-save.c: Likewise.
8291         * calls.c: Likewise.
8292         * ccmp.c: Likewise.
8293         * cfg.c: Likewise.
8294         * cfganal.c: Likewise.
8295         * cfgbuild.c: Likewise.
8296         * cfgcleanup.c: Likewise.
8297         * cfgexpand.c: Likewise.
8298         * cfghooks.c: Likewise.
8299         * cfgloop.c: Likewise.
8300         * cfgloop.h: Likewise.
8301         * cfgloopanal.c: Likewise.
8302         * cfgloopmanip.c: Likewise.
8303         * cfgrtl.c: Likewise.
8304         * cgraph.c: Likewise.
8305         * cgraphbuild.c: Likewise.
8306         * cgraphclones.c: Likewise.
8307         * cgraphunit.c: Likewise.
8308         * cilk-common.c: Likewise.
8309         * combine-stack-adj.c: Likewise.
8310         * combine.c: Likewise.
8311         * compare-elim.c: Likewise.
8312         * convert.c: Likewise.
8313         * coverage.c: Likewise.
8314         * cppbuiltin.c: Likewise.
8315         * cprop.c: Likewise.
8316         * cse.c: Likewise.
8317         * cselib.c: Likewise.
8318         * data-streamer-in.c: Likewise.
8319         * data-streamer-out.c: Likewise.
8320         * data-streamer.c: Likewise.
8321         * dbxout.c: Likewise.
8322         * dce.c: Likewise.
8323         * ddg.c: Likewise.
8324         * debug.c: Likewise.
8325         * df-core.c: Likewise.
8326         * df-problems.c: Likewise.
8327         * df-scan.c: Likewise.
8328         * df.h: Likewise.
8329         * dfp.c: Likewise.
8330         * dojump.c: Likewise.
8331         * dominance.c: Likewise.
8332         * domwalk.c: Likewise.
8333         * double-int.c: Likewise.
8334         * dse.c: Likewise.
8335         * dumpfile.c: Likewise.
8336         * dwarf2asm.c: Likewise.
8337         * dwarf2cfi.c: Likewise.
8338         * dwarf2out.c: Likewise.
8339         * dwarf2out.h: Likewise.
8340         * emit-rtl.c: Likewise.
8341         * et-forest.c: Likewise.
8342         * except.c: Likewise.
8343         * explow.c: Likewise.
8344         * expmed.c: Likewise.
8345         * expr.c: Likewise.
8346         * final.c: Likewise.
8347         * fixed-value.c: Likewise.
8348         * fold-const.c: Likewise.
8349         * function.c: Likewise.
8350         * fwprop.c: Likewise.
8351         * gcc-plugin.h: Likewise.
8352         * gcse.c: Likewise.
8353         * generic-match-head.c: Likewise.
8354         * ggc-page.c: Likewise.
8355         * gimple-builder.c: Likewise.
8356         * gimple-expr.c: Likewise.
8357         * gimple-fold.c: Likewise.
8358         * gimple-iterator.c: Likewise.
8359         * gimple-low.c: Likewise.
8360         * gimple-match-head.c: Likewise.
8361         * gimple-pretty-print.c: Likewise.
8362         * gimple-ssa-isolate-paths.c: Likewise.
8363         * gimple-ssa-strength-reduction.c: Likewise.
8364         * gimple-streamer-in.c: Likewise.
8365         * gimple-streamer-out.c: Likewise.
8366         * gimple-streamer.h: Likewise.
8367         * gimple-walk.c: Likewise.
8368         * gimple.c: Likewise.
8369         * gimplify-me.c: Likewise.
8370         * gimplify.c: Likewise.
8371         * godump.c: Likewise.
8372         * graph.c: Likewise.
8373         * graphite-blocking.c: Likewise.
8374         * graphite-dependences.c: Likewise.
8375         * graphite-interchange.c: Likewise.
8376         * graphite-isl-ast-to-gimple.c: Likewise.
8377         * graphite-optimize-isl.c: Likewise.
8378         * graphite-poly.c: Likewise.
8379         * graphite-scop-detection.c: Likewise.
8380         * graphite-sese-to-poly.c: Likewise.
8381         * graphite.c: Likewise.
8382         * haifa-sched.c: Likewise.
8383         * hooks.h: Likewise.
8384         * hw-doloop.c: Likewise.
8385         * ifcvt.c: Likewise.
8386         * incpath.c: Likewise.
8387         * init-regs.c: Likewise.
8388         * internal-fn.c: Likewise.
8389         * ipa-chkp.c: Likewise.
8390         * ipa-comdats.c: Likewise.
8391         * ipa-cp.c: Likewise.
8392         * ipa-devirt.c: Likewise.
8393         * ipa-icf-gimple.c: Likewise.
8394         * ipa-icf.c: Likewise.
8395         * ipa-inline-analysis.c: Likewise.
8396         * ipa-inline-transform.c: Likewise.
8397         * ipa-inline.c: Likewise.
8398         * ipa-polymorphic-call.c: Likewise.
8399         * ipa-profile.c: Likewise.
8400         * ipa-prop.c: Likewise.
8401         * ipa-pure-const.c: Likewise.
8402         * ipa-ref.c: Likewise.
8403         * ipa-reference.c: Likewise.
8404         * ipa-split.c: Likewise.
8405         * ipa-utils.c: Likewise.
8406         * ipa-visibility.c: Likewise.
8407         * ipa.c: Likewise.
8408         * ira-build.c: Likewise.
8409         * ira-color.c: Likewise.
8410         * ira-conflicts.c: Likewise.
8411         * ira-costs.c: Likewise.
8412         * ira-emit.c: Likewise.
8413         * ira-lives.c: Likewise.
8414         * ira.c: Likewise.
8415         * jump.c: Likewise.
8416         * langhooks.c: Likewise.
8417         * lcm.c: Likewise.
8418         * loop-doloop.c: Likewise.
8419         * loop-init.c: Likewise.
8420         * loop-invariant.c: Likewise.
8421         * loop-iv.c: Likewise.
8422         * loop-unroll.c: Likewise.
8423         * lower-subreg.c: Likewise.
8424         * lra-assigns.c: Likewise.
8425         * lra-coalesce.c: Likewise.
8426         * lra-constraints.c: Likewise.
8427         * lra-eliminations.c: Likewise.
8428         * lra-lives.c: Likewise.
8429         * lra-remat.c: Likewise.
8430         * lra-spills.c: Likewise.
8431         * lra.c: Likewise.
8432         * lto-cgraph.c: Likewise.
8433         * lto-compress.c: Likewise.
8434         * lto-opts.c: Likewise.
8435         * lto-section-in.c: Likewise.
8436         * lto-section-out.c: Likewise.
8437         * lto-streamer-in.c: Likewise.
8438         * lto-streamer-out.c: Likewise.
8439         * lto-streamer.c: Likewise.
8440         * mcf.c: Likewise.
8441         * mode-switching.c: Likewise.
8442         * modulo-sched.c: Likewise.
8443         * omega.c: Likewise.
8444         * omp-low.c: Likewise.
8445         * optabs.c: Likewise.
8446         * opts-global.c: Likewise.
8447         * passes.c: Likewise.
8448         * plugin.c: Likewise.
8449         * postreload-gcse.c: Likewise.
8450         * postreload.c: Likewise.
8451         * predict.c: Likewise.
8452         * print-rtl.c: Likewise.
8453         * print-tree.c: Likewise.
8454         * profile.c: Likewise.
8455         * real.c: Likewise.
8456         * realmpfr.c: Likewise.
8457         * realmpfr.h: Likewise.
8458         * recog.c: Likewise.
8459         * ree.c: Likewise.
8460         * reg-stack.c: Likewise.
8461         * regcprop.c: Likewise.
8462         * reginfo.c: Likewise.
8463         * regrename.c: Likewise.
8464         * regs.h: Likewise.
8465         * regstat.c: Likewise.
8466         * reload.c: Likewise.
8467         * reload1.c: Likewise.
8468         * reorg.c: Likewise.
8469         * resource.c: Likewise.
8470         * rtl-chkp.c: Likewise.
8471         * rtlanal.c: Likewise.
8472         * rtlhooks.c: Likewise.
8473         * sanopt.c: Likewise.
8474         * sched-deps.c: Likewise.
8475         * sched-ebb.c: Likewise.
8476         * sched-rgn.c: Likewise.
8477         * sched-vis.c: Likewise.
8478         * sdbout.c: Likewise.
8479         * sel-sched-dump.c: Likewise.
8480         * sel-sched-ir.c: Likewise.
8481         * sel-sched.c: Likewise.
8482         * sese.c: Likewise.
8483         * shrink-wrap.c: Likewise.
8484         * shrink-wrap.h: Likewise.
8485         * simplify-rtx.c: Likewise.
8486         * stack-ptr-mod.c: Likewise.
8487         * statistics.c: Likewise.
8488         * stmt.c: Likewise.
8489         * stor-layout.c: Likewise.
8490         * store-motion.c: Likewise.
8491         * stringpool.c: Likewise.
8492         * symtab.c: Likewise.
8493         * target-globals.c: Likewise.
8494         * targhooks.c: Likewise.
8495         * toplev.c: Likewise.
8496         * tracer.c: Likewise.
8497         * trans-mem.c: Likewise.
8498         * tree-affine.c: Likewise.
8499         * tree-affine.h: Likewise.
8500         * tree-browser.c: Likewise.
8501         * tree-call-cdce.c: Likewise.
8502         * tree-cfg.c: Likewise.
8503         * tree-cfgcleanup.c: Likewise.
8504         * tree-chkp-opt.c: Likewise.
8505         * tree-chkp.c: Likewise.
8506         * tree-chrec.c: Likewise.
8507         * tree-complex.c: Likewise.
8508         * tree-data-ref.c: Likewise.
8509         * tree-dfa.c: Likewise.
8510         * tree-diagnostic.c: Likewise.
8511         * tree-dump.c: Likewise.
8512         * tree-eh.c: Likewise.
8513         * tree-emutls.c: Likewise.
8514         * tree-if-conv.c: Likewise.
8515         * tree-inline.c: Likewise.
8516         * tree-into-ssa.c: Likewise.
8517         * tree-iterator.c: Likewise.
8518         * tree-loop-distribution.c: Likewise.
8519         * tree-nested.c: Likewise.
8520         * tree-nrv.c: Likewise.
8521         * tree-object-size.c: Likewise.
8522         * tree-outof-ssa.c: Likewise.
8523         * tree-parloops.c: Likewise.
8524         * tree-phinodes.c: Likewise.
8525         * tree-predcom.c: Likewise.
8526         * tree-pretty-print.c: Likewise.
8527         * tree-pretty-print.h: Likewise.
8528         * tree-profile.c: Likewise.
8529         * tree-scalar-evolution.c: Likewise.
8530         * tree-sra.c: Likewise.
8531         * tree-ssa-address.c: Likewise.
8532         * tree-ssa-alias.c: Likewise.
8533         * tree-ssa-ccp.c: Likewise.
8534         * tree-ssa-coalesce.c: Likewise.
8535         * tree-ssa-copy.c: Likewise.
8536         * tree-ssa-copyrename.c: Likewise.
8537         * tree-ssa-dce.c: Likewise.
8538         * tree-ssa-dom.c: Likewise.
8539         * tree-ssa-dse.c: Likewise.
8540         * tree-ssa-forwprop.c: Likewise.
8541         * tree-ssa-ifcombine.c: Likewise.
8542         * tree-ssa-live.c: Likewise.
8543         * tree-ssa-loop-ch.c: Likewise.
8544         * tree-ssa-loop-im.c: Likewise.
8545         * tree-ssa-loop-ivcanon.c: Likewise.
8546         * tree-ssa-loop-ivopts.c: Likewise.
8547         * tree-ssa-loop-manip.c: Likewise.
8548         * tree-ssa-loop-niter.c: Likewise.
8549         * tree-ssa-loop-prefetch.c: Likewise.
8550         * tree-ssa-loop-unswitch.c: Likewise.
8551         * tree-ssa-loop.c: Likewise.
8552         * tree-ssa-loop.h: Likewise.
8553         * tree-ssa-math-opts.c: Likewise.
8554         * tree-ssa-operands.c: Likewise.
8555         * tree-ssa-phiopt.c: Likewise.
8556         * tree-ssa-phiprop.c: Likewise.
8557         * tree-ssa-pre.c: Likewise.
8558         * tree-ssa-propagate.c: Likewise.
8559         * tree-ssa-reassoc.c: Likewise.
8560         * tree-ssa-sccvn.c: Likewise.
8561         * tree-ssa-scopedtables.c: Likewise.
8562         * tree-ssa-sink.c: Likewise.
8563         * tree-ssa-strlen.c: Likewise.
8564         * tree-ssa-structalias.c: Likewise.
8565         * tree-ssa-tail-merge.c: Likewise.
8566         * tree-ssa-ter.c: Likewise.
8567         * tree-ssa-threadedge.c: Likewise.
8568         * tree-ssa-threadupdate.c: Likewise.
8569         * tree-ssa-uncprop.c: Likewise.
8570         * tree-ssa-uninit.c: Likewise.
8571         * tree-ssa.c: Likewise.
8572         * tree-ssanames.c: Likewise.
8573         * tree-stdarg.c: Likewise.
8574         * tree-streamer-in.c: Likewise.
8575         * tree-streamer-out.c: Likewise.
8576         * tree-streamer.c: Likewise.
8577         * tree-switch-conversion.c: Likewise.
8578         * tree-tailcall.c: Likewise.
8579         * tree-vect-data-refs.c: Likewise.
8580         * tree-vect-generic.c: Likewise.
8581         * tree-vect-loop-manip.c: Likewise.
8582         * tree-vect-loop.c: Likewise.
8583         * tree-vect-patterns.c: Likewise.
8584         * tree-vect-slp.c: Likewise.
8585         * tree-vect-stmts.c: Likewise.
8586         * tree-vectorizer.c: Likewise.
8587         * tree-vrp.c: Likewise.
8588         * tree.c: Likewise.
8589         * tsan.c: Likewise.
8590         * ubsan.c: Likewise.
8591         * valtrack.c: Likewise.
8592         * value-prof.c: Likewise.
8593         * var-tracking.c: Likewise.
8594         * varasm.c: Likewise.
8595         * varpool.c: Likewise.
8596         * vmsdbgout.c: Likewise.
8597         * vtable-verify.c: Likewise.
8598         * web.c: Likewise.
8599         * wide-int-print.cc: Likewise.
8600         * wide-int-print.h: Likewise.
8601         * wide-int.cc: Likewise.
8602         * xcoffout.c: Likewise.
8603         * config/aarch64/aarch64-builtins.c: Likewise.
8604         * config/aarch64/aarch64.c: Likewise.
8605         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8606         * config/alpha/alpha.c: Likewise.
8607         * config/arc/arc.c: Likewise.
8608         * config/arm/aarch-common.c: Likewise.
8609         * config/arm/arm-builtins.c: Likewise.
8610         * config/arm/arm-c.c: Likewise.
8611         * config/arm/arm.c: Likewise.
8612         * config/avr/avr-c.c: Likewise.
8613         * config/avr/avr-log.c: Likewise.
8614         * config/avr/avr.c: Likewise.
8615         * config/bfin/bfin.c: Likewise.
8616         * config/c6x/c6x.c: Likewise.
8617         * config/cr16/cr16.c: Likewise.
8618         * config/cris/cris.c: Likewise.
8619         * config/darwin-c.c: Likewise.
8620         * config/darwin.c: Likewise.
8621         * config/default-c.c: Likewise.
8622         * config/epiphany/epiphany.c: Likewise.
8623         * config/epiphany/mode-switch-use.c: Likewise.
8624         * config/epiphany/resolve-sw-modes.c: Likewise.
8625         * config/fr30/fr30.c: Likewise.
8626         * config/frv/frv.c: Likewise.
8627         * config/ft32/ft32.c: Likewise.
8628         * config/glibc-c.c: Likewise.
8629         * config/h8300/h8300.c: Likewise.
8630         * config/i386/i386-c.c: Likewise.
8631         * config/i386/i386.c: Likewise.
8632         * config/i386/msformat-c.c: Likewise.
8633         * config/i386/winnt-cxx.c: Likewise.
8634         * config/i386/winnt-stubs.c: Likewise.
8635         * config/i386/winnt.c: Likewise.
8636         * config/ia64/ia64-c.c: Likewise.
8637         * config/ia64/ia64.c: Likewise.
8638         * config/iq2000/iq2000.c: Likewise.
8639         * config/lm32/lm32.c: Likewise.
8640         * config/m32c/m32c-pragma.c: Likewise.
8641         * config/m32c/m32c.c: Likewise.
8642         * config/m32r/m32r.c: Likewise.
8643         * config/m68k/m68k.c: Likewise.
8644         * config/mcore/mcore.c: Likewise.
8645         * config/mep/mep-pragma.c: Likewise.
8646         * config/mep/mep.c: Likewise.
8647         * config/microblaze/microblaze-c.c: Likewise.
8648         * config/microblaze/microblaze.c: Likewise.
8649         * config/mips/mips.c: Likewise.
8650         * config/mmix/mmix.c: Likewise.
8651         * config/mn10300/mn10300.c: Likewise.
8652         * config/moxie/moxie.c: Likewise.
8653         * config/msp430/msp430-c.c: Likewise.
8654         * config/msp430/msp430.c: Likewise.
8655         * config/nds32/nds32-cost.c: Likewise.
8656         * config/nds32/nds32-fp-as-gp.c: Likewise.
8657         * config/nds32/nds32-intrinsic.c: Likewise.
8658         * config/nds32/nds32-isr.c: Likewise.
8659         * config/nds32/nds32-md-auxiliary.c: Likewise.
8660         * config/nds32/nds32-memory-manipulation.c: Likewise.
8661         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8662         * config/nds32/nds32-predicates.c: Likewise.
8663         * config/nds32/nds32.c: Likewise.
8664         * config/nios2/nios2.c: Likewise.
8665         * config/nvptx/nvptx.c: Likewise.
8666         * config/pa/pa.c: Likewise.
8667         * config/pdp11/pdp11.c: Likewise.
8668         * config/rl78/rl78-c.c: Likewise.
8669         * config/rl78/rl78.c: Likewise.
8670         * config/rs6000/rs6000-c.c: Likewise.
8671         * config/rs6000/rs6000.c: Likewise.
8672         * config/rx/rx.c: Likewise.
8673         * config/s390/s390-c.c: Likewise.
8674         * config/s390/s390.c: Likewise.
8675         * config/sh/sh-c.c: Likewise.
8676         * config/sh/sh-mem.cc: Likewise.
8677         * config/sh/sh.c: Likewise.
8678         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8679         * config/sh/sh_treg_combine.cc: Likewise.
8680         * config/sol2-c.c: Likewise.
8681         * config/sol2-cxx.c: Likewise.
8682         * config/sol2-stubs.c: Likewise.
8683         * config/sol2.c: Likewise.
8684         * config/sparc/sparc-c.c: Likewise.
8685         * config/sparc/sparc.c: Likewise.
8686         * config/spu/spu-c.c: Likewise.
8687         * config/spu/spu.c: Likewise.
8688         * config/stormy16/stormy16.c: Likewise.
8689         * config/tilegx/mul-tables.c: Likewise.
8690         * config/tilegx/tilegx-c.c: Likewise.
8691         * config/tilegx/tilegx.c: Likewise.
8692         * config/tilepro/mul-tables.c: Likewise.
8693         * config/tilepro/tilepro-c.c: Likewise.
8694         * config/tilepro/tilepro.c: Likewise.
8695         * config/v850/v850-c.c: Likewise.
8696         * config/v850/v850.c: Likewise.
8697         * config/vax/vax.c: Likewise.
8698         * config/visium/visium.c: Likewise.
8699         * config/vms/vms-c.c: Likewise.
8700         * config/vms/vms.c: Likewise.
8701         * config/vxworks.c: Likewise.
8702         * config/winnt-c.c: Likewise.
8703         * config/xtensa/xtensa.c: Likewise.
8704         * common/config/bfin/bfin-common.c: Likewise.
8706 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
8708         * tree.h (tree_code_for_canonical_type_merging): New function.
8709         * tree.c (gimple_canonical_types_compatible_p): Use
8710         tree_code_for_canonical_type_merging..
8712 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8714         PR c++/66192
8715         PR target/66200
8716         * doc/tm.texi: Regenerate.
8717         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
8718         * target.def (TARGET_RELAXED_ORDERING): Likewise.
8719         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
8720         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
8721         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
8722         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
8723         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
8724         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
8725         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
8727 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8729         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
8730         register fma steering pass.
8731         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
8732         AARCH64_TUNE_FMA_STEERING.
8734 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
8736         * tree.c (verify_type_variant): Verify that type and variant is
8737         compatible.
8738         (gimple_canonical_types_compatible_p): Look for main variants.
8740 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8742         * config.gcc (powerpc*-*-*): Add support for a new configure
8743         option --with-advance-toolchain=<xxx> which overrides using the
8744         default header files, libraries and dynamic linker.
8746         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
8747         specs to support the configure --with-advance-toolchain=<xxx>
8748         option.
8749         (INCLUDE_EXTRA_SPEC): Likewise.
8750         (LINK_OS_EXTRA_SPEC32): Likewise.
8751         (LINK_OK_EXTRA_SPEC64): Likewise.
8752         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
8753         (DYNAMIC_LINKER_PREFIX): Likewise.
8754         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
8755         toolchain support.
8756         (GLIBC_DYNAMIC_LINKER32): Likewise.
8757         (GLIBC_DYNAMIC_LINKER64): Likewise.
8758         (LINK_OS_LINUX_SPEC32): Likewise.
8759         (LINK_OS_LINUX_SPEC64): Likewise.
8761         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
8762         configuration option.
8764 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
8766         PR target/66275
8767         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
8768         to determine current function ABI.
8769         (ix86_function_value_regno_p): Ditto.
8771 2015-06-03  Martin Liska  <mliska@suse.cz>
8773         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
8774         * bitmap.h (struct bitmap_usage): Likewise.
8775         * ggc-common.c (struct ggc_usage): Likewise.
8776         * mem-stats.h (struct mem_location): Likewise.
8777         (struct mem_usage): Likewise.
8778         * vec.c (struct vec_usage): Likewise.
8780 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
8782         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
8783         -Bsymbolic.
8785 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
8787         * doc/plugins.texi (enum plugin_event): New event.
8788         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
8789         and PLUGIN_FINISH_FUNCTION.
8790         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
8791         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
8793 2015-06-03  Richard Biener  <rguenther@suse.de>
8795         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8796         compute GROUP_GAP for the first element.
8797         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
8798         on in-group gaps.
8800 2015-06-03  Nick Clifton  <nickc@redhat.com>
8802         * config/rl78/rl78-real.md: Add peepholes to avoid a register
8803         copy when calling a function.
8804         * config/rl78/rl78.c (need_to_save): Do not push the frame
8805         pointer in an interrupt handler prologue if it is never used.
8807 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8809         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
8811 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
8813         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
8814         reference when cloning alias node.
8816 2015-06-03  Martin Liska  <mliska@suse.cz>
8818         * alloc-pool.h (struct pool_usage): Correct space padding.
8819         * ggc-page.c (ggc_print_statistics): Align columns in a report.
8820         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
8821         * tree.c (dump_tree_statistics): Align columns in a report.
8823 2015-06-03  Martin Liska  <mliska@suse.cz>
8825         * alloc-pool.c (allocate_pool_descriptor): Remove.
8826         (struct pool_output_info): Likewise.
8827         (print_alloc_pool_statistics): Likewise.
8828         (dump_alloc_pool_statistics): Likewise.
8829         * alloc-pool.h (struct pool_usage): New struct.
8830         (pool_allocator::initialize): Change usage of memory statistics
8831         to a new interface.
8832         (pool_allocator::release): Likewise.
8833         (pool_allocator::allocate): Likewise.
8834         (pool_allocator::remove): Likewise.
8835         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
8836         for a pool allocator.
8837         * mem-stats.h (struct mem_location): Add new ctor.
8838         (struct mem_usage): Add counter for number of
8839         instances.
8840         (mem_alloc_description::register_descriptor): New overload of
8841         * mem-stats.h (mem_location::to_string): New function.
8842         * bitmap.h (struct bitmap_usage): Use this new function.
8843         * ggc-common.c (struct ggc_usage): Likewise.
8844         the function.
8846 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
8848         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
8849         of GCC_INSN_FLAGS_H block.
8851 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
8853         * explow.c (plus_constant): Update check after force_const_mem call
8854         to see if the value returned is not a NULL_RTX.
8856 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
8858         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
8859         remove instumentation thunks calling reachable functions.
8860         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
8861         * lto/lto-partition.c (privatize_symbol_name_1): New.
8862         (privatize_symbol_name): Privatize both decl and orig_decl
8863         names for instrumented functions.
8864         * cgraph.c (cgraph_node::verify_node): Add transparent
8865         alias chain check for instrumented node.
8867 2015-06-03  Marek Polacek  <polacek@redhat.com>
8869         PR c/64223
8870         PR c/29358
8871         * tree.c (attribute_value_equal): Handle attribute format.
8872         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
8874 2015-06-03  Richard Biener  <rguenther@suse.de>
8876         PR tree-optimization/63916
8877         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8878         Forward-propagate non-invariant addresses by splicing their
8879         reference ops if the result isn't going to be used by PRE.
8880         (vn_reference_lookup_3): Remove pointless assert.
8882 2015-06-03  Richard Biener  <rguenther@suse.de>
8884         PR tree-optimization/66375
8885         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
8886         add to the evolution before following SSA edges.
8888 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
8890         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
8891         (dump_use, dump_cand, find_induction_variables): Pass new argument
8892         to dump_iv.
8893         (record_use): Preserve the ssa name information in IV.
8895 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
8897         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
8898         NO_MODE_TEST.
8899         (add_mode_tests): Don't add mode tests if the predicate only
8900         accepts scalar constant integers.  Otherwise, allow the mode
8901         of "op" to be VOIDmode if the predicate does accept such integers.
8903 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
8905         PR target/66258
8906         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
8907         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
8908         (aarch64_secondary_reload): Likewise
8909         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
8910         to !TARGET_FLOAT.
8911         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
8912         Likewise.
8914 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
8915             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
8917         PR target/65768
8918         * cprop.c (try_replace_reg): Check cost of constants before propagating.
8920 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8922         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
8923         provide access to the IBM extended double floating point mode if
8924         long double is IEEE 128-bit floating point.
8925         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
8926         point if long double is the IBM extended double type.
8928         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
8929         enable adding IEEE 128-bit floating point support.
8930         (-mfloat128-software): Likewise.
8931         (-mfloat128-sw): Likewise.
8933         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
8934         128-bit floating point types to occupy any register if
8935         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
8936         -mfloat128-software is enabled.
8937         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
8938         support.
8939         (rs6000_option_override_internal): Add -mfloat128-* support.
8940         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
8942         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
8943         and float128 type nodes.
8944         (ieee128_float_type_node): Likewise.
8945         (ibm128_float_type_node): Likewise.
8947 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8949         PR target/66136
8950         * config/aarch64/geniterators.sh: Rewrite in awk.
8952 2015-06-02  Martin Liska  <mliska@suse.cz>
8954         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
8955         values to avoid -Wmaybe-uninitialized errors.
8957 2015-06-02  Richard Biener  <rguenther@suse.de>
8959         PR debug/65549
8960         * dwarf2out.c (lookup_context_die): New function.
8961         (resolve_addr): Avoid forcing a full DIE for the
8962         target of a DW_TAG_GNU_call_site during late compilation.
8963         Instead create a stub DIE without a type if we have a
8964         context DIE present.
8966 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
8968         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
8970 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
8972         PR tree-optimization/48052
8973         * cfgloop.h (struct control_iv): New.
8974         (struct loop): New field control_ivs.
8975         * tree-ssa-loop-niter.c : Include "stor-layout.h".
8976         (number_of_iterations_lt): Set no_overflow information.
8977         (number_of_iterations_exit): Init control iv in niter struct.
8978         (record_control_iv): New.
8979         (estimate_numbers_of_iterations_loop): Call record_control_iv.
8980         (loop_exits_before_overflow): New.  Interface factored out of
8981         scev_probably_wraps_p.
8982         (scev_probably_wraps_p): Factor loop niter related code into
8983         loop_exits_before_overflow.
8984         (free_numbers_of_iterations_estimates_loop): Free control ivs.
8985         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
8987 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
8989         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
8990         the target doesn't belong to the current function.
8992 2015-06-02  Marek Polacek  <polacek@redhat.com>
8994         PR middle-end/66345
8995         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
8996         get_maxval_strlen does not produce an INTEGER_CST.
8998 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
9000         * config/arc/constraints.md: Use lower-case names in match_code.
9001         * config/mmix/constraints.md: Likewise.
9003 2015-06-02  Richard Biener  <rguenther@suse.de>
9005         PR tree-optimization/65961
9006         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
9007         check and clarify dump message.
9008         (vect_build_slp_tree): If all children are built up from scalars
9009         build up the parent from scalars instead.
9010         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
9012 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9014         PR other/65366
9015         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
9016         instead of print ... .
9018 2015-06-02  Alan Modra  <amodra@gmail.com>
9020         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
9021         2014-08-11 change.
9023 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
9025         PR tree-optimization/52563
9026         PR tree-optimization/62173
9027         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
9028         (alloc_iv, set_iv): New parameter.
9029         (determine_biv_step): Delete.
9030         (find_bivs): Inline original determine_biv_step.  Pass new
9031         argument to set_iv.
9032         (idx_find_step): Use no_overflow information for conversion.
9033         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
9034         resolve_mixers handle folded_casts.
9035         (instantiate_scev_name): Change bool parameter to bool pointer.
9036         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
9037         (instantiate_array_ref, instantiate_scev_not): Ditto.
9038         (instantiate_scev_3, instantiate_scev_2): Ditto.
9039         (instantiate_scev_1, instantiate_scev_r): Ditto.
9040         (instantiate_scev_convert, ): Change parameter.  Pass argument
9041         to chrec_convert_aggressive.
9042         (instantiate_scev): Change argument.
9043         (resolve_mixers): New parameter and set it.
9044         (scev_const_prop): New argument.
9045         * tree-scalar-evolution.h (resolve_mixers): New parameter.
9046         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
9047         of chrec_conert_1.
9048         (chrec_convert): New parameter.  Move definition below.
9049         (chrec_convert_aggressive): New parameter and set it.  Call
9050         convert_affine_scev.
9051         * tree-chrec.h (chrec_convert): New parameter.
9052         (chrec_convert_aggressive): Ditto.
9054 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
9056         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
9057         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
9058         the LHS of a no-return call if its type has variable size.
9059         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
9060         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
9062 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
9064         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
9065         * config.in: Regenerate.
9067 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
9069         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
9070         consecutive accesses within outer-loop with force_vectorize
9071         for references with zero step in inner-loop.
9073 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
9075         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
9076         rather than from gcc/build directory.
9078 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
9080         PR target/65697
9081         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
9082         for __sync memory models, emit initial loads and final barriers as
9083         appropriate.
9085 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
9087         PR target/65697
9088         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
9089         (aarch64_split_atomic_op): Check for __sync memory models, emit
9090         appropriate initial loads and final barriers.
9092 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
9094         * Makefile.in: Fix gcov dependencies that should
9095         not point to a build folder.
9097 2015-06-01  Richard Biener  <rguenther@suse.de>
9099         Revert
9100         2015-05-29  Richard Biener  <rguenther@suse.de>
9102         PR tree-optimization/66314
9103         * tree-ssa-threadupdate.c (create_block_for_threading): Add
9104         parameter that says which loop the new block belongs to.
9105         (ssa_create_duplicates): Blocks duplicated for the threaded
9106         path belong to the loop of the thread destination.
9108 2015-06-01  Martin Liska  <mliska@suse.cz>
9110         * sched-deps.c: Include pool-alloc.h before
9111         cselib.h header file is included.
9113 2015-06-01  Richard Biener  <rguenther@suse.de>
9115         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
9116         functions.
9118 2015-06-01  Martin Liska  <mliska@suse.cz>
9120         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
9121         a function local variable.
9123 2015-06-01  Martin Liska  <mliska@suse.cz>
9125         * alloc-pool.c (create_alloc_pool): Remove.
9126         (empty_alloc_pool): Likewise.
9127         (free_alloc_pool): Likewise.
9128         (free_alloc_pool_if_empty): Likewise.
9129         (pool_alloc): Likewise.
9130         (pool_free): Likewise.
9131         * alloc-pool.h: Remove old declarations.
9133 2015-06-01  Martin Liska  <mliska@suse.cz>
9135         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
9136         (ira_create_object): Likewise.
9137         (ira_create_allocno): Likewise.
9138         (ira_create_live_range): Likewise.
9139         (copy_live_range): Likewise.
9140         (ira_finish_live_range): Likewise.
9141         (ira_free_allocno_costs): Likewise.
9142         (finish_allocno): Likewise.
9143         (finish_allocnos): Likewise.
9144         (initiate_prefs): Likewise.
9145         (ira_create_pref): Likewise.
9146         (finish_pref): Likewise.
9147         (finish_prefs): Likewise.
9148         (initiate_copies): Likewise.
9149         (ira_create_copy): Likewise.
9150         (finish_copy): Likewise.
9151         (finish_copies): Likewise.
9152         (finish_prefs): Likewise.
9154 2015-06-01  Martin Liska  <mliska@suse.cz>
9156         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
9157         (allocate_and_init_ipcp_value): Likewise.
9158         (ipcp_lattice::add_value): Likewise.
9159         (merge_agg_lats_step): Likewise.
9160         (ipcp_driver): Likewise.
9161         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
9162         (ipa_free_all_structures_after_iinln): Likewise.
9163         * ipa-prop.h: Likewise.
9165 2015-06-01  Martin Liska  <mliska@suse.cz>
9167         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
9168         pool allocator.
9169         (set_hint_predicate): Likewise.
9170         (inline_summary_alloc): Likewise.
9171         (reset_inline_edge_summary): Likewise.
9172         (reset_inline_summary): Likewise.
9173         (set_cond_stmt_execution_predicate): Likewise.
9174         (set_switch_stmt_execution_predicate): Likewise.
9175         (compute_bb_predicates): Likewise.
9176         (estimate_function_body_sizes): Likewise.
9177         (inline_free_summary): Likewise.
9179 2015-06-01  Martin Liska  <mliska@suse.cz>
9181         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
9182         (ipa_edge_duplication_hook): Likewise.
9183         (ipa_free_all_structures_after_ipa_cp): Likewise.
9184         (ipa_free_all_structures_after_iinln): Likewise.
9186 2015-06-01  Martin Liska  <mliska@suse.cz>
9188         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
9189         (ipa_profile_generate_summary): Likewise.
9190         (ipa_profile_read_summary): Likewise.
9191         (ipa_profile): Likewise.
9193 2015-06-01  Martin Liska  <mliska@suse.cz>
9195         * tree-ssa-structalias.c (new_var_info): Use new type-based
9196         pool allocator.
9197         (new_constraint): Likewise.
9198         (init_alias_vars): Likewise.
9199         (delete_points_to_sets): Likewise.
9201 2015-06-01  Martin Liska  <mliska@suse.cz>
9203         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
9204         (free_strinfo): Likewise.
9205         (pass_strlen::execute): Likewise.
9207 2015-06-01  Martin Liska  <mliska@suse.cz>
9209         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
9210         pool allocator.
9211         (vn_reference_insert_pieces): Likewise.
9212         (vn_phi_insert): Likewise.
9213         (visit_reference_op_call): Likewise.
9214         (copy_phi): Likewise.
9215         (copy_reference): Likewise.
9216         (process_scc): Likewise.
9217         (allocate_vn_table): Likewise.
9218         (free_vn_table): Likewise.
9220 2015-06-01  Martin Liska  <mliska@suse.cz>
9222         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
9223         pool allocator.
9224         (add_repeat_to_ops_vec): Likewise.
9225         (get_ops): Likewise.
9226         (maybe_optimize_range_tests): Likewise.
9227         (init_reassoc): Likewise.
9228         (fini_reassoc): Likewise.
9230 2015-06-01  Martin Liska  <mliska@suse.cz>
9232         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
9233         pool allocator.
9234         (bitmap_set_new): Likewise.
9235         (get_or_alloc_expr_for_constant): Likewise.
9236         (get_or_alloc_expr_for): Likewise.
9237         (phi_translate_1): Likewise.
9238         (compute_avail): Likewise.
9239         (init_pre): Likewise.
9240         (fini_pre): Likewise.
9242 2015-06-01  Martin Liska  <mliska@suse.cz>
9244         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
9245         (delete_dep_node): Likewise.
9246         (create_deps_list): Likewise.
9247         (free_deps_list): Likewise.
9248         (sched_deps_init): Likewise.
9249         (sched_deps_finish): Likewise.
9251 2015-06-01  Martin Liska  <mliska@suse.cz>
9253         * regcprop.c (free_debug_insn_changes): Use new type-based
9254         pool allocator.
9255         (replace_oldest_value_reg): Likewise.
9256         (pass_cprop_hardreg::execute): Likewise.
9258 2015-06-01  Martin Liska  <mliska@suse.cz>
9260         * ira-build.c (initiate_cost_vectors): Use new type-based
9261         pool allocator.
9262         (ira_allocate_cost_vector): Likewise.
9263         (ira_free_cost_vector): Likewise.
9264         (finish_cost_vectors): Likewise.
9266 2015-06-01  Martin Liska  <mliska@suse.cz>
9268         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
9269         pool allocator.
9270         (free_sched_pools): Likewise.
9271         * sel-sched-ir.h (_list_alloc): Likewise.
9272         (_list_remove): Likewise.
9274 2015-06-01  Martin Liska  <mliska@suse.cz>
9276         * stmt.c (add_case_node): Use new type-based pool allocator.
9277         (expand_case): Likewise.
9278         (expand_sjlj_dispatch_table): Likewise.
9280 2015-06-01  Martin Liska  <mliska@suse.cz>
9282         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
9283         (free_bb): Likewise.
9284         (pass_cse_reciprocals::execute): Likewise.
9286 2015-06-01  Martin Liska  <mliska@suse.cz>
9288         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
9289         (sra_deinitialize) Likewise.
9290         (create_access_1) Likewise.
9291         (build_accesses_from_assign) Likewise.
9292         (create_artificial_child_access) Likewise.
9294 2015-06-01  Martin Liska  <mliska@suse.cz>
9296         * dse.c (get_group_info):Use new type-based pool allocator.
9297         (dse_step0) Likewise.
9298         (free_store_info) Likewise.
9299         (delete_dead_store_insn) Likewise.
9300         (free_read_records) Likewise.
9301         (record_store) Likewise.
9302         (replace_read) Likewise.
9303         (check_mem_read_rtx) Likewise.
9304         (scan_insn) Likewise.
9305         (dse_step1) Likewise.
9306         (dse_step7) Likewise.
9308 2015-06-01  Martin Liska  <mliska@suse.cz>
9310         * df-scan.c (struct df_scan_problem_data):Use new type-based
9311         pool allocator.
9312         (df_scan_free_internal) Likewise.
9313         (df_scan_alloc) Likewise.
9314         (df_grow_reg_info) Likewise.
9315         (df_free_ref) Likewise.
9316         (df_insn_create_insn_record) Likewise.
9317         (df_mw_hardreg_chain_delete) Likewise.
9318         (df_insn_info_delete) Likewise.
9319         (df_free_collection_rec) Likewise.
9320         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
9321         (df_sort_and_compress_mws) Likewise.
9322         (df_ref_create_structure) Likewise.
9323         (df_ref_record) Likewise.
9325 2015-06-01  Martin Liska  <mliska@suse.cz>
9327         * df-problems.c (df_chain_create):Use new type-based pool allocator.
9328         (df_chain_unlink_1) Likewise.
9329         (df_chain_unlink) Likewise.
9330         (df_chain_remove_problem) Likewise.
9331         (df_chain_alloc) Likewise.
9332         (df_chain_free) Likewise.
9333         * df.h (struct dataflow) Likewise.
9335 2015-06-01  Martin Liska  <mliska@suse.cz>
9337         * cselib.c (new_elt_list):Use new type-based pool allocator.
9338         (new_elt_loc_list) Likewise.
9339         (unchain_one_elt_list) Likewise.
9340         (unchain_one_elt_loc_list) Likewise.
9341         (unchain_one_value) Likewise.
9342         (new_cselib_val) Likewise.
9343         (cselib_init) Likewise.
9344         (cselib_finish) Likewise.
9346 2015-06-01  Martin Liska  <mliska@suse.cz>
9348         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
9349         (sh_reorg) Likewise.
9351 2015-06-01  Martin Liska  <mliska@suse.cz>
9353         * cfg.c (initialize_original_copy_tables):Use new type-based
9354         pool allocator.
9355         (free_original_copy_tables) Likewise.
9356         (copy_original_table_clear) Likewise.
9357         (copy_original_table_set) Likewise.
9359 2015-06-01  Martin Liska  <mliska@suse.cz>
9361         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
9362         pool allocator.
9363         (asan_mem_ref_new) Likewise.
9364         (free_mem_ref_resources) Likewise.
9366 2015-06-01  Martin Liska  <mliska@suse.cz>
9368         * var-tracking.c (variable_htab_free):Use new type-based
9369         pool allocator.
9370         (attrs_list_clear) Likewise.
9371         (attrs_list_insert) Likewise.
9372         (attrs_list_copy) Likewise.
9373         (shared_hash_unshare) Likewise.
9374         (shared_hash_destroy) Likewise.
9375         (unshare_variable) Likewise.
9376         (var_reg_delete_and_set) Likewise.
9377         (var_reg_delete) Likewise.
9378         (var_regno_delete) Likewise.
9379         (drop_overlapping_mem_locs) Likewise.
9380         (variable_union) Likewise.
9381         (insert_into_intersection) Likewise.
9382         (canonicalize_values_star) Likewise.
9383         (variable_merge_over_cur) Likewise.
9384         (dataflow_set_merge) Likewise.
9385         (remove_duplicate_values) Likewise.
9386         (variable_post_merge_new_vals) Likewise.
9387         (dataflow_set_preserve_mem_locs) Likewise.
9388         (dataflow_set_remove_mem_locs) Likewise.
9389         (variable_from_dropped) Likewise.
9390         (variable_was_changed) Likewise.
9391         (set_slot_part) Likewise.
9392         (clobber_slot_part) Likewise.
9393         (delete_slot_part) Likewise.
9394         (loc_exp_insert_dep) Likewise.
9395         (notify_dependents_of_changed_value) Likewise.
9396         (emit_notes_for_differences_1) Likewise.
9397         (vt_emit_notes) Likewise.
9398         (vt_initialize) Likewise.
9399         (vt_finalize) Likewise.
9401 2015-06-01  Martin Liska  <mliska@suse.cz>
9403         * ira-color.c (init_update_cost_records):Use new type-based
9404         pool allocator.
9405         (get_update_cost_record) Likewise.
9406         (free_update_cost_record_list) Likewise.
9407         (finish_update_cost_records) Likewise.
9408         (initiate_cost_update) Likewise.
9410 2015-06-01  Martin Liska  <mliska@suse.cz>
9412         * lra.c (init_insn_regs): Use new type-based pool allocator.
9413         (new_insn_reg) Likewise.
9414         (free_insn_reg) Likewise.
9415         (free_insn_regs) Likewise.
9416         (finish_insn_regs) Likewise.
9417         (init_insn_recog_data) Likewise.
9418         (init_reg_info) Likewise.
9419         (finish_reg_info) Likewise.
9420         (lra_free_copies) Likewise.
9421         (lra_create_copy) Likewise.
9422         (invalidate_insn_data_regno_info) Likewise.
9424 2015-06-01  Martin Liska  <mliska@suse.cz>
9426         * lra-lives.c (free_live_range): Use new type-based pool allocator.
9427         (free_live_range_list) Likewise.
9428         (create_live_range) Likewise.
9429         (copy_live_range) Likewise.
9430         (lra_merge_live_ranges) Likewise.
9431         (remove_some_program_points_and_update_live_ranges) Likewise.
9432         (lra_live_ranges_init) Likewise.
9433         (lra_live_ranges_finish) Likewise.
9435 2015-06-01  Martin Liska  <mliska@suse.cz>
9437         * et-forest.c (et_new_occ): Use new type-based pool allocator.
9438         (et_new_tree): Likewise.
9439         (et_free_tree): Likewise.
9440         (et_free_tree_force): Likewise.
9441         (et_free_pools): Likewise.
9442         (et_split): Likewise.
9444 2015-06-01  Martin Liska  <mliska@suse.cz>
9446         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
9447         to header file.
9448         * alloc-pool.h (pool_allocator::pool_allocator): New function.
9449         (pool_allocator::release): Likewise.
9450         (inline pool_allocator::release_if_empty): Likewise.
9451         (inline pool_allocator::~pool_allocator): Likewise.
9452         (pool_allocator::allocate): Likewise.
9453         (pool_allocator::remove): Likewise.
9455 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
9457         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
9458         in comment.
9460 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
9462         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
9463         to fusible_ops.
9464         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
9465         (arm_macro_fusion_p): Likewise.
9466         (arm_macro_fusion_pair_p): Likewise.
9468 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
9470         * config/aarch64/aarch64-protos.h (tune_params): Rename
9471         fuseable_ops to fusible_ops.
9472         * config/aarch64/aarch64.c (generic_tunings): Rename
9473         fuseable_ops to fusible_ops.
9474         (cortexa53_tunings): Likewise.
9475         (cortexa57_tunings): Likewise.
9476         (thunderx_tunings): Likewise.
9477         (xgene1_tunings): Likewise.
9478         (aarch64_macro_fusion_p): Likewise.
9479         (aarch64_macro_fusion_pair_p): Likewise.
9481 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9483         * config/s390/driver-native.c: New file.
9484         * config/s390/x-native: New file.
9485         * config.host: Add new files for s390.
9486         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
9487         and -march=native
9488         * config.gcc: Likewise.
9489         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
9490         * config/s390/s390-opts.h (enum processor_type): Ditto.
9491         * config/s390/s390.c (s390_option_override): Catch unhandled
9492         PROCESSOR_NATIVE
9494 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
9496         PR target/65527
9497         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
9498         redirection for instrumented calls.
9499         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
9500         (append_compiler_options): Append -fcheck-pointer-bounds.
9501         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
9502         (chkp_redirect_edge): New.
9503         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
9504         (chkp_redirect_edge): New.
9506 2015-06-01  Richard Biener  <rguenther@suse.de>
9508         PR tree-optimization/66280
9509         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
9510         def-use walking.
9512 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9514         * config/aarch64/aarch64.md
9515         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
9516         logic_shift_imm.
9518 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
9520         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
9521         Remove obsolete kludge.
9523 2015-06-01  Richard Biener  <rguenther@suse.de>
9525         * tree-ssa-reassoc.c (get_rank): Simplify.
9527 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
9529         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
9530         * configure: Regenerated.
9532 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
9534         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
9535         issue (add space between string literal and macro).
9536         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
9538 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
9540         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
9541         implict or explicit -fPIE or -fpie.
9543 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
9545         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
9547 2015-05-28  DJ Delorie  <dj@redhat.com>
9549         * expmed.c (extract_bit_field_1): Avoid clobbering a
9550         yet-to-be-used base/index register.
9552 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
9554         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
9555         (alias_stats): Add num_universal.
9556         (alias_set_subset_of): Special case pointers; be ready for NULL
9557         children.
9558         (alias_sets_conflict_p): Special case pointers; be ready for NULL
9559         children.
9560         (init_alias_set_entry): Break out from ...
9561         (record_alias_subset): ... here; propagate new fields;
9562         allocate children only when really needed.
9563         (get_alias_set): Do less generous pointer globbing.
9564         (dump_alias_stats_in_alias_c): Update statistics.
9566 2015-05-30  Alan Modra  <amodra@gmail.com>
9568         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
9569         correct block for use of r12.
9570         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
9572 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9574         PR target/66215
9575         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
9576         with -mhotpatch=.
9578 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
9580         PR tree-optimization/66142
9581         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
9582         virtual phis that feed themselves.
9584 2015-05-29  Richard Biener  <rguenther@suse.de>
9586         PR tree-optimization/66314
9587         * tree-ssa-threadupdate.c (create_block_for_threading): Add
9588         parameter that says which loop the new block belongs to.
9589         (ssa_create_duplicates): Blocks duplicated for the threaded
9590         path belong to the loop of the thread destination.
9592 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9594         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
9595         to cleanup-saved-temps.
9596         * doc/sourcebuild.texi (Clean up generated test files): Expand
9597         introduction.
9598         (dg-keep-saved-temps): Document new proc.
9599         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
9600         cleanup-saved-temps): Remove.
9602 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
9604         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
9605         gcc_AC_CHECK_DECLS.
9606         * configure: Regenerate.
9608 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
9610         * config/nios2/linux.h (CPP_SPEC): Define.
9612 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
9614         * config/microblaze/linux.h (CPP_SPEC): Define.
9616 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
9618         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
9619         -pthread is specified.
9621 2015-05-28  Richard Biener  <rguenther@suse.de>
9623         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
9624         (vect_fixup_scalar_cycles_with_patterns): Likewise.
9625         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
9626         after pattern recog.
9627         (vect_create_epilog_for_reduction): Properly handle reductions
9628         with patterns.
9629         (vectorizable_reduction): Likewise.
9630         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
9631         reduction chains.
9632         (vect_get_constant_vectors): Create the correct number of
9633         initial values for reductions.
9634         (vect_schedule_slp_instance): Handle reduction chains that are
9635         type changing properly.
9636         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
9638 2015-05-28  Richard Biener  <rguenther@suse.de>
9640         PR tree-optimization/66142
9641         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
9642         values better in memcpy destination handling.  Handle non-aliasing
9643         we discover here.
9645 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
9647         PR target/63810
9648         * config/darwin-c.c (version_components): New global enum.
9649         (parse_version, version_as_legacy_macro)
9650         (version_as_modern_macro, macosx_version_as_macro): New functions.
9651         (version_as_macro): Remove.
9652         (darwin_cpp_builtins): Use new function.
9654 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
9656         * builtins.c (expand_builtin_acc_on_device): Mark parameters
9657         with ATTRIBUTE_UNUSED.
9659 2015-05-28  Julian Brown  <julian@codesourcery.com>
9661         PR libgomp/65742
9663         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
9664         sequence for !ACCEL_COMPILER.
9666 2015-05-28  Nick Clifton  <nickc@redhat.com>
9668         * config/rx/rx.c (push_regs): New function.  Extracts code from...
9669         (rx_expand_prologue): ... here.  Use push_regs to push even small
9670         spans of registers.
9671         (pop_regs): New function.
9672         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
9673         registers.
9675 2015-05-28  Richard Biener  <rguenther@suse.de>
9677         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
9678         member.
9679         (SLP_INSTANCE_BODY_COST_VEC): Remove.
9680         (vect_update_slp_costs_according_to_vf): Likewise.
9681         (vect_slp_analyze_operations): Update prototype.
9682         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
9683         vect_update_slp_costs_according_to_vf, adjust.
9684         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
9685         (vect_analyze_slp_cost_1): Likewise.
9686         (vect_analyze_slp_cost): Likewise.  Properly deal with
9687         widening reduction ops.  Commit body costs.
9688         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
9689         cost for loops from here.
9690         (vect_slp_analyze_operations): But do it from here when
9691         the vectorization factor is known and stmts are analyzed.
9692         (vect_bb_vectorization_profitable_p): Simplify.
9693         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
9694         (vect_update_slp_costs_according_to_vf): Remove.
9696 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
9697             H.J. Lu  <hongjiu.lu@intel.com>
9699         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
9700         (BUILD_CFLAGS): Likewise.
9701         (BUILD_CXXFLAGS): Likewise.
9702         (LINKER): Add @NO_PIE_FLAG@.
9703         (BUILD_LDFLAGS): Likewise.
9704         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
9705         --enable-default-pie.
9706         * common.opt (fPIE): Initialize to -1.
9707         (fpie): Likewise.
9708         (no-pie): New option.
9709         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
9710         * configure.ac: Add --enable-default-pie.
9711         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
9712         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
9713         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
9714         * gcc.c (NO_PIE_SPEC): New.
9715         (PIE_SPEC): Likewise.
9716         (NO_FPIE1_SPEC): Likewise.
9717         (FPIE1_SPEC): Likewise.
9718         (NO_FPIE2_SPEC): Likewise.
9719         (FPIE2_SPEC): Likewise.
9720         (NO_FPIE2_SPEC): Likewise.
9721         (FPIE_SPEC): Likewise.
9722         (NO_FPIE_SPEC): Likewise.
9723         (NO_FPIC1_SPEC): Likewise.
9724         (FPIC1_SPEC): Likewise.
9725         (NO_FPIC2_SPEC): Likewise.
9726         (FPIC2_SPEC): Likewise.
9727         (NO_FPIC2_SPEC): Likewise.
9728         (FPIC_SPEC): Likewise.
9729         (NO_FPIC_SPEC): Likewise.
9730         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
9731         (FPIE1_OR_FPIC1_SPEC): Likewise.
9732         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
9733         (FPIE2_OR_FPIC2_SPEC): Likewise.
9734         (NO_FPIE_AND_FPIC_SPEC): Likewise.
9735         (FPIE_OR_FPIC_SPEC): Likewise.
9736         (LD_PIE_SPEC): Likewise.
9737         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
9738         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
9739         * config/darwin.h (PIE_SPEC): Renamed to ...
9740         (DARWIN_PIE_SPEC): This.
9741         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
9742         * config/darwin9.h (PIE_SPEC): Renamed to ...
9743         (DARWIN_PIE_SPEC): This.
9744         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
9745         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9746         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
9747         FPIE2_OR_FPIC2_SPEC.
9748         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
9749         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
9750         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
9751         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9752         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9753         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9754         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
9755         * config/m32r/m32r.h (ASM_SPEC): Likewise.
9756         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
9757         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9758         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
9759         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
9760         * config/sparc/linux.h (ASM_SPEC): Likewise.
9761         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9762         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
9763         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
9764         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9765         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9766         * config/sparc/sparc.h (ASM_SPEC): Likewise.
9767         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
9768         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
9769         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
9770         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
9771         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
9772         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
9773         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
9774         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
9775         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
9776         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
9777         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
9778         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
9779         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9780         * config/vax/linux.h (ASM_SPEC): Likewise.
9781         * doc/install.texi: Document --enable-default-pie.
9782         * doc/invoke.texi: Document -no-pie.
9783         * config.in: Regenerated.
9784         * configure: Likewise.
9786 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9788         PR rtl-optimization/66168
9789         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
9790         can_move_invariant_reg.
9792 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
9794         PR target/66148
9795         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
9796         REG_EQUAL note when doing insert.
9798         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
9799         instead of "%d" for 'o' operand.
9801 2015-05-27  Nathan Sidwell  <nathan@acm.org>
9803         PR c++/66270
9804         * tree.c (build_pointer_type_for_mode): Canonical type does not
9805         inherit can_alias_all.
9806         (build_reference_type_for_mode): Likewise.
9808 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
9810         * expr.h (array_at_struct_end_p): Move to...
9811         (array_ref_element_size): Likewise.
9812         (component_ref_field_offset): Likewise.
9813         * tree.h (array_ref_element_size): ...here.
9814         (array_at_struct_end_p): Likewise.
9815         (component_ref_field_offset): Likewise.
9816         * expr.c (array_ref_element_size): Move to...
9817         (array_ref_low_bound): Likewise.
9818         (array_at_struct_end_p): Likewise.
9819         (array_ref_up_bound): Likewise.
9820         (component_ref_field_offset): Likewise.
9821         * tree.c (array_ref_element_size): ...here.
9822         (array_ref_low_bound): Likewise.
9823         (array_ref_up_bound): Likewise.
9824         (array_at_struct_end_p): Likewise.
9825         (component_ref_field_offset): Likewise.
9827 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
9828             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9830         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
9832 2015-05-27  Jason Merrill  <jason@redhat.com>
9834         PR bootstrap/66304
9835         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
9836         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
9837         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
9839 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
9841         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
9842         is true.
9844         * statistics.c (statistics_fini_pass): Print pass name.
9846 2015-05-27  Richard Biener  <rguenther@suse.de>
9848         PR tree-optimization/66272
9849         Revert parts of
9850         2014-08-15  Richard Biener  <rguenther@suse.de>
9852         PR tree-optimization/62031
9853         * tree-data-ref.c (dr_analyze_indices): Do not set
9854         DR_UNCONSTRAINED_BASE.
9855         (dr_may_alias_p): All indirect accesses have to go the
9856         formerly DR_UNCONSTRAINED_BASE path.
9857         * tree-data-ref.h (struct indices): Remove
9858         unconstrained_base member.
9859         (DR_UNCONSTRAINED_BASE): Remove.
9861 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
9863         * dwarf2out.c: Remove block_map.
9864         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
9865         (gen_lexical_block_die): Same.
9866         (dwarf2out_function_decl): Remove block_map use.
9867         (dwarf2out_c_finalize): Same.
9868         * tree-core.h (struct tree_block): Add die field.
9869         * tree.h (BLOCK_DIE): New.
9871 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9873         PR target/65358
9874         * expr.c (memory_load_overlap): New function.
9875         (emit_push_insn): When pushing partial args to the stack would
9876         clobber the register part load the overlapping part into a pseudo
9877         and put it into the hard reg after pushing.  Change return type
9878         to bool.  Add bool argument.
9879         * expr.h (emit_push_insn): Change return type to bool.
9880         Add bool argument.
9881         * calls.c (expand_call): Cancel sibcall optimization when encountering
9882         partial argument on targets with ARGS_GROW_DOWNWARD and
9883         !STACK_GROWS_DOWNWARD.
9884         (emit_library_call_value_1): Update callsite of emit_push_insn.
9885         (store_one_arg): Likewise.
9887 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
9889         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
9891 2015-05-27  Martin Liska  <mliska@suse.cz>
9893         * Makefile.in: Add additional dependencies related to memory report
9894         enhancement.
9895         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
9896         * bitmap.c (struct bitmap_descriptor_d): Remove.
9897         (struct loc): Likewise.
9898         (struct bitmap_desc_hasher): Likewise.
9899         (bitmap_desc_hasher::hash): Likewise.
9900         (bitmap_desc_hasher::equal): Likewise.
9901         (get_bitmap_descriptor): Likewise.
9902         (bitmap_register): User new memory descriptor API.
9903         (register_overhead): Likewise.
9904         (bitmap_find_bit): Register nsearches and search_iter statistics.
9905         (struct bitmap_output_info): Remove.
9906         (print_statistics): Likewise.
9907         (dump_bitmap_statistics): Use new memory descriptor.
9908         * bitmap.h (struct bitmap_usage): New class.
9909         * genmatch.c: Extend header file inclusion.
9910         * genpreds.c: Likewise.
9911         * ggc-common.c (struct ggc_usage): New class.
9912         (struct ggc_loc_desc_hasher): Remove.
9913         (ggc_loc_desc_hasher::hash): Likewise.
9914         (ggc_loc_desc_hasher::equal): Likewise.
9915         (struct ggc_ptr_hash_entry): Likewise.
9916         (struct ptr_hash_hasher): Likewise.
9917         (ptr_hash_hasher::hash): Likewise.
9918         (ptr_hash_hasher::equal): Likewise.
9919         (make_loc_descriptor): Likewise.
9920         (ggc_prune_ptr): Likewise.
9921         (dump_ggc_loc_statistics): Use new memory descriptor.
9922         (ggc_record_overhead): Likewise.
9923         (ggc_free_overhead): Likewise.
9924         (final_cmp_statistic): Remove.
9925         (cmp_statistic): Likewise.
9926         (ggc_add_statistics): Liekwise.
9927         (ggc_prune_overhead_list): Likewise.
9928         * hash-map-traits.h: New file.
9929         * hash-map.h (struct default_hashmap_traits): Move the traits to a
9930         separate header file.
9931         * hash-set.h: Pass memory statistics info to ctor.
9932         * hash-table.c (void dump_hash_table_loc_statistics): New function.
9933         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
9934         (hash_table::~hash_table): Register memory release operation.
9935         (hash_table::alloc_entries): Handle memory allocation operation.
9936         (hash_table::expand): Likewise.
9937         * inchash.c (iterative_hash_hashval_t): Move implementation to header
9938         file.
9939         (iterative_hash_host_wide_int): Likewise.
9940         * inchash.h (class hash): Likewise.
9941         * mem-stats-traits.h: New file.
9942         * mem-stats.h: New file.
9943         (mem_location): Add new class.
9944         (mem_usage): Likewise.
9945         (mem_alloc_description): Likewise.
9946         * sese.c: Add new header file inclusision.
9947         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
9948         and hash_set.
9949         * tree-sra.c: Add new header file inclusision.
9950         * vec.c (struct vec_descriptor): Remove.
9951         (hash_descriptor): Likewise.
9952         (struct vec_usage): Likewise.
9953         (struct ptr_hash_entry): Likewise.
9954         (hash_ptr): Likewise.
9955         (eq_ptr): Likewise.
9956         (vec_prefix::register_overhead): Use new memory descriptor API.
9957         (vec_prefix::release_overhead): Likewise.
9958         (add_statistics): Remove.
9959         (dump_vec_loc_statistics): Use new memory descriptor API.
9960         * vec.h (struct vec_prefix): Likewise.
9961         (va_heap::reserve): Likewise.
9962         (va_heap::release): Likewise.
9963         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
9965 2015-05-27  Richard Biener  <rguenther@suse.de>
9967         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
9968         earlier and remove ??? comment.
9969         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
9970         and got called from loop analysis bail out.  Always pass the SLP
9971         node to the vectorizable_* functions.
9972         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
9973         the premature SLP check here.
9974         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
9975         detected SLP stmts.
9976         (vect_detect_hybrid_slp_1): Likewise.
9978 2015-05-26  Jeff Law  <law@redhat.com>
9980         * combine.c (find_split_point): Verify that the shift count is a
9981         constant when choosing (plus (ashift ...)) as a split point.
9983         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
9984         No functional changes.
9986 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
9988         * ipa-polymorphic-call.c
9989         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
9990         case when call target is already known.
9992 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
9994         PR target/65979
9995         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
9996         take into account the case that operands[1] and operands[2]
9997         are the same register.
9999 2015-05-26  Michael Matz  <matz@suse.de>
10001         PR middle-end/66251
10003         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
10004         stores.
10005         (vect_create_vectorized_demotion_stmts): Always set
10006         STMT_VINFO_VEC_STMT, also with SLP.
10007         (vectorizable_store): Handle strided group stores.
10009 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10011         PR target/66049
10012         * config/aarch64/aarch64.md
10013         (*adds_shift_imm_<mode>):  New pattern.
10014         (*subs_shift_imm_<mode>):  Likewise.
10015         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
10016         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
10017         (*add_uxt<mode>_shift2): Likewise.
10018         (*add_uxtsi_shift2_uxtw): Likewise.
10019         (*sub_uxt<mode>_shift2): Likewise.
10020         (*sub_uxtsi_shift2_uxtw): Likewise.
10022 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
10024         * config/rs6000/constraints.md (Y, U): Use match_test.
10026 2015-05-26  Christian Bruel  <christian.bruel@st.com>
10028         PR target/52144
10029         * config/arm/arm.c (arm_option_check_internal)
10030         (arm_option_params_internal): Check opts->target_flags to set macros.
10031         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
10032         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
10033         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
10034         (builtin_define): Replaced with def_or_undef_macro.
10035         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
10036         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
10037         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
10038         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
10039         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
10040         (TARGET_ARM_FEATURE_LDREX_P)
10041         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
10042         * config/arm/arm-c.c (def_or_undef_macro): New function.
10043         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
10045 2015-05-26  Christian Bruel  <christian.bruel@st.com>
10047         * c-common.h (builtin_define_with_int_value)
10048         (builtin_define_type_sizeof): Declare.
10049         * c-cppbuiltin.c (builtin_define_with_int_value)
10050         (builtin_define_type_sizeof): Externalize.
10051         (builtin_define_std): Cleanup declaration.
10052         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
10053         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
10054         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
10055         (builtin_define, builtin_assert): New macros.
10057 2015-05-26  Richard Biener  <rguenther@suse.de>
10059         PR tree-optimization/66142
10060         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
10061         MEM_REFs for the same base address.
10063 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10065         PR ipa/66181
10066         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
10068 2015-05-26  Jason Merrill  <jason@redhat.com>
10070         * configure.ac: Set CXXFLAGS for ISL test.
10071         * configure: Regenerate.
10073         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
10074         strstr and basename.
10075         * configure: Regenerate.
10077 2015-05-26  Richard Biener  <rguenther@suse.de>
10079         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
10080         X % C -> X & (C - 1) for C being a power-of two to ...
10081         * match.pd: ... patterns.
10083 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
10085         * match.pd (swapped_tcc_comparison): New operator list.
10086         (-A CMP -B): New simplification.
10087         * fold-const.c (fold_comparison): Remove corresponding code.
10089 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
10091         * caller-save.c (init_caller_save): Base temporary register numbers
10092         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
10093         * cfgloopanal.c (init_set_costs): Likewise.
10094         * dojump.c (prefer_and_bit_test): Likewise.
10095         * expr.c (init_expr_target): Likewise.
10096         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10097         * lower-subreg.c (init_lower_subreg): Likewise.
10098         * postreload.c (reload_cse_regs_1): Likewise.
10100 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
10102         * gensupport.h (compute_test_codes): Declare.
10103         * gensupport.c (compute_predicate_codes): Rename to...
10104         (compute_test_codes): ...this.  Generalize error message.
10105         (process_define_predicate): Update accordingly.
10106         * genpreds.c (compute_maybe_allows): Delete.
10107         (add_constraint): Use compute_test_codes to determine whether
10108         something can accept a SUBREG, REG or MEM.
10110 2015-05-26  Torvald Riegel  <triegel@redhat.com>
10112         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
10113         'memory model' to align with C++11; fix description of memory orders;
10114         fix a few typos.
10116 2015-05-26  Richard Biener  <rguenther@suse.de>
10118         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
10119         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
10120         detect whether we apply SLP.  Remove call to
10121         vect_update_slp_costs_according_to_vf.
10122         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
10123         vect_update_slp_costs_according_to_vf from here.  Dispatch
10124         to vect_slp_analyze_operations to analyze SLP stmts.
10125         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
10126         unused bb_vec_info parameter, adjust assert.
10127         (vect_slp_analyze_operations): Pass in the slp instance tree
10128         instead of bb_vec_info.
10129         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
10130         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
10132 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
10134         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
10135         Q_REGS.  Expand comment.
10136         (REG_CLASS_NAMES): Ditto.
10137         (REG_CLASS_CONTENTS): Ditto.
10139 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
10141         PR target/66274
10142         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
10143         when LEGACY_INT_REGNO_P is processed.
10145 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
10147         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
10149 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
10151         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
10152         register if not marked dead/unused, before return.
10154 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
10156         PR lto/66180
10157         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
10158         is set; check for assembler name at LTO time.
10159         (type_in_anonymous_namespace): Remove hacks, check that all
10160         anonymous types are called "<anon>"
10161         (odr_type_p): Simplify; add check for "<anon>"
10162         (odr_subtypes_equivalent): Add odr_type_p check.
10163         * tree.c (need_assembler_name_p): Even anonymous namespace needs
10164         assembler name.
10166 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
10168         * ipa-utils.h (method_class_type): Remove.
10169         * cgraphunit.c (walk_polymorphic_call_targets): Use
10170         TYPE_METHOD_BASETYPE.
10171         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
10172         on main variants only.
10173         (method_class_type): Remove.
10174         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
10175         (build_type_inheritance_graph): Likewise.
10176         * ipa-icf.c (sem_function::equals_wpa): Likewise.
10177         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
10178         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
10180 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
10182         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
10183         is_typedef_decl, typedef_variant_p): Constify.
10184         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
10185         is_typedef_decl, typedef_variant_p): Constify.
10187 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10189         * defaults.h (gen_tablejump): New function.
10190         (HAVE_tablejump): Add default value.
10191         * expr.c: Adjust.
10192         * stmt.c: Likewise.
10194 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10196         * defaults.h (gen_store_multiple): New function.
10197         (HAVE_store_multiple): Add default value.
10198         * expr.c (move_block_from_reg): Adjust.
10200 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10202         * defaults.h (gen_load_multiple): New function.
10203         (HAVE_load_multiple): Add default value.
10204         * expr.c (move_block_to_reg): Adjust.
10206 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10208         * defaults.h (gen_mem_signal_fence): New function.
10209         (HAVE_mem_signal_fence): Add default value.
10210         * optabs.c: Adjust.
10212 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10214         * defaults.h (gen_memory_barrier): New function.
10215         (HAVE_memory_barrier): Add default value.
10216         * optabs.c: Adjust.
10218 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10220         * defaults.h (gen_mem_thread_fence): New function.
10221         (HAVE_mem_thread_fence): Add default definition.
10222         * optabs.c: Adjust.
10224 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10226         * combine.c (find_split_point): Check the value of HAVE_lo_sum
10227         instead of if it is defined.
10228         (combine_simplify_rtx): Likewise.
10229         * lra-constraints.c (process_address_1): Likewise.
10230         * config/darwin.c: Adjust.
10231         * genconfig.c (main): Always define HAVE_lo_sum.
10233 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10235         * genmatch.c (parser::parse_operation): Reject expanding
10236         operator-list inside 'for'.
10238 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10240         * genmatch.c (parser::parse_for): Reject iterator if used as
10241         operator-list.
10243 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10245         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
10246         after end of id-list.
10248 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
10250         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
10251         we do not try to compute canonical type for type that does not need
10252         alias set.
10253         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
10254         FUNCITON_TYPE.
10255         * tree.h (type_with_alias_set_p): New.
10257 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
10259         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
10260         function attributes.
10261         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
10263 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
10265         * Makefile.in (check_gcc_parallelize): Delete.
10266         (lang_checks_parallelized): Update comment.
10268 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
10270         PR rtl-optimization/66237
10271         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
10272         location of an "as_a" cast.
10274 2015-05-22  Jeff Law  <law@redhat.com>
10276         * config/pa/pa.md (non-canonical shift-add insns): Remove.
10277         (peepholes with non-canonical RTL sources): Remove.
10278         (peepholes for indexed stores of FP regs in integer modes): Match and
10279         generate canonical RTL.
10281 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
10283         PR tree-optimization/63387
10284         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
10285         ((x ord x) & (y ord y) -> (x ord y),
10286         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
10287         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
10288         vectors like scalars.
10290 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
10292         * convert.c (convert_to_integer, convert_to_vector): Include the
10293         types in the error message.
10295 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
10297         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
10298         simplifications.
10300 2015-05-22  Jeff Law  <law@redhat.com>
10302         * config/pa/pa.md (integer_indexed_store splitters): Use
10303         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
10304         insns -- adjusting the constant 2nd operand accordingly.
10306         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
10307         (plus (ashift X log2) Y) if it is a split point.
10309         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
10310         out of hppa_legitimize_address to handle both forms of a multiply
10311         by 2, 4 or 8.
10312         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
10313         Always generate the ASHIFT variant as the result is not directly
10314         used in a MEM.  Update comments and refactor slightly to improve
10315         readability.
10317 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10319         PR target/65491
10320         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
10321         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
10322         (aarch64_composite_type_p): Return false if given type and mode are
10323         for a short vector.
10325 2015-05-22  Richard Biener  <rguenther@suse.de>
10327         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
10328         member.
10329         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
10330         patterns when determining whether SLP is pure.
10331         (vect_is_slp_reduction): Remove check for pattern stmts.
10332         (vect_is_simple_reduction_1): Remove dead code.
10333         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
10334         (vect_get_and_check_slp_defs): Pass in the stmt number.
10335         Allow the first def in a reduction to be not a pattern stmt when
10336         the rest of the stmts def are patterns.
10337         (vect_build_slp_tree_1): Allow tcc_expression codes like
10338         SAD_EXPR and DOT_PROD_EXPR.
10339         (vect_build_slp_tree): Adjust.
10340         (vect_analyze_slp): Refactor and move BB vect error message ...
10341         (vect_slp_analyze_bb_1): ... here.
10343 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
10345         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
10346         for CSWTCH temporary.
10348 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10350         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
10351         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
10352         unknown unspecs.
10354 2015-05-22  Richard Biener  <rguenther@suse.de>
10356         PR tree-optimization/66251
10357         * tree-vect-stmts.c (vectorizable_conversion): Properly
10358         set STMT_VINFO_VEC_STMT even for the SLP case.
10360 2015-05-22  Marek Polacek  <polacek@redhat.com>
10362         * doc/extend.texi: Use @pxref instead of @xref.
10364 2015-05-22  hiraditya  <hiraditya@msn.com>
10366         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
10367         redundant if.
10369 2015-05-22  Richard Biener  <rguenther@suse.de>
10371         PR tree-optimization/65701
10372         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10373         Move peeling cost models into one place.  Peel for alignment
10374         for single loads only if an aligned load is cheaper than
10375         an unaligned load.
10377 2015-05-22  Marek Polacek  <polacek@redhat.com>
10379         PR c/47043
10380         * doc/extend.texi (Enumerator Attributes): New section.
10381         Document syntax of enumerator attributes.
10383 2015-05-22  Richard Biener  <rguenther@suse.de>
10385         * tree-vect-loop.c (get_reduction_op): New function.
10386         (vect_model_reduction_cost): Use it, add reduc_index parameter.
10387         Make ready for BB reductions.
10388         (vect_create_epilog_for_reduction): Use get_reduction_op.
10389         (vectorizable_reduction): Init reduc_index to a valid value.
10390         Adjust vect_model_reduction_cost call.
10391         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
10392         operand for reduction defaults.  Add SAD_EXPR support.
10393         Assert we have a neutral op for SLP reductions.
10394         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
10395         walking pattern stmt ops only recurse to SSA names.
10397 2015-05-22  Richard Biener  <rguenther@suse.de>
10399         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
10400         assert with guard, remove check on detected reduction.
10401         (vect_recog_sad_pattern): Likewise.
10402         (vect_recog_widen_sum_pattern): Likewise.
10404 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10406         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
10407         __always_inline__ attribute.
10408         (vaesdq_u8): Likewise.
10409         (vaesmcq_u8): Likewise.
10410         (vaesimcq_u8): Likewise.
10411         (vsha1cq_u32): Likewise.
10412         (vsha1mq_u32): Likewise.
10413         (vsha1pq_u32): Likewise.
10414         (vsha1h_u32): Likewise.
10415         (vsha1su0q_u32): Likewise.
10416         (vsha1su1q_u32): Likewise.
10417         (vsha256hq_u32): Likewise.
10418         (vsha256h2q_u32): Likewise.
10419         (vsha256su0q_u32): Likewise.
10420         (vsha256su1q_u32): Likewise.
10421         (vmull_p64): Likewise.
10422         (vmull_high_p64): Likewise.
10424 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10426         * final.c (final_scan_insn): Don't check HAVE_peephole with the
10427         preprocessor.
10428         * output.h: Likewise.
10429         * genconfig.c (main): Alwways define HAVE_peephole.
10430         * genpeep.c: Don't emit checks of HAVE_peephole.
10432 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10434         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
10435         check HAVE_conditional_move with the preprocessor.
10437 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10439         * genconfig.c (main): Always define HAVE_conditional_move.
10440         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
10441         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
10442         is defined.
10444 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10446         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
10447         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
10448         and FRAME_POINTER_REGNUM with the preprocessor.
10450 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10452         * defaults.h: Add default for STACK_PUSH_CODE.
10453         * expr.c: Don't redefine STACK_PUSH_CODE.
10454         * recog.c: Likewise.
10456 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10458         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
10459         sched-deps.c: Use if instead of preprocessor checks with
10460         STACK_GROWS_DOWNWARD.
10462 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10464         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
10465         is defined.
10466         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
10467         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
10468         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
10469         * doc/tm.texi: Regenerate.
10471 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
10473         PR target/66232
10474         * config/i386/constraints.md (Bg): New constraint for GOT memory
10475         operand.
10476         * config/i386/i386.md (*call_got_x32): New pattern.
10477         (*call_value_got_x32): Likewise.
10478         * config/i386/predicates.md (GOT_memory_operand): New predicate.
10480 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
10482         PR tree-optimization/66233
10483         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
10484         Simplify.
10486 2015-05-21  Jeff Law  <law@redhat.com>
10488         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
10489         than MULT for shadd sequences.
10491 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
10493         * alias.c (alias_stats): New static var.
10494         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
10495         (dump_alias_stats_in_alias_c): New function.
10496         * alias.h (dump_alias_stats_in_alias_c): Declare.
10497         * tree-ssa-alias.c (dump_alias_stats): Call it.
10499 2015-05-08  Michael Matz  <matz@suse.de>
10501         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
10502         to strided_p.
10503         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
10504         (STMT_VINFO_STRIDED_P): ... this.
10505         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
10506         (vect_verify_datarefs_alignment): Likewise.
10507         (vect_enhance_data_refs_alignment): Likewise.
10508         (vect_analyze_data_ref_access): Likewise.
10509         (vect_analyze_data_refs): Accept strided stores.
10510         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
10511         (vect_model_load_cost): Adjust for macro rename.
10512         (vectorizable_mask_load_store): Likewise.
10513         (vectorizable_load): Likewise.
10514         (vectorizable_store): Open code strided stores.
10516 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10518         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
10519         Document sqrt_insn.
10521 2015-05-21  Richard Biener  <rguenther@suse.de>
10523         PR c++/66211
10524         * match.pd: Guard pattern optimzing (int)(float)int
10525         conversions to apply only on GIMPLE.
10527 2015-05-21  Jeff Law  <law@redhat.com>
10529         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
10530         multiply-accumulate/shift-add insn generation.
10532 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
10534         PR target/54236
10535         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
10536         operands[1] are the same.
10538 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
10540         PR middle-end/66221
10541         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
10542         build_distinct_type_copy to copy bounds.
10544 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
10546         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
10547         Change to unsigned int.
10549 2015-05-20  Jeff Law  <law@redhat.com>
10551         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
10552         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
10553         (pa_shadd_constant_p): Allow constants for shadd insns rather
10554         than valid scaling constants for memory addresses.
10555         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
10556         * config/pa/predicates.md (mem_shadd_operand): New predicate.
10557         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
10558         (shift-add insns using ASHIFT): New patterns.
10560 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
10562         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
10563         feasible.
10564         (fix_up_fall_thru_edges): Likewise.
10565         (fix_crossing_conditional_branches): Likewise. Promote jump targets
10566         from to rtx_insn to rtx_code_label where feasible.
10567         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
10568         gen_move_insn (returned type changed to rtx_insn).
10569         * builtins.c (expand_errno_check): Fix arguments of
10570         do_compare_rtx_and_jump (now expects rtx_code_label).
10571         (expand_builtin_acc_on_device): Likewise.
10572         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
10573         invert_jump (now exprects rtx_jump_insn).
10574         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
10575         (construct_init_block): Use rtx_code_label.
10576         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
10577         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
10578         calling redirect_jump.
10579         (patch_jump_insn): Likewise.
10580         (redirect_branch_edge): Likewise.
10581         (force_nonfallthru_and_redirect): Likewise.
10582         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
10583         when suitable.
10584         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
10585         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
10586         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
10587         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
10588         to store the value retured by gen_label_rtx.
10589         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
10590         rtx_jump_insn.
10591         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
10592         (split_branches): Fix calls of redirect_jump.
10593         * dojump.c (jumpifnot): Promote argument type from rtx to
10594         rtx_code_label.
10595         (jumpifnot_1): Likewise.
10596         (jumpif): Likewise.
10597         (jumpif_1): Likewise.
10598         (do_jump_1): Likewise.
10599         (do_jump): Likewise. Use rtx_code_label when feasible.
10600         (do_jump_by_parts_greater_rtx): Likewise.
10601         (do_jump_by_parts_zero_rtx): Likewise.
10602         (do_jump_by_parts_equality_rtx): Likewise.
10603         (do_compare_rtx_and_jump): Likewise.
10604         * dojump.h: Update function prototypes.
10605         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
10606         returns rtx_insn).
10607         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
10608         rtx_jump_insn.
10609         (emit_label_before): Likewise.
10610         (emit_jump_insn_after_noloc): Likewise.
10611         (emit_jump_insn_after_setloc): Likewise.
10612         (emit_jump_insn_after): Likewise
10613         (emit_jump_insn_before_setloc): Likewise.
10614         (emit_jump_insn_before): Likewise.
10615         (emit_label_before): Promote return type to rtx_code_label.
10616         (emit_label): Likewise.
10617         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
10618         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
10619         gen_move_insn.
10620         (emit_stack_restore): Likewise.
10621         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
10622         (do_cmp_and_jump): Likewise.
10623         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
10624         from rtx to rtx_code_label.
10625         (gen_move_insn_uncast): New function.
10626         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
10627         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
10628         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
10629         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
10630         invert_jump_1 and redirect_jump_1.
10631         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
10632         do_compare_rtx_and_jump.
10633         (expand_addsub_overflow): Likewise.
10634         (expand_neg_overflow): Likewise.
10635         (expand_mul_overflow): Likewise.
10636         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
10637         return value of gen_move_insn.
10638         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
10639         * loop-doloop.c (add_test): Use rtx_code_label.
10640         (doloop_modify): Likewise.
10641         (doloop_optimize): Likewise.
10642         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
10643         * lra-constraints.c (emit_spill_move): Remove cast of value returned
10644         by gen_move_insn.
10645         (inherit_reload_reg): Add cast when calling dump_insn_slim.
10646         (split_reg): Likewise.
10647         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
10648         gen_move_insn.
10649         * optabs.c (expand_binop_directly): Remove casts of values returned by
10650         maybe_gen_insn.
10651         (expand_unop_direct): Likewise.
10652         (expand_abs): Likewise.
10653         (maybe_emit_unop_insn): Likewise.
10654         (maybe_gen_insn): Promote return type to rtx_insn.
10655         * optabs.h: Update prototype of maybe_gen_insn.
10656         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
10657         redundant cast.
10658         * recog.c (struct peep2_insn_data): Promote type of insn field to
10659         rtx_insn.
10660         (peep2_reinit_state): Use NULL instead of NULL_RTX.
10661         (peep2_attempt): Remove casts of insn in peep2_insn_data.
10662         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
10663         * recog.h (struct insn_gen_fn): Promote return types of function
10664         pointers and operator ().from rtx to rtx_insn.
10665         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
10666         (fill_eager_delay_slots): Likewise.
10667         (relax_delay_slots): Likewise.
10668         (make_return_insns): Likewise.
10669         (dbr_schedule): Likewise.
10670         (optimize_skips): Likewise.
10671         (reorg_redirect_jump): Likewise.
10672         (fill_slots_from_thread): Likewise.
10673         * reorg.h: Update prototypes.
10674         * resource.c (find_dead_or_set_registers): Use dyn_cast to
10675         rtx_jump_insn instead of check.  Use it's jump_target method.
10676         * rtl.h (rtx_jump_insn::jump_label): Define new method.
10677         (rtx_jump_insn::jump_target): Define new method.
10678         (rtx_jump_insn::set_jump_target): Define new method.
10679         * rtlanal.c (tablejump_p): Promote type of one local variable.
10680         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
10681         (sched_analyze_insn): Likewise.
10682         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
10683         (print_insn): Likewise.
10684         * stmt.c (label_rtx): Promote return type to rtx_insn.
10685         (force_label_rtx): Likewise.
10686         (jump_target_rtx): Define new function.
10687         (expand_label): Use it, get rid of one cast.
10688         (expand_naked_return): Promote rtx to rtx_code_label.
10689         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
10690         (expand_case): Use rtx_code_label instread of rtx where feasible.
10691         (expand_sjlj_dispatch_table): Likewise.
10692         (emit_case_nodes): Likewise.
10693         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
10694         * store-motion.c (insert_store): Make use of new return type of
10695         gen_move_insn and remove a cast.
10696         (replace_store_insn): Likewise.
10698 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
10700         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
10701         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
10703 2015-05-20  Jeff Law  <law@redhat.com>
10705         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
10706         dispose of the jump thread path when the jump threading
10707         opportunity is cancelled.
10709 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10711         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
10712         when printing the caret character.
10714 2015-05-20  Marek Polacek  <polacek@redhat.com>
10716         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
10718 2015-05-20  Marek Polacek  <polacek@redhat.com>
10720         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
10721         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
10722         * gimple-fold.c (canonicalize_bool): Likewise.
10723         (same_bool_result_p): Likewise.
10724         * tree-if-conv.c (parse_predicate): Likewise.
10726 2015-05-20  Marek Polacek  <polacek@redhat.com>
10728         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
10729         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
10731 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10733         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
10734         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
10735         values.
10737 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
10739         * config/mips/mips.h (micromips_globals): Declare.
10741 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
10743         * timevar.def (TV_INITIALIZE_RTL): New.
10744         * toplev.c (initialize_rtl): Use an auto_timevar to account this
10745         function's time to TV_INITIALIZE_RTL.
10747 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
10749         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
10750         gimple_build_nop calls.
10751         (chkp_find_bounds_for_elem): Likewise.
10752         (chkp_get_zero_bounds): Likewise.
10753         (chkp_get_none_bounds): Likewise.
10754         (chkp_get_bounds_by_definition): Likewise.
10755         (chkp_generate_extern_var_bounds): Likewise.
10756         (chkp_get_bounds_for_decl_addr): Likewise.
10757         (chkp_get_bounds_for_string_cst): Likewise.
10759 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
10761         PR tree-optimization/65447
10762         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
10763         (dump_use, dump_uses): Support to dump sub use.
10764         (record_use): New parameters to support sub use.  Remove call to
10765         dump_use.
10766         (record_sub_use, record_group_use): New functions.
10767         (compute_max_addr_offset, split_all_small_groups): New functions.
10768         (group_address_uses, rewrite_use_address): New functions.
10769         (strip_offset): New declaration.
10770         (find_interesting_uses_address): Call record_group_use.
10771         (add_candidate): New assertion.
10772         (infinite_cost_p): Move definition forward.
10773         (add_costs): Check INFTY cost and return immediately.
10774         (get_computation_cost_at): Clear setup cost and dependent bitmap
10775         for sub uses.
10776         (determine_use_iv_cost_address): Compute cost for sub uses.
10777         (rewrite_use_address_1): Rename from old rewrite_use_address.
10778         (free_loop_data): Free sub uses.
10779         (tree_ssa_iv_optimize_loop): Call group_address_uses.
10781 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10782             Jim Wilson  <jim.wilson@linaro.org>
10784         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
10785         new  fields loadv and storev.
10786         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
10787         Initialize loadv and storev.
10788         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
10789         (cortexa53_extra_costs): Likewise.
10790         (cortexa57_extra_costs): Likewise.
10791         (xgene1_extra_costs): Likewise.
10792         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
10793         rtx_costs.
10795 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10797         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
10798          storev.
10799         (cortexa8_extra_costs): Likewise.
10800         (cortexa5_extra_costs): Likewise.
10801         (cortexa7_extra_costs): Likewise.
10802         (cortexa12_extra_costs): Likewise.
10803         (cortexa15_extra_costs): Likewise.
10804         (v7m_extra_costs): Likewise.
10806 2015-05-20  Jeff Law  <law@redhat.com>
10808         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
10809         instead of open-coded version.  Also delete the jump thread created
10810         within this function.
10812 2015-05-20  Alan Modra  <amodra@gmail.com>
10814         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
10815         stack adjusting insn.  Formatting.
10816         (rs6000_emit_prologue): Track stack adjusting insn, and use of
10817         r12.  If possible, emit first -fsplit-stack arg pointer insn
10818         before stack adjust.  Don't use r12 to save cr if split-stack.
10820 2015-05-20  Alan Modra  <amodra@gmail.com>
10822         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
10823         Define.
10824         (rs6000_supports_split_stack): New function.
10825         * gcc/config/rs6000/rs6000.c (machine_function): Add
10826         split_stack_arg_pointer.
10827         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
10828         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
10829         rather than virtual_incoming_args_rtx.
10830         (rs6000_va_start): Likewise.
10831         (split_stack_arg_pointer_used_p): New function.
10832         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
10833         (morestack_ref): New var.
10834         (gen_add3_const, rs6000_expand_split_stack_prologue,
10835         rs6000_internal_arg_pointer, rs6000_live_on_entry,
10836         rs6000_split_stack_space_check): New functions.
10837         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
10838         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
10839         (UNSPECV_SPLIT_STACK_RETURN): Define.
10840         (split_stack_prologue, load_split_stack_limit,
10841         load_split_stack_limit_di, load_split_stack_limit_si,
10842         split_stack_return, split_stack_space_check): New expands and insns.
10843         * gcc/config/rs6000/rs6000-protos.h
10844         (rs6000_expand_split_stack_prologue): Declare.
10845         (rs6000_split_stack_space_check): Declare.
10847 2015-05-20  Alan Modra  <amodra@gmail.com>
10849         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
10850         (direct_return): Test vrsave_size rather than vrsave_mask.
10851         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
10852         (rs6000_emit_epilogue): Likewise.
10854 2015-05-20  Alan Modra  <amodra@gmail.com>
10856         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
10857         when not saving registers.
10858         (debug_stack_info): Adjust to omit printing unused offsets,
10859         as before.
10860         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
10861         expression.
10863 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10865         PR c++/65835
10866         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
10867         value_type to const char *.
10869 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
10871         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
10872         to build a biarch toolchain again.
10874 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
10876         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
10877         or implicit declarations.
10878         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
10879         into it.
10880         (get_odr_type): Check type has linkage before adding bases.
10881         (register_odr_type): Check that type has linkage before adding it.
10882         (type_known_to_have_no_deriavations_p): Rename to ..
10883         (type_known_to_have_no_derivations_p): This one.
10884         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
10885         (type_known_to_have_no_derivations_p): This one.
10886         * ipa-polymorphic-call.c
10887         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
10888         type has linkage.
10890 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
10892         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
10893         (layout_type): Use RECORD_OR_UNION_TYPE_P.
10895 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10897         * config/s390/s390.c (s390_vector_bool_type_p): New function.
10898         (s390_invalid_binary_op): New function.
10899         (TARGET_INVALID_BINARY_OP): Define macro.
10901 2015-05-19  David Sherwood  <david.sherwood@arm.com>
10903         * loop-invariant.c (create_new_invariant): Don't calculate address cost
10904         if mode is not a scalar integer.
10905         (get_inv_cost): Increase computational cost for unused invariants.
10907 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10909         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
10910         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
10911         * config/s390/s390-builtin-types.def: New file.
10912         * config/s390/s390-builtins.def: New file.
10913         * config/s390/s390-builtins.h: New file.
10914         * config/s390/s390-c.c: New file.
10915         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
10916         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
10917         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
10918         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
10919         prototypes.
10920         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
10921         Include.
10922         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
10923         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
10924         variable definitions.
10925         (s390_const_operand_ok): New function.
10926         (s390_expand_builtin): Rewrite.
10927         (s390_init_builtins): New function.
10928         (s390_handle_vectorbool_attribute): New function.
10929         (s390_attribute_table): Add s390_vector_bool attribute.
10930         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
10931         (s390_branch_condition_mask): Generate masks for new modes.
10932         (s390_expand_vec_compare_cc): New function.
10933         (s390_mangle_type): Add mangling for vector bool types.
10934         (enum s390_builtin): Remove.
10935         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
10936         efpc builtins.
10937         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
10938         s390_cpu_cpp_builtins.
10939         (REGISTER_TARGET_PRAGMAS): New macro.
10940         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
10941         (insn_cmp mode attribute): Add new CC modes.
10942         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
10943         (lcbb): New pattern definition.
10944         * config/s390/s390intrin.h: Include vecintrin.h.
10945         * config/s390/t-s390: New file.
10946         * config/s390/vecintrin.h: New file.
10947         * config/s390/vector.md: Include vx-builtins.md.
10948         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
10949         support.
10951 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10953         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
10954         CCVFHE.
10955         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
10956         (s390_select_ccmode): Likewise.
10957         (s390_canonicalize_comparison): Swap operands if necessary.
10958         (s390_expand_vec_compare_scalar): Expand DFmode compare using
10959         single element vector instructions.
10960         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
10961         (s390_branch_condition_mask): Generate CC masks for the new modes.
10962         * config/s390/s390.md (v0, vf, vd): New mode attributes.
10963         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
10964         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
10965         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
10966         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
10967         (*extend<DSF:mode><BFP:mode>2): New insn definition.
10968         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
10969         (extend<DSF:mode><BFP:mode>2): Turn into expander.
10970         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
10971         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
10972         (sqrt<mode>2): Add vector instruction.
10974 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10976         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
10977         constraints.
10978         * config/s390/predicates.md (const0_operand, constm1_operand)
10979         (constable_operand): Accept vector operands.
10980         * config/s390/s390-modes.def: Add supported vector modes.
10981         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
10982         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
10983         (s390_bytemask_vector_p, s390_expand_vec_strlen)
10984         (s390_expand_vec_compare, s390_expand_vcond)
10985         (s390_expand_vec_init): Add prototypes.
10986         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
10987         (s390_vector_mode_supported_p): New function.
10988         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
10989         (s390_contiguous_bitmask_vector_p): New function.
10990         (s390_bytemask_vector_p): New function.
10991         (s390_split_ok_p): Vector regs don't work either.
10992         (regclass_map): Add VEC_REGS.
10993         (s390_legitimate_constant_p): Handle vector constants.
10994         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
10995         (legitimate_reload_vector_constant_p): New function.
10996         (s390_preferred_reload_class): Handle CONST_VECTOR.
10997         (s390_reload_symref_address):  Likewise.
10998         (s390_secondary_reload): Vector memory instructions only support
10999         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
11000         (s390_emit_ccraw_jump): New function.
11001         (s390_expand_vec_strlen): New function.
11002         (s390_expand_vec_compare): New function.
11003         (s390_expand_vcond): New function.
11004         (s390_expand_vec_init): New function.
11005         (s390_dwarf_frame_reg_mode): New function.
11006         (print_operand): Handle addresses with 'O' and 'R' constraints.
11007         (NR_C_MODES, constant_modes): Add vector modes.
11008         (s390_output_pool_entry): Handle vector constants.
11009         (s390_hard_regno_mode_ok): Handle vector registers.
11010         (s390_class_max_nregs): Likewise.
11011         (s390_cannot_change_mode_class): New function.
11012         (s390_invalid_arg_for_unprototyped_fn): New function.
11013         (s390_function_arg_vector): New function.
11014         (s390_function_arg_float): Remove size variable.
11015         (s390_pass_by_reference): Handle vector arguments.
11016         (s390_function_arg_advance): Likewise.
11017         (s390_function_arg): Likewise.
11018         (s390_return_in_memory): Vector values are returned in a VR if
11019         possible.
11020         (s390_function_and_libcall_value): Handle vector arguments.
11021         (s390_gimplify_va_arg): Likewise.
11022         (s390_call_saved_register_used): Consider the arguments named.
11023         (s390_conditional_register_usage): Disable v16-v31 for non-vec
11024         targets.
11025         (s390_preferred_simd_mode): New function.
11026         (s390_support_vector_misalignment): New function.
11027         (s390_vector_alignment): New function.
11028         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
11029         (TARGET_VECTOR_MODE_SUPPORTED_P)
11030         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
11031         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
11032         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
11033         (TARGET_VECTOR_ALIGNMENT): Define target macro.
11034         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
11035         (FIRST_PSEUDO_REGISTER): Increase value.
11036         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
11037         (VECTOR_REG_P): Define macros.
11038         (FIXED_REGISTERS, CALL_USED_REGISTERS)
11039         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
11040         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
11041         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
11042         Add vector registers.
11043         (CANNOT_CHANGE_MODE_CLASS): Call C function.
11044         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
11045         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
11046         memory.
11047         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
11048         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
11049         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
11050         (VR*_REGNUM): New constants.
11051         (ALL): New mode iterator.
11052         (INTALL): Remove mode iterator.
11053         Include vector.md.
11054         (movti): Implement TImode moves for VRs.
11055         Disable TImode splitter for VR targets.
11056         Implement splitting TImode GPR<->VR moves.
11057         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
11058         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
11059         reload<mode>_la_in, reload<mode>_la_out.
11060         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
11061         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
11062         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
11063         (mov<mode> SF SD): Prefer lder, lde for loading.
11064         Add lrl and strl instructions.
11065         Add vector instructions.
11066         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
11067         Call s390_expand_vec_strlen on z13.
11068         (*cc_to_int): Change predicate to nonimmediate_operand.
11069         (addti3): Rename to *addti3.  New expander.
11070         (subti3): Rename to *subti3.  New expander.
11071         * config/s390/vector.md: New file.
11073 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11075         * common/config/s390/s390-common.c (processor_flags_table): Add
11076         z13.
11077         * config.gcc: Add z13.
11078         * config/s390/s390-opts.h (enum processor_type): Add
11079         PROCESSOR_2964_Z13.
11080         * config/s390/s390.c (s390_adjust_priority): Check for
11081         PROCESSOR_2964_Z13.
11082         (s390_reorg): Likewise.
11083         (s390_sched_reorder): Likewise.
11084         (s390_sched_variable_issue): Likewise.
11085         (s390_loop_unroll_adjust): Likewise.
11086         (s390_option_override): Likewise. Default to -mvx when available.
11087         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
11088         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
11089         (TARGET_VX_ABI): Define macros.
11090         macros.
11091         (TARGET_DEFAULT): Add MASK_OPT_VX.
11092         * config/s390/s390.md ("cpu" attribute): Add z13.
11093         ("cpu_facility" attribute): Add vec.
11094         * config/s390/s390.opt (processor_type): Add z13.
11095         (mvx): New options.
11096         * doc/invoke.texi: Add z13 option for -march.
11098 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11100         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
11101         mode check to make sure that only scalar integer values are
11102         accepted.
11104 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
11106         * tree.c (verify_type_variant): Fix #undef.
11107         (gimple_canonical_types_compatible_p): Move here from lto.c
11108         (verify_type): Verify TYPE_CANONICAL compatibility.
11109         * tree.h (gimple_canonical_types_compatible_p): Declare.
11111 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
11113         PR middle-end/66199
11114         * tree.h (OMP_TEAMS_COMBINED): Define.
11115         * gimplify.c (enum gimplify_omp_var_data): Add
11116         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
11117         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
11118         (omp_notice_variable): Accept both ORT_TEAMS
11119         and ORT_COMBINED_TEAMS.  Don't recurse if
11120         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
11121         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
11122         GOVD_FIRSTPRIVATE.
11123         (omp_no_lastprivate): New function.
11124         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
11125         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
11126         notice_outer and set appropriate bits, otherwise make
11127         sure default(none) combined constructs won't complain.
11128         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
11129         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
11130         omp_no_lastprivate either remove the clause or turn it
11131         into OMP_CLAUSE_PRIVATE.
11132         (gimplify_omp_for): Fix up handling of implicit
11133         lastprivate or linear iterators.
11134         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
11135         ORT_COMBINED_TEAMS.
11136         * omp-low.c (lower_omp_for_lastprivate): For combined
11137         for simd use fd.loop.n2 from the for rather than simd.
11139 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11141         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
11142         instead of gen_rtx_raw_REG.
11143         (cris_expand_epilogue): Likewise.
11144         * config/microblaze/microblaze.c (microblaze_classify_address):
11145         Likewise.
11146         * config/sparc/sparc.md: Likewise.
11148 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
11150         * config/alpha/alpha.c (alpha_legitimize_reload_address)
11151         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
11152         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
11153         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
11154         Use CASE_CONST_SCALAR_INT.
11155         (print_operand) <case 'M'>: Use mode_width_operand to check the
11156         value of the constant.
11157         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
11158         * config/alpha/predicates.md (input_operand): Use general_operand
11159         instead of match_code as operand check.
11160         (symbolic_operand): Use match_code with subexpression digits.
11161         * config/alpha/constraints.md (Q): Ditto.
11163 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11165         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
11167 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11169         * config/s390/s390.c (s390_secondary_reload): Fix check for
11170         load/store relative.
11172 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11174         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
11175         alternative_mask to uint64_t.
11177 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
11179         PR tree-optimization/66187
11180         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
11181         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
11182         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
11184 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
11186         * diagnostic.c (diagnostic_report_current_module): Strengthen
11187         local "new_map" from const line_map * to
11188         const line_map_ordinary *.
11189         * genmatch.c (error_cb): Likewise for local "map".
11190         (output_line_directive): Likewise for local "map".
11191         * input.c (expand_location_1): Likewise for local "map".
11192         Pass NULL rather than &map to
11193         linemap_unwind_to_first_non_reserved_loc, since the value is never
11194         read from there, and the value written back not read from here.
11195         (is_location_from_builtin_token): Strengthen local "map" from
11196         const line_map * to const line_map_ordinary *.
11197         (dump_location_info): Strengthen locals "map" from
11198         line_map *, one to const line_map_ordinary *, the other
11199         to const line_map_macro *.
11200         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
11201         const line_map * to const line_map_macro *.
11202         (maybe_unwind_expanded_macro_loc): Add a call to
11203         linemap_check_macro when writing to the "map" field of the
11204         loc_map_pair.
11205         Introduce local const line_map_ordinary * "ord_map", using it in
11206         place of "map" in the part of the function where we know we have
11207         an ordinary map.  Strengthen local "m" from const line_map * to
11208         const line_map_ordinary *.
11210 2015-05-19  Nick Clifton  <nickc@redhat.com>
11212         PR target/66156
11213         * config/msp430/msp430.md (zero_extendhisi2): Add support for
11214         separate source and destination registers.
11216 2015-05-19  Richard Biener  <rguenther@suse.de>
11218         PR tree-optimization/66165
11219         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
11220         for no load permutation.
11222         PR tree-optimization/66185
11223         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
11224         when building the SLP node from scalars.
11226 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
11227             Tristan Gingold  <gingold@adacore.com>
11229         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
11230         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
11231         (expand_stack_restore): Call record_new_stack_level.
11232         (expand_stack_save): Do not call do_pending_stack_adjust.
11233         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
11234         * calls.c (expand_call): Call record_new_stack_level for alloca.
11235         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
11236         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
11237         (update_sjlj_context): New global function.
11238         * except.h (update_sjlj_context): Declare.
11239         * explow.c (record_new_stack_level): New global function.
11240         (allocate_dynamic_stack_space): Call record_new_stack_level.
11241         * explow.h (record_new_stack_level): Declare.
11242         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
11243         * cfgrtl.c (duplicate_insn_chain): Likewise.
11245 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11247         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
11248         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
11249         STACK_GROWS_DOWNWARD as normal if.
11250         (expand_call): Likewise.
11252 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
11254         PR target/54236
11255         * config/sh/sh.md (*round_int_even): New insn_and_split and
11256         accompanying new unnamed split.
11258 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11260         * bitmap.c (bitmap_set_range): Handle count==1 specially.
11261         (bitmap_clear_range): Likewise.
11262         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
11263         bitmap_set_range unconditionally.
11264         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
11265         * df-scan.c (df_mark_reg): Likewise.
11266         * haifa-sched.c (setup_ref_regs): Likewise.
11267         * sched-rgn.c (update_live_1): Likewise.
11269 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11271         * regs.h (END_HARD_REGNO): Delete.
11272         (END_REGNO): Move to...
11273         * rtl.h: ...here.
11274         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
11275         * caller-save.c (mark_set_regs): Likewise.
11276         * combine.c (move_deaths, distribute_notes): Likewise.
11277         * cse.c (invalidate, invalidate_for_call): Likewise.
11278         * df-scan.c (df_ref_record): Likewise.
11279         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
11280         (record_last_reg_set_info): Likewise.
11281         * reg-stack.c (convert_regs_exit): Likewise.
11282         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
11283         * resource.c (update_live_status): Likewise.
11284         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
11286 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11288         * rtl.h (reg_info): Add an nregs field.
11289         (REG_NREGS): Use it.
11290         (SET_REGNO_RAW): Delete.
11291         (set_regno_raw): New function.
11292         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
11293         (END_REGNO): Redefine in terms of REG_NREGS.
11294         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
11295         SET_REGNO_RAW.
11296         * emit-rtl.c (set_mode_and_regno): Likewise.
11297         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
11298         instead of SET_REGNO_RAW.
11300 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11302         * rtl.h (PUT_MODE_RAW): New macro.
11303         (PUT_REG_NOTE_KIND): Use it.
11304         (set_mode_and_regno): Declare.
11305         (gen_raw_REG): Change regno to "unsigned int".
11306         (gen_rtx_REG): Change "unsigned" to "unsigned int".
11307         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
11308         use set_mode_and_regno to change the mode of registers.
11309         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
11310         * emit-rtl.c (set_mode_and_regno): New function.
11311         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
11312         * caller-save.c (reg_save_code): Use set_mode_and_regno.
11313         * expr.c (init_expr_target): Likewise.
11314         * ira.c (setup_prohibited_mode_move_regs): Likewise.
11315         * postreload.c (reload_cse_simplify_operands): Likewise.
11317 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11319         * caller-save.c (init_caller_save): Use word_mode and
11320         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
11321         * expr.c (init_expr_target): Likewise.
11322         * ira.c (setup_prohibited_mode_move_regs): Likewise.
11323         * postreload.c (reload_cse_regs_1): Likewise.
11325 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11327         * rtl.def (REG): Change format to "r".
11328         * rtl.h (rtunion): Remove rt_reg.
11329         (reg_info): New structure.
11330         (rtx_def): Add reg field to main union.
11331         (X0REGATTR): Delete.
11332         (REG_CHECK): New macro.
11333         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
11334         * rtl.c (rtx_format): Document "r".
11335         (rtx_code_size): Handle REG specially.
11336         * gengenrtl.c (special_format): Return true for formats
11337         that include 'r'.
11338         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
11339         Deal with REG_ATTRS after the field loop.
11340         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
11341         * expmed.c (init_expmed): Call gen_raw_REG instead of
11342         gen_rtx_raw_REG.
11343         * expr.c (init_expr_target): Likewise.
11344         * regcprop.c (maybe_mode_change): Likewise.
11345         * varasm.c (make_decl_rtl): Likewise.
11346         * final.c (leaf_renumber_regs_insn): Return early after
11347         handling REGs.
11348         * genemit.c (gen_exp): Handle 'r' fields.
11349         * genpeep.c (match_rtx): Likewise.
11350         * gensupport.c (subst_pattern_match): Likewise.
11351         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
11352         (alter_constraints, subst_dup): Likewise.
11353         * read-rtl.c (read_rtx_code): Likewise.
11354         * print-rtl.c (print_rtx): Likewise.
11355         * genrecog.c (find_operand, find_matching_operand): Likewise.
11356         (validate_pattern, match_pattern_2): Likewise.
11357         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
11358         (rtx_test::regno_field): New function.
11359         (operator ==, safe_to_hoist_p, transition_parameter_type)
11360         (parameter_type_string, print_parameter_value)
11361         (print_nonbool_test, print_test): Handle new enum values.
11362         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
11363         * lra-constraints.c (operands_match_p): Likewise.
11365 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11367         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
11368         Change type of new_regno to unsigned int.
11369         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
11370         new_regno to unsigned int.
11371         (df_ref_change_reg_with_loc): Remove old_regno parameter.
11372         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
11373         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
11374         (SET_REGNO_RAW): Add space after ",".
11376 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11378         * rtl.h (REG_NREGS): New macro
11379         * alias.c (record_set): Use it.
11380         * cfgcleanup.c (mark_effect): Likewise.
11381         * combine.c (likely_spilled_retval_1): Likewise.
11382         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
11383         (move_deaths, distribute_notes): Likewise.
11384         * cselib.c (cselib_record_set): Likewise.
11385         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
11386         * df-scan.c (df_mark_reg): Likewise.
11387         * dse.c (look_for_hardregs): Likewise.
11388         * dwarf2out.c (reg_loc_descriptor): Likewise.
11389         (multiple_reg_loc_descriptor): Likewise.
11390         * expr.c (write_complex_part, read_complex_part): Likewise.
11391         (emit_move_complex): Likewise.
11392         * haifa-sched.c (setup_ref_regs): Likewise.
11393         * ira-lives.c (mark_hard_reg_live): Likewise.
11394         * lra.c (lra_set_insn_recog_data): Likewise.
11395         * mode-switching.c (create_pre_exit): Likewise.
11396         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
11397         (reload_combine_recognize_pattern): Likewise.
11398         (reload_combine_note_use, move2add_record_mode): Likewise.
11399         (reload_cse_move2add): Likewise.
11400         * reg-stack.c (subst_stack_regs_pat): Likewise.
11401         * regcprop.c (kill_value, copy_value): Likewise.
11402         (copyprop_hardreg_forward_1): Likewise.
11403         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
11404         (build_def_use): Likewise.
11405         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
11406         (deps_analyze_insn): Likewise.
11407         * sched-rgn.c (check_live_1, update_live_1): Likewise.
11408         * sel-sched.c (count_occurrences_equiv): Likewise.
11409         * valtrack.c (dead_debug_insert_temp): Likewise.
11411 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11413         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
11414         * dse.c (note_add_store): Likewise.
11415         * ira-lives.c (mark_hard_reg_dead): Likewise.
11416         * loop-invariant.c (mark_reg_store): Likewise.
11417         (mark_reg_death): Likewise.
11418         * postreload.c (reload_combine): Likewise.
11419         (reload_combine_note_store): Likewise.
11420         (reload_combine_note_use): Likewise.
11421         * recog.c (peep2_reg_dead_p): Likewise.
11423 2015-05-19  Alan Modra  <amodra@gmail.com>
11425         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
11426         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
11427         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
11428         unused predicates.
11429         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
11430         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
11431         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
11432         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
11434 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
11436         * config/mips/mips.md (JOIN_MODE): New mode iterator.
11437         (join2_load_Store<JOIN_MODE:mode>): New pattern.
11438         (join2_loadhi): Likewise.
11439         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
11440         load-load and store-stores.
11441         * config/mips/mips.opt (mload-store-pairs): New option.
11442         (TARGET_LOAD_STORE_PAIRS): New macro.
11443         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
11444         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
11445         * config/mips/mips.c (mips_load_store_bonding_p): New function.
11447 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
11449         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
11450         explicit swaps.
11451         * dojump.c (do_compare_rtx_and_jump): Likewise.
11452         * expmed.c (emit_store_flag_1): Likewise.
11453         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
11454         * final.c (sprint_ul): Use std::reverse for reversing a string.
11455         * fold-const.c (extract_muldiv_1): Use std::swap.
11456         * genmodes.c (emit_mode_int_n): Likewise.
11457         * ifcvt.c (dead_or_predicable): Likewise.
11458         * ira-build.c (ira_merge_live_ranges): Likewise.
11459         (swap_allocno_copy_ends_if_necessary): Likewise.
11460         * ira.c (ira_setup_alts): Likewise.
11461         * loop-iv.c (iv_analyze_expr): Likewise.
11462         (implies_p): Likewise.
11463         (canon_condition): Likewise.
11464         * lra-constraints.c (swap_operands): Likewise.
11465         * lra-lives.c (lra_merge_live_ranges): Likewise.
11466         * omega.c (swap): Remove.
11467         (bswap): Remove.
11468         (omega_unprotect_1): Use std::swap.
11469         (omega_solve_geq): Likewise.
11470         * optabs.c (expand_binop_directly): Likewise.
11471         (expand_binop): Likewise.
11472         (emit_conditional_move): Likewise.
11473         (emit_conditional_add): Likewise.
11474         * postreload.c (reload_cse_simplify_operands): Likewise.
11475         * reg-stack.c (emit_swap_insn): Likewise.
11476         (swap_to_top): Likewise.
11477         (compare_for_stack_reg): Likewise.
11478         (subst_asm_stack_regs): Likewise.
11479         * reload.c (find_reloads): Likewise.
11480         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
11481         * sel-sched.c (invoke_reorder_hooks): Likewise.
11482         (create_block_for_bookkeeping): Likewise.
11483         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
11484         (lambda_matrix_right_hermite): Use std::swap.
11485         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
11486         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11487         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
11488         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
11489         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
11490         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
11491         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
11492         * tree-vrp.c (compare_ranges): Likewise.
11493         * var-tracking.c (add_with_sets): Likewise.
11494         (vt_find_locations): Likewise.
11496 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
11498         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
11499         pie executables.
11500         (FBSD_ENDFILE_SPEC): Likewise.
11501         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
11502         config/freebsd-spec.h.
11503         (ENDFILE_SPEC): Likewise.
11505 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
11506             Richard Henderson  <rth@redhat.com>
11508         PR target/57032
11509         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
11510         Check for a memory location that is not a reference (using an AND)
11511         to an unaligned location here.
11512         * config/alpha/predicates.md (normal_memory_operand): Remove.
11514 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
11516         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
11517         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
11519 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
11521         * config/mips/mips.c (micromips_globals): New variable.
11522         (mips_set_compression_mode): Save and reinitialize target-dependent
11523         state for microMIPS.
11525 2015-05-18  Martin Liska  <mliska@suse.cz>
11527         * dbgcnt.def: Add new counter.
11528         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
11530 2015-05-18  Martin Liska  <mliska@suse.cz>
11532         * dbgcnt.def: Sort counters.
11533         * opts.c (common_handle_option): Do not compile if
11534         -fdbg-cnt-list is enabled.
11536 2015-05-18  Tom de Vries  <tom@codesourcery.com>
11538         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
11539         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
11540         address operator to va_list operand.
11541         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
11542         unconditionally.
11543         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
11544         operand.
11545         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
11546         * config/s390/s390.c (s390_gimplify_va_arg): Same.
11547         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
11549 2015-05-18  Tom de Vries  <tom@codesourcery.com>
11551         * tree-ssa-tail-merge.c: Fix whitespace.
11553 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
11555         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
11556         cortex-a17, and cortex-a17.cortex-a7.
11558 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
11560         PR target/54236
11561         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
11563 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
11565         PR target/66174
11566         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
11567         QImode inner modes for TARGET_AVX512BW.  Force mask operand
11568         to a register for AVX512F modes.
11570 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
11572         * toplev.c (emit_debug_global_declarations): Do not output debug info
11573         when doing slim LTO objects.
11575 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
11577         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
11578         odr_types_equivalent_p): Declare.
11579         (odr_type_p): Use gcc_checking_assert.
11580         (type_in_anonymous_namespace_p) Declare.
11581         (type_with_linkage_p): Declare.
11582         * common.opt (Wlto-type-mismatch): New warning.
11583         * ipa-devirt.c (compound_type_base): New function.
11584         (odr_or_derived_type_p): New function.
11585         (odr_types_equivalent_p): New function.
11586         (add_type_duplicate): Simplify.
11587         (type_with_linkage_p): Add hack to prevent false positives on C types
11588         (type_in_anonymous_namespace_p): Likewise.
11589         * tree.c (need_assembler_name_p): Use type_with_linkage.
11590         * tree.h (type_in_anonymous_namespace_p): Remove.
11591         * doc/invoke.texi (-Wlto-type-mismatch): Document
11593 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
11595         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
11596         (verify_type): Verify STRING_FLAG.
11598 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11600         PR fortran/44054
11601         * tree-pretty-print.c (percent_K_format): Replace locus pointer
11602         with accessor function.
11603         * tree-diagnostic.c (diagnostic_report_current_function): Use
11604         diagnostic_location function.
11605         (maybe_unwind_expanded_macro_loc): Likewise.
11606         (virt_loc_aware_diagnostic_finalizer): Likewise.
11607         (default_tree_printer): Replace locus pointer with accessor function.
11608         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
11609         (diagnostic_set_info_translated): Initialize second location.
11610         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
11611         (diagnostic_show_locus): Handle two locations. Call
11612         diagnostic_print_caret_line.
11613         (diagnostic_print_caret_line): New.
11614         (default_diagnostic_starter): Use diagnostic_location function.
11615         (diagnostic_report_diagnostic): Use diagnostic_location function.
11616         (verbatim): Do not set text.locus.
11617         * diagnostic.h (struct diagnostic_info): Remove location field.
11618         (struct diagnostic_context): Make caret_chars an array of two.
11619         (diagnostic_location): New inline.
11620         (diagnostic_expand_location): Handle two locations.
11621         (diagnostic_same_line): New inline.
11622         (diagnostic_print_caret_line): Declare.
11623         (CARET_LINE_MARGIN): New constant.
11624         * pretty-print.c (pp_printf): Do not set text.locus.
11625         (pp_verbatim): Do not set text.locus.
11626         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
11627         (struct text_info): Replace locus pointer with locations
11628         array. Add accessor functions.
11630 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
11631             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11633         PR target/65768
11634         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
11635         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
11636          large constants in register instead of splitting them.
11638 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
11640         PR target/66140
11641         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
11642         replacements in memory addresses.
11643         (get_unaligned_address): Ditto.
11645 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
11647         * config/ft32/*: New files for FT32 port.
11648         * doc/install.texi: Add FT32 information.
11649         * doc/invoke.texi: Add FT32 information.
11650         * doc/md.texi: Add FT32 information.
11651         * doc/contrib.texi: Self added.
11653 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
11655         PR tree-optimization/64454
11656         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
11657         (-1 - A -> ~A): Remove unnecessary condition.
11659 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
11661         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
11662         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
11663         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
11665 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
11667         * ipa-chkp.h (chkp_wrap_function): New.
11668         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
11669         (chkp_wrap_function_name): New.
11670         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
11671         to get wrapper name.
11672         * lto-cgraph.c: Include ipa-chkp.h.
11673         (input_cgraph_1): Avoid alias chain for wrappers.
11675 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
11677         PR middle-end/66134
11678         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
11679         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
11681 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11683         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
11684         (AARCH64_FL_SLOWMUL): Delete.
11685         (AARCH64_FL_CRC): Redefine to 1<<3.
11686         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
11688 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11690         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
11691         casting.
11693 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
11695         * config/alpha/alpha.md (extendqidi2): Use general_operand
11696         instead of some_operand for operand[1] predicate.
11697         (extendhidi2): Ditto.
11698         (cbranchdi4): Use general_operand instead of some_operand
11699         for operand[1] and operands[2] predicates.
11700         (cstoredi4): Ditto.
11701         * config/alpha/predicates.md (some_operand): Remove unused predicate.
11702         (some_ni_operand): Ditto.
11704 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
11706         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
11707         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
11708         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
11709         low part of the constant using alpha_emit_set_const_1.
11710         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
11712 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
11714         * varasm.c (output_constant_pool_1): Pass down alignment from
11715         constant pool entry's descriptor to output_constant_pool_2.
11716         (output_object_block): Add comment prior to call to
11717         output_constant_pool_1.
11719 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
11721         PR rtl-optimization/65862
11722         * target.def (ira_change_pseudo_allocno_class): New hook.
11723         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
11724         value of the hook.
11725         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
11726         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
11727         hook.
11728         * ira-costs.c (find_costs_and_classes): Call the hook and change
11729         classes when it is necessary.
11730         * doc/tm.texi: Update.
11732 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
11734         * config/i386/i386.md (sibcall_memory): Check that register with
11735         callee address is not also used as one of the arguments, instead
11736         of checking that it is not live after the sibcall.
11737         (sibcall_pop_memory): Ditto.
11738         (sibcall_value_memory): Ditto.
11739         (sibcall_value_pop_memory): Ditto.
11741 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
11743         * generic-match-head.c (types_match): Handle non-types.
11744         * gimple-match-head.c (types_match): Likewise.
11745         * match.pd: Remove unnecessary TREE_TYPE for types_match.
11747 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
11749         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
11750         (csneg3<mode>_insn): Enable expansion of pattern.
11752 2015-05-14  Nick Clifton  <nickc@redhat.com>
11754         * config/rl78/rl78.c (rl78_select_section): Select the correct
11755         default section based upon the category of the decl.
11757 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
11759         PR rtl-optimization/30967
11760         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
11761         destination mode for the cost of scc patterns.
11763 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
11765         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
11766         using SWIM248 mode iterator.
11767         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
11768         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
11769         for operand[2] constraint.
11770         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
11772 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
11774         PR middle-end/66133
11775         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
11776         make sure it is never noreturn, even when the task body does not
11777         return.
11778         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
11779         right before GIMPLE_OMP_RETURN.
11780         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
11781         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
11782         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
11784 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11786         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
11787         * tree-ssa-math-opts.c: Include params.h
11788         (pow_synth_sqrt_info): New struct.
11789         (representable_as_half_series_p): New function.
11790         (get_fn_chain): Likewise.
11791         (print_nested_fn): Likewise.
11792         (dump_fractional_sqrt_sequence): Likewise.
11793         (dump_integer_part): Likewise.
11794         (expand_pow_as_sqrts): Likewise.
11795         (gimple_expand_builtin_pow): Use above to attempt to expand
11796         pow as series of square roots.  Removed now unused variables.
11798 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
11800         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
11801         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
11802         Remove *p0 and *p1 arguments.  Rewrite function.
11803         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
11804         (alpha_split_const_mov): Update calls to alpha_extract_integer and
11805         alpha_emit_set_long_const.
11806         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
11807         (alpha_output_mi_thunk_osf): Ditto.
11808         * config/alpha/alpha.md (movti): Do not check operands[1]
11809         for CONST_DOUBLE.
11811 2015-05-13  Richard Biener  <rguenther@suse.de>
11813         PR tree-optimization/66129
11814         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
11815         commutative.
11816         (vect_schedule_slp_instance): Fix typo.
11818 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
11820         * common.opt (fdump-internal-locations): New option.
11821         * input.c: Include diagnostic-core.h.
11822         (get_end_location): New function.
11823         (write_digit): New function.
11824         (write_digit_row): New function.
11825         (dump_location_range): New function.
11826         (dump_labelled_location_range): New function.
11827         (dump_location_info): New function.
11828         * input.h (dump_location_info): New prototype.
11829         * toplev.c (compile_file): Handle flag_dump_locations.
11831 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
11833         * gimple-expr.h (is_gimple_constant): Reorder.
11834         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
11836 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
11838         * combine.c (simplify_set): When generating a CC set, if the
11839         source already is in the correct mode, do not wrap it in a
11840         compare.  Simplify the rest of that code.
11842 2015-05-13  Richard Biener  <rguenther@suse.de>
11844         PR tree-optimization/66123
11845         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
11846         a taken edge.
11848 2015-05-13  Richard Biener  <rguenther@suse.de>
11850         PR middle-end/66110
11851         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
11852         specially.
11853         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
11855 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
11857         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
11858         * aclocal.m4: Regenerated with automake-1.11.6.
11860 2015-05-13  Tom de Vries  <tom@codesourcery.com>
11862         PR tree-optimization/66010
11863         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
11864         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
11865         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
11866         and rval based on do_deref.
11868 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11870         PR target/65103
11871         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
11872         link time constants into adress expressions and therefore set
11873         their cost to 0.
11875 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
11877         PR target/66112
11878         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
11879         Use SWI248 iterator instead of SWI.
11880         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
11881         Use eq_attr "alternative" "0" instead of match_test in
11882         length_immediate attribute computation.
11883         (*mulvhi4, *mulvhi4_1): New define_insns.
11885         PR target/66112
11886         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
11887         SIGNED to get precision of non-negative value.
11889 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11891         PR target/66048
11892         * function.c (diddle_return_value_1): Process bounds first.
11893         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
11894         register.
11896 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11898         PR rtl-optimization/64616
11899         * loop-invariant.c (can_move_invariant_reg): New.
11900         (move_invariant_reg): Call above new function to decide whether
11901         instruction can just be moved, skipping creation of temporary
11902         register.
11904 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
11906         PR target/pr66047.c
11907         * i386.c (ix86_function_sseregparm): Only return -1 if local function
11908         with implied regparm is called from -mno-sse function.
11909         (init_cumulative_args): Output error if ix86_function_sseregparm
11910         return -1 and SSE register would be needed.
11911         (function_arg_advance_32): Likewise.
11912         (function_arg_32): Likewise.
11913         * i386.h (ix86_args): Add decl field.
11915 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
11917         PR ipa/65873
11918         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
11919         inlines across optimization boundary.
11921 2015-05-12  Jason Merrill  <jason@redhat.com>
11923         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
11924         string literal and macro name.
11926 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
11928         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
11929         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
11930         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
11932 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
11934         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
11935         (-Wmisleading-indentation): New option.
11936         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
11938 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
11940         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
11941         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
11942         (alpha_extract_integer): Ditto.
11943         (alpha_legitimate_constant_p): Ditto.
11944         (alpha_split_tmode_pair): Ditto.
11945         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
11946         (alpha_expand_mov): Ditto.
11947         (print_operand): Remove handling of 'H' modifier.
11948         <case 'm'>: Remove CONST_DOUBLE handling.
11949         (summarize_insn): Handle CONST_WIDE_INT.
11950         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
11951         (anddi3): Ditto.
11952         (movti): Handle CONST_WIDE_INT.
11953         * config/alpha/constraints.md ('H'): Remove constraint definition.
11954         ('G'): Do not match MODE_FLOAT class.
11955         * config/alpha/predicates.md (const0_operand): Also match
11956         const_wide_int.
11957         (non_add_const_operand): Ditto.
11958         (non_zero_const_operand): Ditto.
11959         (some_operand): Ditto.
11960         (input_operand): Ditto.  Handle CONST_WIDE_INT.
11961         (and_operand): Do not match const_double.
11962         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
11964 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
11966         PR target/65697
11967         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
11968         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
11969         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11970         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
11971         is_mm_seq_cst, is_mm_sync): New accessor functions.
11972         * builtins.c (expand_builtin_sync_operation,
11973         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
11974         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
11975         (get_memmodel,  expand_builtin_atomic_compare_exchange,
11976         expand_builtin_atomic_load, expand_builtin_atomic_store,
11977         expand_builtin_atomic_clear): Use new accessor routines.
11978         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
11979         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
11980         (maybe_emit_sync_lock_test_and_set): Use new accessors and
11981         MEMMODEL_SYNC_ACQUIRE.
11982         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
11983         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
11984         expand_atomic_store): Use new accessors.
11985         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
11986         * tsan.c (instrument_builtin_call): Update check for memory model beyond
11987         final enum to use MEMMODEL_LAST.
11988         * c-family/c-common.c: Use new accessor for memmodel_base.
11989         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
11990         accessors.
11991         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
11992         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
11993         mem_thread_fence, *dmb): Likewise.
11994         * config/alpha/alpha.c (alpha_split_compare_and_swap,
11995         alpha_split_compare_and_swap_12): Likewise.
11996         * config/arm/arm.c (arm_expand_compare_and_swap,
11997         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
11998         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
11999         atomic_loaddi): Likewise.
12000         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
12001         Likewise.
12002         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
12003         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
12004         use new accessors.
12005         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
12006         atomic_store<mode>, atomic_compare_and_swap<mode>,
12007         atomic_exchange<mode>): Use new accessors.
12008         * config/mips/mips.c (mips_process_sync_loop): Likewise.
12009         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
12010         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
12011         rs6000_post_atomic_barrier): Add new cases.
12012         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
12013         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
12014         (atomic_load<mode>): Add new cases and use new accessors.
12015         (store_quadpti): Add new cases.
12016         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
12017         accessors.
12018         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
12019         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
12020         model, not 8.
12022 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
12024         * ipa-devirt.c (type_with_linkage_p): New function.
12025         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
12026         type has linkage.
12027         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
12028         (can_be_name_hashed_p): Simplify.
12029         (hash_odr_name): Check that type has linkage before checking if it is
12030         anonymous.
12031         (types_same_for_odr): Likewise.
12032         (odr_name_hasher::equal): Likewise.
12033         (odr_subtypes_equivalent_p): Likewise.
12034         (warn_types_mismatch): Likewise.
12035         (get_odr_type): Likewise.
12036         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
12037         * ipa-utils.h (odr_type_p): Move offline.
12038         * tree.c (need_assembler_name_p): Fix handling of types
12039         without linkages.
12040         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
12042 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
12044         * timevar.c (timevar_enable): Delete in favor of...
12045         (g_timer): New global.
12046         (struct timevar_def): Move to timevar.h inside class timer.
12047         (struct timevar_stack_def): Likewise.
12048         (timevars): Delete global in favor of field "m_timevars" within
12049         class timer in timevar.h
12050         (stack): Likewise, in favor of field "m_stack".
12051         (unused_stack_instances): Likewise, in favor of field
12052         "m_unused_stack_instances".
12053         (start_time): Likewise, in favor of field "m_start_time".
12054         (get_time): Eliminate check for timevar_enable.
12055         (timer::timer): New function, built from part of timevar_init.
12056         (timevar_init): Rewrite idempotency test from using
12057         "timevar_enable" bool to using dynamic allocation of "g_timer".
12058         Move rest of implementation into timer's constructor.
12059         (timevar_push_1): Rename to...
12060         (timer::push): ...this, adding "m_" prefixes to variables that
12061         are now fields of timer.
12062         (timevar_pop_1): Likewise, rename to...
12063         (timer::pop): ...this, and add "m_" prefixes.
12064         (timevar_start): Replace test for "timevar_enable" with one for
12065         "g_timer", and move bulk of implementation to...
12066         (timer::start): ...here, adding "m_" prefixes.
12067         (timevar_stop): Likewise, from here...
12068         (timer::stop): ...to here.
12069         (timevar_cond_start): Likewise, from here...
12070         (timer::cond_start): ...to here.
12071         (timevar_cond_stop): Likewise, from here...
12072         (timer::cond_stop): ...to here.
12073         (validate_phases): Rename to...
12074         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
12075         locals "total" and "tv" const.
12076         (timevar_print): Rename to...
12077         (timer::print): ...this, and add "m_" prefixes.  Make locals
12078         "total" and "tv" const.  Eliminate test for timevar_enable.
12079         * timevar.h (timevar_enable): Eliminate.
12080         (g_timer): New declaration.
12081         (timevar_push_1): Eliminate.
12082         (timevar_pop_1): Eliminate.
12083         (timevar_print): Eliminate.
12084         (class timer): New class.
12085         (timevar_push): Rewrite to use g_timer.
12086         (timevar_pop): Likewise.
12087         * toplev.c (toplev::~toplev): Likewise.
12089 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
12091         * arm-protos.h (arm_sched_autopref): Delete.
12092         (tune_params): Re-organize, use enums for flag values.
12093         (FUSE_OPS): New macro.
12094         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
12095         (ARM_PREFETCH_BENEFICIAL): Likewise.
12096         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
12097         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12098         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
12099         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
12100         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
12101         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
12102         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
12103         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
12104         format.
12105         (arm_option_override, thumb2_reorg, arm_print_tune_info)
12106         (aarch_macro_fusion_pair_p): Update uses of current_tune.
12107         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
12109 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
12111         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
12112         "break".
12114 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
12115             Sandra Loosemore <sandra@codesourcery.com>
12117         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
12118         value.
12119         (REG_CLASS_NAMES): Add "IJMP_REGS".
12120         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
12121         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
12122         use new "c" register constraint.
12123         * config/nios2/constraint.md (c): New register constraint
12124         corresponding to IJMP_REGS.
12126 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12128         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
12129         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
12130         define_splits): Delete, revamp, transmogrify into ...
12131         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
12132         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
12133         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
12134         New.
12136 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12138         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
12139         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
12141 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12143         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
12144         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
12145         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
12146         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
12147         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
12148         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
12149         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
12150         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
12151         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
12152         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
12153         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
12154         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
12155         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
12156         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
12157         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
12158         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
12159         and 30 corresponding splitters): Delete.
12161 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12163         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
12164         zero_extract.
12166 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12168         * combine.c (recog_for_combine_1): New function, factored out
12169         from recog_for_combine.
12170         (change_zero_ext): New function.
12171         (recog_for_combine): If recog fails, try again with the pattern
12172         modified by change_zero_ext; if that still fails, restore the
12173         pattern.
12175 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12177         * combine.c (get_undo_marker): New function.
12178         (undo_to_marker): New function, largely factored out from ...
12179         (undo_all): ... this.  Adjust.
12181 2015-05-12  Richard Biener  <rguenther@suse.de>
12183         PR tree-optimization/66101
12184         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
12185         fixup if we turn a loop exit edge to a fallthru edge.
12187 2015-05-12  Richard Biener  <rguenther@suse.de>
12189         PR tree-optimization/37021
12190         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
12191         (SLP_TREE_TWO_OPERATORS): New define.
12192         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
12193         SLP_TREE_TWO_OPERATORS.
12194         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
12195         SLP node.
12196         (vect_build_slp_tree): Adjust.
12197         (vect_analyze_slp_cost_1): Likewise.
12198         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
12199         emitting two vector stmts and mixing the results.
12201 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12203         * call.c (print_z_candidates): Remove dead code.
12205 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12207         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
12208         and zEC12_simple_fp.
12209         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
12210         to 1.
12212 2015-05-12  Tom de Vries  <tom@codesourcery.com>
12214         PR tree-optimization/66010
12215         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
12216         ifn_va_arg.
12217         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
12218         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
12219         va_lists are passed, and remove corresponding handling.
12220         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
12221         do_deref argument to ifn_va_arg.
12222         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
12223         ifn_va_arg.
12225 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12227         PR target/65955
12228         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
12229         REG before taking its REGNO.
12231 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12233         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
12234         rsp->sign_bit_copies and rsp->nonzero_bits into ...
12235         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
12236         present to get more accurate information about the number of sign bit
12237         copies and non zero bits.
12239 2015-05-12  Richard Biener  <rguenther@suse.de>
12241         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
12242         do not allow unrolling.
12244 2015-05-11  Richard Henderson  <rth@redhat.com>
12246         * config/i386/i386-modes.def (CCP): New.
12247         * config/i386/i386.c (put_condition_code): Handle it.
12248         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
12250 2015-05-11  Richard Henderson  <rth@redhat.com>
12252         * target.def (md_asm_clobbers): Replace with...
12253         (md_asm_adjust): this.
12254         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
12255         (TARGET_MD_ASM_ADJUST): New.
12256         * tm.texi: Rebuild.
12257         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
12258         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
12259         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
12261         * cfgexpand.c (check_operand_nalternatives): Accept vector of
12262         constraints instead of lists of outputs and inputs.
12263         (expand_asm_stmt): Save and restore input_location around the
12264         body of the function.  Move asm data into vectors instead of
12265         building tree lists.  Generate cleanup sequences as needed,
12266         rather than waiting til the end.  Use new md_asm_adjust hook.
12268         * config/vxworks.c: Include vec.h before target.h.
12269         * gimple.c: Likewise.
12270         * incpath.c: Likewise.
12271         * mode-switching.c: Likewise.
12273         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
12274         (cris_md_asm_adjust): this.
12275         (TARGET_MD_ASM_CLOBBERS): Remove.
12276         (TARGET_MD_ASM_ADJUST): New.
12277         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
12278         (ix86_md_asm_adjust): this.
12279         (TARGET_MD_ASM_CLOBBERS): Remove.
12280         (TARGET_MD_ASM_ADJUST): New.
12281         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
12282         (mn10300_md_asm_adjust): this.
12283         (TARGET_MD_ASM_CLOBBERS): Remove.
12284         (TARGET_MD_ASM_ADJUST): New.
12285         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
12286         (rs6000_md_asm_adjust): this.
12287         (TARGET_MD_ASM_CLOBBERS): Remove.
12288         (TARGET_MD_ASM_ADJUST): New.
12289         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
12290         (visium_md_asm_adjust): this.
12291         (TARGET_MD_ASM_CLOBBERS): Remove.
12292         (TARGET_MD_ASM_ADJUST): New.
12294 2015-05-11  Richard Henderson  <rth@redhat.com>
12296         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
12297         if noutputs is zero.
12298         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
12300         * cfgexpand.c (expand_asm_operands): Merge into...
12301         (expand_asm_stmt): ... here.
12303         * cfgexpand.c (expand_asm_operands): Don't call
12304         resolve_asm_operand_names.
12305         * stmt.c (resolve_asm_operand_names): Clarify block comment.
12307 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
12309         * dwarf2out.c (gen_member_die): Sanity check that we access
12310         TYPE_MAIN_VARIANT for TYPE_METHODS.
12311         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
12312         checking TYPE_METHODS.
12313         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
12314         if non-null.
12315         (build_distinct_type_copy): Clear TYPE_METHODS.
12316         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
12317         (verify_type): Allow TYPE_METHODS to be error_mark_node.
12318         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
12320 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
12322         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
12323         (emit_pattern_before_setloc): Likewise.
12325 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
12327         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
12328         for define_peephole2s.
12329         (get_peephole2_pattern): New function.
12330         (main): Use it.  Call validate_pattern.
12332 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
12334         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
12335         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
12336         (Last callee saved reg is different for AVR_TINY architecture)
12338 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
12340         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
12341         when looking for memory references.
12343 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
12345         PR target/65753
12346         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
12347         via function pointers.
12349 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
12351         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
12352         indirect call by forcing address into a pseudo with -fno-plt.
12353         * common.opt (flag_plt): New option.
12354         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
12355         ([-fno-plt]): Document.
12357 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
12359         PR bootstrap/66105
12360         * config/rs6000/option-defaults.h: Add space between string literal
12361         and macro name.
12363 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12365         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
12366         accross ARM targets.
12368 2015-05-11  Christian Bruel  <christian.bruel@st.com>
12370         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
12371         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
12373 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
12375         PR rtl-optimization/66076
12376         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
12377         Don't grow the heap array if it is already big enough from a
12378         previous iteration.
12380 2015-05-11  Christian Bruel  <christian.bruel@st.com>
12382         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
12383         (is_called_in_ARM_mode): Remove.
12384         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
12385         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
12386         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
12387          arm_declare_function_name.
12389 2015-05-11  Christian Bruel  <christian.bruel@st.com>
12391         * config/arm/arm.c (arm_option_override): Reoganized and split into :
12392         (arm_option_params_internal); New function.
12393         (arm_option_check_internal): New function.
12394         (arm_option_override_internal): New function.
12395         (thumb_code, thumb1_code): Remove.
12396         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
12397         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
12398         (thumb_code, thumb1_code): Remove.
12399         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
12401 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
12403         * config/alpha/alpha.c (alpha_emit_set_const_1)
12404         (alpha_emit_set_long_const, alpha_extract_integer)
12405         (alpha_legitimate_constant_p, alpha_split_const_mov)
12406         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
12407         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
12408         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
12409         HOST_WIDE_INT_1U.
12410         * config/alpha/predicates.md (mode_mask_operand): Do not match
12411         const_double RTX.
12412         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
12413         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
12414         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
12415         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
12416         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
12418 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
12420         PR target/65780
12421         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
12422         default_binds_local_p_2.
12423         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
12424         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
12426 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
12428         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
12430 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
12432         Patch by Richard Biener
12433         * coverage.c (coverage_obj_init): Delay building of type variant
12434         until the type is finished.
12436 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
12438         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
12439         mismatch between C and C++ type; compoare correctly ARG_TYPES
12440         for non-prototypes and output correctly parameter index for METHOD_TYPE.
12441         (odr_types_equivalent_p): Fix wording of warning about attributes;
12442         it is OK to match prototype and non-prototype.
12444 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
12446         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
12447         TYPE_ARG_TYPES list.
12448         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
12449         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
12451 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
12453         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
12454         * tree.h (is_lang_specific): Constify.
12456 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
12458         PR tree-optimization/64454
12459         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
12460         Rewrite.
12462 2015-05-08  Jason Merrill  <jason@redhat.com>
12464         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
12465         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
12466         config/darwin.h, config/darwin9.h, config/elfos.h,
12467         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
12468         config/microblaze/microblaze.h, config/mips/mips.h,
12469         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
12470         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
12471         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
12472         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
12473         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
12474         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
12475         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
12476         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
12477         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
12478         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
12479         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
12480         between string literal and macro name.
12482 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12484         * jump.c: Change argument types to rtx_insn *.
12485         * rtl.h: Adjust.
12487 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12489         * lra-constraints.c: Change argument type to rtx_insn *.
12491 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12493         * df-problems.c: Change argument type to rtx_insn *.
12495 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12497         * combine.c: Change argument type to rtx_insn *.
12499 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12501         * rtl.h: Adjust.
12502         * rtlanal.c: Change argument type to rtx_insn *.
12504 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12506         * sched-deps.c: Change argument types to rtx_insn *.
12507         * sched-int.h: Adjust.
12509 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12511         * dwarf2cfi.c: Change argument type to rtx_insn *.
12513 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12515         * ira.c (decrease_live_ranges_number): Changetype of local
12516         variable to rtx_insn *.
12517         * recog.c: Change argument types to rtx_insn *.
12518         * recog.h: Adjust.
12520 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12522         * reorg.c: Change argument types to rtx_insn *.
12524 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12526         * ira-color.c: Change argument types to rtx_insn *.
12527         * lra-eliminations.c: Likewise.
12528         * ira.h: Adjust.
12530 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12532         * gcse.c: Change argument types to rtx_insn *.
12534 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12536         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
12538 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12540         * emit-rtl.c (emit_debug_insn_before): Change argument type to
12541         rtx_insn *.
12542         * rtl.h: Adjust.
12544 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12546         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
12547         * rtl.h: Adjust.
12549 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12551         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
12552         * rtl.h: Adjust.
12554 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12556         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
12557         * rtl.h: Adjust.
12559 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12561         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
12562         * rtl.h: Adjust.
12564 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12566         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
12567         to rtx_insn *.
12568         * rtl.h: Adjust.
12570 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12572         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
12573         to rtx_insn *.
12574         * rtl.h: Likewise.
12576 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12578         * except.c (can_nonlocal_goto): Change type of argument to
12579         rtx_insn *.
12580         * rtl.h: Adjust.
12582 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12584         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
12585         * rtl.h: Adjust.
12587 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12589         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
12590         * cfgrtl.c (can_delete_label_p): Adjust.
12591         * rtl.h: likewise.
12593 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12595         * reorg.c (stop_search_p): Change argument to rtx_insn *.
12597 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12599         * except.c (make_reg_eh_region_note): Change argument to
12600         rtx_insn *.
12601         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
12602         * except.h: Adjust.
12604 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12606         * mode-switching.c (commit_mode_sets): Change type of local
12607         variable from rtx to rtx_insn *.
12609 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
12611         * doc/install.texi (--enable-languages): Add missing jit and lto info.
12612         Add ^ to grep command.
12613         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
12614         arg to last gimple_simplify declaration.  Add missing gimple_build
12615         declaration for built-in function case with four tree args.
12617 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
12618             Szabolcs Nagy  <szabolcs.nagy@arm.com>
12620         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
12621         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
12622         (GNU_USER_DYNAMIC_LINKERN32): Update.
12624 2015-05-08  Richard Biener  <rguenther@suse.de>
12626         PR tree-optimization/66036
12627         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12628         Handle strided group loads.
12629         (vect_verify_datarefs_alignment): Likewise.
12630         (vect_enhance_data_refs_alignment): Likewise.
12631         (vect_analyze_group_access): Likewise.
12632         (vect_analyze_data_ref_access): Likewise.
12633         (vect_analyze_data_ref_accesses): Likewise.
12634         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
12635         (vectorizable_load): Likewise.
12637 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
12639         * config/rs6000/rs6000.md: Require operand inequality in one
12640         of the peepholes.
12642 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
12643             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12645         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
12646         from (set ...).
12647         * config/rx/rx.md (movdi, movdf): Likewise.
12648         Likewise for define_peephole2s.
12650 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
12652         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
12653         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
12654         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
12655         vtst_u64): Rewrite using gcc vector extensions.
12657 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
12659         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
12660         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
12662 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
12664         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
12666 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12668         * config/glibc-stdint.h (OPTION_MUSL): Define.
12669         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
12670         Change the definition based on OPTION_MUSL for 64 bit targets.
12671         * config/linux.h (OPTION_MUSL): Redefine.
12672         * config/alpha/linux.h (OPTION_MUSL): Redefine.
12673         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
12674         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
12676 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
12677             Szabolcs Nagy  <szabolcs.nagy@arm.com>
12679         * config.gcc (LIBC_MUSL): New tm_defines macro.
12680         * config/linux.h (OPTION_MUSL): Define.
12681         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
12682         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
12683         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
12684         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
12685         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
12686         * config/linux.opt (mmusl): New option.
12687         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
12688         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
12689         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
12690         * configure: Regenerate.
12692 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
12693             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12695         PR target/48904
12696         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
12697         * config/i386/knetbsd-gnu64.h: New file.
12699 2015-05-08  Marek Polacek  <polacek@redhat.com>
12701         PR c/64918
12702         * doc/invoke.texi: Document -Woverride-init-side-effects.
12704 2015-05-07  Marek Polacek  <polacek@redhat.com>
12706         PR c/65179
12707         * doc/invoke.texi: Document -Wshift-negative-value.
12709 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
12711         * gcov-tool.c (do_merge): Refactore to remove int ret.
12712         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
12713         !type == FUNC to type != FUNC.
12714         * reload.h (struct target_reload): Changee to type of
12715         x_spill_indirect_levels from bool to unsigned char.
12717 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
12719         * rtl.h (always_void_p): New function.
12720         * gengenrtl.c (always_void_p): Likewise.
12721         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
12722         with code foo are always VOIDmode.
12723         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
12724         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
12725         compare-elim.c, config/aarch64/aarch64.c,
12726         config/aarch64/aarch64.md, config/alpha/alpha.c,
12727         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
12728         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
12729         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
12730         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
12731         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
12732         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
12733         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
12734         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
12735         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
12736         config/ia64/vect.md, config/iq2000/iq2000.c,
12737         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
12738         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
12739         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
12740         config/mep/mep.c, config/microblaze/microblaze.c,
12741         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
12742         config/mn10300/mn10300.c, config/msp430/msp430.c,
12743         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
12744         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
12745         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
12746         config/rs6000/altivec.md, config/rs6000/rs6000.c,
12747         config/rs6000/rs6000.md, config/rs6000/vector.md,
12748         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
12749         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
12750         config/sh/sh.md, config/sh/sh_treg_combine.cc,
12751         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
12752         config/spu/spu.md, config/stormy16/stormy16.c,
12753         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
12754         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
12755         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
12756         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
12757         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
12758         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
12759         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
12760         var-tracking.c: Update calls accordingly.
12762 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
12764         PR middle-end/192
12765         PR middle-end/54303
12766         * varasm.c (function_mergeable_rodata_prefix): New function.
12767         (mergeable_string_section): Use it.
12768         (mergeable_constant_section): Use it.
12770 2015-05-07  Jeff Law  <law@redhat.com>
12772         PR target/39726
12773         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12774         simplifier to narrow arithmetic.
12775         * generic-match-head.c: (types_match, single_use): New functions.
12776         * gimple-match-head.c: (types_match, single_use): New functions.
12778 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12780         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
12781         rtx type.
12783 2015-05-07  Richard Biener  <rguenther@suse.de>
12785         PR tree-optimization/66002
12786         * passes.def: Schedule another pass_merge_phi after ifcombine, right
12787         before phiopt.
12789 2015-05-07  Marek Polacek  <polacek@redhat.com>
12790             Martin Uecker  <uecker@eecs.berkeley.edu>
12792         * doc/invoke.texi: Document -fsanitize=bounds-strict.
12793         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
12794         into SANITIZE_NONDEFAULT.
12795         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
12797 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
12799         PR target/66015
12800         * config/alpha/alpha.c (alpha_override_options_after_change): New.
12801         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
12802         (alpha_override_options): Move align_loops, align_jumps and
12803         align_functions handling into alpha_override_options_after_change.
12805 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
12806             Chris Jones  <chrisj@nvidia.com>
12807             Joshua Conner  <jconner@nvidia.com>
12809         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
12810         linking of crtfastmath.o.
12811         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
12813 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
12815         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
12816         (cstore<mode>4_unsigned_imm): New expander.
12817         (cstore<mode>4): Remove empty constraint strings.  Use the new
12818         expanders.
12820 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
12822         PR target/64208
12823         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
12824         alternatives.
12826 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12828         * config/aarch64/geniterators.sh: Use standard BRE in sed.
12830 2015-05-06  Alan Modra  <amodra@gmail.com>
12832         PR target/66033
12833         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
12834         (UNSPEC_NOP): Define.
12835         (reload_vsx_from_gpr<mode>): Add missing DONE.
12836         (reload_gpr_from_vsx<mode>): Likewise.
12837         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
12838         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
12840 2015-05-06  Christian Bruel  <christian.bruel@st.com>
12842         PR target/66015
12843         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
12844         align_jumps, align_functions into aarch64_override_options_after_change.
12846 2015-05-06  Richard Biener  <rguenther@suse.de>
12848         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
12849         vect_transform_slp_perm_load to check if we support a permutation
12850         for basic-block vectorization.
12852 2015-05-06  Nick Clifton  <nickc@redhat.com>
12854         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
12855         used, even if it is not being used as a frame pointer.
12857 2015-05-05  Jason Merrill  <jason@redhat.com>
12859         * dwarf2out.c (gen_member_die): Don't emit anything for an
12860         anonymous class constructor.
12862 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
12864         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
12865         that it reflects the block structure.
12866         (afdo_propagate_edge): Likewise.
12867         (afdo_calculate_branch_prob): Likewise.
12868         (afdo_annotate_cfg): Likewise.
12869         * cfgcleanup.c (equal_different_set_p): Likewise.
12870         (try_crossjump_to_edge): Likewise.
12871         * cgraph.c (cgraph_node::verify_node): Likewise.
12872         * cgraphunit.c (expand_all_functions): Likewise.
12873         * config/i386/i386.c (ix86_expand_copysign): Likewise.
12874         (exact_dependency_1): Likewise.
12875         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
12876         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
12877         * gensupport.c (process_define_subst): Likewise.
12878         * lto-wrapper.c (merge_and_complain): Likewise.
12879         * tree-if-conv.c (if_convertible_bb_p): Likewise.
12880         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
12881         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
12882         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
12883         * tree-vect-loop.c (vectorizable_reduction): Likewise.
12884         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
12885         * tree-vect-stmts.c (vectorizable_shift): Likewise.
12886         * tree-vrp.c (vrp_finalize): Likewise.
12887         * tree.c (variably_modified_type_p): Likewise.
12889 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
12891         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
12892         on darwin12 and later.
12893         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
12894         file to pass -rdynamic on darwin12 and later.
12895         * config/darwin.opt (rdynamic): Add.
12897 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12899         * doc/extend.texi (C Extensions): Update menu for moved Variable
12900         Attributes and Type Attributes sections.
12902 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12904         PR target/65990
12905         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
12906         if rep_8byte stringop strategy was specified for 32-bit target.
12908 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
12910         PR target/65915
12911         * config/i386/i386.md (vector convert to float spltiter): Check for
12912         xmm16+, when splitting scalar float conversion.
12913         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
12915 2015-05-05  Nick Clifton  <nickc@redhat.com>
12917         * config/msp430/msp430-opts.h (enum msp430_regions): New.
12918         * config/msp430/msp430.c (msp430_override_options): Complain if
12919         -mcode-region or -mdata-region is used on a non MSP430X.
12920         (msp430_section_attr): New function.  Checks lower, upper and
12921         either attributes.
12922         (msp430_attribute_table): Add lower, upper and either.
12923         (gen_prefix): New function.  Generates a prefix for a section
12924         name.
12925         (msp430_select_section): New function - handles the choice of
12926         section for an object.  Takes into account memory region
12927         attributes and options.
12928         (msp430_function_section): Use gen_prefix.
12929         (TARGET_SECTION_TYPE_FLAGS): Define.
12930         (msp430_section_type_flags): New function.
12931         (TARGET_ASM_UNIQUE_SECTION): Define.
12932         (msp430_unique_section): New function.
12933         (msp430_output_aligned_decl_common): New function.
12934         (msp430_do_not_relax_short_jumps): New function.
12935         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
12936         Define.
12937         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12938         * config/msp430/msp430-protos.h
12939         (msp430_do_not_relax_short_jumps): New prototype.
12940         (msp430_output_aligned_decl_common): New prototype.
12941         * config/msp430/msp430.md (length): New attribute.
12942         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
12943         then use a long code sequence for short jumps.
12944         * config/msp430/msp430.opt (mcode-region): New.
12945         (mdata-region): New.
12946         * doc/invoke.texi: Document new options.
12947         * doc/extend.texi: Document new attributes.
12949 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
12951         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
12952         (tune_params): Add field branch_costs.
12953         (aarch64_branch_cost): Declare.
12954         * gcc/config/aarch64.c (generic_branch_cost): New.
12955         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
12956         (cortexa53_tunings): Likewise.
12957         (cortexa57_tunings): Likewise.
12958         (thunderx_tunings): Likewise.
12959         (xgene1_tunings): Likewise.
12960         (aarch64_branch_cost): Define.
12961         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
12963 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12965         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
12966         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
12967         * config/i386/i386.md: Ditto.
12968         * config/i386/winnt.c: Ditto.
12970 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
12972         * doc/extend.texi (__atomic Builtins): Move implementation details
12973         to the end of the description, rewrite opening paragraphs, state
12974         difference with __sync builtins, state C11/C++11 assumptions,
12975         weaken itemized descriptions, add explanation of memory model
12976         behaviour, expand description of compare-exchange, simplify text.
12978 2015-05-05  Renlin Li  <renlin.li@arm.com>
12980         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
12982 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
12984         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
12985         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12986         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
12987         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12988         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
12989         * configure: Regenerate.
12990         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
12991         * doc/install.texi (aarch64*-*-*): Document new
12992         --enable-fix-cortex-a53-843419 option.
12993         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
12994         and -mno-fix-cortex-a53-843419 options.
12996 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
12998         PR target/65871
12999         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
13001 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
13003         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
13004         fix overactive TYPE_MIN_VALUE check and add FIXME for type
13005         compatibility problems.
13007 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
13009         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
13010         constraints.
13011         (cbranchsi4_reg): New.
13012         * config/microblaze/microblaze.c
13013         (microblaze_expand_conditional_branch_reg): New.
13014         * config/microblaze/microblaze-protos.h
13015         (microblaze_expand_conditional_branch_reg): New prototype.
13017 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
13019         * config/microblaze/microblaze.md (peephole2): New.
13021 2015-05-04  Jeff Law  <law@redhat.com>
13023         Revert:
13024         2015-05-04  Jeff Law  <law@redhat.com>
13026         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
13027         simplifier to narrow arithmetic.
13028         * generic-match-head.c: (types_match, single_use): New functions.
13029         * gimple-match-head.c: (types_match, single_use): New functions.
13031 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
13033         PR target/65987
13034         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
13035         (split_branches): Likewise.
13037 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
13039         * common.opt (fdelete-null-pointer-checks): Init to -1.
13040         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
13041         override flag_delete_null_pointer_checks default.
13042         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
13043         behavior re address zero.  Better document target-specific behavior.
13044         (-fisolate-errneous-paths-dereference): Mention relationship to
13045         -fdelete-null-pointer-checks.
13047 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
13049         PR tree-optimization/65984
13050         * ubsan.c: Include tree-cfg.h.
13051         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
13052         stmt_could_throw_p test, rename can_throw variable to ends_bb.
13054 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
13056         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
13057         to CONST_DOUBLE_P predicate.
13058         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
13059         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
13060         allow only operands that satisfy standard_sse_constant_p predicate.
13061         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
13062         to CONST_DOUBLE_P predicate.
13064 2015-05-04  Jeff Law  <law@redhat.com>
13066         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
13067         simplifier to narrow arithmetic.
13068         * generic-match-head.c: (types_match, single_use): New functions.
13069         * gimple-match-head.c: (types_match, single_use): New functions.
13071 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
13073         * config/arm/arm.c: Restore bootstrap.
13075 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
13077         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
13078         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
13079         as CONST_WIDE_INT, not CONST_DOUBLE.
13080         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
13081         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
13082         (ix86_find_base_term): Do not check for CONST_DOUBLE.
13083         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
13084         (ix86_build_signbit_mask): Rewrite using wide ints.
13085         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
13086         (ix86_rtx_costs): Handle CONST_WIDE_INT.
13087         (find_constant): Ditto.
13088         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
13089         using gen_int_mode.
13090         * config/i386/predicates.md (x86_64_immediate_operand)
13091         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
13092         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
13093         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
13094         (const0_operand): Also match const_wide_int.
13095         (constm1_operand): Ditto.
13096         (const1_operand): Ditto.
13098 2015-05-04  Richard Biener  <rguenther@suse.de>
13100         PR tree-optimization/65965
13101         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
13102         store groups at gaps.
13104 2015-05-04  Richard Biener  <rguenther@suse.de>
13106         PR tree-optimization/65935
13107         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
13108         then make sure to apply that swapping to the IL.
13110 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
13112         * Makefile.in (PATCHLEVEL_c): New variable.
13113         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
13114         expand the same way as if DEVPHASE_c was non-empty.
13116 2015-05-04  Kai Tietz  <ktietz@redhat.com>
13118         PR target/65559
13119         * lto-wrapper.c (run_gcc): Open filename
13120         in binary-mode.
13122 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
13124         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
13125         sections up in file, to immediately after the Function Attributes
13126         section.
13128 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
13130         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
13132 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13134         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
13135         (insert_partition_copy_on_edge): Adjust.
13136         (insert_rtx_to_part_on_edge): Likewise.
13137         (insert_part_to_rtx_on_edge): Likewise.
13139 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13141         * function.c (set_return_jump_label): Change type of argument to
13142         rtx_insn *.
13143         * function.h (set_return_jump_label): Adjust.
13145 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13147         * reload.h (struct reg_equivs_t): Change type of init to
13148         rtx_insn *.
13149         * ira.c (fix_reg_equiv_init): Adjust.
13150         * reload1.c (eliminate_regs_1): Likewise.
13151         (init_eliminable_invariants): Likewise.
13153 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13155         * cselib.c (fp_setter_insn): Take a rtx_insn *.
13156         * cselib.h (fp_setter_insn): Adjust.
13158 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13160         * recog.c (struct validate_replace_src_data): Change type of
13161         insn field to rtx_insn *.
13162         (validate_replace_src_group): Change type of argument to rtx_insn *.
13163         * recog.h (validate_replace_src_group): Adjust.
13165 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13167         * haifa-sched.c: Change the type of some variables to rtx_insn *.
13168         * sched-deps.c: Likewise.
13169         * sched-int.h: Likewise.
13170         * sched-rgn.c: Likewise.
13171         * sel-sched.c: Likewise.
13173 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13175         to rtx_insn *.
13176         * config/i386/i386.c: Change the type of some arguments to
13177         rtx_insn *.
13178         * config/arm/arm.c: Likewise.
13180 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13182         * lra-constraints.c: Change type of some arguments to rtx_insn *.
13184 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13186         * regcprop.c (kill_autoinc_value): Change type of argument to
13187         rtx_insn *.
13189 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13191         * genrecog.c (print_subroutine): Adjust.
13192         * recog.c (get_bool_attr_mask_uncached): Likewise.
13193         * recog.h (struct recog_data_d): Change the type of insn to
13194         rtx_insn *.
13196 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13198         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
13200 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13202         * df-problems.c (df_set_note): Change type of argument to
13203         rtx_insn *.
13205 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13207         * builtins.c (expand_builtin_trap): Change type of local
13208         variable to rtx_insn *.
13209         (add_sched_insns_for_speculation): Likewise.
13210         (ix86_emit_save_regs): Likewise.
13211         (get_scratch_register_on_entry): Likewise.
13212         (ix86_emit_restore_reg_using_pop): Likewise.
13213         (ix86_emit_leave): Likewise.
13214         (ix86_emit_restore_regs_using_mov): Likewise.
13215         (ix86_expand_epilogue): Likewise.
13216         Likewise.
13217         (rl78_alloc_physical_registers_umul): Likewise.
13218         * cselib.c (discard_useless_locs): Likewise.
13219         (cselib_invalidate_regno): Likewise.
13220         (cselib_invalidate_mem): Likewise.
13221         * function.c (expand_function_start): Likewise.
13222         (emit_use_return_register_into_block): Likewise.
13223         * gcse.c: Likewise.
13224         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
13225         * ifcvt.c (noce_get_alt_condition): Likewise.
13226         * loop-doloop.c (doloop_condition_get): Likewise.
13227         * lra-constraints.c (inherit_in_ebb): Likewise.
13228         * modulo-sched.c (sms_schedule_by_order): Likewise.
13229         * recog.c (next_insn_tests_no_inequality): Likewise.
13230         * reorg.c (emit_delay_sequence): Likewise.
13231         (update_reg_dead_notes): Likewise.
13232         (fix_reg_dead_note): Likewise.
13233         (fill_slots_from_thread): Likewise.
13234         (delete_computation): Likewise.
13236 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
13238         * doc/extend.texi (Variable Attributes): Add menu and proper
13239         @nodes to subsections.  Move Microsoft Windows attributes to
13240         their own subsection.
13241         (Type Attributes): Reorganize introduction to remove duplicate
13242         list of attributes.  Add menu and proper @nodes to subsections.
13243         Alphabetize the main table of common attributes.
13245 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
13247         * match.pd: New simplification patterns.
13248         (x + (x & 1))  -> ((x + 1) & ~1)
13249         (x & ~(x & y)) -> ((x & ~y))
13250         (x | ~(x | y)) -> ((x | ~y))
13252 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13254         * target.def (attribute_table): Mention that struct attribute_spec
13255         is defined in tree-core.h rather than tree.h
13256         * doc/tm.texi: Regenerate.
13258 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
13260         * genrecog.c (test): Rename to rtx_test.  Update rest of file
13261         accordingly.
13263 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
13265         PR translation/65959
13266         * params.h (DEFPARAM): Rename msgid to nocmsgid.
13268 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
13270         * gcc/config/aarch64/aarch64-protos.h (tune_params):
13271         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
13272         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
13273         Return value depending on target.
13274         (generic_tunings): Initialize new target settings.
13275         (cortexa53_tunings): Likewise.
13276         (cortexa57_tunings): Likewise.
13277         (thunderx_tunings): Likewise.
13278         (xgene1_tunings): Likewise.
13280 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
13282         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
13283         Make Cortex-A53 shift costs more accurate.
13285 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13287         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
13288         UNSIGNED_FLOAT.
13290 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
13292         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
13293         Calculate cost of op0 and op1 in PLUS and MINUS cases.
13295 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13297         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
13298         Add cost of op0 in the compare-with-fpzero case.
13300 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
13302         * builtins.c (fold_builtin_1): Remove spurious second
13303         semicolon.
13304         * cgraph.h (symtab_node::get_availability): Likewise.
13305         * opts.c (common_handle_option): Remove spurious second semicolon.
13306         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
13307         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
13309 2015-04-30  Caroline Tice  <cmtice@google.com>
13311         PR gcov-profile/65929
13312         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
13313         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
13314         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
13315         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
13316         * doc/tm.texi: Regenerate.
13317         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
13318         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
13319         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
13320         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
13322 2015-04-30  Marek Polacek  <polacek@redhat.com>
13324         * varasm.c (handle_cache_entry): Fix logic.
13326 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13328         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
13329         (*extrsi5_insn_uxtw_alt): Likewise.
13330         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
13331         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
13332         operations.
13334 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13336         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
13337         fabd in ABS case.
13339 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13341         * config/aarch64/aarch64.md
13342         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
13343         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
13344         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
13345         appropriately.  Handle alternative EON form.
13347 2015-04-30  Renlin Li  <renlin.li@arm.com>
13349         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
13350         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
13352 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
13354         PR ipa/65873
13355         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
13356         -fstrict-aliasing boundaries.
13358 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13360         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
13361         and [SU]MNEGL patterns.
13363 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13365         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
13366         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
13367         combined arithmetic-shift ops.  Properly handle all shift and extend
13368         operations that can occur in combination with PLUS/MINUS.
13369         Rename maybe_fma to compound_p.
13370         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
13371         arithmetic and shift operations.
13373 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13375         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
13376         rather than arith_shift cost when costing ADD/MINUS of an
13377         extended value.
13379 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
13381         PR lto/65948
13382         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
13383         to itself.
13385 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
13387         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
13388         are for the same position.
13390 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
13392         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
13393         vectorize_loops.
13394         (vectorize_loops): Use it.
13396 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
13398         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
13399         for aggregate types.
13400         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
13401         type to be non_ODR.
13402         * tree.c (need_assembler_name_p): Compute mangled name for
13403         non-fundamental types and integer types.
13405 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
13407         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
13408         manual swaps.
13409         * expr.c (expand_expr_real_2): Likewise.
13411 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
13413         * tree.c (build_common_builtin_nodes): Do not build
13414         __builtin_alloca_with_align as equivalent of library alloca.
13416 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
13418         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
13419         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
13420         bugus variants.
13421         * tree.c: Include print-tree.h and ipa-utils.h
13422         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
13423         (free_lang_data_in_cgraph): Call verify_type.
13424         (verify_type_variant): New function.
13425         (verify_type): New function.
13426         * tree.h (verify_type): Declare.
13428 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
13430         * config/mips/mips-cpus.def: (mips4): Change default processor
13431         from PROCESSOR_R8000 to PROCESSOR_R10000.
13433 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13435         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
13436         la/jalr instead of jal.
13438 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
13440         PR target/65871
13441         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
13442         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
13443         (setcc+movzbl peephole2): Check also clobbered reg.
13444         (setcc+andl peephole2): Ditto.
13446 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
13448         PR libgomp/65099
13449         * config/nvptx/mkoffload.c (target_ilp32): New variable.
13450         (main): Set it depending on "-foffload-abi=[...]".
13451         (compile_native, main): Use it to pass "-m32" or "-m64" to the
13452         compiler.
13454 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
13456         PR target/65770
13457         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
13458         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
13459         Flip lane index back at assembly time for bigendian.
13461 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
13463         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
13464         * gimplify.c (gimplify_omp_workshare): Use it.
13466 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
13468         * Makefile.in (build/genrecog.o): Depend on inchash.h.
13469         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
13470         build/inchash.o
13471         * genrecog.c: Rewrite most of the code except for the third page.
13473 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
13475         * inchash.h, inchash.c: Include bconfig.h for build objects.
13476         * Makefile.in (build/inchash.o): New rule.
13478 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
13480         PR target/65924
13481         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
13482         number in type attribute expression.
13484 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
13486         * loop-iv.c (canon_condition): Generalize to all types of integer
13487         constant.
13489 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
13491         * gimple-walk.c: Prune duplicate or unneeded includes.
13492         (walk_gimple_asm): Only call parse_input_constraint or
13493         parse_output_constraint if their findings are used.
13494         Honour parse_input_constraint and parse_output_constraint
13495         result.
13497 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
13499         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
13501 2015-04-29  Tom de Vries  <tom@codesourcery.com>
13503         PR tree-optimization/65893
13504         * passes.def (pass_all_optimizations): Move pass_stdarg to after
13505         pass_dce.
13507 2015-04-29  Richard Biener  <rguenther@suse.de>
13509         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
13510         compute GROUP_SIZE for basic-block SLP.
13511         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
13512         take into account gaps.
13513         (vect_get_mask_element): Properly reject references to previous
13514         vectors.
13515         (vect_transform_slp_perm_load): Likewise.
13517 2015-04-29  Christian Bruel  <christian.bruel@st.com>
13519         PR target/64835
13520         * config/i386/i386.c (ix86_default_align): New function.
13521         (ix86_override_options_after_change): Call ix86_default_align.
13522         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
13523         (ix86_override_options_after_change): New function.
13525 2015-04-28  Jeff Law  <law@redhat.com>
13527         * tree-ssa-dom.c (record_equality); Fix comment typos.
13529 2015-04-28  Tom de Vries  <tom@codesourcery.com>
13531         PR tree-optimization/65887
13532         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
13534 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
13536         * doc/extend.texi (Declaring Attributes of Functions): Split into
13537         subsections by target.  Alphabetize the table of common attributes.
13538         Rewrite some of the introductory text to reflect the new structure.
13539         Update some cross-references to point to the new subsections.
13540         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
13541         duplicate copies in the discussion of function, label, and type
13542         attributes.
13544 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
13546         PR bootstrap/65910
13547         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
13549 2015-04-28  Jason Merrill  <jason@redhat.com>
13551         PR c++/65734
13552         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
13553         (finalize_type_size): Respect TYPE_USER_ALIGN.
13554         (layout_type) [ARRAY_TYPE]: Likewise.
13556 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
13558         * config/arm/arm.md (*arm_movt): Fix type attribute.
13559         (*cmpsi_shiftsi): Likewise.
13560         (*cmpsi_shiftsi_swp): Likewise.
13561         (*movsicc_insn): Likewise.
13562         (*cond_move): Likewise.
13563         (*if_plus_move): Likewise.
13564         (*if_move_plus): Likewise.
13565         (*if_arith_move): Likewise.
13566         (*if_move_arith): Likewise.
13567         (*if_shift_move): Likewise.
13568         (*if_move_shift): Likewise.
13569         (*arm_movtas_ze): Likewise.
13570         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
13571         redundancy and type attribute.
13572         (*thumb2_movsi_insn): Fix type attribute.
13573         (*thumb2_addsi_short): Likewise.
13574         (thumb2_addsi3_compare0): Likewise.
13575         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
13576         attributes accordingly.
13578 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
13580         PR other/65911
13581         * function.c (pad_to_arg_alignment): Add parentheses.
13583 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
13585         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
13586         libgcc/config/frv/elf-lib.h.
13588 2015-04-28  Tom de Vries  <tom@codesourcery.com>
13590         * tree-call-cdce.c: Fix example in header comment.
13592 2015-04-28  Richard Biener  <rguenther@suse.de>
13594         PR tree-optimization/62283
13595         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
13596         fails fatally and we are vectorizing a basic-block simply
13597         cause the child to be constructed piecewise.
13598         (vect_analyze_slp_cost_1): Adjust.
13599         (vect_detect_hybrid_slp_stmts): Likewise.
13600         (vect_bb_slp_scalar_cost): Likewise.
13601         (vect_get_constant_vectors): For piecewise constructed
13602         constants place them after the last def.
13603         (vect_get_slp_defs): Adjust.
13604         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
13605         externals for basic-block vectorization.
13607 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13609         PR target/63503
13610         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
13611         aarch64-*-*.
13612         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
13613         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
13614         (AARCH64_TUNE_FMA_STEERING): Likewise.
13615         * config/aarch64/aarch64-cores.def: Set
13616         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
13617         FMUL/FMADD instructions.
13618         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
13619         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
13620         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
13621         * config/aarch64/cortex-a57-fma-steering.h: New file.
13622         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13624 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
13626         * gensupport.c (std_preds): Add missing codes to address_operand entry.
13628 2015-04-28  Richard Biener  <rguenther@suse.de>
13630         PR tree-optimization/65851
13631         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
13632         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
13633         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
13634         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
13635         (ccp_visit_phi_node): Adjust.
13636         (evaluate_stmt): For simplifications to SSA names return its
13637         lattice value if that isn't VARYING.  Return immediately when
13638         simplified to a constant.
13639         (visit_assignment): Adjust.
13640         (ccp_visit_stmt): Likewise.
13642 2015-04-28  Tom de Vries  <tom@codesourcery.com>
13644         PR tree-optimization/65818
13645         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
13646         evaluated.
13648 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13650         * calls.c (save_fixed_argument_area): Don't check
13651         ARGS_GROW_DOWNWARD with the preprocessor.
13652         (restore_fixed_argument_area): Likewise.
13653         (mem_overlaps_already_clobbered_arg_p): Likewise.
13654         (check_sibcall_argument_overlap): Likewise.
13655         (expand_call): Likewise.
13656         (emit_library_call_value_1): Likewise.
13657         (store_one_arg): Likewise.
13658         * function.c (assign_parms): Likewise.
13659         (locate_and_pad_parm): Likewise.
13660         (pad_to_arg_alignment): Likewise.
13661         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13663 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13665         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
13666         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
13667         * calls.c (save_fixed_argument_area): Don't chekc if
13668         ARGS_GROW_DOWNWARD is defined.
13669         (restore_fixed_argument_area): Likewise.
13670         (mem_overlaps_already_clobbered_arg_p): Likewise.
13671         (check_sibcall_argument_overlap): Likewise.
13672         (expand_call): Likewise.
13673         (emit_library_call_value_1): Likewise.
13674         (store_one_arg): Likewise.
13675         * function.c (assign_parms): Likewise.
13676         (locate_and_pad_parm): Likewise.
13677         (pad_to_arg_alignment): Likewise.
13678         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13680 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13682         * defaults.h (gen_epilogue): New function.
13683         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
13684         defined.
13685         * cfgrtl.c (cfg_layout_finalize): Likewise.
13686         * df-scan.c: Likewise.
13687         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13688         (reposition_prologue_and_epilogue_notes): Likewise.
13689         * reorg.c (find_end_label): Likewise.
13690         * toplev.c: Likewise.
13692 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13694         * bb-reorder.c (HAVE_return): Don't check if its undefined.
13695         * defaults.h (gen_simple_return): New function.
13696         (gen_simple_return): Likewise.
13697         (HAVE_return): Add default definition to false.
13698         (HAVE_simple_return): Likewise.
13699         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
13700         HAVE_return and HAVE_simple_return are defined.
13701         * function.c (gen_return_pattern): Likewise.
13702         (convert_jumps_to_returns): Likewise.
13703         (thread_prologue_and_epilogue_insns): Likewise.
13704         * reorg.c (find_end_label): Likewise.
13705         (dbr_schedule): Likewise.
13706         * shrink-wrap.c: Likewise.
13707         * shrink-wrap.h: Likewise.
13709 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13711         * defaults.h (EPILOGUE_USES): Add default definition of false.
13712         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
13713         * resource.c (init_resource_info): Likewise.
13715 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13717         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
13718         to false.
13719         * dwarf2out.c (field_byte_offset): REmove check if
13720         PCC_BITFIELD_TYPE_MATTERS is defined.
13721         * stor-layout.c (layout_decl): Likewise.
13722         (update_alignment_for_field): Likewise.
13723         (place_field): Likewise.
13725 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13727         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
13728         true.
13729         * regrename.c (check_new_reg_p): Remove check if
13730         HARD_REGNO_RENAME_OK is defined.
13731         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
13733 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13735         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
13736         * cse.c (fold_rtx): Likewise.
13737         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
13738         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
13739         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
13740         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
13741         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
13742         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
13743         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
13744         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
13745         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
13746         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
13747         * Likewise.
13748         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
13749         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
13750         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
13751         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
13752         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
13753         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
13754         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
13755         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
13756         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
13757         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
13758         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
13759         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
13760         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
13761         * doc/tm.texi: Regenerate.
13762         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
13763         either true or false.
13765 2015-04-27  Jeff Law  <law@redhat.com>
13767         PR tree-optimization/65217
13768         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
13769         of them has a single use, make sure it is the LHS of the implied
13770         copy.
13772 2015-04-28  Alan Modra  <amodra@gmail.com>
13774         PR target/65810
13775         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
13776         (offsettable_ok_by_alignment): Use minimum of decl and toc
13777         pointer alignment.  Replace dead code with assertion.
13778         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
13779         case if size exceeds toc pointer alignment.
13780         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
13781         (rs6000_emit_move): Likewise.
13782         * configure.ac: Add linker toc pointer alignment check.
13783         * configure: Regenerate.
13784         * config.in: Regenerate.
13786 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
13788         * config.gcc: Add h8300-*-linux.
13789         * config/h8300/linux.h: New.
13790         * config/h8300/t-linux: New.
13791         * config/h8300/h8300.c (h8300_option_override): Normal mode
13792         is not supported for h8300-*-linux.
13793         (h8300_file_start): Target priority change.
13794         (get_shift_alg): Likewise.
13795         (h8300_shift_need_scratch_p): Likewise.
13796         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
13797         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
13799 2015-04-27  Caroline Tice  <cmtice@google.com>
13801         * final.c (final_scan_insn):  Output cold_function_name as function
13802         type.
13803         * varasm.c (cold_function_name):  Make global.
13804         (assemble_start_function):  Re-set cold_function_name.
13805         (assemble_end_function): Output cold partition size.
13806         * varasm.h (cold_function_name):  Declare global.
13808 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
13810         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
13811         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
13812         constraint.
13813         (*movxi_internal_avx512f): Ditto.
13814         (define_split): Check for xmm16+, when splitting scalar float_extend.
13815         (*extendsfdf2_mixed): Use "v" constraint.
13816         (define_split): Check for xmm16+, when splitting scalar float_truncate.
13817         (*truncdfsf_fast_sse): Use "v" constraint.
13818         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
13819         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
13820         (define_peephole2): Check for xmm16+, when converting scalar
13821         float_truncate.
13822         (define_peephole2): Check for xmm16+, when converting scalar
13823         float_extend.
13824         (*fop_<mode>_comm_mixed): Use "v" constraint.
13825         (*fop_<mode>_comm_sse): Ditto.
13826         (*fop_<mode>_1_mixed): Ditto.
13827         (*sqrt<mode>2_sse): Ditto.
13828         (*ieee_s<ieee_maxmin><mode>3): Ditto.
13830 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13832         * combine.c (simplify_if_then_else): Use std::swap instead
13833         of manually swapping.
13834         (known_cond): Likewise.
13835         (simplify_comparison): Likewise.
13837 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
13839         PR target/64579
13840         * config/rs6000/htm.md: Remove all define_expands.
13841         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
13842         UNSPECV_HTM_TABORTWCI): Remove.
13843         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
13844         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
13845         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
13846         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
13847         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
13848         tabortwci_internal): Remove define_insns.
13849         (tabort<wd>c, tabort<wd>ci): New define_insns.
13850         (tabort): Use gpc_reg_operand.
13851         (tcheck): Remove operand.
13852         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
13853         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
13854         expected value.
13855         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
13856         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
13857         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
13858         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
13859         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
13860         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
13861         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
13862         (tcheck): Remove builtin argument.
13863         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
13864         not TARGET_64BIT.
13865         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
13866         tabortdc and tabortdci builtins when not in 64-bit mode.
13867         Modify code to handle the loss of the HTM define_expands.
13868         Emit code to copy the CR register to TARGET.
13869         (htm_init_builtins): Modify code to handle the loss of the HTM
13870         define_expands.
13871         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
13872         (RS6000_BTC_64BIT): Likewise.
13873         (RS6000_BTC_CR): New macro.
13874         * doc/extend.texi: Update documentation for htm builtins.
13876 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13878         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
13879         of manually swapping.
13880         (simplify_associative_operation): Likewise.
13881         (simplify_binary_operation): Likewise.
13882         (simplify_plus_minus): Likewise.
13883         (simplify_relational_operation): Likewise.
13884         (simplify_ternary_operation): Likewise.
13886 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
13888         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
13889         (xs_hi_nonmemory_operand): Remove error.
13890         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
13891         general_operand rather than xs_hi_general_operand.
13893 2015-04-27  Richard Biener  <rguenther@suse.de>
13895         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
13896         (record_equivalences_from_stmt): Valueize rhs.
13897         (record_equality): Canonicalize x and y order via
13898         tree_swap_operands_p.  Do not swap operands for same loop depth.
13900 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
13902         PR target/65296
13903         PR target/65895
13904         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
13905         Add hint how to use own spec file.
13907 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
13909         PR tree-optimization/65875
13910         * tree-vrp.c (update_value_range): If in is_new case setting
13911         old_vr to VR_VARYING, also set new_vr to it.  Remove
13912         old_vr->type == VR_VARYING test.
13913         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
13914         SSA_PROP_INTERESTING if update_value_range returned true,
13915         but new range is VR_VARYING.
13917 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13919         * combine.c (sign_extend_short_imm): New.
13920         (set_nonzero_bits_and_sign_copies): Use above new function for sign
13921         extension of src short immediate.
13922         (reg_nonzero_bits_for_combine): Likewise for tem.
13924 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13926         * stor-layout.c (self_referential_component_ref_p): New predicate.
13927         (copy_self_referential_tree_r): Use it.
13928         (self_referential_size): Punt for simple operations directly involving
13929         self-referential component references.
13930         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
13932 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13934         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
13936 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
13938         * vec.h (vec): Make splice arguments const.  Update definitions
13939         accordingly.
13941 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
13943         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
13944         alternatives.
13946 2015-04-26  Tom de Vries  <tom@codesourcery.com>
13948         PR tree-optimization/65826
13949         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
13951 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
13953         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
13954         (*madd3<mode>): Ditto.
13955         (*msub4<mode>): Ditto.
13956         (*msub3<mode>): Ditto.
13957         (*nmadd4<mode>): Ditto.
13958         (*nmadd3<mode>): Ditto.
13959         (*nmadd4<mode>_fastmath): Ditto.
13960         (*nmadd3<mode>_fastmath): Ditto.
13961         (*nmsub4<mode>): Ditto.
13962         (*nmsub3<mode>): Ditto.
13963         (*nmsub4<mode>_fastmath): Ditto.
13964         (*nmsub3<mode>_fastmath): Ditto.
13966 2015-04-24  Jason Merrill  <jason@redhat.com>
13968         PR c++/50800
13969         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
13970         down when building TYPE_CANONICAL.
13971         (build_pointer_type_for_mode): Likewise.
13973 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
13975         * genrecog.c (validate_pattern): Check matching constraint refers
13976         to a lower numbered operand.
13978 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13980         PR target/65849
13981         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
13982         save to independent variables use the Save attribute.  This will
13983         allow these options to be modified with the #pragma/attribute
13984         target support.
13985         (-mallow-movmisalign): Likewise.
13986         (-mallow-df-permute): Likewise.
13987         (-msched-groups): Likewise.
13988         (-malways-hint): Likewise.
13989         (-malign-branch-targets): Likewise.
13990         (-mvectorize-builtins): Likewise.
13991         (-msave-toc-indirect): Likewise.
13993         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
13994         can be set via the #pragma/attribute target support.
13995         (rs6000_opt_vars): Likewise.
13996         (rs6000_inner_target_options): If VSX was set, also set
13997         -mno-avoid-indexed-addresses.
13999 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14001         * config/arm/iterators.md (shiftable_ops): Rename to...
14002         (SHIFTABLE_OPS): ... This.  Update use in comments.
14003         (ior_xor): Rename to...
14004         (IOR_XOR): ... This.
14005         (vqh_ops): Rename to...
14006         (VQH_OPS): ... This.
14007         (vqhs_ops): Rename to...
14008         (VQHS_OPS): ... This.
14009         (rshifts): Rename to...
14010         (RSHIFTS): ... This.
14011         (returns): Rename to...
14012         (RETURNS): ... This.
14013         * config/arm/arm.md: Update uses of the above.
14014         * config/arm/neon.md: Likewise.
14016 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14018         * config.host (case ${host}): Add aarch64*-*-linux case.
14019         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
14020         fields to all the cores.
14021         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
14022         Add MCPU_MTUNE_NATIVE_SPECS.
14023         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
14024         field to all extensions.
14025         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
14026         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
14027         Adjust definition of AARCH64_OPT_EXTENSION.
14028         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
14029         (MCPU_MTUNE_NATIVE_SPECS): Define.
14030         * config/aarch64/driver-aarch64.c: New file.
14031         * config/aarch64/x-arch64: New file.
14032         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
14033         -mtune and -march.
14035 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
14036             Wei Mi  <wmi@google.com>
14038         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
14039         * config/i386/i386.c (extract_base_offset_in_addr): New function.
14040         (ix86_operands_ok_for_move_multiple): Ditto.
14041         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
14042         (movlpd/movhpd to movupd peephole2): Ditto.
14044 2015-04-24  Marek Polacek  <polacek@redhat.com>
14046         PR c/61534
14047         * input.h (from_macro_expansion_at): Define.
14049         PR c/63357
14050         * doc/invoke.texi: Update description of -Wlogical-op.
14052 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14054         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
14055         ternary operator in fprintf and harmonize spacing.
14057 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
14059         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
14060         Mark operand1 commutative.
14062 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
14064         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
14065         input operands in memory.
14066         (*vec_concatv2si_sse4_1): Ditto.
14067         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
14068         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
14069         register_operand.
14070         (vec_extract_hi_v32hi): Ditto.
14071         (vec_extract_hi_v64hi): Ditto.
14072         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
14074 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14075             Steven Bosscher <steven@gcc.gnu.org>
14077         PR rtl-optimization/34503
14078         * cprop.c (cprop_reg_p): New.
14079         (hash_scan_set): Use above function to check if register can be
14080         propagated.
14081         (find_avail_set): Return up to two sets, one whose source is a
14082         register and one whose source is a constant.  Sets are returned in an
14083         array passed as parameter rather than as a return value.
14084         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
14085         sets returned by find_avail_set, starting with the one whose source is
14086         a constant. Use cprop_reg_p to check if register can be propagated.
14087         (do_local_cprop): Use cprop_reg_p to check if register can be
14088         propagated.
14089         (implicit_set_cond_p): Likewise.
14091 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
14093         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
14094         (sem_function::equals): IGNORED_NODES parameter is now unused;
14095         update call of equals_private.
14096         (sem_function::equals_private): Do not call equals_wpa; skip
14097         gimple body matching if there is no body.
14098         (sem_function::init): Add logic to hash tthunk info.
14099         (sem_function::parse): Also parse thunks.
14100         * ipa-icf.h (equals_private): Update declaration.
14102 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14104         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
14105         asterisk from name so this can be generated directly.
14106         (*altivec_stvx_<mode>_internal): Likewise.
14107         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
14108         that this is never called during or after reload/lra.
14109         (rs6000_frame_related): Remove split_reg
14110         argument and logic that references it.
14111         (emit_frame_save): Remove last parameter from call to
14112         rs6000_frame_related.
14113         (rs6000_emit_prologue): Remove last parameter from eight calls to
14114         rs6000_frame_related.  Force generation of stvx instruction for
14115         Altivec register saves.  Remove split_reg handling, which is no
14116         longer needed.
14117         (rs6000_emit_epilogue):  Force generation of lvx instruction for
14118         Altivec register restores.
14120 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14122         * config/rs6000/rs6000.opt (mcrypto): Change option description to
14123         match category changes in ISA 2.07B.
14125 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14127         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
14128         iterators.
14129         (cmp_op, cmp_type): New code attributes.
14130         (NEON_VCMP, NEON_VACMP): New int iterators.
14131         (cmp_op_unsp): New int attribute.
14132         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
14133         (neon_vceq<mode>): Delete.
14134         (neon_vc<cmp_op><mode>_insn): New pattern.
14135         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
14136         (neon_vcgeu<mode>): Delete.
14137         (neon_vcle<mode>): Likewise.
14138         (neon_vclt<mode>: Likewise.
14139         (neon_vcage<mode>): Likewise.
14140         (neon_vcagt<mode>): Likewise.
14141         (neon_vca<cmp_op><mode>): New define_expand.
14142         (neon_vca<cmp_op><mode>_insn): New pattern.
14143         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
14145 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
14147         * tree.h (attribute_value_equal): Declare.
14148         * tree.c (attribute_value_equal): Export.
14150 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
14152         * ipa-icf.c (sem_item::compare_attributes): New function.
14153         (sem_item::compare_referenced_symbol_properties): Compare variable
14154         attributes.
14155         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
14156         (sem_function::param_used_p): New function.
14157         (sem_function::equals_wpa): Fix attribute comparsion; match
14158         parameter type codes; do not compare paremter flags when
14159         they are not used; compare edge flags; compare indirect calls.
14160         (sem_item::update_hash_by_addr_refs): Hash reference type.
14161         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
14162         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
14163         reference use type.
14164         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
14165         * ipa-icf.h (compare_attributes, param_used_p): Declare.
14167 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
14169         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
14170         cleanup.
14171         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
14172         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
14173         (sem_item::compare_referenced_symbol_properties): New.
14174         (sem_item::hash_referenced_symbol_properties): New.
14175         (sem_item::compare_cgraph_references): Rename to ...
14176         (sem_item::compare_symbol_references): ... this one; use
14177         compare_referenced_symbol_properties.
14178         (sem_function::equals_wpa): Do not compare
14179         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
14180         DECL_IS_OPERATOR_NEW; compare pointer sizes.
14181         (sem_item::update_hash_by_addr_refs): Call
14182         hash_referenced_symbol_properties.
14183         (sem_item::update_hash_by_local_refs): Cleanup.
14184         (sem_function::merge): Do not mix up symbol properties.
14185         (sem_variable::equals_wpa): Use compare_symbol_references.
14186         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
14187         (sem_item::hash_referenced_symbol_properties): New.
14188         (sem_item::compare_symbol_references): New.
14189         (sem_item::compare_cgraph_references): Remove.
14191 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
14193         PR target/26702
14194         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
14195         Emit size of local.
14197 2015-04-23  Nick Clifton  <nickc@redhat.com>
14199         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
14200         ATTRIBUTE_UNUSED to x parameter.
14201         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
14203 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14205         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
14206         TARGET_CRYPTO to TARGET_P8_VECTOR>
14207         (crypto_vpermxor_<mode>): Likewise.
14208         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
14209         (BU_CRYPTO_3A): Likewise.
14210         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
14211         (BU_CRYPTO_OVERLOAD_3A): New #define.
14212         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
14213         (VPMSUMH): Likewise.
14214         (VPMSUMW): Likewise.
14215         (VPMSUMD): Likewise.
14216         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
14217         (VPERMXOR_V4SI): Likewise.
14218         (VPERMXOR_V8HI): Likewise.
14219         (VPERMXOR_V16QI): Likewise.
14220         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
14221         BU_CRYPTO_OVERLOAD_2A.
14222         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
14223         BU_CRYPTO_OVERLOAD_3A.
14224         * config/rs6000/rs6000.opt (mcrypto): Change description of
14225         option.
14227 2015-04-23  Richard Biener  <rguenther@suse.de>
14229         * passes.def: Remove copy propagation passes run directly after CCP.
14230         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
14231         SSA names.
14232         (ccp_visit_phi_node): Rework to handle first executable edge
14233         specially.
14235 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
14237         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14238         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
14239         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
14240         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
14241         (thumb_legimitimize_reload_address): Remove.
14242         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
14243         Remove.
14244         (thumb_legimitimize_reload_address): Remove.
14246 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14248         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
14250 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14252         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
14253         MAX_LDM_STM_OPS.
14254         (store_multiple): Likewise.
14256 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14258         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
14259         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
14260         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
14261         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
14262         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
14263         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
14264         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
14265         Specify issue_rate value.
14266         (arm_issue_rate): Look up issue rate from tuning structs. Remove
14267         large switch statement.
14268         (arm_marvell_pj4_tune): New struct.
14269         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
14270         struct.
14272 2015-04-23  Richard Biener  <rguenther@suse.de>
14274         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
14275         (vect_find_last_store_in_slp_instance): Rename to ...
14276         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
14277         (vect_analyze_slp_cost_1): Use vector_load for constant defs
14278         and vec_construct for external defs when estimating prologue cost.
14279         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
14280         Compute costs here only when vectorizing loops.
14281         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
14282         have been determined.
14283         (vect_schedule_slp_instance): Simplify vectorized code placement
14284         and prepare for in-BB external defs.
14285         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
14286         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
14287         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
14288         guard.
14289         (vect_model_load_cost): Likewise.
14290         (vectorizable_store): Instead add it here.
14291         (vectorizable_load): Likewise.
14292         (vect_is_simple_use): Dump def type textually.
14294 2015-04-23  Richard Biener  <rguenther@suse.de>
14296         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
14297         * cfgloop.c (verify_loop_structure): Verify the root loop node.
14298         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
14299         instead of get_eh_region_from_lp_number.
14300         * loop-init.c (fix_loop_structure): If we removed a loop, reset
14301         the SCEV cache.
14303 2015-04-23  Anton Blanchard  <anton@samba.org>
14305         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
14306         need for -mprofile-kernel to save LR to stack.
14308 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14310         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
14311         adjustments.
14312         (insn_is_swappable_p): Return 1 for a convert from double to
14313         single precision when all of its uses are splats of BE element
14314         zero.
14316 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
14318         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
14320 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14322         PR target/65456
14323         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
14324         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
14325         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
14326         option.
14327         (rs6000_builtin_mask_for_load): Return 0 for targets with
14328         efficient unaligned VSX accesses so that the vectorizer will use
14329         direct unaligned loads.
14330         (rs6000_builtin_support_vector_misalignment): Always return true
14331         for targets with efficient unaligned VSX accesses.
14332         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
14333         stores on targets with efficient unaligned VSX accesses is almost
14334         always the same as the cost of an aligned load or store, so model
14335         it that way.
14336         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
14337         unaligned vectors if we have efficient unaligned VSX accesses.
14338         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
14339         undocumented option.
14341 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14343         Revert:
14344         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
14346         * config.gcc (LIBC_MUSL): New tm_defines macro.
14347         * config/linux.h (OPTION_MUSL): Define.
14348         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14349         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14350         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14352         * config/linux.opt (mmusl): New option.
14353         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14354         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14356         * configure: Regenerate.
14358 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
14360         * config.gcc (LIBC_MUSL): New tm_defines macro.
14361         * config/linux.h (OPTION_MUSL): Define.
14362         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14363         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14364         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14366         * config/linux.opt (mmusl): New option.
14367         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14368         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14370         * configure: Regenerate.
14372 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
14374         * doc/invoke.texi (-fsanitize-sections): Update description.
14375         * asan.c (set_sanitized_sections): Parse incoming arg.
14376         (section_sanitized_p): Support wildcards.
14378 2015-04-22  Tom de Vries  <tom@codesourcery.com>
14380         PR tree-optimization/65823
14381         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
14382         equality between ap_copy and ap.
14384 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14386         PR target/47098
14387         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
14389 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14391         PR target/47122
14392         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
14394 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14396         PR target/55144
14397         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
14398         remove already contained t-files.
14400 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14402         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
14403         Remove unneeded forward declarations.
14404         (suitable_for_tail_call_opt_p): Commentary typo fix.
14406 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14408         * varasm.c (emit_bss): Remove redundant guard.
14410 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14412         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
14414 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14416         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
14418 2015-04-22  Hale Wang  <hale.wang@arm.com>
14419             Terry Guo  <terry.guo@arm.com>
14421         PR rtl-optimization/64818
14422         * combine.c (can_combine_p): Don't combine user-specified
14423         register if it is in an asm input.
14425 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
14427         PR ipa/65076
14428         * passes.def (early_optimizations): Add pass_dse.
14430 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14432         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
14433         * reorg.c (redundant_insn): Remove ifdef
14434         INSN_REFERENCES_ARE_DELAYED.
14435         * resource.c (mark_referenced_resources): Likewise.
14437 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14439         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
14440         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
14441         * resource.c (mark_set_resources): Likewise.
14443 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14445         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
14446         * cfgcleanup.c (flow_find_cross_jump): Likewise.
14447         (flow_find_head_matching_sequence): Likewise.
14448         (try_head_merge_bb): Likewise.
14449         * combine.c (can_combine_p): Likewise.
14450         (try_combine): Likewise.
14451         (distribute_notes): Likewise.
14452         * df-problems.c (can_move_insns_across): Likewise.
14453         * final.c (final): Likewise.
14454         * gcse.c (insert_insn_end_basic_block): Likewise.
14455         * ira.c (find_moveable_pseudos): Likewise.
14456         * reorg.c (try_merge_delay_insns): Likewise.
14457         (fill_simple_delay_slots): Likewise.
14458         (fill_slots_from_thread): Likewise.
14459         * sched-deps.c (sched_analyze_2): Likewise.
14461 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14463         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
14464         PIC_OFFSET_TABLE_REGNUM.
14466 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14468         * alias.c (init_alias_target): Remove ifdef
14469         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
14470         * df-scan.c (df_insn_refs_collect): Likewise.
14471         (df_get_regular_block_artificial_uses): Likewise.
14472         (df_get_eh_block_artificial_uses): Likewise.
14473         (df_get_entry_block_def_set): Likewise.
14474         (df_get_exit_block_use_set): Likewise.
14475         * emit-rtl.c (gen_rtx_REG): Likewise.
14476         * ira.c (ira_setup_eliminable_regset): Likewise.
14477         * reginfo.c (init_reg_sets_1): Likewise.
14478         * regrename.c (rename_chains): Likewise.
14479         * reload1.c (reload): Likewise.
14480         (eliminate_regs_in_insn): Likewise.
14481         * resource.c (mark_referenced_resources): Likewise.
14482         (init_resource_info): Likewise.
14484 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14486         * defaults.h (MASK_RETURN_ADDR): New definition.
14487         * except.c (expand_builtin_extract_return_addr): Remove ifdef
14488         MASK_RETURN_ADDR.
14490 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14492         * defaults.h (RETURN_ADDR_OFFSET): New definition.
14493         * except.c (expand_builtin_extract_return_addr): Remove ifdef
14494         RETURN_ADDR_OFFSET.
14495         (expand_builtin_frob_return_addr): Likewise.
14497 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14499         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
14500         (try_redirect_by_replacing_jump): Likewise.
14501         (rtl_tidy_fallthru_edge): Likewise.
14502         * combine.c (insn_a_feeds_b): Likewise.
14503         (find_split_point): Likewise.
14504         (simplify_set): Likewise.
14505         * cprop.c (cprop_jump): Likewise.
14506         * cse.c (cse_extended_basic_block): Likewise.
14507         * df-problems.c (can_move_insns_across): Likewise.
14508         * function.c (emit_use_return_register_into_block): Likewise.
14509         * haifa-sched.c (sched_init): Likewise.
14510         * ira.c (find_moveable_pseudos): Likewise.
14511         * loop-invariant.c (find_invariant_insn): Likewise.
14512         * lra-constraints.c (curr_insn_transform): Likewise.
14513         * postreload.c (reload_combine_recognize_const_pattern):
14514         * Likewise.
14515         * reload.c (find_reloads): Likewise.
14516         * reorg.c (delete_scheduled_jump): Likewise.
14517         (steal_delay_list_from_target): Likewise.
14518         (steal_delay_list_from_fallthrough): Likewise.
14519         (redundant_insn): Likewise.
14520         (fill_simple_delay_slots): Likewise.
14521         (fill_slots_from_thread): Likewise.
14522         (delete_computation): Likewise.
14523         * sched-rgn.c (add_branch_dependences): Likewise.
14525 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14527         * genconfig.c (main): Always define HAVE_cc0.
14528         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
14529         HAVE_cc0.
14530         * cfgcleanup.c (flow_find_cross_jump): Likewise.
14531         (flow_find_head_matching_sequence): Likewise.
14532         (try_head_merge_bb): Likewise.
14533         * cfgrtl.c (rtl_merge_blocks): Likewise.
14534         (try_redirect_by_replacing_jump): Likewise.
14535         (rtl_tidy_fallthru_edge): Likewise.
14536         * combine.c (do_SUBST_MODE): Likewise.
14537         (insn_a_feeds_b): Likewise.
14538         (combine_instructions): Likewise.
14539         (can_combine_p): Likewise.
14540         (try_combine): Likewise.
14541         (find_split_point): Likewise.
14542         (subst): Likewise.
14543         (simplify_set): Likewise.
14544         (distribute_notes): Likewise.
14545         * cprop.c (cprop_jump): Likewise.
14546         * cse.c (cse_extended_basic_block): Likewise.
14547         * df-problems.c (can_move_insns_across): Likewise.
14548         * final.c (final): Likewise.
14549         (final_scan_insn): Likewise.
14550         * function.c (emit_use_return_register_into_block): Likewise.
14551         * gcse.c (insert_insn_end_basic_block): Likewise.
14552         * haifa-sched.c (sched_init): Likewise.
14553         * ira.c (find_moveable_pseudos): Likewise.
14554         * loop-invariant.c (find_invariant_insn): Likewise.
14555         * lra-constraints.c (curr_insn_transform): Likewise.
14556         * optabs.c (prepare_cmp_insn): Likewise.
14557         * postreload.c (reload_combine_recognize_const_pattern):
14558         * Likewise.
14559         * reload.c (find_reloads): Likewise.
14560         (find_reloads_address_1): Likewise.
14561         * reorg.c (delete_scheduled_jump): Likewise.
14562         (steal_delay_list_from_target): Likewise.
14563         (steal_delay_list_from_fallthrough): Likewise.
14564         (try_merge_delay_insns): Likewise.
14565         (redundant_insn): Likewise.
14566         (fill_simple_delay_slots): Likewise.
14567         (fill_slots_from_thread): Likewise.
14568         (delete_computation): Likewise.
14569         (relax_delay_slots): Likewise.
14570         * sched-deps.c (sched_analyze_2): Likewise.
14571         * sched-rgn.c (add_branch_dependences): Likewise.
14573 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14575         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
14576         that is trivially ded on non cc0 targets.
14577         (simplify_set): Likewise.
14578         (mark_used_regs_combine): Likewise.
14579         * cse.c (new_basic_block): Likewise.
14580         (fold_rtx): Likewise.
14581         (cse_insn): Likewise.
14582         (cse_extended_basic_block): Likewise.
14583         (set_live_p): Likewise.
14584         * rtlanal.c (canonicalize_condition): Likewise.
14585         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14587 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14589         * conditions.h: Define macros even if HAVE_cc0 is undefined.
14590         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
14591         * final.c: Likewise.
14592         * jump.c: Likewise.
14593         * recog.c: Likewise.
14594         * recog.h: Declare functions even when HAVE_cc0 is undefined.
14595         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
14597 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14599         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
14600         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
14601         * builtins.c (expand_builtin): Remove check if
14602         EH_RETURN_DATA_REGNO is defined.
14603         * df-scan.c (df_bb_refs_collect): Likewise.
14604         (df_get_exit_block_use_set): Likewise.
14605         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
14606         * ira-lives.c (process_bb_node_lives): Likewise.
14607         * lra-lives.c (process_bb_lives): Likewise.
14609 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
14611         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
14612         FIRST_PSEUDO_REG): New.
14613         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
14614         (ARG_POINTER_REGNUM): Define to ARGP_REG.
14615         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
14616         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
14617         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
14618         (FIRST_INT_REG): New.
14619         (LAST_INT_REG): New.
14620         (FIRST_*_REG): Define using *_REG.
14621         (LAST_*_REG): Ditto.
14622         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
14623         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
14624         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
14626 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14628         * expmed.c: (synth_mult): Only assume overlapping
14629         shift with previous steps in alg_sub_t_m2 case.
14631 2015-04-21  Richard Biener  <rguenther@suse.de>
14633         PR tree-optimization/65650
14634         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
14635         transitions involving copies.
14636         (set_lattice_value): Adjust for copy lattice state.
14637         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
14638         if that doesn't dominate the merge point.
14639         (bit_value_unop): Adjust what we treat as varying mask.
14640         (bit_value_binop): Likewise.
14641         (bit_value_assume_aligned): Likewise.
14642         (evaluate_stmt): When we simplified to a SSA name record a copy
14643         instead of dropping to varying.
14644         (visit_assignment): Simplify.
14646         * gimple-match.h (gimple_simplify): Add another callback.
14647         * gimple-fold.c (fold_stmt_1): Adjust caller.
14648         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
14649         for the 2nd callback.
14650         * gimple-match-head.c (gimple_simplify): Add a callback that is
14651         used to valueize the stmt operands and use it that way.
14653 2015-04-21  Richard Biener  <rguenther@suse.de>
14655         PR tree-optimization/65788
14656         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
14658 2015-04-21  Richard Biener  <rguenther@suse.de>
14660         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
14661         vec_construct cost by vec_stmt_cost.
14663 2015-04-21  Richard Biener  <rguenther@suse.de>
14665         * cfghooks.h (create_basic_block): Replace with two overloads
14666         for RTL and GIMPLE.
14667         (split_block): Likewise.
14668         * cfghooks.c (split_block): Rename to ...
14669         (split_block_1): ... this.
14670         (split_block): Add two type-safe overloads for RTL and GIMPLE.
14671         (split_block_after_labels): Call split_block_1.
14672         (create_basic_block): Rename to ...
14673         (create_basic_block_1): ... this.
14674         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
14675         (create_empty_bb): Call create_basic_block_1.
14676         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
14677         split_block_after_labels.
14678         * omp-low.c (expand_parallel_call): Likewise.
14679         (expand_omp_target): Likewise.
14680         (simd_clone_adjust): Likewise.
14681         * tree-chkp.c (chkp_get_entry_block): Likewise.
14682         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
14683         create_basic_block overload.
14684         (cgraph_node::expand_thunk): Likewise.
14685         * tree-cfg.c (make_blocks): Likewise.
14686         (handle_abnormal_edges): Likewise.
14687         * tree-inline.c (copy_bb): Likewise.
14689 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14691         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
14692         New pattern.
14693         (*xor_one_cmplsidi3_ze): Likewise.
14695 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14697         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
14698         use df_remove_problem rather than manually removing problems, leaving
14699         holes in df->problems_in_order[].
14701 2015-04-21  Tom de Vries  <tom@codesourcery.com>
14703         PR tree-optimization/65802
14704         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
14706 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14708         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
14709         Increase to 128.
14710         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
14711         at '.'.  Assert that there's enough space for everything.
14713 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
14715         PR tree-optimization/64950
14716         Revert:
14717         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
14719         PR target/41089
14720         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
14721         as volatile.
14723 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
14725         PR rtl-optimization/64916
14726         * cfgcleanup.c (values_equal_p): New function.
14727         (can_replace_by): Use it.
14729 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
14731         PR c++/65801
14732         * doc/invoke.texi ([-Wnarrowing]): Update.
14734 2015-04-20  Jeff Law  <law@redhat.com>
14736         PR tree-optimization/65658
14737         * tree-ssa-threadupdate.c (redirection_block_p): Remove
14738         redundant test for GIMPLE_ASSIGN in last change.
14740 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
14742         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
14743         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
14744         (legitimize_tls_address): Ditto.
14745         (ix86_expand_move): Ditto.
14746         (ix86_expand_binary_operator): Remove reload_in_progress checks.
14747         (ix86_expand_unary_operator): Ditto.
14748         * config/i386/predicates.md (index_register_operand): Ditto.
14750 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
14752         * reorg.c (try_merge_delay_insns): Improve correctness checking
14753         for targets with multiple delay slots.
14755 2015-04-20  Jeff Law  <law@redhat.com>
14757         PR tree-optimization/65658
14758         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
14759         statements too.
14761 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
14763         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
14764         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
14765         Delete.
14767 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
14769         PR debug/65807
14770         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
14772 2015-04-20  Richard Biener  <rguenther@suse.de>
14774         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
14775         * gimple-fold.c (gimple_build_valueize): New function.
14776         (gimple_build): Always use gimple_build_valueize as valueize hook.
14778 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
14780         PR target/64134
14781         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
14782         and overwrite variable parts if <= 1/2 the elements are variable.
14784 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
14786         PR rtl-optimization/65805
14787         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
14788         Don't use difference of offset and previous offset if
14789         update_sp_offset is non-zero.
14790         (eliminate_regs_in_insn): Ditto.
14791         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
14792         lra_eliminate_regs_1 call.
14793         * lra-constraints.c (get_equiv_with_elimination): Ditto.
14795 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
14797         * hash-table.h: Remove version of hash_table that stored value_type *.
14798         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
14799         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
14800         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
14801         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
14802         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
14803         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
14804         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14805         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
14806         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
14807         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
14808         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
14809         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
14810         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
14811         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14812         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
14813         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
14815 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14816             Jakub Jelinek  <jakub@redhat.com>
14818         PR target/65787
14819         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
14820         subsequent SH_NONE operand does not overwrite an existing *special
14821         value.
14822         (adjust_extract): Handle case where a vec_extract operation is
14823         wrapped in a PARALLEL.
14825 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
14827         PR target/65780
14828         * config/i386/i386.c (ix86_binds_local_p): Define only if
14829         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
14831 2015-04-17  Jeff Law  <law@redhat.com>
14833         PR tree-optimization/47679
14834         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
14835         * tree-ssa-scopedtables.c: New file.
14836         * tree-ssa-scopedtables.h: New file.
14837         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
14838         (const_and_copies): Change name/type.
14839         (record_const_or_copy): Move into tree-ssa-scopedtables.c
14840         (record_const_or_copy_1): Similarly.
14841         (restore_vars_to_original_value): Similarly.
14842         (pass_dominator::execute): Create and destroy const_and_copies table.
14843         (thread_across_edge): Update passing of const_and_copies.
14844         (record_temporary_equivalence): Use method calls rather than
14845         manipulating const_and_copies directly.
14846         (record_equality, cprop_into_successor_phis): Similarly.
14847         (dom_opt_dom_walker::before_dom_children): Similarly.
14848         (dom_opt_dom_walker::after_dom_children): Similarly.
14849         (eliminate_redundant_computations): Similarly.
14850         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
14851         (record_temporary_equivalence): Likewise.
14852         (invalidate_equivalences): Likewise.
14853         (record_temporary_equivalences_from_phis): Update due to type
14854         change of const_and_copies.  Use method calls rather than
14855         manipulating the stack directly.
14856         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
14857         (thread_through_normal_block, thread_across_edge): Likewise.
14858         (thread_across_edge): Likewise.
14859         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14860         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
14861         of equiv_stack.
14862         (identify_jump_threads): Update due to type change of equiv_stack.
14863         (finalize_jump_threads): Delete the equiv_stack when complete.
14865 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
14867         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14868         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
14869         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
14871 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
14873         PR target/65535
14874         * config.gcc: Exit with a comment when we do not have a major version
14875         number for the FreeBSD target.
14877 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
14879         PR target/65689
14880         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
14881         maybe_allows_mem bitfields.
14882         (maybe_allows_none_start, maybe_allows_none_end,
14883         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
14884         maybe_allows_mem_end): New variables.
14885         (compute_maybe_allows): New function.
14886         (add_constraint): Use it to initialize maybe_allows_reg and
14887         maybe_allows_mem fields.
14888         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
14889         is_address constraints such that those that allow neither mem nor
14890         reg come first, then those that only allow reg but not mem, then
14891         those that only allow mem but not reg, then the rest.
14892         (write_allows_reg_mem_function): New function.
14893         (write_tm_preds_h): Call it.
14894         * stmt.c (parse_output_constraint, parse_input_constraint): Use
14895         the generated insn_extra_constraint_allows_reg_mem function
14896         instead of always setting *allows_reg = true; *allows_mem = true;
14897         for unknown extra constraints.
14899 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
14901         PR target/65780
14902         * output.h (default_binds_local_p_3): New.
14903         * varasm.c (default_binds_local_p_3): Make it public.  Take an
14904         argument to indicate if common symbol may be local.  If common
14905         symbol may be local, treat non-external variable as defined
14906         locally.
14907         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
14908         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
14909         * config/i386/i386.c (ix86_binds_local_p): New.
14910         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
14911         ix86_binds_local_p.
14913 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
14915         PR debug/65771
14916         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
14917         trying mem_loc_descriptor on XEXP (rtl, 0).
14919 2015-04-17  Martin Liska  <mliska@suse.cz>
14921         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14922         Release symbol_compare_collection.
14923         * ipa-reference.c: Add TODO that a vector should be released.
14925 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
14927         PR target/65296
14928         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
14929         to new AVR-LibC file layout (bug #44574).
14930         (*avrlibc_devicelib): Same.
14931         * config/avr/avr-mcus.def: Adjust comments.
14932         * config/avr/avr.opt (nodevicelib): Adjust help.
14934 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
14936         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
14938 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
14940         PR c++/64527
14941         * gimplify.c (gimplify_init_constructor): Always emit a
14942         side-effecting constructor.
14944 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14946         PR tree-optimization/64950
14947         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
14948         in cfun->curr_properties.
14949         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
14950         if we generate an IFN_VA_ARG.
14951         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
14952         function if PROP_gimple_lva is not set in src function.
14954 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14955             Michael Matz  <matz@suse.de>
14957         PR tree-optimization/64950
14958         * gimple-iterator.c (update_modified_stmts): Remove static.
14959         * gimple-iterator.h (update_modified_stmts): Declare.
14960         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
14961         (gimplify_va_arg_internal): New function.
14962         (gimplify_va_arg_expr): Use IFN_VA_ARG.
14963         * gimplify.h (gimplify_va_arg_internal): Declare.
14964         * internal-fn.c (expand_VA_ARG): New unreachable function.
14965         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
14966         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
14967         (expand_ifn_va_arg): New function.
14968         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
14969         (pass_stdarg::execute): Call expand_ifn_va_arg.
14970         (pass_data_lower_vaarg): New pass_data.
14971         (pass_lower_vaarg): New gimple_opt_pass.
14972         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
14973         (make_pass_lower_vaarg): New function.
14974         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
14975         properties_required field.
14976         * passes.def (all_passes): Add pass_lower_vaarg.
14977         * tree-pass.h (PROP_gimple_lva): Add define.
14978         (make_pass_lower_vaarg): Declare.
14980 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14982         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
14983         * calls.c (call_expr_flags): Same.
14985 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14987         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
14988         (pass_stdarg::execute): ... here.
14990 2015-04-17  Tom de Vries  <tom@codesourcery.com>
14991             Michael Matz  <matz@suse.de>
14993         * tree-cfg.c (make_blocks_1): Factor out of ...
14994         (make_blocks): ... here.
14995         (make_edges_bb): Factor out of ...
14996         (make_edges): ... here.
14997         (gimple_find_sub_bbs): New function.
14998         * tree-cfg.h (gimple_find_sub_bbs): Declare.
15000 2015-04-17  Tom de Vries  <tom@codesourcery.com>
15002         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
15004 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
15006         * asan.c (set_sanitized_sections): New function.
15007         (section_sanitized_p): Ditto.
15008         (asan_protect_global): Optionally sanitize user-defined
15009         sections.
15010         * asan.h (set_sanitized_sections): Declare new function.
15011         * common.opt (fsanitize-sections): New option.
15012         * doc/invoke.texi (-fsanitize-sections): Document new option.
15013         * opts-global.c (handle_common_deferred_options): Handle new
15014         option.
15016 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
15018         PR debug/65771
15019         * dwarf2out.c (loc_list_from_tree): Return NULL
15020         for DEBUG_EXPR_DECL.
15022 2015-04-17  Christian Bruel  <christian.bruel@st.com>
15024         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
15025         same attributes.
15027 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
15029         * ira-color.c (setup_left_conflict_sizes_p): Do not process
15030         node itself when computing left conflict subnode size.
15032 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
15034         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
15035         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
15036         *fop_<mode>_1_sse using enabled attribute.  Use
15037         register_mixssei387nonimm_operand operand 1 predicate. Change
15038         alternative 3 constraints from "x" to "v".
15040 2015-04-16  Richard Biener  <rguenther@suse.de>
15042         PR tree-optimization/65774
15043         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
15044         bit-value tracking on.
15046 2015-04-16  Richard Biener  <rguenther@suse.de>
15048         PR tree-optimization/64277
15049         * tree-vrp.c (check_array_ref): Fix anti-range handling,
15050         simplify upper bound handling.
15051         (search_for_addr_array): Simplify.
15052         (check_array_bounds): Handle ADDR_EXPRs here.
15053         (check_all_array_refs): Simplify.
15055 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
15057         * config/i386/i386.c (print_reg): Rewrite function.
15059 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15061         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
15062         Invert the condition.
15064 2015-04-16  Renlin Li  <renlin.li@arm.com>
15066         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
15067         simplifications for UNSIGNED_FLOAT.
15069 2015-04-16  Nick Clifton  <nickc@redhat.com>
15071         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
15072         MUL_UNINIT.
15073         (enum rl78_cpu_type): New.
15074         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
15075         (umulhi3_shift_virt): Remove m constraint from operand 1.
15076         (umulqihi3_virt): Likewise.
15077         * config/rl78/rl78.c (rl78_option_override): Add code to process
15078         -mcpu and -mmul options.
15079         (rl78_alloc_physical_registers): Add code to handle divhi and
15080         divsi valloc attributes.
15081         (set_origin): Likewise.
15082         * config/rl78/rl78.h (RL78_MUL_G14): Define.
15083         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
15084         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
15085         __RL78_Gxx__.
15086         (ASM_SPEC): Pass -mcpu on to assembler.
15087         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
15088         (mulqi3_rl78): Likewise.
15089         (mulhi3_g13): Likewise.
15090         (mulhi3): Generate the G13 or G14 versions of the insn directly.
15091         (mulsi3): Likewise.
15092         (mulhi3_g14): Add clobbers of AX and BC.
15093         (mulsi3_g14): Likewise.
15094         (mulsi3_g13): Likewise.
15095         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
15096         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
15097         * config/rl78/rl78.opt (mmul): Initialise value to
15098         RL78_MUL_UNINIT.
15099         (mcpu): New option.
15100         (m13, m14, mrl78): New option aliases.
15101         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
15102         (MULTILIB_DIRNAMES): Add g13 and g14.
15103         * doc/invoke.texi: Document -mcpu and -mmul options.
15105 2015-04-16  Richard Biener  <rguenther@suse.de>
15107         * tree-ssa-ccp.c (likely_value): See if we have operands that
15108         are marked as never simulate again and return CONSTANT in this
15109         case.
15110         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
15111         not have any operands that will be simulated again as
15112         not being simulated again.
15114 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
15116         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
15117         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
15118         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
15119         attribute.
15120         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
15121         enabled attribute.
15122         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
15123         *float<SWI48:mode><MODEF:mode>2_sse.
15124         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
15125         enabled attribute.
15126         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
15127         enabled attribute.
15129 2015-04-15  Tom de Vries  <tom@codesourcery.com>
15131         PR other/65487
15132         * function.c (push_dummy_function): New function.
15133         (init_dummy_function_start): Use push_dummy_function.
15134         (pop_dummy_function): New function.  Factored out of ...
15135         (expand_dummy_function_end): ... here.
15136         * function.h (push_dummy_function, pop_dummy_function): Declare.
15137         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
15138         pop_dummy_function.
15139         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
15141 2015-04-15  Jeff Law  <law@redhat.com>
15143         PR tree-optimization/47679
15144         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
15145         need for forward declaration in upcoming changes.
15146         (record_conditions, record_edge_info): Likewise.
15148         PR rtl-optimization/42522
15149         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
15150         SIGN_EXTRACT as a whole object rather than simplifying
15151         its operand.
15153 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
15155         PR ipa/65765
15156         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
15157         and GIMPLE_PREDICT use break instead of return true. For
15158         GIMPLE_EH_DISPATCH, compare dispatch region.
15160 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
15162         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
15163         details about the implementation.  Make clear preference for
15164         __atomic builtins.  Reduce possibility of future change.
15166 2015-04-15  Nick Clifton  <nickc@redhat.com>
15168         * config/rx/rx.opt (mallow-string-insns): New option.
15169         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
15170         builtin if string instructions are denied.
15171         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
15172         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
15173         appropriate.
15174         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
15175         * config/rx/rx.md (movstr): Enable pattern only if string
15176         instructions are allowed.
15177         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
15178         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
15179         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
15180         (MULTILIB_DIRNAMES): Add no-strings.
15181         * doc/invoke.texi: Document -mno-allow-string-insns.
15183 2015-04-15  Alan Modra  <amodra@gmail.com>
15185         PR target/65408
15186         PR target/58744
15187         PR middle-end/36043
15188         * calls.c (load_register_parameters): Don't load past end of
15189         mem unless suitably aligned.
15191 2015-04-15  Nick Clifton  <nickc@redhat.com>
15193         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
15194         decrement instruction as being frame related.
15195         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
15196         based addresses.
15197         If zero extending a function address enclose the operation in
15198         %code(...).
15199         (rl78_preferred_reload_class): New function.
15200         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15201         * config/rl78/rl78.md: Remove useless constraints in expanders.
15202         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
15203         (mulhi3_rl78): Likewise.
15204         (mulhi3_g13): Likewise.
15205         (mulsi3_rl78): Likewise.
15206         (es_addr): Move to before the multiply patterns.
15208 2015-04-15  Alan Modra  <amodra@gmail.com>
15210         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
15211         and sequence_stack.  Add seq.
15212         (seq_stack): Delete.
15213         * function.c (prepare_function_start): Don't access x_last_insn.
15214         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
15215         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
15216         * emit_rtl.c (start_sequence, push_topmost_sequence,
15217         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
15218         sequence accessors.
15219         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
15220         remove_insn): Likewise.  Simplify.
15221         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
15222         and pop_topmost_sequence.
15223         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
15224         debug insns.
15225         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
15227 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
15229         PR target/65729
15230         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
15231         the assertiion.
15233 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
15235         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
15236         (LEGACY_INT_REGNO_P): Ditto.
15237         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
15238         (ANY_MASK_REG_P): Remove.
15239         (BND_REG_P): Rename from ANY_BND_REG_P.
15240         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
15241         legacy integer registers.  Do not handle MMX_REG_P in a special way.
15242         Merge 64byte and 32byte SSE handling.
15244 2015-04-14  Nick Clifton  <nickc@redhat.com>
15246         * expr.c (expand_assignment): Force an address offset computation
15247         into a register before changing its mode.
15248         (expand_expr_real_1): Likewise.
15250 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
15252         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
15253         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
15254         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
15255         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
15256         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
15257         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
15258         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
15259         and __aarch64_vget_lane_any.
15261 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
15263         PR rtl-optimization/65761
15264         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
15265         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
15267 2015-04-14  Richard Biener  <rguenther@suse.de>
15269         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
15270         (graphite_can_represent_scev): Use POINTER_TYPE_P.
15272 2015-04-14  Richard Biener  <rguenther@suse.de>
15274         PR tree-optimization/65758
15275         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
15276         against -1.
15277         (ccp_lattice_meet): Likewise.
15278         (bit_value_unop): Likewise.
15279         (bit_value_binop): Likewise.
15280         (bit_value_assume_aligned): Likewise.
15282 2015-04-14  Christian Bruel  <christian.bruel@st.com>
15284         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
15285         function.
15287 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
15289         PR tree-optimization/63387
15290         * match.pd ((x unord x) | (y unord y) -> (x unord y),
15291         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
15293 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
15295         * config/i386/predicates.md (any_QIreg_operand): Rename from
15296         q_regs_operand.  Do not process subregs.
15297         (QIreg_operand): Use QI_REGNO_P predicate.
15298         (ext_QIreg_operand): Ditto.
15299         (ext_register_operand): Ditto.
15300         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
15301         (AND splitters): Ditto.
15302         (AND with -65536 splitter): Add SWI48 mode for operand 0.
15303         (AND with -256 splitter): Use any_QIreg_operand predicate and
15304         SWI248 mode for operand 0.
15305         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
15306         mode for operand 0.
15307         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
15309 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
15311         * doc/plugins.texi: Rewrite first introductory paragraph.
15313 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
15315         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
15316         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
15318 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
15320         * ipa-profie.c (ipa_profile): Check number of parameters
15321         and possible polymorphic call targets before
15322         devirtualizing.
15324 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
15326         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
15327         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
15329 2015-04-13  Richard Biener  <rguenther@suse.de>
15331         PR tree-optimization/65204
15332         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
15333         takens for bit-CCP.
15335 2015-04-13  Richard Biener  <rguenther@suse.de>
15337         PR target/65660
15338         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
15339         and cond_not_taken_branch_cost to 4 and 2.
15340         (bdver2_cost): Likewise.
15341         (bdver3_cost): Likewise.
15342         (bdver4_cost): Likewise.
15344 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
15346         * hash-table.h (hash_table constructor): Add mem stats.
15347         (alloc_entries): Likewise.
15349 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
15351         * ipa-cp.c (ipcp_driver): Relase prev_edge.
15352         * passes.c (execute_one_pass): Only add transform if pass has one.
15354 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
15356         * config/i386/i386.c (ix86_option_override_internal): Don't set
15357         -fprefetch-loop-arrays if optimizing for size.
15359 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
15360             Gerald Pfeifer  <gerald@pfeifer.com>
15362         * doc/contrib.texi (Contributors): Add Martin Jambor and
15363         Michael Matz.
15365 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
15367         * BASE-VER: Set to 6.0.0.
15369         PR tree-optimization/65747
15370         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
15371         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
15373 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
15375         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
15376         sentence.  Improve grammar.
15378 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
15380         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
15382 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
15384         PR ipa/65743
15385         * ipa-inline-transform.c (speculation_removed): Remove static var.
15386         (check_speculations): New function.
15387         (clone_inlined_nodes): Do not check spculations.
15388         (inline_call): Call check_speculations.
15389         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
15390         consider non-invariants.
15392 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
15393             Martin Liska  <mliska@suse.cz>
15395         PR ipa/65722
15396         * ipa-icf.c (sem_item::compare_cgraph_references): function and
15397         variable can not match.
15398         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
15399         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
15401 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
15403         PR tree-optimization/65735
15404         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
15405         Remove visited_phis argument, add visited_bbs, avoid recursing into the
15406         same bb rather than just into the same phi node.
15407         (thread_through_normal_block): Adjust caller.
15409 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
15411         * doc/contrib.texi (Contributors): Add Ira Rosen.
15413 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
15415         * gcov.c (find_source): Fix miswording in error message.
15416         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
15417         (ix86_expand_sse_comi_round): Fix typo in error message.
15419 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
15421         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
15423 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
15425         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
15427 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
15429         PR target/65710
15430         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
15431         Print bad_spills_num and insn_pseudos_num.
15433 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15435         PR target/65694
15436         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
15437         when creating +1 values for SImode.
15439 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
15441         PR target/65729
15442         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
15443         assert.
15445 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
15446             Iain Sandoe  <iain@codesourcery.com>
15448         PR target/65351
15449         * configure: Regenerate.
15451 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
15453         PR target/65671
15454         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
15456 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
15458         * doc/contrib.texi (Contributors): Add John Marino.
15460 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
15462         PR tree-optimization/65709
15463         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
15464         TREE_TYPE (TREE_TYPE (t)).
15466 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
15468         PR target/65710
15469         * lra-int.h (lra_bad_spill_regno_start): New.
15470         * lra.c (lra_bad_spill_regno_start): New.
15471         (lra): Set up lra_bad_spill_regno_start.  Set up
15472         lra_constraint_new_regno_start unconditionally.
15473         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
15474         spill preferences.
15476 2015-04-09  Marek Polacek  <polacek@redhat.com>
15477             Jakub Jelinek  <jakub@redhat.com>
15479         PR middle-end/65554
15480         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
15481         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
15482         of STRIP_NOPS.
15484 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
15486         PR rtl-optimization/65693
15487         * combine.c (is_parallel_of_n_reg_sets): Move outside of
15488         #ifndef HAVE_cc0.
15490 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
15492         PR target/65296
15493         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
15494         device specs file if "device-specs%s" didn't resolve to a path.
15496 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
15498         PR target/65676
15499         * config/i386/i386.c (fixup_modeless_constant): New.
15500         (ix86_expand_args_builtin): Fixup modeless constant operand.
15501         (ix86_expand_round_builtin): Ditto.
15502         (ix86_expand_special_args_builtin): Ditto.
15503         (ix86_expand_builtin): Ditto.
15505 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
15507         PR target/65693
15508         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
15509         any pow2 integer in between 2 and 0x80000000U inclusive.
15511 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
15513         PR rtl-optimization/65693
15514         * combine.c (is_parallel_of_n_reg_sets): Change first argument
15515         from an rtx_insn * to an rtx.
15516         (try_combine): Adjust both callers.  Use it once more.
15518 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
15520         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
15521         (chkp_make_static_const_bounds): Search existing
15522         symbol by assembler name.  Use make_decl_one_only.
15523         (chkp_get_zero_bounds_var): Remove node search which
15524         is now performed in chkp_make_static_const_bounds.
15525         (chkp_get_none_bounds_var): Likewise.
15527 2015-04-08  Michael Witten  <mfwitten@gmail.com>
15529         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
15530         to an example.
15532 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15534         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
15536 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
15538         * doc/extend.texi (__sync Builtins): Fix grammar.
15540 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15542         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
15544 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15546         * varasm.c (emit_local): Move definition of align.
15548 2015-04-08  Julian Brown  <julian@codesourcery.com>
15550         * config/nvptx/mkoffload.c (process): Support variable mapping.
15552 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
15554         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
15555         alpha_links **.
15556         (alpha_write_one_linkage): Correct typo.
15558 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
15560         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
15562 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
15564         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
15566 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
15568         * tree-chkp.h (chkp_insert_retbnd_call): New.
15569         * tree-chkp.c (chkp_insert_retbnd_call): New.
15570         * ipa-split.c (insert_bndret_call_after): Remove.
15571         (split_function): Use chkp_insert_retbnd_call.
15572         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
15573         bounds for instrumented functions.
15575 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
15577         PR ipa/65540
15578         * calls.c (initialize_argument_information): When producing tail
15579         call also turn SSA_NAMES passed by references to original PARM_DECLs
15581 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
15583         PR target/65648
15584         * lra-remat.c (do_remat): Process input and non-input insn
15585         registers separately.
15587 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
15589         PR debug/65678
15590         * valtrack.c (debug_lowpart_subreg): New function.
15591         (dead_debug_insert_temp): Use it.
15593         PR middle-end/65680
15594         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
15595         into signed HOST_WIDE_INT the same as negative bit_offset.
15597 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
15599         * ipa-comdats.c (ipa_comdats): Visit all thunks
15600         to set proper comdat group.
15602 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15604         PR target/65489
15605         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
15606         on constants for NEON VSTRUCT modes.
15608 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
15609             Iain Sandoe  <iain@codesourcery.com>
15611         PR target/65351
15612         * configure: Regenerate.
15614 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
15616         PR target/65614
15617         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
15618         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
15619         that LFD is used to load double constants instead of LFS.  Add
15620         defaults for all costs structures.  Add comments for missing
15621         initialization fields.
15622         (size32_cost): Likewise.
15623         (size64_cost): Likewise.
15624         (rs64a_cost): Likewise.
15625         (mpccore_cost): Likewise.
15626         (ppc403_cost): Likewise.
15627         (ppc405_cost): Likewise.
15628         (ppc440_cost): Likewise.
15629         (ppc476_cost): Likewise.
15630         (ppc601_cost): Likewise.
15631         (ppc603_cost): Likewise.
15632         (ppc604_cost): Likewise.
15633         (ppc604e_cost): Likewise.
15634         (ppc620_cost): Likewise.
15635         (ppc630_cost): Likewise.
15636         (ppccell_cost): Likewise.
15637         (ppc750_cost): Likewise.
15638         (ppc7450_cost): Likewise.
15639         (ppc8540_cost): Likewise.
15640         (ppce300c2c3_cost): Likewise.
15641         (ppce500mc_cost): Likewise.
15642         (ppce500mc64_cost): Likewise.
15643         (ppce5500_cost): Likewise.
15644         (ppce6500_cost): Likewise.
15645         (titan_cost): Likewise.
15646         (power4_cost): Likewise.
15647         (power6_cost): Likewise.
15648         (power7_cost): Likewise.
15649         (power8_cost): Likewise.
15650         (ppca2_cost): Likewise.
15651         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
15653         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
15654         instead of XXLOR to copy SFmode to clear out dirty bits created
15655         when SFmode denormals are generated.
15656         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
15657         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
15659 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
15661         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
15662         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
15663         * config/aarch64/aarch64-tune.md: Regenerate.
15665 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
15667         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
15668         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
15669         * config/arm/arm-cores.def (exynos-m1): New core.
15670         * config/arm/arm-tune.md: Regenerate.
15671         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
15672         * config/arm/bpabi.h: Likewise.
15674 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
15676         * ipa-cp (set_single_call_flag): Remove too
15677         restrictive assert.
15679 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15681         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
15682         GOMP_offload_unregister from the destructor.
15684 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
15686         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
15687         flags for instrumentation thunk.
15688         (chkp_produce_thunks): Likewise.
15690 2015-04-05  Martin Liska  <mliska@suse.cz>
15692         PR ipa/65665
15693         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
15694         has computed data structure.
15695         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15697 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
15699         * invoke.texi (inline-unit-growth): Increase growth to 20%
15700         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
15702 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
15704         PR target/65647
15705         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
15706         value checking.
15707         (lra_rematerialization_iter): New.
15708         * lra.c (lra): Initialize lra_rematerialization_iter.
15709         Stop updating lra_constraint_new_regno_start after switching of
15710         inheritance and rematerialization.
15711         * lra-remat.c (lra_rematerialization_iter): New.
15712         (lra_remat): Add printing pass iteration.  Do rematerialization
15713         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
15715 2015-04-04  Richard Biener  <rguenther@suse.de>
15717         PR tree-optimization/64909
15718         PR tree-optimization/65660
15719         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
15720         to take a cost vector for scalar iteration cost.
15721         (vect_get_single_scalar_iteration_cost): Likewise.
15722         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
15723         Compute the scalar iteration cost into a cost vector.
15724         (vect_get_known_peeling_cost): Use the scalar cost vector to
15725         account for the cost of the peeled iterations.
15726         (vect_estimate_min_profitable_iters): Likewise.
15727         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15728         Likewise.
15730 2015-04-04  Alan Modra  <amodra@gmail.com>
15732         PR target/65576
15733         PR target/65240
15734         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
15735         0.0 constant unless TARGET_VSX.
15736         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
15737         alternative.
15739 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
15741         PR ipa/65654
15742         * ipa-inline-transform.c (inline_call): Skip sanity check to work
15743         around the ICE
15745 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
15747         PR ipa/65655
15748         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
15749         speculative indirect edges to avoid ordering issue.
15751 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
15753         PR ipa/65076
15754         * ipa-inline.c (edge_badness): Add combined size to the denominator.
15756 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
15758         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
15759         TYPE_ARTIFICIAL on the .omp_data* types.
15761 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15763         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
15764         instrumentation thunks.
15766 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15768         * config/i386/i386.c (ix86_expand_call): Avoid nested
15769         PARALLEL in returned call value.
15771 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15773         * lto-cgraph.c (input_cgraph_1): Always link instrumented
15774         assembler name with original one.
15776 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
15778         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
15780 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
15782         Revert parts of r216820.
15783         * config/i386/i386.md (movqi_internal): Correct type calculation
15784         for alternatives 3 and 5.
15786 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
15788         PR preprocessor/61977
15789         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
15790         predefine __vector/__bool/__pixel macros nor context sensitive
15791         macros for CLK_ASM.
15792         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
15794 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
15796         * config/pa/pa.c (pa_output_move_double): Directly handle register
15797         indexed memory operand.  Simplify handling of scaled register indexed
15798         memory operands.
15800 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
15802         PR driver/65444
15803         * config/i386/linux-common.h (MPX_SPEC): New.
15804         (CHKP_SPEC): Add MPX_SPEC.
15805         * doc/invoke.texi (-fcheck-pointer-boudns): Document
15806         possible issues with '-z bndplt' support in linker.
15808 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
15810         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
15811         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
15812         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
15813         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
15814         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
15816 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
15818         * config/i386/sync.md (UNSPEC_MOVA): Remove.
15819         (atomic_load<mode>): Change operand 0 predicate to
15820         nonimmediate_operand and fix up the destination when needed.
15821         Use UNSPEC_LDA.
15822         (atomic_loaddi_fpu): Use UNSPEC_LDA.
15823         (atomic_store<mode>): Change operand 1 predicate to
15824         nonimmendate_operand and move the source to register when needed.
15825         Use UNSPEC_STA.
15826         (atomic_store<mode>_1): Use UNSPEC_STA.
15827         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
15828         Fix moves from memory operand.  Use UNSPEC_STA.
15830 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15832         * expmed.c (strict_volatile_bitfield_p): Check that the access will
15833         not cross a MODESIZE boundary.
15834         (store_bit_field, extract_bit_field): Added assertions in the
15835         strict volatile bitfields code path.
15837 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15839         PR target/65624
15840         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
15841         Increase args array size by one to avoid buffer overflow.
15843 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
15845         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15846         split_part.
15847         * ipa-inline.c (edge_badness): Add wrapper penalty.
15848         (sum_callers): Move up.
15849         (inline_small_functions): Set single_caller.
15850         * ipa-inline.h (inline_summary): Add single_caller.
15851         * ipa-split.c (split_function): Set split_part.
15852         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
15853         * cgraph.h (cgraph_node): Add split_part.
15855 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
15857         PR target/58945
15858         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
15859         Do not split operands 0 and operands 2 to halfmode.
15860         (atomic_compare_and_swap<mode>): Update for
15861         atomic_compare_and_swap<dwi>_doubleword changes.
15863 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
15865         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
15866         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
15867         no caching is done.
15869 2015-03-31  Martin Liska  <mliska@suse.cz>
15871         PR ipa/65557
15872         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
15873         has already filled up function summary.
15874         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15876 2015-03-31  Richard Biener  <rguenther@suse.de>
15878         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
15879         of types.
15881 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15883         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
15884         nested functions.
15885         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
15886         (s390_asm_output_function_label): Adapt to new signature of
15887         s390_function_num_hotpatch_hw
15888         Optimise the code generating assembler output.
15889         Add comments to assembler file.
15891 2015-03-31  Richard Biener  <rguenther@suse.de>
15893         PR middle-end/65626
15894         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
15895         of the noreturn call so it is last and cleanup_control_flow_bb
15896         can do the CFG part.
15898 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
15900         PR target/65531
15901         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
15902         same_comdat_group for external symbols.
15903         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
15904         infinite same_comdat_group traversal loop.
15906 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
15908         PR plugins/61176
15909         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
15910         automatically to $headers.
15912 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
15914         PR ipa/65610
15915         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
15916         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
15917         function.
15918         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
15919         Use it.
15920         * ipa-prop.c (param_type_may_change_p): Likewise.
15921         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
15922         (remove_unused_scope_block_p): Add in_ctor_dtor_block
15923         argument.  Before inlining, preserve
15924         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
15925         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
15926         recursive calls.
15927         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
15929 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15931         PR ipa/65076
15932         * ipa-inline.c (edge_badness): Base denominator on callee's
15933         grwoth squared.
15935 2015-03-27  Martin Jambor  <mjambor@suse.cz>
15937         PR ipa/65478
15938         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
15939         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
15940         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
15941         node_calling_single_call.
15942         * ipa-cp.c (count_callers): New function.
15943         (set_single_call_flag): Likewise.
15944         (initialize_node_lattices): Count callers and set single_flag_call if
15945         necessary.
15946         (incorporate_penalties): New function.
15947         (good_cloning_opportunity_p): Use it, dump new flags.
15948         (propagate_constants_topo): Set node_within_scc flag if appropriate.
15949         * doc/invoke.texi (ipa-cp-recursion-penalty,
15950         ipa-cp-single-call-pentalty): Document.
15952 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15954         PR ipa/65588
15955         * symtab.c (symtab_node::get_partitioning_class): Register vars
15956         are duplicated.
15957         * varpool.c (symbol_table::output_variables) Do not assemble unefined
15958         decls for non-symbols.
15960 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
15962         PR target/65248
15963         * output.h (default_binds_local_p_2): New.
15964         * varasm.c (default_binds_local_p_2): Renamed to ...
15965         (default_binds_local_p_3): This.  Don't return true on protected
15966         data symbol if protected data may be external.
15967         (default_binds_local_p): Use default_binds_local_p_3.
15968         (default_binds_local_p_1): Likewise.
15969         (default_binds_local_p_2): New.
15970         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
15971         default_binds_local_p_2 if TARGET_MACHO is undefined.
15973 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
15975         PR target/65593
15976         * config/i386/i386.c (legitimize_pic_address): If base
15977         is SYMBOL_REF or LABEL_REF using %rip addressing, force
15978         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
15980 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15982         PR target/65531
15983         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
15984         comdat groups.
15986 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
15988         PR ipa/65600
15989         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
15990         of optimized out indirect call.
15991         (redirect_to_unreachable): Always build symbol table node for
15992         BUILT_IN_UNREACHABLE
15994 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
15996         PR target/65407
15997         * ira-costs.c (record_reg_classes): Process all constraint string
15998         containing 0-9.
16000 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
16002         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
16003         memory_operand.
16005         PR target/65052
16006         * config/c6x/constraints.md (S3): New constraint.
16007         * config/c6x/c6x.md (real_jump): Use it.
16009 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16011         PR middle-end/65595
16012         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
16013         do redirection if the call is not optimized out.
16015 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
16017         PR target/65495
16018         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
16019         (fchkp-check-incomplete-type): Add LTO.
16020         (fchkp-zero-input-bounds-for-main): Likewise.
16021         (fchkp-first-field-has-own-bounds): Likewise.
16022         (fchkp-narrow-bounds): Likewise.
16023         (fchkp-narrow-to-innermost-array): Likewise.
16024         (fchkp-use-static-bounds): Likewise.
16025         (fchkp-use-static-const-bounds): Likewise.
16026         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
16028 2015-03-27  Marek Polacek  <polacek@redhat.com>
16030         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
16032 2015-03-27  Marek Polacek  <polacek@redhat.com>
16034         PR sanitizer/65583
16035         * ubsan.c (ubsan_create_edge): New function.
16036         (instrument_bool_enum_load): Call it.
16037         (instrument_nonnull_arg): Likewise.
16038         (instrument_nonnull_return): Likewise.
16039         (instrument_object_size): Likewise.
16041 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16043         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
16044         auto_vec.
16046 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16048         PR lto/65536
16049         * lto-streamer.h (class lto_location_cache): New.
16050         (struct data_in): Add location_cache.
16051         (lto_input_location): Update prototype.
16052         (stream_input_location_now): New.
16053         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
16054         pointer to location.
16055         (stream_input_location): Update.
16056         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
16057         (warn_odr): Apply location cache before warning.
16058         (lto_input_location): Update prototype.
16059         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
16060         Use stream_input_location_now.
16061         * lto-streamer-in.c (lto_location_cache::current_cache): New static
16062         variable.
16063         (lto_location_cache::cmp_loc): New function.
16064         (lto_location_cache::apply_location_cache): New function.
16065         (lto_location_cache::accept_location_cache): New function.
16066         (lto_location_cache::revert_location_cache): New function.
16067         (lto_location_cache::input_location): New function.
16068         (lto_input_location): Do location caching.
16069         (stream_input_location_now): New function.
16070         (input_eh_region, input_struct_function_base): Use
16071         stream_input_location_now.
16072         (lto_data_in_create): use new.
16073         (lto_data_in_delete): Use delete.
16074         * tree-streamer-in.c (unpack_ts_block_value_fields,
16075         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
16076         lto_input_ts_exp_tree_pointers): Update for cached location api.
16078 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16080         PR ipa/65076
16081         * passes.def: Add pass_nothrow.
16082         * ipa-pure-const.c: (pass_data_nothrow): New.
16083         (pass_nothrow): New.
16084         (pass_nothrow::execute): New.
16085         (make_pass_nothrow): New.
16086         * tree-pass.h (make_pass_nothrow): Declare.
16088 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16090         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
16091         edge to change by speculation resolution or redirection.
16092         (edge_set_predicate): Likewise.
16093         (inline_summary_t::duplicate): Likewise.
16094         (remap_edge_summaries): Likewise.
16096 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16098         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
16099         New macros.
16100         (can_inline_edge_p): Relax option matching for always inline functions.
16102 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
16104         PR target/65561
16105         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
16106         Check operand 4 and operand 0 for equality.
16107         (avx512f_vextract<shuffletype>32x4_1_maskm):
16108         Check operand 6 and operand 0 for equality.
16109         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
16110         for equality.
16111         (vec_extract_hi_<mode>_maskm): Ditto.
16113 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16115         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
16116         dead calls back to live.
16117         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
16118         cross check to ...
16119         (cgraph_node::verify_node): ... here; verify only callee edges,
16120         not caller.
16121         * cif-code.def (CILK_SPAWN): New code.
16123 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16125         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
16126         (edge_set_predicate): Use it to mark unreachable edges.
16127         (inline_summary_t::duplicate): Remove unnecesary code.
16128         (remap_edge_summaries): Likewise.
16129         (dump_inline_summary): Report contains_cilk_spawn.
16130         (compute_inline_parameters): Compute contains_cilk_spawn.
16131         (inline_read_section, inline_write_summary): Stream
16132         contains_cilk_spawn.
16133         * ipa-inline.c (can_inline_edge_p): Do not touch
16134         DECL_STRUCT_FUNCTION that may not be available;
16135         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
16136         remove check for callee_fun->can_throw_non_call_exceptions and
16137         replace it by optimization attribute check; check for flag_exceptions.
16138         * ipa-inline-transform.c (inline_call): Maintain
16139         DECL_FUNCTION_PERSONALITY
16140         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
16142 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
16144         PR tree-optimization/65551
16145         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
16146         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
16148 2015-03-26  Richard Biener  <rguenther@suse.de>
16150         PR middle-end/65555
16151         * tree-cfg.c (verify_gimple_call): Do not require a call to
16152         have no LHS if it wasn't recognized as control altering yet.
16154 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
16156         PR tree-optimization/64715
16157         * passes.def: Add another instance of pass_object_sizes before ccp1.
16158         * tree-object-size.c (pass_object_sizes::execute): In
16159         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
16160         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
16161         __bos result and the computed constant.  Remove redundant
16162         checks, obsoleted by gimple_call_builtin_p test.
16164         * var-tracking.c (variable_tracking_main_1): Don't track
16165         variables for targetm.no_register_allocation targets.
16167 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
16169         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
16170         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
16172 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16174         PR target/65569
16175         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
16176         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
16177         0.0 is correctly setup.
16178         (extenddftf2_internal): Likewise.
16180 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
16182         PR tree-optimization/65177
16183         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
16184         (bb_in_bbs): New.
16185         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
16186         edges not adjacent on the path to the original code.
16188 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
16190         PR bootstrap/65537
16191         * doc/install.texi (Building a native compiler): Document new
16192         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
16193         configuration assumes that the host supports the linker plugin.
16195 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
16197         PR target/65508
16198         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
16199         chain for generated call.
16201 2015-03-25  Richard Biener  <rguenther@suse.de>
16203         * passes.c (pass_manager::execute_early_local_passes): Guard
16204         execution of pass_chkp_instrumentation_passes with
16205         flag_check_pointer_bounds.
16206         (pass_chkp_instrumentation_passes::gate): Likewise.
16208 2015-03-25  Martin Liska  <mliska@suse.cz>
16210         PR tree-optimization/65538
16211         * symbol-summary.h (function_summary::~function_summary):
16212         Relese memory for allocated summaries.
16213         (function_summary::release): New function.
16215 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
16217         PR lto/65515
16218         * lto-streamer-out.c (DFS::worklist): New struct.
16219         (DFS::worklist_vec): New data member.
16220         (DFS::next_dfs_num): Remove.
16221         (DFS::DFS): Rewritten using worklist instead of recursion,
16222         using most of code from DFS::DFS_write_tree.
16223         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
16224         pass it to DFS_write_tree calls.
16225         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
16226         quick initial checks push it into worklist_vec and return.
16228 2015-03-25  Richard Biener  <rguenther@suse.de>
16230         PR middle-end/65519
16231         * genmatch.c (expr::gen_transform): Re-write to avoid
16232         using gimple_build.
16234 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
16236         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
16238 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
16240         * config/arm/arm.opt (print_tune_info): New option.
16241         * config/arm/arm.c (arm_print_tune_info): New function.
16242         (arm_file_start): Call arm_print_tune_info.
16243         * config/arm/arm-protos.h (struct tune_params): Add comment.
16244         * doc/invoke.texi (@item -mprint-tune-info): New item.
16245         (-mtune): mention it in ARM Option Summary.
16247 2015-03-25  DJ Delorie  <dj@redhat.com>
16249         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
16250         correct clause.
16252 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
16253             Martin Liska  <mliska@suse.cz>
16255         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
16256         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
16257         (sem_item::add_type): New function.
16258         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
16259         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
16260         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
16261         (sem_function::equals_wpa): Fix typo.
16262         * ipa-icf.h (sem_item::add_type): New function.
16263         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
16264         order.
16266 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
16268         PR tree-optimization/65533
16269         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
16270         with swapped operands, call vect_free_slp_tree on
16271         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
16272         vector.
16274 2015-03-24  Richard Biener  <rguenther@suse.de>
16276         PR middle-end/65517
16277         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
16278         for fixup if necessary.
16280 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
16282         * doc/extend.texi (Function Attributes): Add @cindex entries
16283         for all attributes and regularize their format.  Delete text
16284         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
16285         information about "eightbit_data", "tiny_data", and "model"
16286         variable attributes to the Variable Attributes section.  Fix
16287         some obvious typos and copy-editing issues.
16288         (Variable Attributes, Type Attributes): Likewise add/fix
16289         @cindex entries for all attributes.
16291 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
16293         PR target/65523
16294         * tree-chkp.c (chkp_build_returned_bound): Ignore
16295         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
16297 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
16299         PR target/65505
16300         * config/sh/predicates.md (simple_mem_operand,
16301         displacement_mem_operand): Add test for reg.
16302         (short_displacement_mem_operand): Test for displacement_mem_operand
16303         before invoking sh_disp_addr_displacement.
16304         * config/sh/constraints.md (Sdd, Sra): Simplify.
16305         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
16306         Remove redundant displacement_mem_operand tests.
16308 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
16310         PR target/65296
16311         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
16312         the same -mmcu=MCU more than once.
16314 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
16316         PR bootstrap/65522
16317         * ipa-devirt.c: Remove duplicate demangle.h include.
16319         PR target/65504
16320         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
16321         on the pseudo.
16322         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
16323         REG_POINTER on *destptr after adjusting it for prologue size.
16325         PR ipa/65521
16326         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
16327         ultimate_alias_target ()->order ints instead of
16328         ultimate_alias_target () pointers.
16330 2015-03-23  Richard Biener  <rguenther@suse.de>
16332         PR tree-optimization/65518
16333         * tree-vect-stmts.c (vectorizable_load): Reject single-element
16334         interleaving cases we generate absymal code for.
16336 2015-03-23  Richard Biener  <rguenther@suse.de>
16338         PR tree-optimization/65494
16339         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
16340         matches here.
16341         (vect_analyze_slp_instance): But do that here, always and once.
16343 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16345         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
16346         adding T or multiplying by T+1 and subracting T.
16348 2015-03-22  Jeff Law  <law@redhat.com>
16350         PR rtl-optimization/64317
16351         * Makefile.in (OBJS): Add gcse-common.c
16352         * gcse.c: Include gcse-common.h
16353         (struct modify_pair_s): Move structure definition to gcse-common.h
16354         (compute_transp): Move function to gcse-common.c.
16355         (canon_list_insert): Similarly.
16356         (record_last_mem_set_info): Break out some code and put it into
16357         gcse-common.c.  Call into the new common code.
16358         (compute_local_properties): Pass additional arguments to compute_transp.
16359         * postreload-gcse.c: Include gcse-common.h and df.h
16360         (modify_mem_list_set, blocks_with_calls): New variables.
16361         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
16362         (get_bb_avail_insn): Pass in the expression index too.
16363         (alloc_mem): Allocate memory for the new bitmaps and lists.
16364         (free_mem): Free memory for the new bitmaps and lists.
16365         (insert_expr_in_table): Record a bitmap index for each entry we
16366         add to the table.
16367         (record_last_mem_set_info): Call into common code in gcse-common.c.
16368         (get_bb_avail_insn): If no available insn was found in the requested
16369         BB.  If BB has a single predecessor, see if the expression is
16370         transparent in BB and available in that single predecessor.
16371         (compute_expr_transp): New wrapper for compute_transp.
16372         (eliminate_partially_redundant_load): Pass expression's bitmap_index
16373         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
16374         (gcse_after_reload_main): If there are elements in the hash table,
16375         then compute transparency for all the elements in the hash table.
16376         * gcse-common.h: New file.
16377         * gcse-common.c: New file.
16379 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
16381         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
16382         as an adjective.
16383         (System Headers): Likewise.
16384         (Ifdef): Likewise.
16385         (Traditional macros): Likewise.
16386         (Invocation): Likewise.
16387         (Option Index): Likewise.
16388         * doc/cppopts.texi (-M): Likewise.
16389         (-finput-charset): Likewise.
16390         (--help): Likewise.
16391         * doc.invoke.texi (AVR Options): Likewise.
16392         (V850 Options): Likewise.
16394 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
16396         PR ipa/65475
16397         * ipa-devirt.c: Include demangle.h
16398         (odr_type_d): Add field rtti_broken.
16399         (odr_subtypes_equivalent_p): Do not require name to match.
16400         (compare_virtual_tables): Fix typo; if type already has ODR violation,
16401         bypass the tests; be ready for function referneces in vtables that are
16402         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
16403         (warn_odr): Give up for nameless types.
16404         (warn_types_mismatch): Report mismatch in mangled names;
16405         report mismatch in anonymous namespaces; look into component types to
16406         give useful error; report when mismatch is dragged in from other ODR
16407         type.
16408         (odr_types_equivalent_p): Match types for being polymorphic; avoid
16409         duplicated diagnostics.
16410         (add_type_duplicate): Reorder checks so more informative ones come
16411         first; fix typo; do not output "the extra base is defined here" when
16412         we did not warn.
16413         (BINFO_N_BASE_BINFOS): Relax sanity check.
16415 2015-03-22  Martin Liska  <mliska@suse.cz>
16416             Jakub Jelinek  <jakub@redhat.com>
16418         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
16419         masks that can potentially include a builtin.
16420         (ix86_add_new_builtins): Introduce fast filter for isa values
16421         that cannot trigger builtin inclusion.
16423 2015-03-22  Martin Liska  <mliska@suse.cz>
16425         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
16426         (sem_item::update_hash_by_local_refs): Likewise.
16427         (sem_variable::get_hash): Empty line is fixed.
16428         (sem_item_optimizer::execute): Include adding of hash references.
16429         (sem_item_optimizer::update_hash_by_addr_refs): New function.
16430         (sem_item_optimizer::build_hash_based_classes): Use local hash.
16431         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
16432         (sem_item::update_hash_by_local_refs): Likewise.
16434 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
16436         PR ipa/65502
16437         * ipa-comdats.c (enqueue_references): Walk through thunks.
16438         (ipa_comdats): Likewise.
16439         (set_comdat_group_1): New function.
16441 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
16443         PR ipa/65475
16444         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
16445         non-polymorphic
16447 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
16448             Gerald Pfeifer  <gerald@pfeifer.com>
16450         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
16452 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
16453             Sandra Loosemore  <sandra@codesourcery.com>
16455         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
16456         function parameter declaration.
16457         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
16458         Update arguments to nios2_adjust_call_address().
16459         (sibcall_internal): Rename from *sibcall.
16460         (sibcall_value_internal): Rename from *sibcall_value.
16461         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
16462         (nios2_large_got_address): Add target temp reg parameter.
16463         (nios2_got_address): Adjust call to nios2_large_got_address, add
16464         force_reg around it.
16465         (nios2_load_pic_address): Add target temp reg parameter, replace call
16466         to nios2_got_address with corresponding code.
16467         (nios2_legitimize_constant_address): Update call to
16468         nios2_load_pic_address.
16469         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
16470         to use temp reg for PIC loading purposes.
16471         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
16472         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16473         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
16475 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
16477         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
16478         usage of "the @option{...}".
16479         (-Wopenmp-simd): Likewise.
16480         (-fsanitize-recover): Likewise.
16481         (-fsanitize-undefined-trap-on-error): Likewise.
16482         (-flto): Likewise.
16483         (tracer-dynamic-coverage-feedback): Likewise.
16484         (reorder-block-duplicate-feedback): Likewise.
16485         (loop-unroll-jam-size): Likewise.
16486         (-B): Likewise.
16487         (-I-): Likewise.
16488         (-mabs=legacy): Likewise.
16489         (-mupper-regs-df): Likewise.
16490         (-mupper-regs-sf): Likewise.
16491         (-mpointers-to-nested-functions): Likewise.
16493 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
16495         * doc/extend.texi (Cilk Plus Builtins): Add markup.
16497 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
16499         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
16500         additional index entries and cross-references.
16501         (-fchkp-check-incomplete-type): Likewise.
16502         (-fchkp-first-field-has-own-bounds): Likewise.
16503         (-fchkp-narrow-to-innermost-array): Likewise.
16504         (-fchkp-use-fast-string-functions): Likewise.
16505         (-fchkp-use-nochk-string-functions): Likewise.
16506         (-fchkp-use-static-const-bounds): Likewise.
16507         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
16508         (-fchkp-instrument-marked-only): Likewise.
16509         (-fchkp-use-wrappers): Likewise.
16510         (-static-libmpx): Likewise.
16511         (-static-libmpxwrappers): Likewise.
16512         * doc/extend.texi (bnd_legacy): Likewise.
16513         (bnd_instrument): Likewise.
16514         (bnd_variable_size): Likewise.
16515         (Pointer Bounds Checker builtins): Likewise.
16517 2015-03-21  Tom de Vries  <tom@codesourcery.com>
16519         PR tree-optimization/65458
16520         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
16521         * cgraph.h (cgraph_node): Add parallelized_function field.
16522         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
16523         (input_overwrite_node): Read parallelized_function field.
16524         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
16525         parallelized_function on cgraph_node for child_fn.
16526         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
16527         Remove include of gt-tree-parloops.h.
16528         (parallelized_functions): Remove static variable.
16529         (parallelized_function_p): Rewrite using parallelized_function field of
16530         cgraph_node.
16531         (create_loop_fn): Remove adding to parallelized_functions.
16532         * Makefile.in (GTFILES): Remove tree-parloops.c
16534 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
16536         PR rtl-optimization/64366
16537         * lra.c (lra_update_insn_regno_info): Consider regs in
16538         CALL_INSN_FUNCTION_USAGE memory.
16540 2015-03-20  Richard Biener  <rguenther@suse.de>
16542         PR middle-end/64715
16543         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
16544         for type comparison and gcc_checking_assert.
16545         (chrec_fold_plus_poly_poly): Likewise.
16546         (chrec_fold_multiply_poly_poly): Likewise.
16547         (chrec_convert_1): Likewise.
16548         * gimplify.c (gimplify_expr): Remove premature folding of
16549         &X + CST to &MEM[&X, CST].
16551 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
16553         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
16554         already is final.
16555         (ipa_inline): Recompute inline_failed codes.
16556         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
16557         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
16558         CIF_FINAL_ERROR.
16560 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
16562         PR rtl-optimization/60851
16563         * recog.c (constrain_operands): Accept a pseudo register before reload
16564         for LRA enabled targets.
16566 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
16568         PR target/65240
16569         * config/rs6000/predicates.md (easy_fp_constant): Remove special
16570         -ffast-math handling that kept non-0 constants live in the RTL
16571         until reload.  Remove logic testing the number of instructions it
16572         took to create a constant in a GPR that was never used, due to a
16573         test for soft-float earlier.
16574         (memory_fp_constant): Delete, no longer used.
16576         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
16577         alternatives for loading non-0 constants into GPRs for hard
16578         floating point that is no longer needed due to changes in
16579         easy_fp_constant.  Add support for loading 0.0 into GPRs.
16580         (mov<mode>_hardfloat32): Likewise.
16581         (mov<mode>_hardfloat64): Likewise.
16582         (mov<mode>_64bit_dm): Likewise.
16583         (movtd_64bit_nodm): Likewise.
16584         (pre-reload move FP constant define_split): Delete define_split,
16585         since it is no longer used.
16586         (extenddftf2_internal): Remove GHF constraints that are not valid
16587         for extenddftf2.
16589 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
16591         PR rtl-optimization/63491
16592         * lra-constraints.c (check_and_process_move): Use src instead of
16593         sreg.  Remove some dead code.
16595 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
16597         PR ipa/65380
16598         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
16599         (sem_variable::merge): Likewise.
16601 2015-03-19  Martin Liska  <mliska@suse.cz>
16603         PR ipa/65465
16604         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
16605         all fields of cgraph_thunk_info.
16607 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
16609         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
16610         clone instrumented thunks.
16612 2015-03-19  Richard Biener  <rguenther@suse.de>
16614         Revert
16615         2015-03-10  Richard Biener  <rguenther@suse.de>
16617         PR middle-end/63155
16618         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16619         * tree-ssa-coalesce.c: Include timevar.h.
16620         (attempt_coalesce): Handle graph being NULL.
16621         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16622         Split out abnormal coalescing to ...
16623         (perform_abnormal_coalescing): ... this function.
16624         (coalesce_ssa_name): Perform abnormal coalescing without computing
16625         live/conflict.
16626         (verify_ssa_coalescing_worker): New function.
16627         (verify_ssa_coalescing): Likewise.
16629 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16630             Jakub Jelinek  <jakub@redhat.com>
16632         PR sanitizer/65400
16633         * tsan.c (instrument_gimple): Clear tail call flag on
16634         calls.
16636 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
16638         PR sanitizer/65400
16639         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
16640         call in the return bb.
16641         (find_split_points): Add RETURN_BB argument, don't call
16642         find_return_bb.
16643         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
16644         if true append TSAN_FUNC_EXIT internal call after the call to
16645         the split off function.
16646         (execute_split_functions): Call find_return_bb here.
16647         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
16648         Adjust find_split_points and split_function calls.
16650 2015-03-18  DJ Delorie  <dj@redhat.com>
16652         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
16653         (iorqi3_virt): Likewise.
16655 2015-03-18  Tom de Vries  <tom@codesourcery.com>
16657         * tree-parloops.c (parallelize_loops): Make static.
16658         * tree-parloops.h (parallelize_loops): Remove extern declaration.
16660 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
16662         PR middle-end/64491
16663         Revert:
16664         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
16666         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
16667         condition would be removed due to undefined behaviour.
16669 2015-03-18  Martin Liska  <mliska@suse.cz>
16671         PR ipa/65432
16672         * cgraph.c (cgraph_node::get_create): Remove unnecessary
16673         xstrdup_for_dump wrapper.
16674         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
16675         sem_item::name.
16676         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
16677         with xstrdup_for_dump.
16678         (sem_variable::equals): Likewise.
16679         (sem_item_optimizer::read_section): Use symtab_node::name instead of
16680         sem_item::name.
16681         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
16682         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
16683         symtab_node::asm_name with xstrdup_for_dump.
16684         (congruence_class::dump): Use symtab_node::name instead of
16685         sem_item::name.
16686         * ipa-icf.h (symtab_node::name): Remove.
16687         (symtab_node::asm_name): Likewise.
16689 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
16691         PR tree-optimization/65450
16692         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
16693         function.
16694         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
16695         it instead of duplicate_ssa_name_ptr_info.
16697         PR target/65222
16698         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
16700 2015-03-18  Richard Biener  <rguenther@suse.de>
16702         * tree-data-ref.h (struct access_matrix): Remove.
16703         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
16704         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
16705         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
16706         (am_vector_index_for_loop): Likewise.
16707         (struct data_reference): Remove access_matrix member.
16708         (DR_ACCESS_MATRIX): Remove.
16709         (lambda_vector_new): Add comment.
16710         (lambda_matrix_new): Use XOBNEWVEC.
16712 2015-03-18  Richard Biener  <rguenther@suse.de>
16714         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
16715         (pass_ch::execute): Cleanup the CFG only if we did sth.
16716         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
16718 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16720         * expmed.c (synth_mult): Use std::swap instead of manually
16721         swapping algorithms.
16723 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
16725         PR target/65078
16726         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
16728 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
16730         PR target/65296
16731         * config/avr/avr.opt (-nodevicelib): New option.
16732         * doc/invoke.texi (AVR Options): Document it.
16733         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
16734         libgcc.a, libc.a, libm.a.
16735         * config/avr/specs.h: Same.
16736         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
16737         which don't (directly) depend on the device.  Print more help.
16738         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
16739         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
16740         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
16741         case of an error.
16742         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
16743         for specs file name.
16744         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
16745         * config/avr/avr-mcus.def: Adjust initializers and comments.
16747 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
16749         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
16750         DECL_ONE_ONLY to check if decl is one only.
16751         * ipa-split.c (consider_split): Limit splitt of one only functions.
16753 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
16755         PR tree-optimization/65427
16756         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
16757         functions.
16758         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
16760 2015-03-16  Marek Polacek  <polacek@redhat.com>
16762         * cgraph.h (add_new_static_var): Remove declaration.
16763         * varpool.c (add_new_static_var): Remove function.
16765 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
16767         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
16768         instead of vec<tree> * with vec_alloc and release for args.
16769         Adjust all users.
16771         PR middle-end/65431
16772         * omp-low.c (delete_omp_context): Only splay_tree_delete
16773         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
16774         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
16776 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16778         PR sanitizer/64820
16779         * cfgexpand.c (align_base): New function.
16780         (alloc_stack_frame_space): Call it.
16781         (expand_stack_vars): Align prev_frame to be sure
16782         data->asan_vec elements aligned properly.
16784 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
16786         PR middle-end/65409
16787         * expr.c (store_field): Do not do a direct block copy if the source is
16788         a PARALLEL with BLKmode.
16790 2015-03-16  Tom de Vries  <tom@codesourcery.com>
16792         PR middle-end/65414
16793         Revert:
16794         2015-03-12  Tom de Vries  <tom@codesourcery.com>
16796         PR rtl-optimization/64895
16797         * lra-lives.c (check_pseudos_live_through_calls): Use
16798         actual_call_used_reg_set instead of call_used_reg_set, if available.
16800 2015-03-16  Alan Modra  <amodra@gmail.com>
16802         PR target/63150
16803         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
16804         Modify Z->r bswapdi splitter to use dest in place of scratch.
16805         In r->Z and Z->r bswapdi splitter rename word_high, word_low
16806         to word1, word2 and rearrange logic to suit.
16807         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
16808         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
16809         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
16810         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
16811         early clobber.
16813 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
16815         PR tree-optimization/65369
16816         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
16817         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
16818         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
16820         PR tree-optimization/65418
16821         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
16822         are casts in the first PLUS_EXPR operand, ensure tbias and
16823         *totallowp are in the inner type.
16825         PR rtl-optimization/65401
16826         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
16827         argument.  If true, adjust_address_nv of x with big-endian
16828         correction for the mode widening to GET_MODE (y).
16829         (make_field_assignment): Don't do MEM mode widening here.
16830         Use MEM_P instead of GET_CODE == MEM.
16832 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
16834         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
16835         the external decls.
16837 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16839         PR target/64600
16840         * config/arm/arm.c (arm_gen_constant, AND case): Use
16841         ARM_SIGN_EXTEND when constructing AND mask.
16843 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16845         * graph.c (print_graph_cfg): Make function names visible and append
16846         parenthesis to it.  Also make groups of basic blocks belonging to the
16847         same function visible.
16849 2015-03-12  Richard Biener  <rguenther@suse.de>
16851         PR middle-end/44563
16852         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
16853         to avoid quadratic behavior with inline expansion splitting blocks.
16854         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
16855         with the successor if the predecessor will be merged with it.
16856         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
16857         entry block with its successor.
16859 2015-03-13  Richard Biener  <rguenther@suse.de>
16861         PR middle-end/44563
16862         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
16863         (cleanup_tree_cfg_1): Do not call it.
16864         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
16865         (fixup_noreturn_call): Mark the stmt as control altering.
16866         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
16867         here.
16868         (pass_data_fixup_cfg): Produce a dump file.
16869         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
16870         (need_noreturn_fixup): New global.
16871         (pass_dominator::execute): Fixup queued noreturn calls.
16872         (optimize_stmt): Queue calls that became noreturn for fixup.
16873         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
16874         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
16875         (el_to_fixup): New global.
16876         (eliminate_dom_walker::before_dom_childre): Queue calls that
16877         became noreturn for fixup.
16878         (eliminate): Fixup queued noreturn calls.
16879         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
16880         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
16881         (substitute_and_fold_dom_walker::before_dom_children): Queue
16882         alls that became noreturn for fixup.
16883         (substitute_and_fold): Fixup queued noreturn calls.
16885 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
16887         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
16888         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
16889         are building; for methods check ODR type of class they belong to if
16890         they may lead to a polymorphic call.
16891         (sem_function::compare_polymorphic_p): Be bit smarter about testing
16892         when function may lead to a polymorphic call.
16893         (sem_function::compare_type_list): Remove.
16894         (sem_variable::equals): Update use of compatible_types_p.
16895         (sem_variable::parse_tree_refs): Remove.
16896         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
16897         cdtor.
16898         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
16899         matching here.
16900         (func_checker::compatible_polymorphic_types_p): Break out from ...
16901         (unc_checker::compatible_types_p): ... here.
16902         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
16903         Declare.
16904         (unc_checker::compatible_types_p): Update.
16905         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
16906         Remove.
16908 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16910         PR rtl-optimization/65235
16911         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
16912         When first element of vec_concat is const_int, calculate its size
16913         using second element.
16915 2015-03-12  Richard Biener  <rguenther@suse.de>
16917         PR middle-end/65270
16918         * fold-const.c (operand_equal_p): Fix ordering of resetting
16919         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
16921 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16923         * config/s390/s390.c (s390_reorg): Move code to output nops after label
16924         to s390_reorg ().
16925         (s390_asm_output_function_label): Likewise.
16926         * config/s390/s390.c (s390_asm_output_function_label):
16927         Fix function label alignment with -mhtopatch.
16928         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
16929         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
16930         ("nop_2_byte"): New define_insn.
16931         ("nop_4_byte"): Likewise.
16932         ("nop_6_byte"): Likewise.
16933         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
16934         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
16936 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
16938         PR target/65103
16939         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
16940         register.
16942 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
16944         PR target/65044
16945         * toplev.c (process_options): Restrict Pointer Bounds Checker
16946         usage with Address Sanitizer.
16948 2015-03-12  Richard Biener  <rguenther@suse.de>
16950         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
16951         to split on.
16952         * omp-low.c (expand_omp_taskreg): Split block before removing
16953         the stmt.
16954         (expand_omp_target): Likewise.
16955         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
16956         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
16957         stmt to split_block.
16959 2015-03-12  Tom de Vries  <tom@codesourcery.com>
16961         PR rtl-optimization/64895
16962         * lra-lives.c (check_pseudos_live_through_calls): Use
16963         actual_call_used_reg_set instead of call_used_reg_set, if available.
16965 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
16967         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
16968         (cgraph_node::remove): Likewise.
16969         (cgraph_node::get_untransformed_body): Likewise.
16970         * varpool.c (varpool_node::remove): Likewise.
16971         (varpool_node::get_constructor): Add sanity check.
16973 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
16975         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
16976         old GCC versions.
16977         (-fabi-compat-version): Likewise.
16978         (-ffriend-injection): Likewise.
16979         (-Wdeclaration-after-statement): Likewise.
16980         (-fomit-frame-pointer): Likewise.
16981         (-ftree-coalesce-inlined-vars): Likewise.
16982         (-fvisibility=): Likewise.
16983         * doc/extend.texi (Typeof): Likewise.
16984         (Zero Length): Likewise.
16985         (Escaped Newlines): Likewise.
16986         (Compound Literals): Likewise.
16987         (Function Attributes): Likewise.
16988         (Label Attributes): Likewise.
16989         (Type Attributes): Likewise.
16990         (Function Names): Likewise.
16991         (Other Builtins): Likewise.
16992         (Function Specific Option Pragmas): Likewise.
16993         (C++ Interface): Likewise.
16995 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
16997         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
16999 2015-03-11  Marek Polacek  <polacek@redhat.com>
17001         PR tree-optimization/65388
17002         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
17004 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
17006         PR target/65296
17007         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
17008         * configure: Regenerate.
17009         * config.in: Regenerate.
17010         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
17011         [-mn-flash]: Document it.
17012         [__AVR_ARCH__]: Document avrtiny.
17014         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
17015         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
17016         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
17018 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17020         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
17022 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
17024         PR target/65242
17025         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
17026         allow reloads of PLUS in floating point/VSX registers.
17028 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
17030         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
17031         crypto_sha256_fast.
17032         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
17034 2015-03-11  Richard Biener  <rguenther@suse.de>
17036         PR tree-optimization/65310
17037         * tree-sra.c (build_ref_for_offset): Also preserve larger
17038         alignment.
17040 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
17042         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
17044 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
17046         PR target/65368
17047         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
17048         new define_expand.
17049         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
17051 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
17053         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
17054         (sem_function::equals_wpa): ... here.
17056 2015-03-10  Marek Polacek  <polacek@redhat.com>
17057             Jakub Jelinek  <jakub@redhat.com>
17059         PR sanitizer/65367
17060         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
17061         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
17062         separately.
17064 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
17066         PR target/65286
17067         * config/rs6000/t-linux: For powerpc64* target set
17068         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
17070 2015-03-10  Richard Biener  <rguenther@suse.de>
17072         PR middle-end/44563
17073         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
17074         for redirect_all_calls.
17076 2015-03-10  Marek Polacek  <polacek@redhat.com>
17078         * gdbinit.in (pcfun): Define and document.
17080 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
17082         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
17083         of libgomp-plugin.h.
17084         (find_target_compiler): Support a case when the path to gcc is
17085         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
17086         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
17087         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
17088         libgomp-plugin.h.
17089         (main): Use GCC_INSTALL_NAME as target_driver_name.
17090         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
17091         define.
17092         (mkoffload.o): Remove obsolete include path and defines.
17093         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
17095 2015-03-10  Richard Biener  <rguenther@suse.de>
17097         PR middle-end/63155
17098         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
17099         * tree-ssa-coalesce.c: Include timevar.h.
17100         (attempt_coalesce): Handle graph being NULL.
17101         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
17102         Split out abnormal coalescing to ...
17103         (perform_abnormal_coalescing): ... this function.
17104         (coalesce_ssa_name): Perform abnormal coalescing without computing
17105         live/conflict.
17106         (verify_ssa_coalescing_worker): New function.
17107         (verify_ssa_coalescing): Likewise.
17109 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
17111         PR target/65296
17112         * config.gcc (extra_options) [avr]: Remove.
17113         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
17114         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
17115         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
17117         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
17118         (-mmcu=): Add Var and MissingArgError properties.
17119         (-march=): Remove.
17120         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
17121         * config/avr/t-multilib: Regenerate.
17122         * config/avr/specs.h: New file.
17123         * config/avr/driver-avr.c: New file.
17124         * config/avr/genopt.sh: Remove file.
17125         * config/avr/avr-tables.opt: Remove file.
17126         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
17127         * config/avr/avr-c.c: Same.
17128         * avr-arch.h: Same.
17129         (avr_current_device): Remove proto.
17130         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
17131         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
17132         (EXTRA_SPEC_FUNCTIONS): Define.
17133         (avr_devicespecs_file): New specs function proto.
17134         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
17135         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
17136         (avr_current_device): Remove definition and usage.
17137         (avr_set_core_architecture): New static function.
17138         (avr_option_override): Use it.
17139         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
17140         (mcu_name): New static array.
17141         (comparator, avr_archs_str, avr_mcus_str): New static functions.
17142         (avr_inform_devices, avr_inform_core_architectures): New functions.
17143         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
17144         (avrlibc.h) [WITH_AVRLIBC]: Include.
17145         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
17146         (print_mcu): Rewrite from scratch.
17147         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
17148         Forward to avr-specific specs defined in device-specs file.
17149         * config/avr/t-avr (driver-avr.o): New rule.
17150         (avr-devices.o): Depend on avr-arch.h.
17151         (avr-mcus): No more depend on avr-tables.opt.
17152         (avr-tables.opt): Remove rule.
17153         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
17155 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
17157         * c-family/c.opt (fchkp-use-wrappers): New.
17158         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
17159         (chkp_wrap_function): New.
17160         (chkp_build_instrumented_fndecl): Support wrapped
17161         functions.
17162         * doc/invoke.texi (-fcheck-pointer-bounds): New.
17163         (-fchkp-check-incomplete-type): New.
17164         (-fchkp-first-field-has-own-bounds): New.
17165         (-fchkp-narrow-bounds): New.
17166         (-fchkp-narrow-to-innermost-array): New.
17167         (-fchkp-optimize): New.
17168         (-fchkp-use-fast-string-functions): New.
17169         (-fchkp-use-nochk-string-functions): New.
17170         (-fchkp-use-static-bounds): New.
17171         (-fchkp-use-static-const-bounds): New.
17172         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
17173         (-fchkp-check-read): New.
17174         (-fchkp-check-write): New.
17175         (-fchkp-store-bounds): New.
17176         (-fchkp-instrument-calls): New.
17177         (-fchkp-instrument-marked-only): New.
17178         (-fchkp-use-wrappers): New.
17179         (-static-libmpx): New.
17180         (-static-libmpxwrappers): New.
17182 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
17184         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
17185         (CHKP_SPEC): Add wrappers library.
17186         * c-family/c.opt (static-libmpxwrappers): New.
17188 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
17190         * config/i386/linux-common.h (LIBMPX_LIBS): New.
17191         (LIBMPX_SPEC): New.
17192         (CHKP_SPEC): New.
17193         * gcc.c (CHKP_SPEC): New.
17194         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
17195         * c-family/c.opt (static-libmpx): New.
17197 2015-03-10  Richard Biener  <rguenther@suse.de>
17199         PR middle-end/44563
17200         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
17201         for compare_type.
17202         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
17203         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
17204         (cgraph_add_edge_to_call_site_hash): Likewise.
17205         (cgraph_node::get_edge): Likewise.
17206         (cgraph_edge::set_call_stmt): Likewise.
17207         (cgraph_edge::remove_caller): Likewise.
17209 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
17211         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
17212         (callee_saved_gpr_regs_size): ... this.
17213         (callee_saved_regs_first_regno): Rename to ...
17214         (callee_saved_first_gpr_regno): ... this.
17215         (callee_saved_regs_last_regno) Rename to ...
17216         (callee_saved_last_gpr_regno): ... this.
17217         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
17218         variables.
17219         (nds32_initial_elimination_offset): Likewise.
17220         (nds32_expand_prologue): Likewise.
17221         (nds32_expand_epilogue): Likewise.
17222         (nds32_expand_prologue_v3push): Likewise.
17223         (nds32_expand_epilogue_v3pop): Likewise.
17224         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
17225         Adjust renamed variables.
17226         (nds32_output_stack_pop): Likewise.
17228 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17230         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
17231         code in comment.
17233 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
17235         PR rtl-optimization/65321
17236         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
17237         than shift mode.
17238         * var-tracking.c (use_narrower_mode): Likewise.
17240 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
17242         PR tree-optimization/65355
17243         * varasm.c (notice_global_symbol): Do not produce RTL.
17244         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
17245         anchor.
17246         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
17247         check for section anchors.
17249 2015-03-10  Alan Modra  <amodra@gmail.com>
17251         PR target/65286
17252         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
17253         to be single-arch by default.  Set cpu_is_64bit for powerpc64
17254         given --with-cpu=native.
17255         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
17256         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
17257         and powerpc64le.
17258         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
17259         rs6000_isa_flags rather than TARGET_64BIT.
17261 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
17262             Kaz Kojima  <kkojima@gcc.gnu.org>
17264         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
17266 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
17268         PR lto/65361
17269         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
17270         on a TREE_BINFO, instead use BINFO_TYPE.
17272 2015-03-09  Richard Biener  <rguenther@suse.de>
17274         PR middle-end/65270
17275         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
17276         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
17277         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
17278         of that.  When comparing dereferences compare alignment.
17279         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
17281 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
17283         * ipa-inline-analysis.c (check_callers): Check
17284         node->can_remove_if_no_direct_calls_and_refs_p.
17285         (growth_likely_positive): Reorganize to call
17286         can_remove_if_no_direct_calls_p later.
17287         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
17288         will_be_removed_from_program_if_no_direct_calls_p): Add
17289         will_inline parameter.
17290         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
17291         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
17292         Handle inliner case correctly.
17294 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17296         PR tree-optimization/63743
17297         * cfgexpand.c (reorder_operands): Also reorder if only second operand
17298         had its definition forwarded by TER.
17300 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
17302         PR lto/65316
17303         * ipa-utils.h (types_odr_comparable): Add strict argument.
17304         * ipa-devirt.c: Fix whitespace;
17305         (odr_hasher): Remove.
17306         (odr_name_hasher, odr_vtable_hasher): New hashers.
17307         (can_be_name_hashed_p): New predicate.
17308         (hash_type_name): remove.
17309         (hash_odr_name): New.
17310         (odr_name_hasher::hash): new.
17311         (can_be_vtable_hashed_p): New.
17312         (hash_odr_vtable): New.
17313         (odr_vtable_hasher::hash): New.
17314         (types_same_for_odr): Add strict parameter.
17315         (types_odr_comparable): Likewise.
17316         (odr_name_hasher::equal): New.
17317         (odr_vtable_hasher::equal): New.
17318         (odr_name_hasher::remove): New.
17319         (odr_hash_type): Change to hash_table<odr_name_hasher>.
17320         (odr_vtable_hash_type): New.
17321         (odr_vtable_hash): New.
17322         (odr_subtypes_equivalent_p): Do strict comparsion.
17323         (add_type_duplicate): Merge type names; cleanup; avoid type
17324         duplicates.
17325         (register_odr_type): Initialize vtable hash.
17326         (build_type_inheritance_graph): Likewise
17327         (get_odr_type): Reorg to use two hashes.
17328         (dump_possible_polymorphic_call_targets): Move sanity check after debug
17329         output.
17330         (ipa_devirt): Dump type_inheritance_graph.
17331         (types_same_for_odr): Add strict mode.
17333 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
17335         PR ipa/65334
17336         * cgraph.h (symtab_node): Add definition_alignment,
17337         can_increase_alignment_p and increase_alignment.
17338         * symtab.c (symtab_node::can_increase_alignment_p,
17339         increase_alignment_1, symtab_node::increase_alignment,
17340         symtab_node::definition_alignment): New.
17341         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
17342         can_increase_alignment_p.
17343         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
17344         * tree-vect-stmts.c (ensure_base_align): Likewise.
17345         * varasm.c (function_section_1): Use definition_alignment.
17346         (assemble_start_function): Likewise.
17347         (emit_local): likewise.
17348         (build_constant_desc): Likewsie.
17349         (output_constant_def_contents): Likewise.
17350         (place_block_symbol): Likewise.
17351         (output_object_block): Likewise.
17353 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
17355         PR ipa/65316
17356         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
17357         when outputting debug.
17359 2015-03-07  Marek Polacek  <polacek@redhat.com>
17360             Martin Uecker  <uecker@eecs.berkeley.edu>
17362         PR sanitizer/65280
17363         * doc/invoke.texi: Update description of -fsanitize=bounds.
17365 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
17367         * tree-ssa-phiopt.c (neg_replacement): Remove.
17368         (tree_ssa_phiopt_worker): Remove negate optimization.
17370 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
17372         PR ipa/65302
17373         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
17375 2015-03-06  Richard Biener  <rguenther@suse.de>
17377         PR middle-end/64928
17378         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
17379         and liveout_obstack members.
17380         (calculate_live_on_exit): Remove.
17381         (calculate_live_ranges): Change declaration.
17382         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
17383         (new_tree_live_info): Adjust.
17384         (calculate_live_ranges): Delete livein when not wanted.
17385         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
17386         Deal with partly deleted live info.
17387         (loe_visit_block): Remove temporary bitmap by using
17388         bitmap_ior_and_compl_into.
17389         (live_worklist): Adjust accordingly.
17390         (calculate_live_on_exit): Make static.
17391         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
17392         we do not need livein.
17394 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
17396         * real.c (real_from_string): Fix typo in assertion.
17398 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
17400         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
17401         the patch.
17403 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
17405         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
17407 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
17409         PR target/64342
17410         * lra-assigns.c (find_hard_regno_for): Rename to
17411         find_hard_regno_for_1.  Add a new parameter.
17412         (find_hard_regno_for): New function using find_hard_regno_for_1.
17414 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17416         PR rtl-optimization/65067
17417         * expmed.c (store_bit_field, extract_bit_field): Reworked the
17418         strict volatile bitfield handling.
17420 2015-03-05  Martin Liska  <mliska@suse.cz>
17422         PR ipa/65318
17423         * ipa-icf.c (sem_variable::equals): Compare variables types.
17425 2015-03-05  Richard Henderson  <rth@redhat.com>
17427         PR target/65121
17428         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
17429         correctly check weak symbol binding.
17431 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
17433         PR middle-end/65315
17434         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
17435         needed alignment.
17437 2015-03-05  Martin Liska  <mliska@suse.cz>
17439         * ipa-inline.c (inline_small_functions): Set default value to
17440         prevent warning during bootstrap.
17441         * tree.h: Add pragma guard that ignores false positives during
17442         bootstrap.
17444 2015-03-05  Richard Biener  <rguenther@suse.de>
17446         PR tree-optimization/65310
17447         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17448         Properly preserve alignment of the base of the access.
17450 2015-03-05  Richard Biener  <rguenther@suse.de>
17452         PR ipa/65270
17453         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
17454         Compare dependence info.
17456 2015-03-05  Richard Biener  <rguenther@suse.de>
17458         PR middle-end/65233
17459         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
17460         tree-into-ssa.h.
17461         (walk_ssa_copies): Revert last chage.  Instead do not walk
17462         SSA names registered for SSA update.
17464 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
17466         PR ipa/65270
17467         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
17468         vtable references for their containing type.
17469         (sem_function::equals_wpa): Compare TYPE_RESTRICT
17470         and type attributes.
17472 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
17474         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
17475         before negating it.
17476         * stor-layout.c (finalize_record_size): Revert latest change.
17478 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
17480         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
17482 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
17484         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
17485         for correct comdat handling.
17486         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
17487         Likewise.
17488         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
17489         (used_from_object_file_p_worker): Remove.
17490         (cgraph_node::only_called_directly_or_alised): Add
17491         used_from_object_file_p.
17492         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
17493         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
17494         can_remove_if_no_direct_calls_and_refs_p.
17496 2015-03-04  Nick Clifton  <nickc@redhat.com>
17498         * config/rl78/rl78.h (enum reg_class): Remove real registers from
17499         General register class.
17500         * config/rl78/rl78-real.md: Replace general register constraints
17501         with real+virtual register constraints.
17503 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17505         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
17506         from checking for -mhtm option.
17508 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
17510         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
17511         (struct ipa_sra_check_caller_data): Add has_thunk field.
17512         (ipa_sra_check_caller): Check for thunk.
17513         (ipa_sra_preliminary_function_checks): Give up on function with
17514         thunks.
17515         (ipa_early_sra): Use call_for_symbol_and_aliases.
17517 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
17519         PR target/65249
17520         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
17521         called for __stack_chk_guard symbol.
17523 2015-03-03  DJ Delorie  <dj@redhat.com>
17525         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
17526         inc/dec.
17527         (*addhi3_real): Likewise.
17528         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
17529         pattern to match incrementing memory.
17530         * config/rl78/predicates.md (rl78_1_2_operand): New.
17531         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
17532         it's the same and only mem.
17533         (rl78_alloc_physical_registers_op2): If there's effectively only
17534         one MEM, transcode it into HL.
17535         (rl78_far_p): Reject addresses that aren't legitimate.
17537 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
17539         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
17540         negating it.
17542         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
17544 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
17546         Implement call0 ABI for xtensa
17547         * config/xtensa/constraints.md ("a" constraint): Include stack
17548         pointer in case of call0 ABI.
17549         ("q" constraint): Make empty in case of call0 ABI.
17550         ("D" constraint): Include stack pointer in case of call0 ABI.
17551         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
17552         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
17553         prototypes.
17554         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
17555         variable.
17556         (xtensa_regno_to_class): Make it a local variable in the
17557         function xtensa_regno_to_class.
17558         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
17559         macro, function prototype and implementation.
17560         (reg_nonleaf_alloc_order): Make it a local variable in the
17561         function order_regs_for_local_alloc.
17562         (xtensa_conditional_register_usage): New function.
17563         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
17564         (xtensa_valid_move): Allow direct moves to stack pointer
17565         register in call0 ABI.
17566         (xtensa_setup_frame_addresses): Only spill register windows in
17567         windowed ABI.
17568         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
17569         call0 ABI respectively.
17570         (xtensa_function_arg_1): Only mark a7 register for copying in
17571         windowed ABI.
17572         (xtensa_call_save_reg): New function.
17573         (compute_frame_size): Add space for callee saved register
17574         storage to the frame size in call0 ABI.
17575         (xtensa_expand_prologue): Generate code to set up stack frame
17576         and save callee-saved registers in call0 ABI.
17577         (xtensa_expand_epilogue): New function.
17578         (xtensa_set_return_address): New function.
17579         (xtensa_return_addr): Calculate return address in call0 ABI.
17580         (xtensa_builtin_saveregs): Only mark a7 register for copying and
17581         emit copying code in windowed ABI.
17582         (order_regs_for_local_alloc): Add preferred register allocation
17583         order for non-leaf function in call0 ABI.
17584         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
17585         (xtensa_asm_trampoline_template): Add trampoline generation for
17586         call0 ABI.
17587         (xtensa_trampoline_init): Add trampoline initialization for
17588         call0 ABI.
17589         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
17590         functions.
17591         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
17592         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
17593         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
17594         ABI call-used registers.
17595         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
17596         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
17597         call0 ABI.
17598         (REG_CLASS_CONTENTS): Include all registers into the preferred
17599         reload registers set, adjust the set in the
17600         xtensa_conditional_register_usage.
17601         (xtensa_regno_to_class): Drop variable declaration.
17602         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
17603         function.
17604         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
17605         respectively.
17606         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
17607         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
17608         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
17609         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
17610         location in call0 ABI.
17611         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
17612         stack adjustment size when handling exception.
17613         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
17614         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
17615         definitions.
17616         ("return" pattern): Generate ret.n/ret in call0 ABI.
17617         ("epilogue" pattern): Expand epilogue.
17618         ("nonlocal_goto" pattern): Use default in call0 ABI.
17619         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
17620         emit eh_set_a0_* depending on ABI.
17621         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
17622         ("eh_set_a0_call0", "blockage"): New patterns.
17624 2015-03-03  Martin Liska  <mliska@suse.cz>
17626         PR ipa/65287
17627         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
17629 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
17631         PR 65138/target
17632         * config/rs6000/rs6000-tables.opt: Regenerate table.
17634 2015-03-03  Renlin Li  <renlin.li@arm.com>
17636         * doc/md.texi (@item ^): Change ? into ^.
17638 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
17640         * doc/tm.texi: Regenerated.
17642 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
17644         * builtins.c (expand_builtin_return_addr): Add
17645         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
17646         surrounding #ifdef.
17647         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
17648         definition to 1.
17649         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
17650         Likewise.
17651         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
17652         undefined.
17653         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
17654         paragraph.
17656 2015-03-03  Martin Jambor  <mjambor@suse.cz>
17657             Eric Botcazou  <ebotcazou@adacore.com>
17659         * tree-sra.c (ipa_sra_check_caller_data): New type.
17660         (has_caller_p): Removed.
17661         (ipa_sra_check_caller): New function.
17662         (ipa_sra_preliminary_function_checks): Use it.
17664 2015-03-03  Martin Liska  <mliska@suse.cz>
17666         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
17667         instead of if branch.
17669 2015-03-03  Martin Liska  <mliska@suse.cz>
17671         PR ipa/65282
17672         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
17674 2015-03-23  Jeff Law  <law@redhat.com>
17676         PR tree-optimization/65241
17677         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
17678         hash table if INSERT is true.
17680 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
17682         PR target/65296
17683         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
17685 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
17687         PR target/64331
17688         * config/avr/avr.c (context.h, tree-pass.h): Include them.
17689         (avr_pass_data_recompute_notes): New static variable.
17690         (avr_pass_recompute_notes): New class.
17691         (avr_register_passes): New static function.
17692         (avr_option_override): Call it.
17694 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
17696         Fix various problems with specs file generation.
17698         PR target/65296
17699         * config.gcc (extra_gcc_objs) [avr]: Remove.
17700         * config/avr/driver-avr.c: Remove file.
17701         * config/avr/t-avr (driver-avr.o): Remove rule.
17702         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
17703         INCLUDES to build.  Depend on TM_H.
17704         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
17705         build warnings.  Fix non-matching types and non-existing %-codes.
17706         (tm.h): Include.
17707         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
17708         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
17709         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
17710         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
17711         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
17712         (LIBGCC_SPEC): Remove definitions.
17714 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
17716         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
17717         to create a register in testing mode.
17719 2015-03-03  Martin Liska  <mliska@suse.cz>
17720             Jan Hubicka  <hubicka@ucw.cz>
17722         PR ipa/65263
17723         * cgraph.c (cgraph_node::has_thunk_p): New function.
17724         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
17725         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
17726         (sem_function::merge): Assert is changed.
17728 2015-03-03  Martin Liska  <mliska@suse.cz>
17729             Martin Jambor  <mjambor@suse.cz>
17731         PR ipa/65087
17732         * ipa-icf.c (sem_item_optimizer::execute): Change function
17733         return value to boolean.
17734         (sem_item_optimizer::merge_classes): Likewise.
17735         (ipa_icf_driver): Return TODO_remove_functions in case there's
17736         a merge operation processed.
17737         * ipa-icf.h: Change function return value to boolean.
17739 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17741         PR 65138/target
17742         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
17743         processor type for 64-bit little endian PowerPC.
17745         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17746         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
17747         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
17748         printing built-in mask so it does not pass NULL pointers.
17750         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
17751         -mcpu=powerpc64le.
17753 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
17755         PR target/58158
17756         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
17757         !ISA_HAS_FP_CONDMOVE.
17759 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
17761         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
17762         reload_completed.
17764 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
17766         * doc/invoke.texi (Options for Code Generation Conventions):
17767         Fix URL of DSO paper.
17769 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
17771         PR ipa/65130
17772         * ipa-inline.c (check_callers): Looks for recursion.
17773         (inline_to_all_callers): Give up on uninlinable or recursive edges.
17774         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
17775         summary of inline clones.
17776         (do_estimate_growth_1): Fix recursion check.
17778 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
17780         PR ipa/64988
17781         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
17782         comdat groups.
17784 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
17785             Aldy Hernandez  <aldyh@redhat.com>
17787         PR lto/65276
17788         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
17789         when checking TYPE_BINFO.
17791 2015-03-02  Richard Biener  <rguenther@suse.de>
17793         PR ipa/65270
17794         * ipa-icf-gimple.c: Include builtins.h.
17795         (func_checker::compare_memory_operand): Compare base alignment.
17797 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17799         PR target/65184
17800         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
17801         are never passed by reference.
17803 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17805         PR target/65183
17806         * tree-chkp.c (chkp_check_lower): Don't check against
17807         zero bounds for already instrumented functions.
17808         (chkp_check_upper): Likewise.
17809         (chkp_fini): Clean pass local data to avoid wrong reusage.
17811 2015-02-28  Martin Liska  <mliska@suse.cz>
17812             Jan Hubicka  <hubicka@ucw.cz>
17814         * ipa-icf.c (sem_variable::equals): Improve debug output;
17815         get variable constructor.
17816         (sem_variable::parse): Do not filter out too early; give up on
17817         volatile and register vars.
17818         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
17819         variables.
17820         * ipa-icf.h (sem_variable::init): Do not set ctor.
17821         (sem_variable::ctor): Remove.
17823 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
17825         PR middle-end/65233
17826         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
17828 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17830         * ipa-icf.c: Include stor-layout.h
17831         (sem_function::compare_cgraph_references): Rename to ...
17832         (sem_item::compare_cgraph_references): ... this one.
17833         (sem_variable::equals_wpa): New function
17834         (sem_variable::equals): Do not check stuff already verified by
17835         equals_wpa.
17836         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
17837         * ipa-icf.h (sem_item): Add compare_cgraph_references.
17838         (sem_function): Remove compare_cgraph_references.
17839         (sem_variable): Turns equals_wpa into non-inline.
17841 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17843         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
17844         (sem_item::add_expr): New function.
17845         (sem_function::hash_stmt): Handle operands of most statements.
17846         (sem_variable::get_hash): Hash the actual constructor.
17847         * ipa-icf.h (sem_item): Add add_expr.
17848         (sem_function): Update prototype of hash_stmt
17850 2015-02-28  Martin Liska  <mliska@suse.cz>
17851             Jan Hubicka  <hubicka@ucw.cz>
17853         PR ipa/65245
17854         * ipa-icf-gimple.c (func_checker::compare_function_decl):
17855         Remove.
17856         (func_checker::compare_variable_decl): Skip symtab vars.
17857         (func_checker::compare_cst_or_decl): Update.
17858         * ipa-icf.c (sem_function::parse): Do not consider aliases.
17859         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
17860         use correct symtab predicates.
17861         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
17862         (sem_variable::parse):  Update comment.
17863         (sem_item_optimizer::build_graph): Consider ultimate aliases
17864         for references.
17866 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17868         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
17869         of OBJ_TYPE_REF.
17871 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17873         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
17874         (sem_variable::merge) Likewise.
17876 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17878         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
17879         target; also match flag_ipa_devirt.
17881 2015-03-01  Martin Liska  <mliska@suse.cz>
17882             Jan Hubicka  <hubicka@ucw.cz>
17884         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
17885         Validate variable alignment.
17886         * ipa-icf.c (sem_function::equals_private): Be more precise
17887         about non-common function attributes.
17888         (sem_variable::equals): Likewise.
17890 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17892         PR ipa/65237
17893         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
17894         across COMDAT group boundary.
17896 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17898         PR ipa/65232
17899         * ipa-icf.c (clear_decl_rtl): New function.
17900         (sem_function::merge): Clear RTL before forming alias.
17901         (sem_variable::merge): Clear RTL before forming alias.
17903 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
17905         PR ipa/65236
17906         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
17908 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
17910         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
17911         to neon_to_gp<q>.
17913 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
17915         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
17916         a typo in the description.
17918 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
17920         PR target/64317
17921         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17922         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17923         * lra-constraints.c: Include "params.h".
17924         (EBB_PROBABILITY_CUTOFF): Use
17925         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
17926         (lra_inheritance): Use '<' instead of '<=' for
17927         EBB_PROBABILITY_CUTOFF.
17928         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
17929         Document change.
17931 2015-02-27  Martin Liska  <mliska@suse.cz>
17933         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
17934         vector length condition.
17936 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
17938         * doc/extend.texi (x86 transactional memory intrinsics):
17939         Reorganize discussion of _xbegin.  Clarify that the return
17940         value is a bit mask.  Expand example and move to end of section.
17942 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
17943             Aldy Hernandez  <aldyh@redhat.com>
17945         PR rtl-optimization/65220
17946         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
17948 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
17950         PR target/65032
17951         * lra-remat.c (update_scratch_ops): New.
17952         (do_remat): Call it.
17953         * lra.c (lra_register_new_scratch_op): New. Take code from ...
17954         (remove_scratches): ... here.
17955         * lra-int.h (lra_register_new_scratch_op): New prototype.
17957 2015-02-27  Marek Polacek  <polacek@redhat.com>
17959         PR c/65040
17960         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
17961         -Wformat-signedness anymore.
17963 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17965         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
17966         function.
17967         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
17969 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17971         * config/s390/s390.c (enum s390_builtin):
17972         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
17973         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
17974         (s390_init_builtins): Generate new builtin functions.
17975         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
17976         (s390_sfpc, s390_efpc): New pattern definitions.
17978 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17980         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
17981         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
17982         (s390_builtin_decls): New array.
17983         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
17984         (s390_builtin_decl): New function.
17985         (TARGET_BUILTIN_DECL): Define macro.
17987 2015-02-27  Richard Biener  <rguenther@suse.de>
17989         PR middle-end/63175
17990         * builtins.c (get_object_alignment_2): Make sure to re-apply
17991         the ANDed mask after recursing to its operand gets us a new
17992         misalignment bit position.
17994 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
17995             Martin Liska  <mliska@suse.cz>
17997         PR bootstrap/65150
17998         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
17999         Use address_matters_p.
18000         (redirect_all_callers, set_addressable): New functions.
18001         (sem_function::merge): Reorganize and fix merging issues.
18002         (sem_variable::merge): Likewise.
18003         (sem_variable::compare_sections): Remove.
18004         * common.opt (fmerge-all-constants, fmerge-constants): Remove
18005         Optimization flag.
18006         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
18007         redirect them.
18008         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
18009         decl is used.
18010         (address_matters_1): New function.
18011         (symtab_node::address_matters_p): New function.
18012         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
18013         check for merged flag.
18014         * cgraph.h (address_matters_p): Declare.
18015         (symtab_node::address_taken_from_non_vtable_p): Remove.
18016         (symtab_node::address_can_be_compared_p): New method.
18017         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
18018         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
18019         Remove.
18020         (comdat_can_be_unshared_p_1) Use address_matters_p.
18021         (update_vtable_references): Fix formating.
18022         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
18023         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
18024         * cgraphclones.c: Preserve merged and icf_merged flags.
18026 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
18028         * doc/extend.texi (Function Attributes): Fix spelling and typos.
18029         (Label Attributes): Likewise.
18030         (Cilk Plus Builtins): Likewise.
18031         (ARC SIMD Built-in Functions): Likewise.
18032         (ARM C Language Extensions (ACLE)): Likewise.
18033         (PowerPC Built-in Functions): Likewise.
18034         (PowerPC Hardware Transactional Memory Built-in Functions):
18035         Likewise.
18037 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
18039         PR tree-optimization/65216
18040         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
18041         new stmt and new SSA_NAME for lhs whenever the arguments have
18042         changed and weren't just swapped.  Fix comment typo.
18044         PR tree-optimization/65215
18045         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
18046         for PDP endian targets.
18047         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
18048         Fix up formatting issues.
18049         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
18050         size is smaller than the original, adjust MEM_REF offset by the
18051         difference of sizes.  Use is_gimple_mem_ref_addr instead of
18052         is_gimple_min_invariant test to avoid adding address temporaries.
18054 2015-02-26  Martin Liska  <mliska@suse.cz>
18055             Jan Hubicka  <hubicka@ucw.cz>
18057         PR ipa/64693
18058         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
18059         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
18060         (sem_item_optimizer::process_cong_reduction): Include division by
18061         sensitive references.
18062         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
18063         * ipa-ref.c (ipa_ref::address_matters_p): New function.
18064         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
18066 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
18068         PR target/65192
18069         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
18070         Remove.
18071         * config/avr/avr.c: Same.
18072         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
18073         Refuse any constant address not in 0..0xbf.
18074         * config/avr/avr.md (*mov<mode>, *movsf): Remove
18075         tiny_valid_direct_memory_access_range from insn conditions.
18076         (mov<mode>): Don't special-case expansion of avrtiny addresses.
18078 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
18080         PR target/61142
18081         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
18082         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
18083         * config/sh/predicates.md (const_logical_operand): New predicate.
18084         * config/sh/sh.md: Add new peephole2 patterns.
18086 2015-02-26  Marek Polacek  <polacek@redhat.com>
18088         PR ipa/65008
18089         * ipa-inline.c (early_inliner): Recompute inline parameters.
18091 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18093         PR target/65171
18094         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
18095         instructions with TImode operands are included in the analysis.
18097 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
18099         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
18100         of an EDGE_FSM_THREAD.
18102 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18104         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
18106 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
18108         PR debug/46102
18109         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
18111 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
18113         PR tree-optimization/65048
18114         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
18115         (thread_through_all_blocks): Call valid_jump_thread_path.
18116         Remove invalid FSM jump-thread paths.
18118 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
18120         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
18121         (ipa_write_optimization_summaries): Likewise.
18122         * tree-streamer.h: Include data-streamer.h.
18123         (streamer_mode_table): Declare extern variable.
18124         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
18125         * lto-streamer-out.c (lto_output_init_mode_table,
18126         lto_write_mode_table): New functions.
18127         (produce_asm_for_decls): Call lto_write_mode_table when streaming
18128         offloading LTO.
18129         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
18130         (lto_create_simple_input_block): Add mode_table argument to the
18131         lto_input_block constructors.
18132         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
18133         Likewise.
18134         * data-streamer-in.c (string_for_index): Likewise.
18135         * ipa-inline-analysis.c (inline_read_section): Likewise.
18136         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
18137         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
18138         * lto-streamer-in.c (lto_read_body_or_constructor,
18139         lto_input_toplevel_asms): Likewise.
18140         (lto_input_mode_table): New function.
18141         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
18142         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
18143         Use bp_pack_machine_mode.
18144         * real.h (struct real_format): Add name field.
18145         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
18146         (class lto_input_block): Add mode_table member.
18147         (lto_input_block::lto_input_block): Add mode_table_ argument,
18148         initialize mode_table.
18149         (struct lto_file_decl_data): Add mode_table field.
18150         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
18151         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
18152         unpack_ts_decl_common_value_fields,
18153         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
18154         * tree-streamer.c (streamer_mode_table): New variable.
18155         * real.c (ieee_single_format, mips_single_format,
18156         motorola_single_format, spu_single_format, ieee_double_format,
18157         mips_double_format, motorola_double_format,
18158         ieee_extended_motorola_format, ieee_extended_intel_96_format,
18159         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
18160         ibm_extended_format, mips_extended_format, ieee_quad_format,
18161         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
18162         decimal_single_format, decimal_double_format, decimal_quad_format,
18163         ieee_half_format, arm_half_format, real_internal_format): Add name
18164         field.
18165         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
18167 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
18169         PR target/65161
18170         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
18171         reordering for selective scheduling.
18173 2015-02-26  Terry Guo  <terry.guo@arm.com>
18175         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
18176         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
18177         (arm_arch_no_volatile_ce): Declare new global variable.
18178         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
18179         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
18180         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
18181         (TARGET_NO_VOLATILE_CE): New macro.
18182         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
18183         volatile memory access in IT block
18185 2015-02-25  Kai Tietz  <ktietz@redhat.com>
18187         PR tree-optimization/61917
18188         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
18189         that reduc_def_stmt is null.
18191 2015-02-25  Martin Liska  <mliska@suse.cz>
18193         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
18194         hard register variables.
18196 2015-02-25  Kai Tietz  <ktietz@redhat.com>
18198         PR target/64212
18199         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
18200         (symtab::noninterposable_alias): Likewise.
18202 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
18204         PR target/65167
18205         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
18206         bounds registers.
18207         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
18209 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
18211         PR target/64997
18212         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
18213         as split condition; force split via '#' in output pattern.
18215 2015-02-25  Richard Biener  <rguenther@suse.de>
18216             Kai Tietz  <ktietz@redhat.com>
18218         PR tree-optimization/61917
18219         * tree-vect-loop.c (vectorizable_reduction): Allow
18220         vect_internal_def without reduction to exit graceful.
18222 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
18224         PR target/65196
18225         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
18226         only with NONDEBUG_INSN_P.
18228 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
18230         Use variadic macros with avr-log.c.
18232         * config/avr/avr-protos.h (avr_vdump): New prototype.
18233         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
18234         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
18235         * config/avr/avr-log.c: Adjust comments.
18236         (avr_vdump): New function.
18237         (avr_vadump): Pass caller as 2nd argument instead of format string.
18238         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
18239         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
18241 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
18243         PR lto/64374
18244         * target.def (target_option_stream_in): New target hook.
18245         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
18246         targetm.target_option.post_stream_in if non-NULL.
18247         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
18248         * doc/tm.texi: Updated.
18249         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
18250         function.
18251         (TARGET_OPTION_POST_STREAM_IN): Redefine.
18253 2015-02-24  Jeff Law  <law@redhat.com>
18255         PR target/65117
18256         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
18257         of operand 0 and operand 2.
18258         (zero_cost_loop_end, loop_end): Similarly.
18260 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
18262         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
18263         CXX_MEM_STAT_INFO.
18265 2015-02-24  DJ Delorie  <dj@redhat.com>
18267         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
18268         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
18269         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
18270         instead of hardcoding SImode.
18272 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
18274         * omp-low.c (create_omp_child_function): Tag entrypoint
18275         functions with a special attribute.
18277 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18279         PR target/65058
18280         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
18282 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
18284         PR rtl-optimization/65123
18285         * lra-remat.c (operand_to_remat): Check hard regs in insn
18286         definition too.
18288 2015-02-24  Nick Clifton  <nickc@redhat.com>
18290         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
18291         to the assembler.
18293 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
18295         PR libgomp/64625
18296         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
18297         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
18298         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
18299         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
18300         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
18301         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
18302         (BUILT_IN_GOACC_PARALLEL): Specify as
18303         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
18304         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
18305         * builtin-types.def
18306         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
18307         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
18308         Remove function types.
18309         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
18310         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
18311         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
18312         New function types.
18314 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
18316         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
18318 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
18320         PR tree-optimization/65170
18321         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
18322         if val[1] < 0, clear also val[2] and return 3.
18324 2015-02-24  Alan Modra  <amodra@gmail.com>
18326         PR target/65172
18327         * config/rs6000/rs6000.c (get_memref_parts): Only return true
18328         when *base is a reg.  Handle nested plus addresses.  Simplify
18329         pre_modify test.
18331 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
18333         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
18334         use natural alignment when optimizing for size.
18336 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
18338         PR target/65153
18339         * config/sh/sh.md (movsicc_true+3): Remove peephole.
18340         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
18341         * config/sh/sh.c (replace_n_hard_rtx): Remove.
18343 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
18345         PR fortran/63427
18346         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
18347         too big for a wide_int.  Implement missing wrapping operation.
18349 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
18351         PR target/65163
18352         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
18353         instead of const_int 4294901760.
18355 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
18357         * config/avr/t-avr: Fix typo in comment.
18359 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
18361         * doc/rtl.texi (fma): Clarify documentation.
18363 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
18365         PR debug/58123
18366         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
18367         over input_location.
18369 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
18371         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
18372         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
18373         restrict alignments to absolute_biggest_alignment.
18374         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
18375         Define.
18376         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
18377         * doc/tm.texi: Regenerate.
18378         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
18380 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
18382         PR target/64172
18383         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
18385 2015-02-20  Richard Biener  <rguenther@suse.de>
18387         PR tree-optimization/65136
18388         * tree-ssa-propagate.c: Include cfgloop.h.
18389         (replace_phi_args_in): Avoid replacing loop latch edge PHI
18390         arguments with constants.
18392 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
18393             Martin Liska  <mliska@suse.cz>
18395         PR target/63892
18396         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
18397         don't try to create_thunk if stdarg_p.  If
18398         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
18399         redirect_callers if possible.
18400         (sem_item_optimizer::execute): Call unregister_hooks here...
18401         (ipa_icf_driver): ... instead of here.
18403 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18405         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
18406         Mark operand 0 as earlyclobber in 2nd alternative.
18407         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
18408         Write negated shift amount into QI lowpart operand 0 and use it
18409         in the shift step.
18410         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
18412 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
18414         * cgraph.h (clone_function_name_1): Declare.
18415         * cgraphclones.c (clone_function_name_1): New function.
18416         (clone_function_name): Use it.
18417         * lto-partition.c: Include "stringpool.h".
18418         (must_not_rename, maybe_rewrite_identifier)
18419         (validize_symbol_for_target): New static functions.
18420         (privatize_symbol_name): Use must_not_rename.
18421         (promote_symbol): Call validize_symbol_for_target.
18422         (lto_promote_cross_file_statics): Likewise.
18423         (lto_promote_statics_nonwpa): Likewise.
18425 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
18427         PR target/64452
18428         * config/avr/avr.md (pushhi_insn): New insn.
18429         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
18431 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
18432             Jakub Jelinek  <jakub@redhat.com>
18434         * tree-streamer.c (preload_common_nodes): Don't preload
18435         TI_VA_LIST* for offloading.
18436         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
18437         in_lto_p.
18439 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
18441         * config/pa/pa.c (pa_emit_move_sequence): Always force
18442         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
18443         note on insn.
18445         * config/pa/pa.c (pa_reloc_rw_mask): New function.
18446         (TARGET_ASM_RELOC_RW_MASK): Define.
18447         (pa_cannot_force_const_mem): Revert previous change.
18449 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
18450             Jan Hubicka  <hubicka@ucw.cz>
18452         PR ipa/65028
18453         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
18454         across jump functions.
18456 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
18458         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
18460 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
18462         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
18464 2015-02-19  Richard Henderson  <rth@redhat.com>
18466         PR middle-end/65074
18467         * varasm.c (default_binds_local_p_2): Don't test node->definition;
18468         test DECL_EXTERNAL independent of symtab_node.
18470 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
18472         PR lto/65012
18473         * varpool.c (varpool_node::get_constructor): Return early
18474         if this->lto_file_data is NULL.
18476 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18478         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
18479         (rank_for_schedule_debug): Update.
18480         (ready_sort): Make static.  Move sorting logic to ...
18481         (ready_sort_debug, ready_sort_real): New static functions.
18482         (schedule_block): Sort both debug insns and real insns in preparation
18483         for ready list trimming.  Improve debug output.
18484         * sched-int.h (ready_sort): Remove global declaration.
18486 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
18488         * ipa-icf.c (sem_function::equals_private): Adjust.
18489         (sem_function::bb_dict_test): Take a vec<int> * instead of
18490         auto_vec<int>.
18491         * ipa-icf.h (bb_dict_test): Likewise.
18493 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
18495         PR gcov-profile/64634
18496         * tree-eh.c (frob_into_branch_around): Fix up typos
18497         in function comment.
18498         (lower_catch): Put eh_seq resulting from EH lowering of
18499         the cleanup sequence after the cleanup rather than before it.
18501 2015-02-18  Tom de Vries  <tom@codesourcery.com>
18503         * common.opt (fstdarg-opt): New option.
18504         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
18505         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
18506         (@item -fstdarg-opt): New item.
18508 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
18510         PR target/65064
18511         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
18512         for common symbols.
18514 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
18516         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
18517         insn-modes.h.
18518         (ALL_HOST_OBJS): Add mkoffload.o.
18519         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
18521 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
18523         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
18524         (compare_virtual_tables): Be smarter about skipping typeinfos;
18525         do sane output on virtual table table mismatch.
18526         (warn_odr): Be ready for forward declarations of enums;
18527         output sane info on base mismatch and virtual table mismatch.
18528         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
18529         when only one type is polymorphic.
18530         (get_odr_type): Fix hashtable corruption.
18531         (dump_odr_type): Dump mangled names.
18533 2015-02-18  Richard Biener  <rguenther@suse.de>
18535         PR tree-optimization/65063
18536         * tree-predcom.c (determine_unroll_factor): Return 1 if we
18537         have replaced looparound PHIs.
18539 2015-02-18  Martin Liska  <mliska@suse.cz>
18541         * lto-streamer.c (lto_streamer_init): Encapsulate
18542         streamer_check_handled_ts_structures with checking macro.
18544 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
18546         PR ipa/65087
18547         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
18548         section if !implicit_section.
18549         (cgraph_node::create_version_clone_with_body): Likewise.
18550         * trans-mem.c (ipa_tm_create_version): Likewise.
18552 2015-02-18  Richard Biener  <rguenther@suse.de>
18554         PR tree-optimization/62217
18555         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
18556         into BIVs.
18558 2015-02-18  Marek Polacek  <polacek@redhat.com>
18560         PR sanitizer/65081
18561         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
18562         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
18563         is in range [-16K, -1].  Don't issue run-time error if
18564         (ptr > ptr + offset).
18566 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
18568         * doc/install.texi (nvptx-*-none): New section.
18569         * doc/invoke.texi (Nvidia PTX Options): Likewise.
18570         * config/nvptx/nvptx.opt: Update.
18572         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
18573         (access_check): New functions, copied from
18574         config/i386/intelmic-mkoffload.c.
18575         (main): For non-installed testing, look in all COMPILER_PATHs for
18576         GCC_INSTALL_NAME.
18578         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
18580 2015-02-18  Andrew Pinski  <apinski@cavium.com>
18581             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18583         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
18584         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
18586 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
18588         * ipa-visibility.c (function_and_variable_visibility): Only
18589         check locality if node is not already local.
18590         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
18591         call_for_symbol_and_aliases instead of
18592         call_for_symbol_thunks_and_aliases.
18593         (ipa_inline): Likewise.
18594         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
18595         first walk aliases.
18596         * ipa.c (symbol_table::remove_unreachable_nodes): Use
18597         call_for_symbol_and_aliases.
18598         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
18599         (ipa_propagate_frequency_1): Use it; use opt_for_fn
18600         (ipa_propagate_frequency): Update.
18601         (ipa_profile): Add opt_for_fn gueards.
18603 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
18605         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
18606         * doc/invoke.texi (SH options): Document it.
18607         * config/sh/sh.c (sh_insn_length_adjustment): Check
18608         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
18610 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
18612         * common.opt (fipa-cp-alignment): New.
18613         * ipa-cp.c (ipcp_store_alignment_results): Check
18614         flag_ipa_cp_alignment.
18615         * opts.c (default_options_table): Enable -fipa-cp-alignment for
18616         -O2.
18617         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
18618         * doc/invoke.texi: Document -fipa-cp-alignment.
18620 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
18622         PR target/64793
18623         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
18624         to nil.  Adjust comments.
18626 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
18628         * ipa-visibility.c (function_and_variable_visibility): Only
18629         check locality if node is not already local.
18630         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
18631         call_for_symbol_and_aliases instead of
18632         call_for_symbol_thunks_and_aliases.
18633         (ipa_inline): Likewise.
18634         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
18635         first walk aliases.
18636         * ipa.c (symbol_table::remove_unreachable_nodes): Use
18637         call_for_symbol_and_aliases.
18638         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
18639         (ipa_propagate_frequency_1): Use it; use opt_for_fn
18640         (ipa_propagate_frequency): Update.
18641         (ipa_profile): Add opt_for_fn guards.
18643 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
18645         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
18646         skipping of "strange" tokens.
18648 2015-02-17  Jeff Law  <law@redhat.com>
18650         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
18651         obsolete comment.
18653 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
18655         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
18656         as forcing a HARD_DEP between instructions, thereby
18657         disallowing rewriting to break dependencies.
18659 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
18661         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
18662         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
18663         variables in boundary that have no inlitalizer encoded and are
18664         not aliases.
18665         * varasm.c (default_binds_local_p_2): External definitions do not
18666         count as definitions here.
18668 2015-02-16  Jeff Law  <law@redhat.com>
18670         PR tree-optimization/64823
18671         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
18672         statements.
18673         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18674         threading through blocks with PHIs, but no statements.
18675         (thread_through_normal_block): Distinguish between blocks where
18676         we did not process all the statements and blocks with no statements.
18678 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
18679             James Greenhalgh  <james.greenhalgh@arm.com>
18681         PR ipa/64963
18682         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
18683         section if not linkonce.  Fix up formatting.
18684         (cgraph_node::create_version_clone_with_body): Copy section.
18685         * trans-mem.c (ipa_tm_create_version): Likewise.
18687 2015-02-16  Richard Biener  <rguenther@suse.de>
18689         PR tree-optimization/65077
18690         * tree-ssa-structalias.c (get_constraint_for_1): Handle
18691         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
18692         (find_func_aliases): Allow float values to carry pointers again.
18694 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
18696         * doc/install.texi (Specific): Reorder targets list to put
18697         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
18698         from the top menu.
18700 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
18701             David Edelsohn  <dje.gcc@gmail.com>
18703         PR target/65058
18704         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
18705         mapping class to external variable or function reference.
18706         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
18707         mapping class.
18709 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
18711         PR target/53348
18712         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
18713         ASM_WEAKEN_DECL if defined.
18715 2015-02-16  Richard Biener  <rguenther@suse.de>
18717         PR lto/65015
18718         * varasm.c (default_file_start): For LTO produced units
18719         emit <artificial> as file directive.
18721 2015-02-16  Richard Biener  <rguenther@suse.de>
18723         PR tree-optimization/63593
18724         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
18725         stmts and releasing SSA names until...
18726         (execute_pred_commoning): ... after processing all chains.
18728 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
18730         PR ipa/65059
18731         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
18732         external functions.
18734 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
18736         * doc/bugreport.texi: Adjust section titles throughout the file
18737         to use "Title Case".
18738         * doc/extend.texi: Likewise.
18739         * doc/gcov.texi: Likewise.
18740         * doc/implement-c.texi: Likewise.
18741         * doc/implement-cxx.texi: Likewise.
18742         * doc/invoke.texi: Likewise.
18743         * doc/objc.texi: Likewise.
18744         * doc/standards.texi: Likewise.
18745         * doc/trouble.texi: Likewise.
18747 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
18749         * cgraph.h (symtab_node::has_aliases_p): Simplify.
18750         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
18751         * tree.c (lookup_binfo_at_offset): Make static.
18752         (get_binfo_at_offset): Do not shadow offset; add explanatory
18753         comment.
18755 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
18757         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
18758         for all floading point loads and stores except those using a register
18759         index address.
18760         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
18761         to a register.
18763 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
18765         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
18766         (do_estimate_growth_1): Record if any uninlinable edge was seen.
18767         (estimate_growth): Handle uninlinable edges correctly.
18768         (check_callers): New.
18769         (growth_likely_positive): Handle aliases correctly.
18771 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
18773         * ipa-chkp.c: Use iterate_direct_aliases.
18774         * symtab.c (resolution_used_from_other_file_p): Move inline.
18775         (symtab_node::create_reference): Fix formating.
18776         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18777         (symtab_node::iterate_reference): Move inline.
18778         (symtab_node::iterate_referring): Move inline.
18779         (symtab_node::iterate_direct_aliases): Move inline.
18780         (symtab_node::used_from_object_file_p_worker): Inline into ...
18781         (symtab_node::used_from_object_file_p): ... this one; move inline.
18782         (symtab_node::call_for_symbol_and_aliases): Move inline;
18783         use iterate_direct_aliases.
18784         (symtab_node::call_for_symbol_and_aliases_1): New method.
18785         (cgraph_node::call_for_symbol_and_aliases): Move inline;
18786         use iterate_direct_aliases.
18787         (cgraph_node::call_for_symbol_and_aliases_1): New method.
18788         (varpool_node::call_for_node_and_aliases): Rename to ...
18789         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
18790         use iterate_direct_aliases.
18791         (varpool_node::call_for_symbol_and_aliases_1): New method.
18792         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
18793         (ipa_discover_readonly_nonaddressable_var): Update.
18794         * ipa-devirt.c: Fix formating.
18795         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
18796         Move inline.
18797         (cgraph_node::call_for_symbol_and_aliases): Move inline.
18798         (cgraph_node::call_for_symbol_and_aliases_1): New function..
18799         * cgraph.h (used_from_object_file_p_worker): Remove.
18800         (resolution_used_from_other_file_p): Move inline.
18801         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18802         (symtab_node::iterate_reference): Move inline.
18803         (symtab_node::iterate_referring): Move inline.
18804         (symtab_node::iterate_direct_aliases): Move inline.
18805         (symtab_node::used_from_object_file_p_worker): Inline into ...
18806         (symtab_node::used_from_object_file_p): Move inline.
18807         * tree-emutls.c (ipa_lower_emutls): Update.
18808         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
18809         (varpool_node::call_for_node_and_aliases): Remove.
18811 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
18813         PR tree-optimization/62209
18814         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
18815         op == range->exp, insert seq and gimplified code after labels
18816         instead of after the phi.
18818 2015-02-13  Jeff Law  <law@redhat.com>
18820         PR bootstrap/65060
18821         Revert my change for tree-optimization/64823.
18823 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
18825         PR tree-optimization/65053
18826         * tree-ssa-phiopt.c (value_replacement): When moving assign before
18827         cond, either reset VR on lhs or set it to phi result VR.
18829 2015-02-13  Jeff Law  <law@redhat.com>
18831         PR tree-optimization/64823
18832         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
18833         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18834         threading through blocks with PHIs, but no statements.
18835         (thread_through_normal_block): Distinguish between blocks where
18836         we did not process all the statements and blocks with no statements.
18838         PR rtl-optimization/47477
18839         * match.pd (convert (plus/minus (convert @0) (convert @1): New
18840         simplifier to narrow arithmetic.
18842 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
18844         PR ipa/65028
18845         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
18846         polymorphic call info when type is not known to be preserved.
18848 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
18850         PR ipa/65028
18851         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
18852         (inline_call): Use it.
18854 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
18856         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
18857         GOMP_DEVICE_NVIDIA_PTX.
18859 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
18861         PR ipa/65034
18862         * stmt.c (emit_case_nodes): Use void_type_node instead of
18863         NULL_TREE as LABEL_DECL type.
18865 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
18867         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
18868         constraints.
18869         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
18870         symbolic references to data to be forced to constant memory on the
18871         SOM target.
18873 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
18875         PR tree-optimization/65002
18876         * tree-cfg.c (pass_data_fixup_cfg): Don't update
18877         SSA on start.
18878         * tree-sra.c (some_callers_have_no_vuse_p): New.
18879         (ipa_early_sra): Reject functions whose callers
18880         assume function is read only.
18882 2015-02-13  Richard Biener  <rguenther@suse.de>
18884         PR lto/65015
18885         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
18886         for LTO produced CUs.
18888 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
18890         PR tree-optimization/64705
18891         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
18892         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
18893         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
18894         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
18895         expand_simple_operations.
18897 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18898             Richard Henderson  <rth@redhat.com>
18900         PR rtl/32219
18901         * cgraphunit.c (cgraph_node::finalize_function): Set definition
18902         before notice_global_symbol.
18903         (varpool_node::finalize_decl): Likewise.
18904         * varasm.c (default_binds_local_p_2): Rename from
18905         default_binds_local_p_1, add weak_dominate argument.  Use direct
18906         returns instead of assigning to local variable.  Unify varpool and
18907         cgraph paths via symtab_node.  Reject undef weak variables before
18908         testing visibility.  Reorder tests for simplicity.
18909         (default_binds_local_p): Use default_binds_local_p_2.
18910         (default_binds_local_p_1): Likewise.
18911         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
18912         via symtab_node.
18913         (default_elf_asm_output_external): Emit visibility when specified.
18915 2015-02-13  Alan Modra  <amodra@gmail.com>
18917         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
18918         code setting up r11 for out-of-line fp restore.
18920 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
18922         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
18923         (muser-mode): Likewise.
18925 2015-02-13  Alan Modra  <amodra@gmail.com>
18927         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
18928         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
18930 2015-02-12  David Howells  <dhowells@redhat.com>
18932         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
18933         warning.
18934         * tree-ssa-uninit.c (dump_predicates): Likewise.
18935         * opts.c (print_filtered_help): Likewise.
18937 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
18939         * dwarf2out.c (output_die): Use "%s", name instead of name to
18940         avoid -Wformat-security warning.
18942         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
18943         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18944         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
18945         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18947 2015-02-12  Jason Merrill  <jason@redhat.com>
18949         * common.opt (-flifetime-dse): New.
18951 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
18953         PR sanitizer/65019
18954         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
18956         PR tree-optimization/65014
18957         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
18958         use original second operand of arg0 or arg1 instead of
18959         that adjusted by STRIP_NOPS.
18961 2015-02-11  Jeff Law  <law@redhat.com>
18963         PR target/63347
18964         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
18965         that needs to be queued, just queue it for a single cycle.
18967 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
18969         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
18970         bodies of thunks; comment on why.
18971         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
18972         symbols are extern.
18974 2015-02-11  Richard Henderson  <rth@redhat.com>
18976         PR sanitize/65000
18977         * tree-eh.c (mark_reachable_handlers): Mark source and destination
18978         regions of __builtin_eh_copy_values.
18980 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
18982         PR middle-end/65003
18983         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
18984         ultimate alias is MEM with SYMBOL_REF satisfying
18985         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
18986         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
18988 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
18990         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
18991         "diagnostic-core.h".
18992         (main): Initialize progname, and call diagnostic_initialize.
18994         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
18995         instead of __OPENMP_TARGET__.
18997         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
18998         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
18999         hard-coding PTX_ID.
19001 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
19003         * doc/sourcebuild.texi (pie_enabled): Document.
19005 2015-02-11  Martin Liska  <mliska@suse.cz>
19007         PR ipa/64813
19008         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
19009         a return value for call to a function that is noreturn.
19011 2015-02-11  Richard Biener  <rguenther@suse.de>
19013         PR lto/65015
19014         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
19015         and -fresolution.
19017 2015-02-11  Andrew Pinski  <apinski@cavium.com>
19019         PR target/64893
19020         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
19021         Change the first argument type to size_type_node and add another
19022         size_type_node.
19023         (aarch64_simd_expand_builtin): Handle the new argument to
19024         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
19025         print an out when the first two arguments are not
19026         nonzero integer constants.
19027         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
19028         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
19030 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
19032         PR target/61925
19033         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
19034         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
19035         (ix86_set_current_function): Rewritten.
19036         (ix86_add_new_builtins): Temporarily clear current_target_pragma
19037         when creating builtin fndecls.
19039 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
19041         PR ipa/65005
19042         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
19043         function.
19044         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
19045         have no comdat group.
19046         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
19047         (lto_output_varpool_node): Always output alias info.
19048         (output_refs): Output refs of boundary aliases, too.
19049         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
19050         (output_symtab): Output call eges in thunks in boundary.
19051         (get_alias_symbol): Remove.
19052         (input_node, input_varpool_node): Do not special case weakrefs.
19053         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
19054         alias and thunks targets in the boundary; do not take removed symbols
19055         from their comdat groups.
19056         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
19057         (cgraph_node::global_info): Remove.
19058         (cgraph_node::rtl_info): Look through aliases and thunks.
19059         * cgrpah.h (global_info): Remove.
19060         (non_local_p): Remove.
19062 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
19063             Sandra Loosemore  <sandra@codesourcery.com>
19065         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
19066         to inline asm.  List dialects in proper order.
19068 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
19069             Sandra Loosemore  <sandra@codesourcery.com>
19071         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
19073 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
19075         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
19076         modified) reference to Solaris.
19078 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
19080         * doc/extend.texi (Extended Asm): Fix typos.
19082 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
19084         PR sanitizer/65004
19085         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
19087 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
19089         PR target/64661
19090         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
19091         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
19092         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
19093         * config/sh/constraints.md (Ara, Add): New constraints.
19094         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
19095         predicates.
19096         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
19097         atomic_mem_operand_0.  Don't use force_reg on the memory address.
19098         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
19099         Sra constraint.  Convert to insn_and_split.  Add workaround for
19100         PR 64974.
19101         (atomic_compare_and_swap<mode>_hard): Copy to
19102         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
19103         Use atomic_mem_operand_0 predicate.
19104         (atomic_compare_and_swap<mode>_soft_gusa,
19105         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
19106         AraAdd constraints.
19107         (atomic_compare_and_swap<mode>_soft_tcb,
19108         atomic_compare_and_swap<mode>_soft_imask,
19109         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
19110         atomic_mem_operand_0 predicate and SraSdd constraints.
19111         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
19112         constraint.
19113         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
19114         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
19115         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
19116         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
19117         force_reg on the memory address.
19118         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
19119         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
19120         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
19121         atomic_mem_operand_1 predicate and Sra constraint.
19122         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
19123         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
19124         Use atomic_mem_operand_1 predicate.
19125         (atomic_<fetchop_name><mode>_hard): Copy to
19126         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
19127         Use atomic_mem_operand_1 predicate.
19128         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
19129         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
19130         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
19131         insn_and_split.  Use atomic_mem_operand_1 predicate.
19132         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
19133         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
19134         Use atomic_mem_operand_1 predicate.
19135         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
19136         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
19137         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
19138         in generated insn with original mem operand before emitting the insn.
19139         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
19140         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
19141         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
19142         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
19143         Use atomic_mem_operand_1 predicate and AraAdd constraints.
19144         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
19145         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
19146         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
19147         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
19148         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
19149         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
19150         atomic_not_fetch<mode>_soft_tcb,
19151         atomic_<fetchop_name>_fetch<mode>_soft_imask,
19152         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
19153         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
19154         Use atomic_mem_operand_1 predicate and SraSdd constraints.
19156 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
19158         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
19159         and 3 earlyclobber operands.
19161 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
19163         * common.opt (fstack-reuse): Mark as optimization.
19165 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
19167         PR ipa/64982
19168         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
19170 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
19172         PR tree-optimization/64326
19173         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
19175 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
19177         PR gcov-profile/61889
19178         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
19180 2015-02-10  Richard Biener  <rguenther@suse.de>
19182         PR tree-optimization/64995
19183         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
19184         value we use is final.
19185         (visit_reference_op_store): Always valueize op.
19186         (visit_use): Properly valueize vuses.
19188 2015-02-10  Richard Biener  <rguenther@suse.de>
19190         PR tree-optimization/64909
19191         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
19192         pass a scalar-stmt count estimate to the cost model.
19193         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
19195 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
19197         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
19198         enabled by default together with var-tracking.
19200 2015-02-10  Nick Clifton  <nickc@redhat.com>
19202         * config/rl78/rl78.c: Remove DIV attribute code accidentally
19203         included in previous rl78 commit.
19205 2015-02-10  Richard Biener  <rguenther@suse.de>
19207         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
19208         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
19209         return the bitpack.
19211 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
19213         PR gcov-profile/61889
19214         * config.in: regenerate.
19215         * configure.in: Likewise.
19216         * configure.ac: Check for ftw.h.
19217         * gcov-tool.c: Check for ftw.h before using nftw.
19219 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
19221         PR lto/64076
19222         * ipa-visibility.c (update_visibility_by_resolution_info): Only
19223         assert when not in lto mode.
19225 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
19227         * ira-color.c (setup_left_conflict_sizes_p): Simplify
19228         initialization/assignment of conflict_size.
19230 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
19232         PR ipa/64978
19233         * ipa-cp.c (gather_caller_stats): Skip thunks.
19234         (propagate_constants_topo): Skip aliases.
19236 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
19238         PR target/64761
19239         * config/sh/sh.c (sh_option_override): Don't change
19240         -freorder-blocks-and-partition to -freorder-blocks even when
19241         unwinding is enabled.
19242         (sh_can_follow_jump): Return false if the followee jump is
19243         a crossing jump when -freorder-blocks-and-partition is specified.
19244         * config/sh/sh.md (*jump_compact_crossing): New insn.
19246 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
19247             Kaz Kojima  <kkojima@gcc.gnu.org>
19249         PR target/64761
19250         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
19251         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
19252         (sh_can_redirect_branch): Rename to ...
19253         (sh_can_follow_jump): ... this.  Constify argument types.
19254         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
19255         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
19256         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
19257         * doc/tm.texi: Regenerate.
19259 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
19261         PR sanitizer/64981
19262         * builtins.c (expand_builtin): Call targetm.expand_builtin
19263         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
19265 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19267         PR ipa/61548
19268         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
19270 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19272         PR ipa/63566
19273         * ipa-icf.c (set_local): New function.
19274         (sem_function::merge): Use it.
19276 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19278         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
19279         (add_type_duplicate): Fix comparison of BINFOs.
19281 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19283         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
19284         on getting VOID pointer.
19286 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
19288         PR target/64979
19289         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
19290         va_list escapes.
19292 2015-02-09  Richard Biener  <rguenther@suse.de>
19294         * genmatch.c (replace_id): Copy expr_type.
19296 2015-02-09  Richard Biener  <rguenther@suse.de>
19298         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
19299         (streamer_write_tree_bitfields): Declare.
19300         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
19301         properly unpack padding.
19302         (unpack_value_fields): Inline ...
19303         (streamer_read_tree_bitfields): ... here.
19304         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
19305         and properly add padding bits.
19306         (streamer_pack_tree_bitfields): Fold into ...
19307         (streamer_write_tree_bitfields): ... this new function,
19308         exposing the bitpack object.
19309         * lto-streamer-out.c (lto_write_tree_1): Call
19310         streamer_write_tree_bitfields.
19312 2015-02-09  Richard Biener  <rguenther@suse.de>
19314         PR tree-optimization/54000
19315         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
19316         (struct ivopts_data): Add loop_loc member.
19317         (tree_ssa_iv_optimize_loop): Dump loop location.
19318         (create_new_ivs): Likewise, also dump number of IVs generated.
19320 2015-02-09  Martin Liska  <mliska@suse.cz>
19322         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
19323         just if not yet registered.
19324         (ipa_icf_generate_summary): Register callgraph hooks.
19326 2015-02-08  Andrew Pinski  <apinski@cavium.com>
19328         * config/aarch64/aarch64.c (gty_dummy): Delete.
19330 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19332         PR ipa/63566
19333         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
19334         (cgraph_node::local_p): Remove thunk related FIXME.
19336 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19338         PR ipa/63566
19339         * i386.c (ix86_function_regparm): Look through aliases to see if callee
19340         is local and optimized.
19341         (ix86_function_sseregparm): Likewise; also use target's SSE math
19342         settings; error out instead of silently generating wrong code
19343         on mismatches.
19344         (init_cumulative_args): Look through aliases.
19346 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19348         PR ipa/63566
19349         * ipa-split.c (execute_split_functions): Split if function has aliases.
19351 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19353         PR ipa/63566
19354         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
19355         aliases before trying to expand it.
19356         (cgraph_node::expand_thunk): Fix formating.
19358 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
19360         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
19361         (Using Assembly Language with C): Expand introduction.
19362         (Basic Asm): Copy-edit.  Add more information about uses of
19363         basic asm.
19364         (Extended Asm): Copy-edit.  Document new escape syntax and
19365         %l[label] syntax.
19366         (Global Reg Vars): Copy-edit.
19367         (Local Reg Vars): Likewise.
19369 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
19371         PR debug/2714
19372         PR bootstrap/64256
19373         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
19374         (DBX_CONTIN_CHAR): Define.
19376 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
19377             Brian Rzycki  <b.rzycki@samsung.com>
19379         PR tree-optimization/64878
19380         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
19381         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
19382         Stop recursion at loop phi nodes after having visited a loop phi node.
19384 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
19386         * toplev.c (process_options): Change flag_ipa_ra before creating
19387         optimization_{default,current}_node.
19389         PR ipa/64896
19390         * cgraphunit.c (cgraph_node::expand_thunk): If
19391         restype is not is_gimple_reg_type nor the thunk_fndecl
19392         returns aggregate_value_p, set restmp to a temporary variable
19393         instead of resdecl.
19395 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
19397         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
19399 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19401         PR target/64205
19402         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
19403         add a general secondary reload handler for SDmode, unless we have
19404         both read/write support for SDmode.
19406 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
19408         PR middle-end/64937
19409         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
19410         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
19411         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
19412         1 before, push it to abstract_vec.
19413         (dwarf2out_abstract_function): Adjust caller.  Don't call
19414         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
19415         DECL_ABSTRACT_P flags for all abstract_vec elts.
19417 2015-02-06  Renlin Li  <renlin.li@arm.com>
19419         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
19420         complex gimple.
19421         * tree-ssa.c (execute_update_addresses_taken): Likewise.
19423 2015-02-06  Jeff Law  <law@redhat.com>
19425         PR target/64889
19426         * config/h8300/h8300.c (push): New argument "in_prologue".
19427         Pass "in_prologue" along to "F".
19428         (h8300_push_pop): Corresponding changes.
19429         (h8300_expand_prologue): Likewise.
19430         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
19432 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
19434         PR rtl-optimization/64957
19435         PR debug/64817
19436         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
19437         IOR rather than for AND.
19439 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
19441         PR target/62631
19442         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
19443         of shift-add and (add + shift) operations.  Rename local variable.
19445 2015-02-05  Jeff Law  <law@redhat.com>
19447         PR target/17306
19448         * config/h8300/constraints.md (U): Correctly dectect
19449         "eightbit_data" memory addresses.
19450         * config/h8300/h8300.c (eightbit_constant_address_p): Also
19451         handle (const (plus (symbol_ref (x)))) where x is declared
19452         as an 8-bit data memory address.
19453         * config/h8300/h8300.md (call, call_value): Correctly detect
19454         "funcvec" functions.
19456         PR target/43264
19457         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
19458         24 to 28 bits for the H8/300.
19460 2015-02-06  Alan Modra  <amodra@gmail.com>
19462         PR target/64876
19463         * config/rs6000/rs6000.c (chain_already_loaded): New function.
19464         (rs6000_call_aix): Use it.
19466 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
19468         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
19469         check.
19471 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
19473         * config/h8300/constraints.md ("U" constraint): Use strict
19474         variant of REG_OK_FOR_BASE_P after reload has started.
19476 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
19478         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
19479         define to zero if !TARGET_NEON.
19480         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
19482 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
19483             Trevor Saunders  <tsaunders@mozilla.com>
19485         PR ipa/61548
19486         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
19488 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
19490         PR ipa/61548
19491         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
19492         when removing varpool nodes.
19494 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
19496         PR ipa/61548
19497         * varpool.c (varpool_node::remove): Fix order of variables.
19499 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
19501         PR ipa/64686
19502         * ipa-inline.c (inline_small_functions): Fix ordering issue between
19503         speculation resolution and key updates.
19505 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
19507         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
19508         about not letting any speculative edges unupdated.
19510 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
19512         PR gcov/64123
19513         * gcov-io.c (gcov_var): Export.
19515 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
19517         PR middle-end/64922
19518         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
19519         edges that become speculative.
19521 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
19523         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
19524         or DW_LANG_Fortran08.
19525         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
19526         DW_LANG_Fortran08.
19527         (gen_compile_unit_die): Handle "GNU Fortran2003" and
19528         "GNU Fortran2008" language strings.
19529         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
19530         * langhooks.h (lang_GNU_Fortran): New prototype.
19531         * langhooks.c (lang_GNU_Fortran): New function.
19532         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
19533         lang_GNU_Fortran.
19535 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
19537         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
19538         (RTX_OK_FOR_OLO10_P): Likewise.
19540 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
19542         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
19544 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
19546         PR middle-end/64922
19547         * gimple.c: Include gimple-ssa.h.
19548         (maybe_remove_unused_call_args): New function.
19549         * gimple.h (maybe_remove_unused_call_args): Declare.
19550         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
19551         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19552         * gimple-fold.c (gimple_fold_call): Likewise.
19554 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
19556         PR rtl-optimization/64905
19557         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
19558         pointer alignment if it isn't needed.
19560 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
19562         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
19563         cortex-a72.cortex-a53.
19564         * config/aarch64/aarch64-tune.md: Regenerate.
19565         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
19567 2015-02-04  Nick Clifton  <nickc@redhat.com>
19569         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
19570         inside a MEM.
19572 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
19574         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
19575         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
19576         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
19577         of DEF_BUILTIN.
19578         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
19579         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
19580         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
19581         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
19582         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
19583         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
19584         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
19585         * tree-core.h (enum built_in_function): In between
19586         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
19587         for builtins that use DEF_BUILTIN_CHKP macro.
19589 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
19591         PR debug/64817
19592         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
19593         operands for tcc_comparison exprs.  Fix typos.
19595         PR debug/64817
19596         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
19597         of two XORs that have an intervening AND or IOR.
19599         PR debug/64817
19600         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
19601         simplification of XOR of AND to not allocate new rtx before
19602         committing to a simplification.
19604 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19606         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
19607         manual swaps in all peepholes.
19609 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19611         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
19612         of manual swapping implementation.
19613         (aarch64_expand_vec_perm_const_1): Likewise.
19615 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
19617         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
19618         (generic_addrcost_table): Remove NAMED_PARAM.
19619         (cortexa57_addrcost_table): Likewise.
19620         (xgene1_addrcost_table): Likewise.
19621         (generic_regmove_table): Likewise.
19622         (cortexa53_regmove_table): Likewise.
19623         (xgene1_regmove_table): Likewise.
19624         (generic_vector_table): Likewise.
19625         (cortexa57_vector_table): Likewise.
19626         (xgene1_vector_table): Likewise.
19627         (generic_tunings): Likewise.
19628         (cortexa53_tunings): Likewise.
19629         (cortexa57_tunings): Likewise.
19630         (xgene1_tunings): Likewise.
19632 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
19634         * config/arm/arm-cores.def: Add cortex-a72 and
19635         cortex-a72.cortex-a53.
19636         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
19637         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
19638         * config/arm/arm-tune.md: Regenerate.
19639         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
19640         "cortex-a72.cortex-a53".
19641         * doc/invoke.texi (ARM Options/-mtune): Likewise.
19643 2015-02-04  Nick Clifton  <nickc@redhat.com>
19645         PR target/64408
19646         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
19647         of accepted codes.
19648         (nonimmediate_di_operand): Likewise.
19650         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
19651         prefixes of known F5 using MSP430 MCUs.
19653 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19655         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
19656         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
19657         instead of __builtin_sqrt.
19659 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
19661         * varasm.c (do_assemble_alias): Follow transparent alias
19662         chain for target.
19663         (default_assemble_visibility): Follow transparent alias
19664         chain for decl name.
19666 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19668         PR middle-end/62103
19669         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
19670         to compute size of referenced value in the constant case.
19672 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
19674         PR rtl-optimization/64756
19675         * cse.c (invalidate_dest): New function.
19676         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
19677         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
19678         invalidate and do not record it.
19680 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
19682         PR target/64660
19683         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
19684         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
19685         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
19686         atomic_nand<mode>_soft_tcb): New insns.
19687         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
19688         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
19689         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
19690         Split into atomic_not_fetchsi_hard if operands[0] is unused.
19691         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
19692         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19693         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
19694         atomic_not<mode>_hard if operands[0] is unused.
19695         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
19696         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
19697         if operands[0] is unused.
19698         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
19699         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
19700         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
19701         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19702         unused.
19703         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
19704         into atomic_not<mode>_soft_tcb if operands[0] is unused.
19705         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
19706         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
19707         if operands[0] is unused.
19708         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
19709         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
19710         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
19711         atomic_nand_fetchsi_hard if operands[0] is unused.
19712         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
19713         atomic_nand<mode>_hard if operands[0] is unused.
19714         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
19715         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
19716         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
19717         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19718         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
19719         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
19720         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
19721         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19722         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
19723         atomic_not<mode>_hard if operands[0] is unused.
19724         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
19725         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19726         unused.
19727         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
19728         into atomic_not<mode>_soft_tcb if operands[0] is unused.
19729         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
19730         atomic_nand<mode>_hard if operands[0] is unused.
19731         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
19732         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19734 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
19736         PR jit/64810
19737         * Makefile.in (GCC_OBJS): Add gcc-main.o.
19738         * gcc-main.c: New file, containing "main" taken from gcc.c.
19739         * gcc.c (do_self_spec): Free decoded_options.
19740         (class driver): Move declaration to gcc.h.
19741         (main): Move declaration and implementation to new file
19742         gcc-main.c.
19743         (driver_get_configure_time_options): New function.
19744         * gcc.h (class driver): Move this declaration here, from
19745         gcc.c.
19746         (driver_get_configure_time_options): New declaration.
19748 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
19750         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
19751         cross-module inlining.
19752         * cgraph.h (cgraph_node): Add flag merged.
19753         * ipa-icf.c (sem_function::merge): Maintain it.
19755 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
19757         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
19758         instead of OBJECT_P.
19760 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
19762         PR target/62631
19763         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
19764         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
19765         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
19766         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
19768 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
19770         PR other/63504
19771         * combine.c (reg_n_sets_max): New variable.
19772         (can_change_dest_mode, reg_nonzero_bits_for_combine,
19773         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
19774         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
19775         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
19776         (rest_of_handle_combine): Initialize reg_n_sets_max.
19778 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
19780         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
19781         if some always_inline was inlined, apply changes before inlining
19782         heuristically.
19784 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
19786         PR jit/64810
19787         * config/arm/arm.c (arm_option_override): Set
19788         arm_selected_arch/cpu/tune to NULL on entry.
19790 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
19791             Andrew Pinski  <pinskia@gcc.gnu.org>
19792             Jakub Jelinek  <jakub@gcc.gnu.org>
19794         PR target/64231
19795         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
19796         integer typing for small model. Use IN_RANGE.
19798 2015-02-02  Richard Biener  <rguenther@suse.de>
19800         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
19801         * tree-vrp.c (vrp_valueize_1): Likewise.
19803 2015-02-02  Alan Modra  <amodra@gmail.com>
19805         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
19806         than mem for toc_restore.
19807         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
19808         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
19809         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
19811 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
19813         PR target/64047
19814         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
19815         explicit default options.
19817 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
19819         PR ipa/64872
19820         * ipa-utils.c (ipa_merge_profiles): Add release argument.
19821         * ipa-icf.c (sem_function::merge): Do not release body when merging.
19822         * ipa-utils.h (ipa_merge_profiles): Update prototype.
19824 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
19826         PR debug/64817
19827         * cfgexpand.c (deep_ter_debug_map): New variable.
19828         (avoid_deep_ter_for_debug): New function.
19829         (expand_debug_expr): If TERed SSA_NAME is in
19830         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
19831         instead of trying to expand SSA_NAME's def stmt.
19832         (expand_debug_locations): When expanding debug bind
19833         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
19834         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
19835         value.
19836         (pass_expand::execute): Call avoid_deep_ter_for_debug on
19837         all debug bind stmts.  Delete deep_ter_debug_map after
19838         expand_debug_location if non-NULL and clear it.
19840 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
19842         PR target/64851
19843         * config/sh/sync.md (atomic_fetch_notsi_hard,
19844         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
19845         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
19846         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
19847         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
19848         atomic_not_fetch<mode>_soft_imask): New insns.
19850 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19852         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
19853         (rank_for_schedule_debug): Split from ...
19854         (rank_for_schedule): ... this.
19855         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
19856         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
19858 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
19860         * doc/md.texi (Machine Constraints): Alphabetize table by target.
19861         * doc/extend.texi (x86 Variable Attributes): Move section to
19862         correct alphabetization after renaming.
19863         (x86 Type Attributes): Likewise.
19864         (Target Builtins): Re-alphabetize menu.
19865         (x86 Built-in Functions): Move section to correct alphabetization
19866         after renaming.
19867         (x86 transactional memory intrinsics): Likewise.
19868         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
19869         and x86 Windows Options in table and menu.
19870         (x86 Options): Move section to correct alphabetization after
19871         renaming.
19872         (x86 Windows Options): Likewise.
19874 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
19876         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
19877         preferred names of the architecture and its 32- and 64-bit
19878         variants.
19879         * doc/invoke.texi: Likewise.
19880         * doc/md.texi: Likewise.
19882 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
19884         PR target/64882
19885         * config/i386/predicates.md (address_no_seg_operand): Reject
19886         non-CONST_INT_P operands in invalid mode.
19888 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
19890         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
19891         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
19892         * config/i386/predicates.md (address_no_seg_operand): Call
19893         address_operand with VOIDmode.
19894         (vsib_address_operand): Ditto.
19895         (address_mpx_no_base_operand): Ditto.
19896         (address_mpx_no_index_operand): Ditto.
19898 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
19900         PR target/64688
19901         * lra-constraints.c (original_subreg_reg_mode): New.
19902         (simplify_operand_subreg): Try to simplify subreg of const.  Use
19903         original_subreg_reg_mode for it.
19904         (swap_operands): Update original_subreg_reg_mode.
19905         (curr_insn_transform): Set up original_subreg_reg_mode.
19907 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
19909         PR target/64617
19910         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
19911         function.
19912         (process_alt_operands): Use it.
19913         (curr_insn_transform): Check the optional reload pseudo class is
19914         ok for the mode.
19916 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
19918         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
19919         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
19920         prototype.
19921         * toplev.h (init_asm_output): Update comment on use of
19922         UNKNOWN_LOCATION with fatal_error.
19923         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
19924         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
19925         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
19926         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
19927         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
19928         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
19929         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
19930         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
19931         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
19932         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
19933         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
19934         fatal_error changed to pass input_location as first argument.
19936 2015-01-30  Martin Liska  <mliska@suse.cz>
19938         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
19939         in #pragma GCC diagnostic guards.
19941 2015-01-30  Richard Biener  <rguenther@suse.de>
19943         PR tree-optimization/64829
19944         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
19945         not add a widening conversion pattern but hand off extra
19946         widenings to callers.
19947         (vect_recog_widen_mult_pattern): Handle extra widening produced
19948         by vect_handle_widen_op_by_const.
19949         (vect_recog_widen_shift_pattern): Likewise.
19950         (vect_pattern_recog_1): Remove excess vertical space in dumping.
19951         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19952         (vect_init_vector_1): Likewise.
19953         (vect_get_vec_def_for_operand): Likewise.
19954         (vect_finish_stmt_generation): Likewise.
19955         (vectorizable_load): Likewise.
19956         (vect_analyze_stmt): Likewise.
19957         (vect_is_simple_use): Likewise.
19959 2015-01-29  Jeff Law  <law@redhat.com>
19961         * combine.c (try_combine): Fix typo in comment.
19963 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
19965         PR target/64580
19966         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
19967         (rs6000_stack_info): Add assert.
19968         (rs6000_output_savres_externs): New function, split off from...
19969         (rs6000_output_function_prologue): ... here.  Do not call it for
19970         thunks.
19972 2015-01-29  Jeff Law  <law@redhat.com>
19974         PR target/15184
19975         * combine.c (try_combine): If I0 is a memory load and I3 a store
19976         to a related address, increase the "goodness" of doing a 4-insn
19977         combination with I0-I3.
19978         (make_field_assignment): Handle SUBREGs in the ior+and case.
19980 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
19982         PR tree-optimization/64746
19983         * tree-if-conv.c (mask_exists): New function.
19984         (predicate_mem_writes): Save created mask with given size for further
19985         use.
19986         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
19987         (ifcvt_repair_bool_pattern): Collect all statements that are root
19988         of bool pattern and use iterative algorithm to remove multiple uses
19989         of predicates, display number of required iterations.
19991 2015-01-29  Richard Biener  <rguenther@suse.de>
19993         PR tree-optimization/64853
19994         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
19995         stmt will get simulated again.
19996         * tree-ssa-ccp.c (valueize_op_1): Likewise.
19998 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20000         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
20001         return_in_pc.  Remove redundant assignments.
20002         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
20003         (arm_expand_epilogue): Don't compare boolean with true in if condition.
20005 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
20007         * config/i386/i386.c (ix86_mode_after): Make static.
20009 2015-01-29  Richard Biener  <rguenther@suse.de>
20011         PR tree-optimization/64844
20012         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
20013         dump cost model analysis.
20014         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20015         Do not register adjusted load/store costs here.
20017 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
20018             Uros Bizjak  <ubizjak@gmail.com>
20020         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
20021         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
20022         using x86_use_pseudo_pic_reg.
20023         * config/i386/i386.c (ix86_conditional_register_usage): Remove
20024         support for fixed PIC register.
20025         (ix86_use_pseudo_pic_reg): Not static any more.
20027 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
20029         PR middle-end/64805
20030         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
20031         to avoid error in cgraph node verification.
20033 2015-01-29  Marek Polacek  <polacek@redhat.com>
20035         * doc/standards.texi: Reflect that the default for C is gnu11.
20037 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
20039         PR target/64761
20040         * reorg.c (switch_text_sections_between_p): New function.
20041         (relax_delay_slots): Call it when testing if the jump insn
20042         is removable.  Use targetm.can_follow_jump when testing if
20043         the conditional branch can follow an unconditional jump.
20045 2015-01-27  Caroline Tice  <cmtice@google.com>
20047         Committing VTV Cywin/Ming patch for Patrick Wollgast
20048         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
20049         if -fvtable-verify=preinit/std is used.
20050         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
20051         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
20052         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
20053         if -fvtable-verify=preinit/std is used.
20054         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
20055         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
20056         if -fvtable-verify=preinit/std is used.
20057         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
20058         * config/i386/mingw32.h (LIB_SPEC): Likewise.
20059         * varasm.c (assemble_variable): Add code to properly set the comdat
20060         section and name for the .vtable_map_vars section in case the
20061         target is PE or COFF.
20063 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
20065         PR ipa/64801
20066         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
20067         make sane BB profile.
20068         (cgraph_node::expand_thunk): Make sane BB profile.
20069         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
20070         * cgraph.h (init_lowered_empty_function): Update prototype.
20071         * config/i386/i386.c (make_resolver_func): Update call.
20072         * predict.c (gate): Disable branch prediction pass if
20073         profile is already there.
20075 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
20077         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
20078         * opth-gen.awk: Likewise.
20079         * common.opt: Mark flag_fp_contract_mode as Optimization.
20081 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20083         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
20084         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
20086 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
20088         PR target/64659
20089         * config/sh/predicates.md (atomic_arith_operand,
20090         atomic_logical_operand): Remove.
20091         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
20092         (atomic_arith_operand_0): New predicate.
20093         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
20094         Use atomic_arith_operand_0 for input values.
20095         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
20096         atomic_compare_and_swap<mode>_soft_gusa,
20097         atomic_compare_and_swap<mode>_soft_tcb,
20098         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
20099         arith_reg_operand instead of register_operand.
20100         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
20101         atomic_arith_operand_0 for newval input.
20102         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
20103         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
20104         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
20105         arith_reg_operand instead of register_operand.
20106         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
20107         fetchop_predicate_1, fetchop_constraint_1_llcs,
20108         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
20109         fetchop_constraint_1_imask): New code iterator attributes.
20110         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
20111         register_operand.  Use fetchop_predicate_1.
20112         (atomic_fetch_<fetchop_name>si_hard,
20113         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
20114         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
20115         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
20116         and arith_reg_operand instead of register_operand.  Use
20117         fetchop_predicate_1, fetchop_constraint_1_gusa.
20118         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
20119         and arith_reg_operand instead of register_operand.  Use
20120         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
20121         to allow R0 usage.
20122         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
20123         and arith_reg_operand instead of register_operand.  Use
20124         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
20125         to allow R0 usage.
20126         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
20127         register_operand.  Use atomic_logical_operand_1.
20128         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
20129         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
20130         arith_reg_operand instead of register_operand.
20131         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
20132         Use arith_reg_dest and arith_reg_operand instead of register_operand.
20133         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
20134         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
20135         register_operand.  Use fetchop_predicate_1.
20136         (atomic_<fetchop_name>_fetchsi_hard,
20137         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
20138         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
20139         fetchop_constraint_1_llcs.
20140         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
20141         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
20142         fetchop_constraint_1_gusa.
20143         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
20144         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
20145         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
20146         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
20147         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
20148         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
20149         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
20150         register_operand.  Use atomic_logical_operand_1.
20151         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
20152         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
20153         arith_reg_operand instead of register_operand.
20154         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
20155         arith_reg_operand instead of register_operand.  Use logical_operand
20156         and K08.  Adjust asm sequence to allow R0 usage.
20157         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
20158         arith_reg_operand instead of register_operand.  Use logical_operand
20159         and K08.
20161 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
20163         PR other/63504
20164         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
20165         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
20166         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
20167         only get_full_len HOST_WIDE_INTs from get_val () array rather than
20168         all bits in *val_wide.
20170 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
20172         * varpool.c (tls_model_names): Fix names.
20173         (varpool_node::dump): Dump tls- prefix for tls models.
20175 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
20176             Bernd Schmidt  <bernds@codesourcery.com>
20177             Nathan Sidwell  <nathan@codesourcery.com>
20179         * config/nvptx/mkoffload.c: New file.
20180         * config/nvptx/t-nvptx: Add build rules for it.
20181         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
20182         (extra_programs): Add mkoffload.
20183         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
20184         function.
20185         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
20187 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
20189         PR middle-end/64809
20190         * cfgexpand.c (reorder_operands): Skip debug gimples.
20192 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
20194         PR tree-optimization/64277
20195         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
20196         range info when possible to refine estimation.
20198 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20200         PR tree-optimization/64718
20201         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
20202         be a 16bit unsigned integer when n->range is 16.
20203         (bswap_replace): Convert src to that type if necessary for all bswap
20204         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
20205         set in pass_optimize_bswap::execute ().
20207 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
20209         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
20210         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
20211         integer and floating point variants.
20212         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
20214 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
20216         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
20217         for all vector modes.
20219 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
20221         PR bootstrap/64612
20222         * doc/sourcebuild.texi (comdat_group): Document.
20224 2015-01-28  Terry Guo  <terry.guo@arm.com>
20226         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
20228 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
20230         * toplev.c (print_version): Add param "show_global_state", and
20231         only print GGC and plugin information if it is true.
20232         (init_asm_output): Pass in "true" for the new param when calling
20233         print_version.
20234         (process_options): Likewise.
20235         (toplev::main): Likewise.
20236         * toplev.h (print_version): Add new param to decl.
20238 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
20240         PR ipa/60871
20241         PR ipa/64139
20242         * tree.c (lookup_binfo_at_offset): New function.
20243         (get_binfo_at_offset): Use it.
20245 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
20247         PR ipa/64282
20248         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
20249         on vtable being vtable.
20251 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20253         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
20254         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
20255         -mhotpatch= option.
20256         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
20257         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
20258         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
20259         Renamed.
20260         (s390_hotpatch_trampoline_halfwords_max): Renamed.
20261         (s390_hotpatch_hw_max): New name.
20262         (s390_hotpatch_trampoline_halfwords): Renamed.
20263         (s390_hotpatch_hw_before_label): New name.
20264         (get_hotpatch_attribute): Removed.
20265         (s390_hotpatch_hw_after_label): New name.
20266         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
20267         attribute.
20268         (s390_attribute_table): Ditto.
20269         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
20270         (s390_function_num_hotpatch_hw): New name.
20271         Remove special handling of inline functions and hotpatching.
20272         Return number of nops before and after the function label.
20273         (s390_can_inline_p): Removed.
20274         (s390_asm_output_function_label): Emit a configurable number of nops
20275         after the function label.
20276         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
20277         (TARGET_CAN_INLINE_P) Removed.
20278         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
20280 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20281             Jiong Wang  <jiong.wang@arm.com>
20283         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
20284         of scratch reg.
20285         (cb<optab><mode>1): Likewise.
20286         * config/aarch64/iterators.md (bcond): New define_code_attr.
20288 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20290         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
20291         memory accesses.
20293 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20295         * config/s390/s390.c (s390_register_move_cost): Increase costs for
20296         FPR->GPR moves.
20298 2015-01-27  Richard Biener  <rguenther@suse.de>
20300         * tree-vrp.c (update_value_range): Intersect the range with
20301         old recorded SSA name range information.
20303 2015-01-27  Nick Clifton  <nickc@redhat.com>
20305         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
20306         BC, DE and HL registers directly, not via AX.
20307         When decrementing the stack pointer by a large amount, transfer SP
20308         into AX and perform the subtraction there.
20309         (rl78_expand_epilogue): Perform the inverse of the above
20310         enhancements.
20312 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20314         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
20316 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
20317             Yury Gribov  <y.gribov@samsung.com>
20319         PR ubsan/64741
20320         * ubsan.c (ubsan_source_location): Refactor code.
20321         (ubsan_type_descriptor): Update type size. Refactor code.
20323 2015-01-27  Richard Biener  <rguenther@suse.de>
20325         PR tree-optimization/56273
20326         PR tree-optimization/59124
20327         PR tree-optimization/64277
20328         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
20329         from the first VRP pass.
20331 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
20333         PR ipa/64776
20334         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
20335         handle the first argument in the same loop as all the other arguments.
20337         PR rtl-optimization/61058
20338         * jump.c (cleanup_barriers): Update basic block boundaries
20339         if BLOCK_FOR_INSN is non-NULL on PREV.
20341 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
20343         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
20344         bounds narrowing, already instrumented calls and calls to
20345         not instrumentable functions.
20347 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
20349         PR tree-optimization/64807
20350         * wide-int.cc (wi::divmod_internal): Clear
20351         b_dividend[dividend_blocks_needed].
20353 2015-01-26  DJ Delorie  <dj@redhat.com>
20355         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
20356         volatile memory references.
20358 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
20360         PR target/49263
20361         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
20362         remove_insn.
20363         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
20364         shifts if it already fits into K08.
20366 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
20368         PR ipa/64730
20369         * ipa-inline.c (inline_small_functions): Print "unknown" even
20370         if edge->call_stmt is non-NULL, but has builtins or unknown
20371         location.
20373         PR middle-end/64421
20374         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
20375         with asterisk, skip the first character.
20377 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
20379         PR target/64806
20380         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
20381         order change.
20383 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
20385         PR target/64795
20386         * config/i386/i386.md (*movdi_internal): Also check operand 0
20387         to determine TYPE_LEA operand.
20388         (*movsi_internal): Ditto.
20390 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
20392         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
20393         OPTION_MASK_QUAD_MEMORY_ATOMIC.
20395 2015-01-26  Renlin Li  <renlin.li@arm.com>
20397         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
20398         the comment.
20399         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
20400         for higher part.
20402 2015-01-26  Richard Biener  <rguenther@suse.de>
20404         PR middle-end/64764
20405         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
20406         combining two BIT_AND_EXPR predicates.
20408 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
20410         PR bootstrap/64754
20411         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
20413 2015-01-26  Terry Guo  <terry.guo@arm.com>
20415         * config/arm/arm.c (arm_file_start): Update the assignment of
20416         Tag_ABI_HardFP_use.
20418 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
20420         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
20421         pipeline model.
20422         config/arm/arm.md: Include the new Cortex-A57 model.
20423         (generic_sched): Don't use generic_sched when tuning for
20424         Cortex-A57.
20426 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
20427             Uros Bizjak  <ubizjak@gmail.com>
20429         * config/i386/i386.c (get_builtin_code_for_version): Add
20430         support for BMI and BMI2 multiversion functions.
20432 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20434         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
20435         (extract_bit_field): Likewise.
20436         (extract_low_bits): Likewise.
20437         (expand_mult): Likewise.
20438         (expand_mult_highpart_adjust): Likewise.
20440 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
20442         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
20443         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
20444         * config/i386/i386.c (processor_model): Add
20445         M_INTEL_COREI7_BROADWELL.
20446         (arch_names_table): Add "broadwell".
20448 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
20450         PR target/49263
20451         PR target/53987
20452         PR target/64345
20453         PR target/59533
20454         PR target/52933
20455         PR target/54236
20456         PR target/51244
20457         * config/sh/sh-protos.h
20458         (sh_extending_set_of_reg::can_use_as_unextended_reg,
20459         sh_extending_set_of_reg::use_as_unextended_reg,
20460         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
20461         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
20462         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
20463         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
20464         (sh_treg_insns): New class.
20465         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
20466         (scope_counter): New class.
20467         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
20468         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
20469         sh_extending_set_of_reg::can_use_as_unextended_reg,
20470         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
20471         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
20472         sh_split_treg_set_expr): New functions.
20473         (addsubcosts): Handle treg_set_expr.
20474         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
20475         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
20476         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
20477         (sh_insn_operands_modified_between_p): Make non-static.
20478         * config/sh/predicates.md (zero_extend_movu_operand): Allow
20479         simple_mem_operand in addition to displacement_mem_operand.
20480         (zero_extend_operand): Don't allow zero_extend_movu_operand.
20481         (treg_set_expr, treg_set_expr_not_const01,
20482         arith_reg_or_treg_set_expr): New predicates.
20483         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
20484         arith_or_int_operand instead of logical_operand.  Convert to
20485         insn_and_split.  Try to optimize constant operand in splitter.
20486         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
20487         (*tstqi_t_zero): Delete.
20488         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
20489         (tstsi_t_and_not): Delete.
20490         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
20491         Convert to insn_and_split.
20492         (unnamed split, tstsi_t_zero_extract_xor,
20493         tstsi_t_zero_extract_subreg_xor_little,
20494         tstsi_t_zero_extract_subreg_xor_big): Delete.
20495         (*tstsi_t_shift_mask): New insn_and_split.
20496         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
20497         to recombine with surrounding insns when splitting.
20498         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
20499         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
20500         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
20501         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
20502         (*cbranch_div0s: Delete.
20503         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
20504         Try to recombine with surrounding insns when splitting.  Add operand
20505         order variants.
20506         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
20507         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
20508         *addc_r_r_msb, *addc_2r_msb): Delete.
20509         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
20510         order variant.
20511         (*addc_negreg_t): New insn_and_split.
20512         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
20513         Try to recombine with surrounding insns when splitting.
20514         Add operand order variants.
20515         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
20516         insn_and_split patterns.
20517         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
20518         surrounding insns when splitting.
20519         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
20520         (*rotcl): Likewise.  Add zero_extract variant.
20521         (*ashrsi2_31): New insn_and_split.
20522         (*negc): Convert to insn_and_split.  Use treg_set_expr.
20523         (*zero_extend<mode>si2_disp_mem): Update comment.
20524         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
20525         condition.
20526         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
20527         with surrounding insns when splitting.
20528         (any_treg_expr_to_reg): New insn_and_split.
20529         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
20530         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
20531         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
20532         *zero_extract_2): New single bit zero extract patterns.
20533         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
20534         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
20535         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
20536         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
20537         set destination.
20538         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
20539         register_operand for set source.
20541 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
20543         * i386.opt (prefetch_sse): New targetsave.
20544         * i386.c (ix86_function_specific_save): Save prefetch_sse.
20545         (ix86_function_specific_restore): Restore prefetch_sse and initialize
20546         ix86_cost/ix86_tune_cost.
20548 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
20550         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
20551         Support the JIT by using 0 as the language type.
20553 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
20555         PR target/64317
20556         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
20557         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
20558         (mark_regno_live, process_bb_lives): Pass new parameter value to
20559         make_hard_regno_born.
20561 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
20563         PR rtl-optimization/63637
20564         PR rtl-optimization/60663
20565         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
20566         if elt->cost is MAX_COST for ASM_OPERANDS.
20567         (find_sets_in_insn): Fix up comment typo.
20568         (cse_insn): Don't set src_volatile for all non-volatile
20569         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
20570         or with "memory" clobber.  Set elt->cost to MAX_COST
20571         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
20572         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
20574 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
20576         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
20577         alternative 1.
20579 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
20581         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
20582         libgcc/config/i386/elf-lib.h.
20584 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
20586         PR driver/64737
20587         * gcc.c (print_configuration): Don't print a blank line at the end
20588         here...
20589         (run_attempt): ... but here unstead.
20591         PR middle-end/64734
20592         * omp-low.c (scan_sharing_clauses): Don't ignore
20593         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
20594         on target data/update constructs.
20596 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20598         PR target/50928
20599         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
20600         (DEBUG_RELOAD): Removed define.
20601         (m32c_limit_reload_class): Enable traces with if DEBUG0.
20602         (m32c_function_arg): Added a type cast.
20603         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
20604         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
20605         * config/m32c/bitops.md (andqi3_16): Likewise.
20606         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
20607         (push_a01_l): Likewise.
20609 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
20611         PR jit/64721
20612         * main.c (main): Construct toplev instances with init_signals=true.
20613         * toplev.c (general_init): Add param "init_signals", and use it to
20614         conditionalize the calls to signal and host_hooks.extra_signals.
20615         (toplev::toplev): Add param "init_signals".
20616         (toplev::main): When invoking general_init, pass m_init_signals
20617         to control whether signal-handlers are installed.
20618         * toplev.h (toplev::toplev): Add param "init_signals".
20619         (toplev::m_init_signals): New field.
20621 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
20623         PR jit/64722
20624         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
20625         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
20626         latter may be affected by the former (e.g. on i686).
20628 2015-01-23  Martin Liska  <mliska@suse.cz>
20630         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
20631         false positive during profiledbootstrap.
20633 2015-01-23  Tom de Vries  <tom@codesourcery.com>
20635         PR libgomp/64672
20636         * lto-opts.c (lto_write_options): Output non-explicit conservative
20637         -fno-openacc.
20638         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
20639         (append_compiler_options): Pass -fopenacc through.
20641 2015-01-23  Tom de Vries  <tom@codesourcery.com>
20643         PR libgomp/64707
20644         * lto-opts.c (lto_write_options): Output non-explicit conservative
20645         -fno-openmp.
20646         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
20647         (append_compiler_options): Pass -fopenmp through.
20649 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
20651         PR debug/64511
20652         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
20653         GTY markup.
20655         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
20656         * diagnostic.def (DK_ICE_NOBT): New kind.
20657         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
20658         like DK_ICE, but never print backtrace.
20659         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
20660         (internal_error_no_backtrace): New function.
20661         * gcc.c (execute): Use internal_error_no_backtrace instead of
20662         internal_error.
20664 2015-01-22  Jeff Law  <law@redhat.com>
20666         PR target/52076
20667         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
20668         improve code density for small immediate to memory case.
20669         (insv): Better handle bitfield assignments when the field is
20670         being set to all ones.
20671         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
20672         operand predicate.
20674 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20675             Jakub Jelinek  <jakub@redhat.com>
20677         PR middle-end/64729
20678         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
20679         for !TARGET_LIBC_PROVIDES_SSP version and
20680         -fstack-protector-{all,strong,explicit} otherwise.
20681         * config/freebsd.h (LINK_SSP_SPEC): Handle
20682         -fstack-protector-{strong,explicit}.
20684 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
20685             H.J. Lu  <hongjiu.lu@intel.com>
20687         PR ipa/64694
20688         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
20689         heap.
20691 2015-01-22  Wei Mi  <wmi@google.com>
20693         PR rtl-optimization/64557
20694         * dse.c (record_store): Call get_addr for mem_addr.
20695         (check_mem_read_rtx): Likewise.
20697 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
20699         * fold-const.c (const_binop): Add early return for non-tcc_binary.
20701 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
20703         * toplev.c (init_local_tick): Process the failure when read
20704         fails for random_seed.
20706         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
20707         'pretty_name' to avoid memory overflow.
20709 2015-01-22  Richard Biener  <rguenther@suse.de>
20711         PR middle-end/64728
20712         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
20713         abnormal coalescing on undefined SSA names.
20715 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
20717         PR target/64688
20718         PR target/64477
20719         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
20720         for alternative 3.
20721         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
20723 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
20725         PR middle-end/63325
20726         * fold-const.c (fold_checksum_tree): Don't include value of
20727         expr->decl_with_vis.symtab_node in the checksum.
20729 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20731         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
20733 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
20735         PR driver/64690
20736         * gcc.c (insert_comments): New function.
20737         (try_generate_repro): Call it.
20738         (append_text): Removed.
20740 2015-01-22  Richard Biener  <rguenther@suse.de>
20742         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
20743         with IL incompatible options.  Properly honor user optimize
20744         attributes.
20746 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
20748         PR rtl-optimization/64682
20749         * combine.c (distribute_notes): When moving a death note for
20750         a register that is set in the new I2, make sure to put it
20751         before that new I2.
20753 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
20755         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
20756         not TARGET_DEFAULT.
20758 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
20760         PR debug/64511
20761         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
20762         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
20763         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
20765         PR sanitizer/64706
20766         * doc/invoke.texi (-fsanitize=vptr): Document.
20768         PR rtl-optimization/62078
20769         * dse.c: Include cfgcleanup.h.
20770         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
20771         anything call purge_all_dead_edges and cleanup_cfg at the end
20772         of the pass.
20774 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
20776         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
20777         edges.
20779 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20781         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
20782         decl attribute.
20784 2015-01-21  David Sherwood  <david.sherwood@arm.com>
20785             Tejas Belagod <Tejas.Belagod@arm.com>
20787         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
20788         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
20789         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
20790         Removed.
20792 2015-01-21  David Sherwood  <david.sherwood@arm.com>
20793             Tejas Belagod <Tejas.Belagod@arm.com>
20795         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
20796         (aarch64_reverse_mask): New decls.
20797         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
20798         (insn_count): New mode_attr.
20799         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
20800         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
20801         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
20802         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
20803         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
20804         (aarch64_simd_st4): New patterns.
20805         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
20806         (aarch64_reverse_mask): New functions.
20808 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
20810         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
20811         Declare.
20812         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
20813         addressing modes for BE.
20814         (aarch64_print_operand): Add 'R' specifier.
20815         (aarch64_simd_disambiguate_copy): Delete.
20816         (aarch64_simd_emit_reg_reg_move): New function.
20817         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
20818         in define_splits for structural moves.
20819         (mov<mode>): Use less restrictive predicates.
20820         (*aarch64_mov<mode>): Simplify and only allow for LE.
20821         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
20823 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
20825         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
20827 2015-01-21  Richard Henderson  <rth@redhat.com>
20829         PR target/64669
20830         * ccmp.c (used_in_cond_stmt_p): Remove.
20831         (expand_ccmp_expr): Don't use it.
20833 2015-01-21  Nick Clifton  <nickc@redhat.com>
20835         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
20836         PARALLELs.
20838 2015-01-21  Richard Biener  <rguenther@suse.de>
20840         PR middle-end/64313
20841         * tree-core.h (builtin_info, builtin_info_type): Turn from
20842         an object with two arrays into an array of an object with
20843         decl and two flags, implicit_p and declared_p.
20844         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
20845         set_builtin_decl, set_builtin_decl_implicit_p,
20846         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
20847         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
20848         * builtins.c (builtin_info): Adjust.
20849         * gimplify.c (gimplify_addr_expr): References to builtins
20850         that have been declared by the user makes them eligible for
20851         use by the compiler.  Call set_builtin_decl_implicit_p on them.
20853 2015-01-20  Jeff Law  <law@redhat.com>
20855         PR target/59946
20856         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
20857         allow pc-relative addresses in operand predicates or constraints.
20859 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
20861         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
20862         neon on aarch32 processors for stringops.
20864 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20866         PR ipa/63576
20867         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
20869 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20871         PR lto/45375
20872         * ipa-inline.c: Include lto-streamer.h
20873         (report_inline_failed_reason): Output source file differences and
20874         flags on optimization/target node mismatch.
20875         (can_inline_edge_p): Consider caller to be the outer inline function;
20876         be less restrictive about matching opimize and optimize_size attributes.
20877         (inline_account_function_p): Break out from ...
20878         (inline_small_functions): ... here.
20879         * ipa-inline-transform.c (clone_inlined_nodes): Use
20880         inline_account_function_p.
20881         (inline_call): Use optimize attribution; use inline_account_function_p.
20882         (inline_transform): Use opt_for_fn.
20883         * ipa-inline.h (inline_account_function_p): Declare.
20885 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
20887         PR debug/64663
20888         * dwarf2out.c (decl_piece_node): Don't put bitsize into
20889         mode if bitsize <= 0.
20890         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
20891         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
20892         sizes and positions.
20894 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
20896         * config/nios2/nios2.c (nios2_asm_file_end): Implement
20897         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
20898         needed.
20899         (TARGET_ASM_FILE_END): Define.
20901 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20903         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
20904         (struct tune_params): Use the enum.
20905         * arm.c (arm_*_tune): Update.
20906         (arm_option_override): Update.
20908 2015-01-20  Richard Biener  <rguenther@suse.de>
20910         PR ipa/64684
20911         * ipa-reference.c (add_static_var): Inline ...
20912         (analyze_function): ... here after splitting out from ...
20913         (is_proper_for_analysis): ... this.
20915 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
20917         PR target/64149
20918         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
20919         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
20920         replace the conditional with it's true branch.
20921         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
20922         (arm_lra_p): Remove.
20924 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
20926         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
20928 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20930         * config/tilegx/mul-tables.c: Move symtab.h include after
20931         coretypes.h include.
20932         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
20933         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
20934         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
20935         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
20936         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20938 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
20940         PR bootstrap/64676
20941         Revert:
20942         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
20944         PR rtl-optimization/64081
20945         * loop-iv.c (def_pred_latch_p): New function.
20946         (latch_dominating_def): Allow specific cases with non-single
20947         definitions.
20948         (iv_get_reaching_def): Likewise.
20949         (check_complex_exit_p): New function.
20950         (check_simple_exit): Use check_complex_exit_p to allow certain cases
20951         with exits not executing on any iteration.
20953 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20955         PR lto/45375
20956         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
20957         to set branch cost.
20959 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20961         PR lto/45375
20962         * i386.c (gate): Check flag_expensive_optimizations and
20963         optimize_size.
20964         (ix86_option_override_internal): Drop optimize_size condition
20965         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
20966         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
20967         MASK_PREFER_AVX128.
20968         (ix86_avx256_split_vector_move_misalign,
20969         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
20970         * sse.md (all uses of TARGET_PREFER_AVX128): Add
20971         optimize_insn_for_speed_p check.
20973 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
20975         * config/mips/mips.h (FP_ASM_SPEC): New define.
20976         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
20977         instead.
20979 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
20981         PR target/53988
20982         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
20983         nullptr for insn when reaching the first insn.
20984         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
20985         (sh_insn_operands_modified_between_p): Add nullptr check.
20986         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
20987         sign extending mem load if the insn contains any UNSPEC or
20988         UNSPEC_VOLATILE.
20990 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
20992         * params.def (inline-unit-growth): Drop to 15%.
20993         * invoke.texi (inline-unit-growth): Document change.
20995 2015-01-19  Martin Liska  <mliska@suse.cz>
20997         PR ipa/64668
20998         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
20999         function for second argument of OBJ_TYPE_REF.
21001 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21003         PR ipa/64218
21004         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
21005         whether function is an alias.
21007 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21009         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
21010         cases.
21012 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
21014         PR rtl-optimization/64671
21015         * lra-remat.c (operand_to_remat): Don't consider jump and call
21016         insns.
21018 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
21020         PR target/59828
21021         * config/rs6000/default64.h: Include rs6000-cpus.def.
21022         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
21023         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
21024         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
21025         and POWER8.
21026         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
21027         POWER8.
21028         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
21029         pseudo-op to specify assembler dialect.
21031 2015-01-19  Martin Liska  <mliska@suse.cz>
21033         PR ipa/64664
21034         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
21035         Handle safe potentially removed nodes during filtering.
21037 2015-01-19  Martin Liska  <mliska@suse.cz>
21039         * doc/extend.texi (no_icf): Add new attribute description.
21040         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
21041         where the pass attempts to merge a function with no_icf attribute.
21043 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21045         PR target/64532
21046         * doc/md.texi (ARM Options): Document register constraints.
21048 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
21049             Andrew Pinski  <apinski@cavium.com>
21051         PR target/64304
21052         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
21053         (ashl<mode>3): Don't expand if operands[2] is not constant.
21055 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21057         PR target/64448
21058         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
21059         Match xor-and-xor RTL pattern.
21061 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
21063         PR rtl-optimization/64081
21064         * loop-iv.c (def_pred_latch_p): New function.
21065         (latch_dominating_def): Allow specific cases with non-single
21066         definitions.
21067         (iv_get_reaching_def): Likewise.
21068         (check_complex_exit_p): New function.
21069         (check_simple_exit): Use check_complex_exit_p to allow certain cases
21070         with exits not executing on any iteration.
21072 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
21074         * common.opt (fgraphite): Fix a typo.
21076 2015-01-19  Felix Yang  <felix.yang@huawei.com>
21078         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
21079         pattern.
21080         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
21081         uminp, smax_nanp, smin_nanp): New builtins.
21082         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
21083         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
21084         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
21085         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
21086         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
21087         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
21088         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
21089         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
21090         vpminnms_f32): Rewrite using builtin functions.
21092 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
21094         PR libgomp/64625
21095         * omp-low.c (offload_symbol_decl): Remove variable.
21096         (get_offload_symbol_decl): Remove function.
21097         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
21098         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
21099         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
21100         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
21101         BUILT_IN_GOACC_UPDATE don't pass it at all.
21103 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
21105         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
21106         callers.
21108 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
21110         * ipa-chkp.c (chkp_produce_thunks): Add early param
21111         to split thunks production into two passes.  Keep
21112         'always_inline' function bodies after the first pass.
21113         (pass_data_ipa_chkp_early_produce_thunks): New.
21114         (pass_ipa_chkp_early_produce_thunks): New.
21115         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
21116         chkp_produce_thunks signature.
21117         (make_pass_ipa_chkp_early_produce_thunks): New.
21118         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
21119         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
21120         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
21122 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
21124         * cgraph.c (cgraph_node::dump): Dump profile flags.
21126 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
21128         PR target/64652
21129         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
21130         reg appear first in the parallel.
21132 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
21134         * ipa-reference.c (set_reference_optimization_summary,
21135         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
21136         disabled.
21137         (ignore_module_statics): New static var.
21138         (propagate_bits): If ipa-reference is disabled, do not look into local
21139         properties.
21140         (analyze_function): Disable analysis when ipa_reference is disabled.
21141         (generate_summary): Do not dump when reference is disabled;
21142         collect vars accessed from functions with ipa-reference disabled.
21143         (get_read_write_all_from_node): When ipa-reference is disabled, use the
21144         node flags.
21145         (gate): Enable for LTO.
21146         (ignore_edge_p): New function.
21147         (propagate): Skip functions w/o ipa-reference analysis.
21148         * optc-save-gen.awk: Handle optimize_debug correctly.
21149         * opth-gen.awk: Likewise.
21150         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
21151         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
21152         fira-share-save-slots, fira-share-spill-slots,
21153         fmodulo-sched-allow-regmoves, fpartial-inlining,
21154         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
21155         ftracer, ftree-parallelize-loops, fassociative-math,
21156         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
21157         Optimization
21158         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
21159         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
21160         Optimization.
21161         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
21162         Fix for IPA.
21164 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
21166         PR ipa/64378
21167         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
21168         flag correctly.
21169         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
21171 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
21173         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
21174         Remove duplicate option listings.
21176 2015-01-18  Felix Yang  <felix.yang@huawei.com>
21178         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
21179         (autofdo_source_profile::get_callsite_total_count,
21180         function_instance::get_function_instance_by_decl,
21181         string_table::get_index, string_table::get_index_by_decl,
21182         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
21183         Fix comment typos. Reformatting and minor code rearrangement.
21185 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
21187         * config/rs6000/rs6000.md (probe_stack): Delete.
21188         (probe_stack_address): New.
21190 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
21192         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
21193         to test for 32-bit ABIs, not !TARGET_POWERPC64.
21195 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
21197         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
21198         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
21199         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
21200         snafu.
21201         (rs6000_libcall_value): Use the new function.
21203 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
21205         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
21207 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
21209         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
21210         implement a more precise life analysis for it during backward scan.
21212 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
21214         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
21216 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
21218         PR rtl-optimization/52773
21219         * calls.c (emit_library_call_value): When pushing arguments use
21220         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
21221         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
21222         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
21224 2015-01-17  Jeff Law  <law@redhat.com>
21226         PR rtl-optimization/32790
21227         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
21228         not ZERO_EXTEND in SET_DESTs.
21230 2015-01-17  Alan Modra  <amodra@gmail.com>
21232         * cprop.c (do_local_cprop): Revert last change.
21234 2015-01-16  DJ Delorie  <dj@redhat.com>
21235             Nick Clifton  <nickc@redhat.com>
21237         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
21238         (addhi3_real): Likewise.  Fix [HL+0] syntax.
21239         (subqi3_real): Likewise.
21240         (subhi3_real): Likewise.
21241         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
21242         (cbranchhi4_real): Likewise.
21243         (cbranchhi4_real_inverted): Likewise.
21244         (cbranchsi4_real_lt): Likewise.
21245         (cbranchsi4_real_ge): Likewise.
21246         (cbranchsi4_real_ge): Likewise.
21247         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
21248         (sub<mode>3_virt): Likewise.
21249         (cbranchqi4_virt): Likewise.
21250         (cbranchhi4_virt): Likewise.
21251         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
21252         always use '[reg+imm]' even when imm is zero.
21253         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
21254         (rl78_general_operand): New.
21255         (rl78_nonimmediate_operand): New.
21256         (rl78_nonfar_operand): Use them.
21257         (rl78_nonfar_nonimm_operand): Likewise.
21258         (rl78_stack_based_mem): Fix.
21259         * config/rl78/constraints.md (Ibqi): New.
21260         (IBqi): New.
21261         (Wsa): New.
21262         (Wsf): New.
21263         (Cs1): Fix.
21264         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
21265         (iorqi3): Likewise.
21266         (xorqi3): Likewise.
21267         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
21269         * config/rl78/constrains (Qs8): New constraint.
21270         * config/rl78/rl78.c (rl78_flags_already_set): New function.
21271         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
21272         * config/rl78/rl78-real.md (update_Z): New attribute.
21273         Update patterns to set it.
21274         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
21275         shorter compare and branch sequence can be used.
21276         (cbranchhi4_real): Likewise.
21277         (cbranchhi4_real_inverted): Likewise.
21279         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
21280         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
21281         address space.
21282         * config/rl78/rl78.c (rl78_get_name_encoding): New.
21283         (rl78_option_override): Allow -mes0 only if C.
21284         (characterize_address): Support subregs of symbol_refs.
21285         (rl78_addr_space_address_mode): Move.  Add __near.
21286         (rl78_far_p): Likewise.
21287         (rl78_addr_space_pointer_mode): Likewise.
21288         (rl78_as_legitimate_address): Likewise.
21289         (rl78_addr_space_subset_p): Likewise.
21290         (rl78_addr_space_convert): Likewise.
21291         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
21292         symbols with -mes0.
21293         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
21294         addressing.
21295         (rl78_alloc_physical_registers_op1): Change logic to prefer
21296         symbol[BC] addressing.
21297         (frodata_section): New.
21298         (rl78_asm_init_sections): Initialize it.
21299         (rl78_select_section): Put __far readonly symbols in .frodata.
21300         (rl78_make_type_far): New.
21301         (rl78_insert_attributes): Force all readonly symbols to be
21302         __far when -mes0.
21303         (rl78_asm_out_integer): New.
21304         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
21305         * config/rl78/rl78.opt (-mes0): New.
21307         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
21308         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
21309         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
21310         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
21311         (rl78_saddr_p): New.
21312         (rl78_output_aligned_common): New.
21313         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
21314         (rl78_handle_saddr_attribute): New.
21315         (rl78_handle_naked_attribute): New.
21316         (rl78_attribute_table): Add saddr.
21317         (rl78_print_operand_1): Don't print '!' on saddr operands.
21318         (rl78_print_operand_1): Strip encodings.
21319         (rl78_sfr_p): New.
21320         (rl78_strip_name_encoding): New.
21321         (rl78_attrlist_to_encoding): New.
21322         (rl78_encode_section_info): New.
21323         (rl78_asm_init_sections): New.
21324         (rl78_select_section): New.
21325         (rl78_output_labelref): New.
21326         (rl78_output_aligned_common): New.
21327         (rl78_asm_out_integer): New.
21328         (rl78_asm_ctor_dtor): New.
21329         (rl78_asm_constructor): New.
21330         (rl78_asm_destructor): New.
21332         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
21333         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
21334         (transcode_memory_rtx): Update.
21335         (rl78_expand_epilogue): Use A_REG instead of 0.
21337 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21339         * config/arm/arm-protos.h (struct tune_params): New field
21340         sched_autopref_queue_depth.
21341         * config/arm/arm.c (sched-int.h): Include header.
21342         (arm_first_cycle_multipass_dfa_lookahead_guard,)
21343         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
21344         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
21345         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
21346         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
21347         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
21348         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
21349         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
21350         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
21351         * config/arm/t-arm (arm.o): Update.
21352         * haifa-sched.c (update_insn_after_change): Update.
21353         (rank_for_schedule): Use auto-prefetcher model, if requested.
21354         (autopref_multipass_init): New static function.
21355         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
21356         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
21357         variable for debug dumps.
21358         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
21359         (autopref_multipass_dfa_lookahead_guard): New global function that
21360         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
21361         (init_h_i_d): Update.
21362         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
21363         * sched-int.h (enum autopref_multipass_data_status): New const enum.
21364         (autopref_multipass_data_): Structure for auto-prefetcher data.
21365         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
21366         (struct _haifa_insn_data:autopref_multipass_data): New field.
21367         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
21368         (autopref_multipass_dfa_lookahead_guard): Declare.
21370 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21372         * rtlanal.c (get_base_term): Handle SCRATCH.
21374 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21376         * config/aarch64/aarch64.c
21377         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
21378         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
21379         * config/arm/arm.c
21380         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
21381         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
21383 2015-01-17  Alan Modra  <amodra@gmail.com>
21385         * cprop.c (do_local_cprop): Disallow replacement of fixed
21386         hard registers.
21388 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21390         PR target/62066
21391         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
21392         early return 0.
21394 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21396         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
21397         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
21399 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21401         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
21402         * config/arm/thumb1.md: ... Here.
21404 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
21406         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
21407         TImode for TARGET_32BIT.
21409 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
21411         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
21412         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
21413         as ...
21414         (rs6000_abi_word_mode): New function.
21416 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
21418         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
21419         instead of UNITS_PER_WORD to describe the size of stack slots.
21421 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
21423         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
21424         as rs6000_promote_function_mode.  Move comment to there.
21425         (rs6000_promote_function_mode): New function.
21427 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
21429         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
21430         -mpowerpc64 is active.
21432 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
21434         PR middle-end/64353
21435         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
21436         virtuals on start.
21438 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
21440         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
21441         introduced in revision 219724.
21443 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21444             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21446         PR target/64263
21447         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
21448         destination is not a GP reg.
21449         (*movdi_aarch64): Likewise.
21451 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
21453         PR target/64623
21454         * config/rs6000/default64.h: Revert ISA change.
21456 2015-01-16  Richard Biener  <rguenther@suse.de>
21458         PR middle-end/64614
21459         * tree-ssa-uninit.c: Include tree-cfg.h.
21460         (MAX_SWITCH_CASES): New define.
21461         (convert_control_dep_chain_into_preds): Handle switch statements.
21462         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
21463         (normalize_one_pred_1): Do not split bit-manipulations.
21464         Record (x & CST).
21466 2015-01-16  Richard Biener  <rguenther@suse.de>
21468         PR tree-optimization/64568
21469         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
21470         complex load rewriting for TARGET_MEM_REFs.
21472 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
21474         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
21476 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
21478         PR target/64149
21479         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
21480         variable.
21481         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
21482         (aarch64_lra_p): Remove.
21484 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
21486         PR target/64363
21487         * ipa-chkp.h (chkp_instrumentable_p): New.
21488         * ipa-chkp.c: Include tree-inline.h.
21489         (chkp_instrumentable_p): New.
21490         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
21491         Fix processing of not instrumentable functions.
21492         (chkp_versioning): Use chkp_instrumentable_p. Warn about
21493         not instrumentable functions.
21494         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
21495         chkp_instrumentable_p.
21496         * tree-inline.h (copy_forbidden): New.
21497         * tree-inline.c (copy_forbidden): Not static anymore.
21499 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21501         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
21502         ptr1, ptr2 unused.
21504 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
21506         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
21507         type OP_OUT to OP_INOUT.
21509 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
21511         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
21512         (high x) y) to y if x and y have the same base.
21514 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
21516         * config/arm/cortex-a57.md: New.
21517         * config/aarch64/aarch64.md: Include it.
21518         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
21519         * config/aarch64/aarch64-tune.md: Regenerate.
21521 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
21523         PR target/64015
21524         * ccmp.c (expand_ccmp_next): New function.
21525         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
21526         and compare insn sequence.
21527         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
21528         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
21529         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
21530         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
21531         (*ccmp_ior): Changed to ccmp_ior<mode>.
21532         (cmp<mode>): New pattern.
21533         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
21534         parameters.
21535         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
21537 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
21539         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
21540         _mm256_bsrli_epi128): New.
21541         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
21543 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
21545         * expmed.c (store_bit_field_using_insv): Improve warning message.
21546         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
21548 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
21550         PR rtl-optimization/64011
21551         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
21552         there is partial overflow.
21554 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
21556         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
21557         prototype.
21558         (nds32_expand_epilogue_v3pop): Likewise.
21559         * config/nds32/nds32.md (sibcall): Define this for sibling call
21560         optimization.
21561         (sibcall_register): Likewise.
21562         (sibcall_immediate): Likewise.
21563         (sibcall_value): Likewise.
21564         (sibcall_value_register): Likewise.
21565         (sibcall_value_immediate): Likewise.
21566         (sibcall_epilogue): Likewise.
21567         (epilogue): Pass false to indicate this is not a sibcall epilogue.
21568         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
21569         (nds32_expand_epilogue_v3pop): Likewise.
21571 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
21573         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
21574         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
21575         (return_internal): New.
21576         (return): Define this named pattern.
21577         (simple_return): Define this named pattern.
21578         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
21579         pattern instead of unspec_volatile_func_return.
21580         (nds32_expand_epilogue_v3pop): Likewise.
21581         (nds32_can_use_return_insn): New function.
21583 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
21585         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
21586         * config/nds32/nds32.md (pop25return): New.
21587         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
21588         pop25return pattern.
21590 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
21592         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
21593         -mforbid-fp-as-gp, and -mex9 options.
21595 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
21597         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
21598         remove -mgp-direct option.
21600 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
21602         * doc/invoke.texi (--param early-inlining-insns): Update default value.
21603         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
21605 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
21607         * ipa-inline.c (inline_small_functions): Work around hints
21608         cache issue.
21610 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
21612         PR target/59710
21613         * doc/invoke.texi (Option Summary): Document new Nios II
21614         -mgpopt= syntax.
21615         (Nios II Options): Likewise.
21616         * config/nios2/nios2.opt: Add -mgpopt= option support.
21617         Modify existing -mgpopt and -mno-gpopt options to be aliases.
21618         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
21619         * config/nios2/nios2.c (nios2_option_override): Adjust
21620         -mgpopt defaulting.
21621         (nios2_in_small_data_p): Return true for explicit small data
21622         sections even with -G0.
21623         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
21624         option choices.
21626 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
21628         PR ipa/64612
21629         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
21630         of comdat locals.
21631         (inline_call): Fix removal of aliases.
21633 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
21635         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
21636         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
21637         * opts.c (common_handle_option): Add -fsanitize=vptr.
21638         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
21639         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
21640         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
21641         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
21642         (ubsan_expand_vptr_ifn): New prototype.
21643         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
21644         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
21645         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
21646         expand_LOOP_VECTORIZED): Make argument nameless, remove
21647         ATTRIBUTE_UNUSED.
21648         (expand_UBSAN_VPTR): New function.
21649         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
21650         in fn spec.
21651         (UBSAN_VPTR): New internal function.
21652         * sanopt.c (tree_map_traits): Renamed to ...
21653         (sanopt_tree_map_traits): ... this.
21654         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
21655         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
21656         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
21657         (maybe_optimize_ubsan_vptr_ifn): New function.
21658         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
21659         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
21660         -fsanitize=vptr.
21661         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
21662         internal calls like pure functions for aliasing, even when they
21663         have other side-effects that prevent making them ECF_PURE.
21664         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
21665         (ubsan_expand_vptr_ifn): New function.
21667 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
21669         PR rtl-optimization/64110
21670         * stmt.c (parse_output_constraint): Process '^' and '$'.
21671         (parse_input_constraint): Ditto.
21672         * lra-constraints.c (process_alt_operands): Process the new
21673         constraints.
21674         * ira-costs.c (record_reg_classes): Process the new constraint
21675         '^'.
21676         * genoutput.c (indep_constraints): Add '^' and '$'.
21677         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
21678         * doc/md.texi: Add description of the new constraints.
21680 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
21681             Bernd Schmidt  <bernds@codesourcery.com>
21682             Cesar Philippidis  <cesar@codesourcery.com>
21683             James Norris  <jnorris@codesourcery.com>
21684             Tom de Vries  <tom@codesourcery.com>
21685             Ilmir Usmanov  <i.usmanov@samsung.com>
21686             Dmitry Bocharnikov  <dmitry.b@samsung.com>
21687             Evgeny Gavrin  <e.gavrin@samsung.com>
21688             Jakub Jelinek  <jakub@redhat.com>
21690         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
21691         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21692         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21693         New function types.
21694         * builtins.c: Include "gomp-constants.h".
21695         (expand_builtin_acc_on_device): New function.
21696         (expand_builtin, is_inexpensive_builtin): Handle
21697         BUILT_IN_ACC_ON_DEVICE.
21698         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
21699         New macros.
21700         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
21701         flag_openmp.
21702         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
21703         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
21704         i386/intelmic-offload.h.
21705         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
21706         to libgomp and its dependencies.
21707         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
21708         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
21709         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
21710         * config/ia64/hpux.h (LIB_SPEC): Likewise.
21711         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21712         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
21713         * doc/generic.texi: Update for OpenACC changes.
21714         * doc/gimple.texi: Likewise.
21715         * doc/invoke.texi: Likewise.
21716         * doc/sourcebuild.texi: Likewise.
21717         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
21718         GF_OMP_FOR_KIND_OACC_LOOP.
21719         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
21720         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
21721         GF_OMP_TARGET_KIND_OACC_UPDATE,
21722         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21723         Dump more data.
21724         * gimple.c: Update comments for OpenACC changes.
21725         * gimple.def: Likewise.
21726         * gimple.h: Likewise.
21727         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
21728         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21729         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
21730         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21731         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
21732         appropriate place.
21733         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
21734         * gimplify.c: Include "gomp-constants.h".
21735         Update comments for OpenACC changes.
21736         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
21737         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
21738         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21739         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
21740         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21741         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21742         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
21743         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21744         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
21745         OMP_CLAUSE_SEQ.
21746         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
21747         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
21748         OMP_CLAUSE_SET_MAP_KIND.
21749         (gimplify_oacc_cache): New function.
21750         (gimplify_omp_for): Handle OACC_LOOP.
21751         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
21752         OACC_DATA.
21753         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
21754         OACC_EXIT_DATA, OACC_UPDATE.
21755         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
21756         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
21757         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
21758         (gimplify_body): Consider flag_openacc next to flag_openmp.
21759         * lto-streamer-out.c: Include "gomp-constants.h".
21760         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
21761         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
21762         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
21763         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
21764         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
21765         (BUILT_IN_ACC_ON_DEVICE): New builtins.
21766         * omp-low.c: Include "gomp-constants.h".
21767         Update comments for OpenACC changes.
21768         (struct omp_context): Add reduction_map, gwv_below, gwv_this
21769         members.
21770         (extract_omp_for_data, use_pointer_for_field, install_var_field)
21771         (new_omp_context, delete_omp_context, scan_sharing_clauses)
21772         (create_omp_child_function, scan_omp_for, scan_omp_target)
21773         (check_omp_nesting_restrictions, lower_reduction_clauses)
21774         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
21775         Update for OpenACC changes.
21776         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
21777         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
21778         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
21779         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21780         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
21781         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
21782         OMP_CLAUSE_MAP_*.
21783         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
21784         Handle GF_OMP_FOR_KIND_OACC_LOOP.
21785         (expand_omp_target, lower_omp_target): Handle
21786         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21787         GF_OMP_TARGET_KIND_OACC_UPDATE,
21788         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
21789         GF_OMP_TARGET_KIND_OACC_DATA.
21790         (pass_expand_omp::execute, execute_lower_omp)
21791         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
21792         flag_openmp.
21793         (offload_symbol_decl): New variable.
21794         (oacc_get_reduction_array_id, oacc_max_threads)
21795         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
21796         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
21797         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
21798         (oacc_gimple_assign, oacc_initialize_reduction_data)
21799         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
21800         functions.
21801         (is_targetreg_ctx): Remove function.
21802         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
21803         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
21804         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21805         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
21806         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
21807         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
21808         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
21809         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
21810         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
21811         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
21812         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
21813         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
21814         * tree-core.h: Update comments for OpenACC changes.
21815         (enum omp_clause_map_kind): Remove.
21816         (struct tree_omp_clause): Change type of map_kind member from enum
21817         omp_clause_map_kind to unsigned char.
21818         * tree-inline.c: Update comments for OpenACC changes.
21819         * tree-nested.c: Likewise.  Include "gomp-constants.h".
21820         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
21821         (convert_tramp_reference_stmt, convert_gimple_call): Update for
21822         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
21823         OMP_CLAUSE_SET_MAP_KIND.
21824         * tree-pretty-print.c: Include "gomp-constants.h".
21825         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
21826         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
21827         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
21828         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
21829         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21830         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
21831         instead of OMP_CLAUSE_MAP_*.
21832         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
21833         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
21834         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21835         * tree-streamer-in.c: Include "gomp-constants.h".
21836         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
21837         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
21838         * tree-streamer-out.c: Include "gomp-constants.h".
21839         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
21840         OMP_CLAUSE_MAP_*.
21841         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
21842         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
21843         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
21844         * tree.c (omp_clause_num_ops): Update accordingly.
21845         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
21846         Likewise.
21847         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
21848         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
21849         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
21850         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
21851         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
21852         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
21853         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
21854         (OMP_CLAUSE_SET_MAP_KIND): New macro.
21855         * varpool.c (varpool_node::get_create): Consider flag_openacc next
21856         to flag_openmp.
21857         * config/i386/intelmic-offload.h: New file.
21858         * config/nvptx/offload.h: Likewise.
21860 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21862         * explow.h: Remove duplicate contents.
21863         * dojump.h: Likewise.
21865 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
21867         * arm.c (arm_xgene_tune): Add default initializer for instruction
21868         fusion.
21870 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
21872         PR ipa/64068
21873         PR ipa/64559
21874         * ipa.c (symbol_table::remove_unreachable_nodes):
21875         Do not put abstract origins into boundary.
21877 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
21879         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
21880         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
21882 2015-01-15  Steve Ellcey  <sellcey@mips.com>
21884         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
21885         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
21886         builtins.def, and chkp-builtins.def.
21888 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
21890         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
21891         ISA 2.7 (POWER8).
21893 2015-01-15  Richard Biener  <rguenther@suse.de>
21895         PR tree-optimization/61743
21896         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
21897         information on PHIs for some simple cases.
21899 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21901         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
21902         Include xgene1.md.
21903         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
21904         * config/arm/arm-cores.def (xgene1): New entry.
21905         * config/arm/arm-tables.opt: Regenerate.
21906         * config/arm/arm-tune.md: Regenerate.
21907         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
21909 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
21911         * tree-if-conv.c: Include hash-map.h.
21912         (aggressive_if_conv): New variable.
21913         (fold_build_cond_expr): Add simplification of non-zero condition.
21914         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
21915         destination block is not always executed.
21916         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
21917         than two predecessors if AGGRESSIVE_IF_CONV is true.
21918         (if_convertible_stmt_p): Fix commentary.
21919         (all_preds_critical_p): New function.
21920         (has_pred_critical_p): New function.
21921         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
21922         BB can have more than two predecessors and all incoming edges can be
21923         critical.
21924         (predicate_bbs): Skip predication for loop exit block, use build2_loc
21925         to compute predicate for true edge.
21926         (find_phi_replacement_condition): Delete this function.
21927         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
21928         Allow interchange PHI arguments if EXTENDED is false.
21929         Change check that block containing reduction statement candidate
21930         is predecessor of phi-block since phi may have more than two arguments.
21931         (phi_args_hash_traits): New helper structure.
21932         (struct phi_args_hash_traits): New type.
21933         (phi_args_hash_traits::hash): New function.
21934         (phi_args_hash_traits::equal_keys): New function.
21935         (gen_phi_arg_condition): New function.
21936         (predicate_scalar_phi): Add handling of phi nodes with more than two
21937         arguments, delete COND and TRUE_BB arguments, insert body of
21938         find_phi_replacement_condition to predicate ordinary phi nodes.
21939         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
21940         delete call of find_phi_replacement_condition and invoke
21941         predicate_scalar_phi with two arguments.
21942         (insert_gimplified_predicates): Add assert that non-predicated block
21943         don't have statements to insert.
21944         (ifcvt_split_critical_edges): New function.
21945         (ifcvt_split_def_stmt): Likewise.
21946         (ifcvt_walk_pattern_tree): Likewise.
21947         (stmt_is_root_of_bool_pattern): Likewise.
21948         (ifcvt_repair_bool_pattern): Likewise.
21949         (ifcvt_local_dce): Likewise.
21950         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
21951         is copy of inner or outer loop force_vectorize field, invoke
21952         ifcvt_split_critical_edges, ifcvt_local_dce and
21953         ifcvt_repair_bool_pattern for aggressive if-conversion.
21955 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
21957         * config/aarch64/aarch64.md: Include xgene1.md.
21958         * config/aarch64/xgene1.md: New file.
21960 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21962         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
21963         xgene1 (APM XGene-1) core definition.
21964         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
21965         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
21966         * doc/invoke.texi: Document -mcpu=xgene1.
21968 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21970         * dojump.h: New header file.
21971         * explow.h: Likewise.
21972         * expr.h: Remove includes.
21973         Move expmed.c prototypes to expmed.h.
21974         Move dojump.c prototypes to dojump.h.
21975         Move alias.c prototypes to alias.h.
21976         Move explow.c prototypes to explow.h.
21977         Move calls.c prototypes to calls.h.
21978         Move emit-rtl.c prototypes to emit-rtl.h.
21979         Move varasm.c prototypes to varasm.h.
21980         Move stmt.c prototypes to stmt.h.
21981         (saved_pending_stack_adjust): Move to dojump.h.
21982         (adjust_address): Move to explow.h.
21983         (adjust_address_nv): Move to emit-rtl.h.
21984         (adjust_bitfield_address): Likewise.
21985         (adjust_bitfield_address_size): Likewise.
21986         (adjust_bitfield_address_nv): Likewise.
21987         (adjust_automodify_address_nv): Likewise.
21988         * explow.c (expr_size): Move to expr.c.
21989         (int_expr_size): Likewise.
21990         (tree_expr_size): Likewise.
21991         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21992         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21993         * genemit.c (main): Generate includes statistics.h, real.h,
21994         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
21995         stmt.h.
21996         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
21997         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
21998         explow.h, emit-rtl.h, stmt.h.
21999         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
22000         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
22001         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
22002         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
22003         emit-rtl.h, varasm.h, stmt.h.
22004         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
22005         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
22006         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
22007         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
22008         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22009         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
22010         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
22011         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
22012         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
22013         tm.h tree.h varasm.h vec.h wide-int.h.
22014         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22015         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
22016         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
22017         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
22018         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
22019         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
22020         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
22021         * loop-iv.c: Likewise.
22022         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
22023         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
22024         statistics.h stmt.h tree.h varasm.h wide-int.h.
22025         * lra-constraints.c: Likewise.
22026         * lra-eliminations.c: Likewise.
22027         * lra-lives.c: Likewise.
22028         * lra-remat.c: Likewise.
22029         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22030         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
22031         statistics.h stmt.h tree.h varasm.h wide-int.h.
22032         * hw-doloop.c: Likewise.
22033         * ira-color.c: Likewise.
22034         * ira-emit.c: Likewise.
22035         * loop-doloop.c: Likewise.
22036         * loop-invariant.c: Likewise.
22037         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22038         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
22039         statistics.h stmt.h tree.h varasm.h wide-int.h.
22040         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
22041         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
22042         statistics.h stmt.h tree.h varasm.h wide-int.h.
22043         * combine-stack-adj.c: Likewise.
22044         * cse.c: Likewise.
22045         * ddg.c: Likewise.
22046         * ifcvt.c: Likewise.
22047         * ira-costs.c: Likewise.
22048         * jump.c: Likewise.
22049         * lra-coalesce.c: Likewise.
22050         * lra-spills.c: Likewise.
22051         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22052         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
22053         stmt.h varasm.h wide-int.h.
22054         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22055         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
22056         varasm.h.
22057         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
22058         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
22059         statistics.h stmt.h varasm.h wide-int.h.
22060         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
22061         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
22062         varasm.h wide-int.h.
22063         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
22064         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
22065         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
22066         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
22067         statistics.h stmt.h.
22068         * config/tilepro/tilepro.c: Likewise.
22069         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
22070         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
22071         * config/pdp11/pdp11.c: Likewise.
22072         * config/xtensa/xtensa.c: Likewise.
22073         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
22074         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
22075         varasm.h.
22076         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22077         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
22078         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
22079         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22080         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
22081         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
22082         * rtl-chkp.c: Likewise.
22083         * tree-chkp-opt.c: Likewise.
22084         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
22085         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
22086         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
22087         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22088         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
22089         statistics.h stmt.h.
22090         * tree-vect-data-refs.c: Likewise.
22091         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
22092         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22093         rtl.h statistics.h stmt.h varasm.h.
22094         * internal-fn.c: Likewise.
22095         * ipa-icf-gimple.c: Likewise.
22096         * lto-section-out.c: Likewise.
22097         * tree-data-ref.c: Likewise.
22098         * tree-nested.c: Likewise.
22099         * tree-outof-ssa.c: Likewise.
22100         * tree-predcom.c: Likewise.
22101         * tree-pretty-print.c: Likewise.
22102         * tree-scalar-evolution.c: Likewise.
22103         * tree-ssa-strlen.c: Likewise.
22104         * tree-vect-loop.c: Likewise.
22105         * tree-vect-patterns.c: Likewise.
22106         * tree-vect-slp.c: Likewise.
22107         * tree-vect-stmts.c: Likewise.
22108         * tsan.c: Likewise.
22109         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22110         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
22111         stmt.h.
22112         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
22113         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22114         statistics.h stmt.h varasm.h.
22115         * loop-unroll.c: Likewise.
22116         * ubsan.c: Likewise.
22117         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
22118         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
22119         stmt.h varasm.h.
22120         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22121         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
22122         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
22123         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
22124         statistics.h stmt.h.
22125         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
22126         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
22127         statistics.h stmt.h varasm.h.
22128         * gimple-match-head.c: Likewise.
22129         * lto-cgraph.c: Likewise.
22130         * lto-section-in.c: Likewise.
22131         * lto-streamer-in.c: Likewise.
22132         * lto-streamer-out.c: Likewise.
22133         * tree-affine.c: Likewise.
22134         * tree-cfg.c: Likewise.
22135         * tree-cfgcleanup.c: Likewise.
22136         * tree-if-conv.c: Likewise.
22137         * tree-into-ssa.c: Likewise.
22138         * tree-ssa-alias.c: Likewise.
22139         * tree-ssa-copyrename.c: Likewise.
22140         * tree-ssa-dse.c: Likewise.
22141         * tree-ssa-forwprop.c: Likewise.
22142         * tree-ssa-live.c: Likewise.
22143         * tree-ssa-math-opts.c: Likewise.
22144         * tree-ssa-pre.c: Likewise.
22145         * tree-ssa-sccvn.c: Likewise.
22146         * tree-tailcall.c: Likewise.
22147         * tree-vect-generic.c: Likewise.
22148         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22149         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
22150         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22151         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
22152         * varasm.c: Likewise.
22153         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22154         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
22155         varasm.h.
22156         * init-regs.c: Likewise.
22157         * ira.c: Likewise.
22158         * omp-low.c: Likewise.
22159         * stack-ptr-mod.c: Likewise.
22160         * tree-ssa-reassoc.c: Likewise.
22161         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22162         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
22163         varasm.h.
22164         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22165         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
22166         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22167         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
22168         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22169         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
22170         * tree-ssa-phiopt.c: Likewise.
22171         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22172         fixed-value.h hashtab.h real.h statistics.h stmt.h.
22173         * config/fr30/fr30.c: Likewise.
22174         * config/frv/frv.c: Likewise.
22175         * expr.c: Likewise.
22176         * final.c: Likewise.
22177         * optabs.c: Likewise.
22178         * passes.c: Likewise.
22179         * simplify-rtx.c: Likewise.
22180         * stmt.c: Likewise.
22181         * toplev.c: Likewise.
22182         * var-tracking.c: Likewise.
22183         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22184         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
22185         * lower-subreg.c: Likewise.
22186         * postreload-gcse.c: Likewise.
22187         * ree.c: Likewise.
22188         * reginfo.c: Likewise.
22189         * store-motion.c: Likewise.
22190         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22191         fixed-value.h hashtab.h real.h stmt.h varasm.h.
22192         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22193         fixed-value.h hashtab.h statistics.h stmt.h.
22194         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22195         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
22196         * except.c: Likewise.
22197         * explow.c: Likewise.
22198         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22199         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
22200         varasm.h.
22201         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22202         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
22203         * tree-ssa-structalias.c: Likewise.
22204         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22205         fixed-value.h insn-config.h real.h statistics.h.
22206         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22207         fixed-value.h insn-config.h real.h statistics.h stmt.h.
22208         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22209         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
22210         * cfgbuild.c: Likewise.
22211         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22212         fixed-value.h real.h rtl.h statistics.h stmt.h.
22213         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22214         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
22215         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22216         fixed-value.h real.h statistics.h stmt.h.
22217         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22218         fixed-value.h real.h statistics.h stmt.h varasm.h.
22219         * cprop.c: Likewise.
22220         * modulo-sched.c: Likewise.
22221         * postreload.c: Likewise.
22222         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
22223         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
22224         statistics.h stmt.h varasm.h.
22225         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
22226         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22227         rtl.h statistics.h stmt.h varasm.h.
22228         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
22229         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
22230         varasm.h.
22231         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
22232         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
22233         varasm.h.
22234         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
22235         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
22236         varasm.h.
22237         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
22238         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
22239         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
22240         function.h real.h statistics.h stmt.h varasm.h.
22241         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
22242         insn-config.h real.h statistics.h stmt.h.
22243         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
22244         statistics.h stmt.h.
22245         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
22246         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
22247         statistics.h stmt.h varasm.h.
22248         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
22249         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
22250         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
22251         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
22252         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
22253         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
22254         statistics.h stmt.h varasm.h.
22255         * ipa-polymorphic-call.c: Likewise.
22256         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
22257         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22258         statistics.h stmt.h.
22259         * config/c6x/c6x.c: Likewise.
22260         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
22261         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22262         statistics.h stmt.h varasm.h.
22263         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
22264         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
22265         stmt.h varasm.h.
22266         * ipa-split.c: Likewise.
22267         * tree-eh.c: Likewise.
22268         * tree-ssa-dce.c: Likewise.
22269         * tree-ssa-loop-niter.c: Likewise.
22270         * tree-vrp.c: Likewise.
22271         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
22272         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
22273         stmt.h.
22274         * config/nds32/nds32-fp-as-gp.c: Likewise.
22275         * config/nds32/nds32-intrinsic.c: Likewise.
22276         * config/nds32/nds32-isr.c: Likewise.
22277         * config/nds32/nds32-md-auxiliary.c: Likewise.
22278         * config/nds32/nds32-memory-manipulation.c: Likewise.
22279         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22280         * config/nds32/nds32-predicates.c: Likewise.
22281         * config/nds32/nds32.c: Likewise.
22282         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
22283         fixed-value.h hashtab.h real.h statistics.h.
22284         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
22285         fixed-value.h hashtab.h real.h statistics.h stmt.h.
22286         * config/arm/arm.c: Likewise.
22287         * config/avr/avr.c: Likewise.
22288         * config/bfin/bfin.c: Likewise.
22289         * config/h8300/h8300.c: Likewise.
22290         * config/i386/i386.c: Likewise.
22291         * config/ia64/ia64.c: Likewise.
22292         * config/iq2000/iq2000.c: Likewise.
22293         * config/m32c/m32c.c: Likewise.
22294         * config/m32r/m32r.c: Likewise.
22295         * config/m68k/m68k.c: Likewise.
22296         * config/mcore/mcore.c: Likewise.
22297         * config/mep/mep.c: Likewise.
22298         * config/mips/mips.c: Likewise.
22299         * config/mn10300/mn10300.c: Likewise.
22300         * config/moxie/moxie.c: Likewise.
22301         * config/pa/pa.c: Likewise.
22302         * config/rl78/rl78.c: Likewise.
22303         * config/rx/rx.c: Likewise.
22304         * config/s390/s390.c: Likewise.
22305         * config/sh/sh.c: Likewise.
22306         * config/sparc/sparc.c: Likewise.
22307         * config/spu/spu.c: Likewise.
22308         * config/stormy16/stormy16.c: Likewise.
22309         * config/v850/v850.c: Likewise.
22310         * config/vax/vax.c: Likewise.
22311         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
22312         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
22313         * config/msp430/msp430.c: Likewise.
22314         * predict.c: Likewise.
22315         * value-prof.c: Likewise.
22316         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
22317         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
22318         * config/microblaze/microblaze.c: Likewise.
22319         * config/nios2/nios2.c: Likewise.
22320         * config/rs6000/rs6000.c: Likewise.
22321         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
22322         insn-config.h real.h rtl.h statistics.h stmt.h.
22323         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
22324         insn-config.h real.h statistics.h stmt.h.
22325         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
22326         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
22327         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
22328         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
22329         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
22330         fixed-value.h real.h statistics.h stmt.h.
22331         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
22332         fixed-value.h statistics.h stmt.h.
22333         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
22334         stmt.h.
22336 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
22338         * gengtype.c (create_user_defined_type): Workaround
22339         -Wmaybe-uninitialized false positives.
22340         * cse.c (fold_rtx): Likewise.
22341         * loop-invariant.c (gain_for_invariant): Likewise.
22343 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
22345         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
22346         set the memory attributes in all cases but clear MEM_EXPR if need be.
22348 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
22350         PR tree-optimization/64434
22351         * cfgexpand.c (reorder_operands): New function.
22352         (expand_gimple_basic_block): Insert call of reorder_operands if
22353         optimized is true.
22355 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
22357         * config/mips/micromips.md (*swp): Remove explicit parallel.
22358         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
22359         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
22360         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
22361         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
22362         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
22363         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
22364         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
22365         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
22366         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
22367         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
22368         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
22369         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
22370         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
22371         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
22372         (mips_wrdsp): Likewise.
22373         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
22374         parallel.
22375         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
22376         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
22377         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
22378         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
22379         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
22380         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
22381         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
22382         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
22383         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
22385 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
22387         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
22388         (mips_print_operand): Support 'y' to print exact log2 in decimal
22389         of a const_int.
22390         * config/mips/mips.h (ISA_HAS_LSA): New define.
22391         (ISA_HAS_DLSA): Likewise.
22392         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
22393         * config/mips/predicates.md (const_immlsa_operand): New predicate.
22395 2015-01-15  Martin Liska  <mliska@suse.cz>
22397         PR target/64377
22398         * optc-save-gen.awk: Add support for array types.
22400 2015-01-15  Richard Biener  <rguenther@suse.de>
22402         PR middle-end/64365
22403         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
22404         for MEM_REF access functions with the same base can never partially
22405         overlap.
22407 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
22409         * common.opt: New option -fstack-protector-explicit.
22410         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
22411         (stack_protect_decl_phase): Handle stack_protect attribute for
22412         explicit stack protection requests.
22413         (expand_used_vars): Similarly.
22414         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
22415         * doc/extend.texi: Add documentation for "stack_protect" attribute.
22416         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
22418 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
22420         PR target/53988
22421         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
22422         reg-reg copies.
22423         (sh_extending_set_of_reg): New struct.
22424         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
22425         sh_remove_reg_dead_or_unused_notes): New Declarations.
22426         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
22427         sh_find_extending_set_of_reg, sh_split_tst_subregs,
22428         sh_extending_set_of_reg::use_as_extended_reg): New functions.
22429         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
22430         convert to insn_and_split and use new function sh_split_tst_subregs.
22432 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
22434         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
22435         option.
22436         (Optimization Options): Move -fuse-ld documentation to...
22437         (Link Options): ...here.
22439 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
22441         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
22442         offsets.
22443         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
22444         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
22445         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
22446         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
22447         instead of ZR for the memory operand of LL/SC.
22448         (compare_and_swap_12, sync_add<mode>): Likewise.
22449         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
22450         (sync_new_<optab>_12, sync_nand_12): Likewise.
22451         (sync_old_nand_12, sync_new_nand_12): Likewise.
22452         (sync_sub<mode>, sync_old_add<mode>): Likewise.
22453         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
22454         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
22455         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
22456         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
22457         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
22458         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
22459         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
22460         * doc/md.texi (ZC): Update description.
22462 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
22464         * builtins.c (expand_builtin_atomic_exchange): Remove error when
22465         memory model is CONSUME.
22466         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
22467         expand_builtin_atomic_store): Change invalid memory model errors to
22468         warnings.
22469         (expand_builtin_atomic_clear): Change invalid model errors to warnings
22470         and issue warning for CONSUME.
22472 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
22474         * lto-cgraph: Update function comments for
22475         lto_symtab_encoder_encode_*.
22477 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
22479         * Makefile.in (site.exp): Do not set ENABLE_LTO.
22481 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
22483         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
22484         * lto-cgraph.c (select_what_to_stream): Remove argument, use
22485         lto_stream_offload_p instead.
22486         * lto-streamer.h (select_what_to_stream): Remove argument.
22487         * passes.c (ipa_write_summaries): Likewise.
22488         * tree-pass.h (ipa_write_summaries): Likewise.
22490 2015-01-14  Richard Biener  <rguenther@suse.de>
22492         PR tree-optimization/59354
22493         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
22494         groups larger than the slp group size as having gaps.
22496 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
22498         PR middle-end/59448
22499         * builtins.c (get_memmodel): Promote consume to acquire always.
22501 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
22503         PR target/64386
22504         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
22505         V32HImode.
22507 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
22509         PR target/64393
22510         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
22511         Enable AVX512BW.
22512         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
22513         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
22514         AVX512VBMI, as it implies AVX512BW.
22516 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
22518         PR target/64387
22519         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
22520         (vec_unpacks_hi_v16sf): Ditto.
22522 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22524         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
22525         is not available.
22527 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22529         * doc/invoke.texi (mapcs): Mention deprecation.
22530         (mapcs-frame): Likewise.
22532 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22534         PR target/64453
22535         * config/arm/arm.c (callee_saved_reg_p): Define.
22536         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
22537         register is callee saved instead of !call_used_regs[reg].
22538         (thumb1_compute_save_reg_mask): Likewise.
22540 2015-01-14  Hale Wang  <hale.wang@arm.com>
22542         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
22543         Cortex-M7.
22545 2015-01-14  Richard Biener  <rguenther@suse.de>
22547         PR lto/64415
22548         * tree-inline.c (insert_debug_decl_map): Check destination
22549         function MAY_HAVE_DEBUG_STMTS.
22550         (insert_init_debug_bind): Likewise.
22551         (insert_init_stmt): Remove redundant check.
22552         (remap_gimple_stmt): Drop debug stmts if the destination
22553         function has var-tracking assignments disabled.
22555 2015-01-14  Martin Liska  <mliska@suse.cz>
22557         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
22558         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
22560 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22562         PR target/64460
22563         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
22564         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
22566 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
22568         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
22569         level from an ARCH; do not inject the default.
22570         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
22571         MIPS_ISA_LEVEL_SPEC.
22572         (MIPS_ISA_NAN2008_SPEC): Update comment.
22573         (BASE_DRIVER_SELF_SPECS): Likewise.
22574         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
22575         MIPS_DEFAULT_ISA_LEVEL_SPEC.
22576         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
22577         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
22578         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
22580 2015-01-14  Richard Biener  <rguenther@suse.de>
22582         PR tree-optimization/64493
22583         PR tree-optimization/64495
22584         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
22585         assign the proper vectorized PHI to the inner loop exit PHIs.
22587 2015-01-14  Joey Ye  <joey.ye@arm.com>
22589         * config/arm/arm.c (arm_compute_save_reg_mask):
22590         Do not save lr in case of tail call.
22591         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
22593 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
22595         * tree-vrp.c (check_array_ref): Emit more warnings
22596         for warn_array_bounds >= 2.
22597         * common.opt: New option -Warray-bounds=.
22598         * doc/invoke.texi: Document -Warray-bounds=.
22600 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
22602         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
22603         (mforbid-fp-as-gp): Remove.
22604         (mex9): Remove.
22605         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
22606         (nds32_symbol_load_store_p): Remove.
22607         (nds32_fp_as_gp_check_available): Clean up implementation.
22608         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
22609         cases.
22610         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
22611         fp-as-gp and ex9 cases.
22613 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
22615         * tree-profile.c (init_ic_make_global_vars): Drop workaround
22616         for bintuils bug 14342.
22617         (init_ic_make_global_vars): Likewise.
22618         (gimple_init_edge_profiler): Likewise.
22619         (gimple_gen_ic_func_profiler): Likewise.
22621 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
22623         * ipa-inline.c (inline_small_functions): Swap the operands in
22624         enum.
22626 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
22628         PR ipa/64481
22629         * ipa-inline-analysis.c (node_growth_cache): Remove.
22630         (initialize_growth_caches): Do not initialize it.
22631         (free_growth_caches): Do not free it.
22632         (do_estimate_growth): Rename to ...
22633         (estimate_growth): ... this one; drop growth cache code.
22634         (growth_likely_positive): Always go the heuristics way.
22635         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
22636         (reset_edge_caches): Do not reset node growth.
22637         (heap_edge_removal_hook): Do not maintain cache.
22638         (inline_small_functions): Likewise; strenghten sanity check.
22639         (ipa_inline): Do not maintain caches.
22640         * ipa-inline.h (node_growth_cache): Remove.
22641         (do_estimate_growth): Remove to ...
22642         (estimate_growth): this one; remove inline version.
22643         (reset_node_growth_cache): Remove.
22645 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
22647         PR ipa/64565
22648         * ipa-inline.c (inline_small_functions): Update callee keys after
22649         resolving speculation
22650         (inline_small_functions): Always check monotonicity of the queue.
22652 2015-01-13  Marek Polacek  <polacek@redhat.com>
22654         PR middle-end/64391
22655         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
22657 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
22659         PR rtl-optimization/64286
22660         * ree.c (combine_reaching_defs): Move part of comment earlier,
22661         remove !SCALAR_INT_MODE_P check.
22662         (add_removable_extension): Don't add vector mode
22663         extensions if all uses of the source register aren't the same
22664         vector extensions.
22666 2015-01-13  Renlin Li  <renlin.li@arm.com>
22668         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
22669         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
22671 2015-01-13  Martin Liska  <mliska@suse.cz>
22673         * ipa-icf.c (sem_function::equals_private): Call new functions
22674         cl_target_option_print_diff and cl_optimization_print_diff.
22675         * optc-save-gen.awk (cl_target_option_print_diff): New function.
22676         (cl_optimization_print_diff): Likewise.
22677         * opth-gen.awk: Likewise.
22679 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
22681         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
22682         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
22683         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
22684         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
22685         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
22686         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
22688 2015-01-13  Andrew Pinski  <apinski@cavium.com>
22690         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
22691         instead of src mode.
22693 2015-01-13  Richard Biener  <rguenther@suse.de>
22695         PR lto/64373
22696         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
22697         DECL_CONTEXT.
22699 2015-01-13  Andrew Pinski  <apinski@cavium.com>
22701         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
22702         volatile mems.
22703         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
22705 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
22707         PR middle-end/63974
22708         * cfgexpand.c (expand_computed_goto): Don't call
22709         convert_memory_address here.
22711 2015-01-13  Richard Biener  <rguenther@suse.de>
22713         PR tree-optimization/64406
22714         * tree-loop-distibution.c (pass_loop_distribution::execute):
22715         Reset the SCEV hashtable if we distributed anything.
22717 2015-01-13  Richard Biener  <rguenther@suse.de>
22719         PR tree-optimization/64404
22720         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
22721         SLP types for CSEd loads.
22723 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22725         PR tree-optimization/64436
22726         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
22727         merge of two symbolic numbers for a bitwise OR to ...
22728         (perform_symbolic_merge): This. Also fix computation of the range and
22729         end of the symbolic number corresponding to the result of a bitwise OR.
22731 2015-01-13  Richard Biener  <rguenther@suse.de>
22733         PR tree-optimization/64568
22734         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
22735         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
22737 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22739         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
22740         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
22742 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22744         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
22745         target-specific symbol_ref flag.
22746         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
22747         resides in rodata section.
22748         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
22749         (nds32_encode_section_info): New function.
22751 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22753         * config/nds32/nds32.md (call): Use pseudo instruction bal which
22754         clobbers TA_REGNUM if large code model is specified.
22755         (call_register): Likewise.
22756         (call_immediate): Likewise.
22757         (call_value): Likewise.
22758         (call_value_register): Likewise.
22759         (call_value_immediate): Likewise.
22761 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22763         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
22764         (TARGET_CMODEL_MEDIUM): New macro.
22765         (TARGET_CMODEL_LARGE): New macro.
22766         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
22767         code model setting in assembly code.
22769 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22771         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
22772         Remove MASK_GP_DIRECT flag.
22773         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
22774         one of the multilib default options.
22775         * config/nds32/nds32.opt (mgp-direct): Remove.
22776         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
22777         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
22779 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
22781         * config/nds32/nds32.opt (mcmodel): Add new option.
22782         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
22783         to describe code model.
22785 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
22787         PR target/64479
22788         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
22790 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22792         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
22793         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
22794         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
22795         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
22796         __builtin_sh_set_fpscr.
22798 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
22800         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
22801         after a funtion name just to indicate it is a function.
22802         ([-fsanitize-undefined-trap-on-error]): Likewise.
22803         ([-fdbg-cnt=]): Likewise.
22804         ([-mmemcpy]): Likewise.
22805         ([-mflush-func]): Likewise.
22806         ([-msynci]): Likewise.
22808 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
22810         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
22811         example.
22813 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
22815         PR tree-optimization/64563
22816         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
22817         instead of != VR_VARYING.
22819         PR target/64513
22820         * config/i386/i386.c (ix86_expand_prologue): Add
22821         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
22823         PR tree-optimization/64454
22824         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
22825         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
22826         for signed or [0, op1 - 1] for unsigned modulo.
22827         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
22828         even if op1 does not satisfy integer_pow2p.
22830         PR other/64370
22831         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
22833 2015-01-12  Jeff Law  <law@redhat.com>
22835         PR target/64461
22836         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
22837         (trunchiqi2, truncsihi2): Similarly.
22839         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
22840         rather than calling F.
22842 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22844         * tsan.c (instrument_expr): Use force_gimple_operand.
22845         Use may_be_nonaddressable_p instead of is_gimple_addressable.
22847 2015-01-12  Richard Biener  <rguenther@suse.de>
22849         PR tree-optimization/64530
22850         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
22851         back dr1.
22853 2015-01-12  Richard Biener  <rguenther@suse.de>
22855         PR middle-end/64357
22856         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
22857         latches properly.
22859 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22861         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
22862         Cortex-A17 tuning parameters.
22863         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
22865 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22867         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
22868         * config/arm/arm.c (arm_macro_fusion_p): New function.
22869         (arm_macro_fusion_pair_p): Likewise.
22870         (TARGET_SCHED_MACRO_FUSION_P): Define.
22871         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
22872         (ARM_FUSE_NOTHING): Likewise.
22873         (ARM_FUSE_MOVW_MOVT): Likewise.
22874         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
22875         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
22876         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
22877         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
22878         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
22879         arm_cortex_a5_tune): Specify fuseable_ops value.
22881 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
22883         PR bootstrap/64561
22884         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
22885         test for PIE with copy reloc.
22886         * configure: Regenerated.
22888 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22890         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
22891         in gen_rtx_REG.
22892         (arm_tls_descseq_addr): Likewise.
22893         (arm_gen_movmemqi): Likewise.
22894         (arm_expand_epilogue_apcs_frame): Likewise.
22895         (arm_expand_epilogue): Likewise.
22896         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
22897         in gen_rtx_REG.
22899 2015-01-12  Martin Liska  <mliska@suse.cz>
22901         PR ipa/64550
22902         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
22903         volatility for correct operands.
22905 2015-01-12  Martin Liska  <mliska@suse.cz>
22907         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
22908         indication that a function is not leaf.
22909         (sem_function::compare_polymorphic_p): Likewise.
22911 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22913         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
22914         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
22915         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
22916         fold-const.h, tree-check.h.
22918 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
22920         PR ipa/63967
22921         PR ipa/64425
22922         * ipa-inline.c (compute_uninlined_call_time,
22923         compute_inlined_call_time): Use counts for extra precision when
22924         needed possible.
22925         (big_speedup_p): Fix formating.
22926         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
22927         (relative_time_benefit): Remove.
22928         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
22929         merge guessed and read profile paths.
22930         (inline_small_functions): Count only !optimize_size functions into
22931         initial size; be more lax about sanity check when profile is used;
22932         be sure to update inlined function profile when profile is read.
22934 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
22936         PR ipa/63470
22937         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
22938         cost when edge becomes direct.
22939         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
22940         is resolved or when introducing new speculation.
22942 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
22944         PR ipa/64551
22945         PR ipa/64552
22946         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
22947         '||' to fix typo issue.
22949         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
22950         accept and return NULL.
22952 2015-01-12  Martin Liska  <mliska@suse.cz>
22954         * cgraph.c (cgraph_edge::remove_callee): Move function to header
22955         file for being inlined.
22956         (cgraph_set_edge_callee): Delete.
22957         (cgraph_edge::redirect_callee): Move function to header file
22958         for being inlined.
22959         (cgraph_edge::make_direct): Use new function.
22960         (cgraph_edge::dump_edge_flags): New function created from
22961         static dump_edge_flags function.
22962         (cgraph_node::dump): Use new function.
22963         (cgraph_edge::verify_count_and_frequency): New function created
22964         from verify_edge_count_and_frequency.
22965         (cgraph_edge::verify_corresponds_to_fndecl): New function created
22966         from verify_edge_corresponds_to_fndecl.
22967         (verify_edge_corresponds_to_fndecl): Delete.
22968         (cgraph_node::verify_node): Use new function.
22969         * cgraph.h (cgraph_edge::set_callee): New function.
22970         (cgraph_edge::dump_edge_flags): Likewise.
22971         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
22973 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
22975         * ipa-utils.c (estimate_function_body_sizes): Do not
22976         free node params when called late with early=true.
22978 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
22980         * doc/md.texi (Instruction Patterns): Rewrite text for
22981         clarity.
22982         (Example): Likewise.
22984 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
22986         * doc/invoke.texi (Option Summary): Break long lines.
22987         [(-fdiagnostics-color)]: Put long literal in @smallexample
22988         instead of inline.
22989         [(-fsanitize-recover)]: Likewise.
22990         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
22991         [(-ffast-math)]: Likewise.
22992         [(--param max-inline-insns-recursive)]: Likewise.
22993         [(--param max-inline-recursive-depth)]: Likewise.
22994         [(-mno-text-section-literals)]: Likewise.
22996 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
22998         * doc/install.texi: Update for libgomp being renamed from "GNU
22999         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
23000         Runtime Library".
23001         * doc/sourcebuild.texi: Likewise.
23003 2015-01-10  Anthony Green  <green@moxielogic.com>
23005         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
23006         mul.x availability for moxiebox configuration.
23008 2015-01-09  Anthony Green  <green@moxielogic.com>
23010         * config/moxie/moxie.md: Tabify assembly output.
23012 2015-01-09  Anthony Green  <green@moxielogic.com>
23014         * config/moxie/moxie.md (CC_REG): Correct register definition.
23016 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
23018         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
23019         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
23020         of log files.
23022 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
23024         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
23026 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
23027             Jakub Jelinek  <jakub@redhat.com>
23029         PR middle-end/64412
23030         * lto-streamer.h (lto_stream_offload_p): New declaration.
23031         * lto-streamer.c (lto_stream_offload_p): New variable.
23032         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
23033         at the same time as section_name_prefix.
23034         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
23035         if lto_stream_offload_p.
23036         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
23037         stream TREE_TARGET_OPTION if lto_stream_offload_p.
23038         (write_ts_function_decl_tree_pointers): Don't
23039         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
23040         * tree-streamer-in.c (unpack_value_fields): Don't stream
23041         TREE_TARGET_OPTION in if ACCEL_COMPILER.
23042         (lto_input_ts_function_decl_tree_pointers): Don't stream
23043         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
23044         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
23045         instead of section_name_prefix string comparisons.
23047 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
23049         PR rtl-optimization/64536
23050         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
23051         tablejumps.
23053 2015-01-09  Michael Collison  <michael.collison@linaro.org>
23055         PR tree-optimization/64322
23056         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
23057         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
23059 2015-01-09  Tom de Vries  <tom@codesourcery.com>
23061         PR rtl-optimization/64539
23062         * regcprop.c (kill_clobbered_values): Factor out of ...
23063         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
23064         instead of note_stores with kill_clobbered_value.
23066 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
23068          * ginclude/unwind-arm-common.h: Revert previous commit.
23070 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
23072         * config.gcc (arm*-*-freebsd*): New configuration.
23073         * config/arm/freebsd.h: New file.
23074         * config.host: Add extra components for arm*-*-freebsd*.
23075         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
23076         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
23078 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23080         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
23081         for -mcpu=e6500.
23082         * config/rs6000/t-rtems: Add e6500 multilibs.
23084 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23086         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
23087         MPC8540.
23089 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23091         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
23092         MULTILIB_EXCEPTIONS.
23094 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23096         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
23097         MULTILIB_EXCEPTIONS.
23099 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23101         * config/arm/t-rtems-eabi: Rename to...
23102         * config/arm/t-rtems: ...this.
23103         * config/arm/rtems-eabi.h: Rename to...
23104         * config/arm/rtems.h: ...this.
23105         * config.gcc (arm*-*-rtems*): Reflect changes above.
23107 2015-01-09  Richard Biener  <rguenther@suse.de>
23109         PR tree-optimization/64410
23110         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
23111         on the LHS.
23112         (execute_update_addresses_taken): Deal with that.
23113         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
23114         loads/stores for complex variables.
23116 2015-01-09  Martin Liska  <mliska@suse.cz>
23118         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
23119         name comparison.
23120         (func_checker::compare_memory_operand): New function.
23121         (func_checker::compare_operand): Split case to newly
23122         added functions.
23123         (func_checker::compare_cst_or_decl): New function.
23124         (func_checker::compare_gimple_call): Identify
23125         memory operands.
23126         (func_checker::compare_gimple_assign): Likewise.
23127         * ipa-icf-gimple.h: New function.
23129 2015-01-09  Martin Liska  <mliska@suse.cz>
23131         PR ipa/64503
23132         * sreal.c (sreal::dump): Change unsigned format to signed for
23133         m_exp value.
23134         (sreal::to_double): Replace exp2 with scalbln.
23136 2015-01-09  Martin Liska  <mliska@suse.cz>
23138         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
23139         * ipa-icf.c (sem_function::equals_private): Add support for target and
23140         (sem_item_optimizer::merge_classes): Remove redundant function
23141         optimization flags comparison.
23142         * tree.h (target_opts_for_fn): New function.
23144 2015-01-09  Tom de Vries  <tom@codesourcery.com>
23146         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
23148 2015-01-09  Kito Cheng  <kito@0xlab.org>
23150         PR rtl-optimization/64348
23151         * lra-constraints.c (split_reg): Fix caller-save store/restore
23152         instruction generation.
23154 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
23156         PR gcov-profile/61790
23157         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
23158         long long.  Fallback to int64_t if host doesn't have long long and
23159         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
23161 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
23163         PR tree-optimization/63989
23164         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
23165         from 1000 to 10000.
23166         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
23167         (get_stridx): If we don't have a record for certain SSA_NAME,
23168         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
23169         constant offset, call get_stridx_plus_constant.
23170         (get_stridx_plus_constant): New function.
23171         (zero_length_string): Don't use get_stridx here.
23173         PR target/55023
23174         PR middle-end/64388
23175         * dse.c (struct insn_info): Mention frame_read set also
23176         before reload for tail calls on some targets.
23177         (scan_insn): Revert 2014-12-22 change.  Set frame_read
23178         also before reload for tail calls if
23179         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
23180         instead of add_non_frame_wild_read for non-const/memset
23181         tail calls after reload.
23183 2015-01-08  Jason Merrill  <jason@redhat.com>
23185         * ubsan.c (do_ubsan_in_current_function): New.
23186         (pass_ubsan::gate): Use it.
23187         * ubsan.h: Declare it.
23188         * convert.c (convert_to_integer): Use it.
23190 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
23192         PR target/64338
23193         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
23194         compare_code when it is unconditionally overwritten afterwards.
23195         Use ix86_reverse_condition instead of reverse_condition.  Don't
23196         change code if *reverse_condition* returned UNKNOWN and don't
23197         swap ct/cf and negate diff in that case.
23199 2015-01-08  Mike Stump  <mikestump@comcast.net>
23201         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
23202         (pass_tsan_O0::gate): Likewise.
23203         * extend.texi (Function Attributes): Add no_sanitize_thread
23204         documentation.
23206 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
23208         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
23209         for registering builtins.
23210         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
23211         add -fopenmp to the argv_obstack used when invoking
23212         compile_for_target.
23214         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
23215         add "-m32" or "-m64" to argv_obstack.
23216         (generate_host_descr_file): Likewise, when invoking host_compiler.
23217         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
23218         ld.
23220 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
23222         * config/sh/sh-mem.cc: Use constant as second operand when emitting
23223         tstsi_t insns.
23225 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
23227         PR target/55212
23228         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
23229         constant load if constant operand fits into I08.
23231 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
23233         PR sanitizer/64336
23234         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
23235         and TREE_THIS_VOLATILE for MEM_REFs.
23236         (build5_stat): Fix up initialization of TREE_READONLY and
23237         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
23239 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23241         PR target/64533
23242         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
23243         of r for the second alternative of the destination operand.
23245 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
23247         PR target/36557
23248         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
23250 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
23252         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
23253         keywords.
23254         ([-fivar-visibility], [-fvisibility]): Likewise.
23256 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
23258         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
23259         the file where @code, @command, etc is more appropriate.
23261 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
23263         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
23264         of -mrecip= documentation.
23266 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23268         PR target/64505
23269         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
23270         correct reload handler if -m32 -mpowerpc64 is used.
23272 2015-01-06  Tom de Vries  <tom@codesourcery.com>
23274         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
23276 2015-01-08  Christian Bruel  <christian.bruel@st.com>
23278         PR target/64507
23279         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
23281 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23283         PR tree-optimization/63259
23284         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
23285         if optab exists for 16bit byteswap.
23287 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
23289         * opts.c (common_handle_option): Add support for
23290         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
23291         * doc/invoke.texi: Document -fno-sanitize=all,
23292         -f{,no-}sanitize-recover=all.  Document that
23293         -fsanitize=float-cast-overflow is not enabled
23294         by -fsanitize=undefined.  Fix up documentation
23295         of -f{,no-}sanitize-recover.
23297 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
23299         * config.gcc: Add Visium support.
23300         * configure.ac: Likewise.
23301         * configure: Regenerate.
23302         * doc/extend.texi (interrupt attribute): Add Visium.
23303         * doc/invoke.texi: Document Visium options.
23304         * doc/install.texi: Document Visium target.
23305         * doc/md.texi: Document Visium constraints.
23306         * common/config/visium: New directory.
23307         * config/visium: Likewise.
23309 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
23311         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
23312         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
23314 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
23316         * combine.c (combine_validate_cost): Do not count the cost of a
23317         split I2 twice.  Do not display it twice in the dump, either.
23319 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
23321         Revert parts of r219199.
23322         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
23323         <inttypes.h>.
23324         ([-Wtraditional]): Restore markup on <limits.h>.
23326 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
23328         PR c++/31397
23329         * doc/invoke.texi: Document -Wsuggest-override.
23331 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
23333         PR rtl-optimization/64287
23334         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
23335         (process_options): Disable flag_ipa_ra if profiling.
23337 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
23339         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
23341 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
23343         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
23344         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
23345         put under #if TARGET_LOOPS guard.
23347 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
23349         * config/i386/i386.c (output_387_binary_op): Use std::swap.
23351 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
23353         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
23354         * rtl.h (refers_to_regno_p): Add overload.
23355         * cse.c: Use it.
23356         * bt-load.c: Likewise.
23357         * combine.c: Likewise.
23358         * df-scan.c: Likewise.
23359         * sched-deps.c: Likewise.
23360         * config/s390/s390.c: Likewise.
23361         * config/m32r/m32r.c: Likewise.
23362         * config/rs6000/spe.md: Likewise.
23363         * config/rs6000/rs6000.c: Likewise.
23364         * config/pa/pa.c: Likewise.
23365         * config/stormy16/stormy16.c: Likewise.
23366         * config/cris/cris.c: Likewise.
23367         * config/arc/arc.md: Likewise.
23368         * config/arc/arc.c: Likewise.
23369         * config/sh/sh.md: Likewise.
23370         * config/sh/sh.c: Likewise.
23371         * config/frv/frv.c: Likewise.
23373 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
23375         PR sanitizer/64265
23376         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
23377         call as cleanup of the whole body.
23378         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
23379         * tsan.c (replace_func_exit): New function.
23380         (instrument_func_exit): Moved earlier.
23381         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
23382         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
23383         been found.
23384         (tsan_pass): Don't call instrument_func_exit.
23385         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
23386         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
23387         inlining.
23389         PR sanitizer/64344
23390         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
23391         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
23392         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
23393         if the result is integer_zerop, return NULL_TREE.
23394         * convert.c (convert_to_integer): Pass expr as ARG.
23396         PR tree-optimization/64465
23397         * tree-inline.c (redirect_all_calls): During inlining
23398         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
23399         changed the stmt to a non-throwing call.
23401 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
23403         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
23404         etc markup throughout the file.
23406 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23408         Enable experimental TSAN support for Ada.
23409         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
23411 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
23413         PR tree-optimization/64494
23414         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
23415         clear SSA_NAME_ANTI_RANGE_P flag.
23417 2015-01-05  Marek Polacek  <polacek@redhat.com>
23419         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
23421 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
23423         Update copyright years.
23425         * gcc.c (process_command): Update copyright notice dates.
23426         * gcov-dump.c: Ditto.
23427         * gcov.c: Ditto.
23428         * doc/cpp.texi: Bump @copying's copyright year.
23429         * doc/cppinternals.texi: Ditto.
23430         * doc/gcc.texi: Ditto.
23431         * doc/gccint.texi: Ditto.
23432         * doc/gcov.texi: Ditto.
23433         * doc/install.texi: Ditto.
23434         * doc/invoke.texi: Ditto.
23436         * auto-profile.c, auto-profile.h: Fix up Copyright line.
23438 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
23440         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
23441         verb tense, etc.
23442         ([-fvtable-verify], [-fvtv-debug]): Likewise.
23443         ([-Wabi]): Likewise.
23444         ([-fmessage-length]): Likewise.
23445         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
23446         ([-Wno-discarded-qualifiers]): Likewise.
23447         ([-Wnodiscarded-array-qualifiers]): Likewise.
23448         ([-Wno-virtual-move-assign]): Likewise.
23449         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
23450         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
23451         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
23452         ([-fsanitize-undefined-trap-on-error]): Likewise.
23453         ([-floop-interchange]): Likewise.
23454         ([-ftree-coalesce-inlined-vars]): Likewise.
23455         ([-fvect-cost-model]): Likewise.
23456         ([-flto]): Likewise.
23457         ([--param]): Likewise.
23458         (Spec Files): Likewise.
23459         ([-mstrict-align]): Likewise.
23460         ([-mfix-cortex-a53-835769]): Likewise.
23461         ([-march], [-mtune]): Likewise.
23462         ([-mpic-register]): Likewise.
23463         ([-munaligned-access]): Likewise.
23464         ([-msp8]): Likewise.
23465         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
23466         (AVR Built-in Macros): Likewise.
23467         ([-mpreferred-stack-boundary]): Likewise.
23468         ([-mtune-crtl]): Likewise.
23469         ([-mashf]): Likewise.
23470         ([-mmcu=]): Likewise.
23471         ([-minrt]): Likewise.
23472         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
23473         ([-mupper-regs]): Likewise.
23474         ([-matomic-model]): Likewise.
23475         ([-mdiv]): Likewise.
23476         ([-mzdcbranch]): Likewise.
23477         ([-mdisable-callt]): Likewise.
23478         ([-msoft-float]): Likewise.
23479         ([-m8byte-align]): Likewise.
23480         ([-fstack-reuse]): Likewise.
23482 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
23484         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
23485         Fix markup, light copy-editing.
23486         ([-fauto-profile]): Rewrite to fix formatting and content
23487         problems.
23489 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
23491         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
23492         Copy-edit description.
23493         ([-fisolate-erroneous-paths-attribute]): Likewise.
23494         * common.opt (fisolate-erroneous-paths-dereference):
23495         Copy-edit description.
23496         (fisolate-erroneous-paths-attribute): Likewise.
23498 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
23500         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
23501         tidy grammar.
23503 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
23505         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
23506         ([-fvtv-debug]): Likewise.
23507         ([-Wc++-compat]): Likewise.
23508         ([-Wc++11-compat]): Likewise.
23509         ([-Wc++14-compat]): Likewise.
23510         ([-Wno-sized-deallocation]): Likewise.
23511         ([-femit-class-debug-always]): Likewise.
23512         ([-femit-struct-debug-detailed]): Likewise.
23513         ([-fno-keep-inline-dllexport]): Likewise.
23514         ([-fira-algorithm]): Likewise.
23515         ([-fira-region]): Likewise.
23516         ([-flra-remat]): Likewise.
23517         ([-fipa-ra]): Likewise.
23518         ([-fhoist-adjacent-loads]): Likewise.
23519         ([-fisolate-erroneous-paths-dereference]): Likewise.
23520         ([-fisolate-erroneous-paths-attribute]): Likewise.
23521         ([-ftree-switch-conversion]): Likewise.
23522         ([-ftree-tail-merge]): Likewise.
23523         ([-ftree-loop-if-convert]): Likewise.
23524         ([-ftree-loop-if-convert-stores]): Likewise.
23525         ([-ftree-loop-distribution]): Likewise.
23526         ([-ftree-loop-distribute-patterns]): Likewise.
23527         ([-flto-compression-level]): Likewise.
23528         ([-flto-report]): Likewise.
23529         ([-flto-report-wpa]): Likewise.
23530         ([-fuse-linker-plugin]): Likewise.
23531         ([-mfix-cortex-a53-835769]): Likewise.
23532         ([-mno-fix-cortex-a53-835769]): Likewise.
23533         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
23534         explicit listing; add a note to the discussion indicating they
23535         exist.  Reorder table to group similar options.  Add missing
23536         @opindex entries.  Add @need commands throughout the table to
23537         allow it to be split across multiple pages.
23538         ([-m8bit-idiv]): Fix @opindex.
23539         ([-mavx256-split-unaligned-load]): Likewise.
23540         ([-mavx256-split-unaligned-store]): Likewise.
23541         ([-mstack-protector-guard]): Likewise.
23542         ([-mcpu=]): Likewise.
23543         ([-mcpu]): Likewise.
23544         ([-mpointer-size=]): Likewise.
23546 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
23548         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
23549         instead of `m' constraint.  Likewise for unnamed movb comparison
23550         patterns using reg_before_reload_operand predicate.
23551         * config/pa/predicates.md (reg_before_reload_operand): Tighten
23552         predicate to reject register index and LO_SUM DLT memory forms
23553         after reload.
23555 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
23557         * doc/invoke.texi (Option Summary): Fix spelling of
23558         -fdevirtualize-at-ltrans.
23559         ([-fdevirtualize]): Fix markup.
23560         ([-fdevirtualize-speculatively]): Fix typo.
23561         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
23562         implementor-speaky.
23563         * common.opt (fdevirtualize-at-ltrans): Likewise.
23564         * ipa-devirt.c: Fix typos in comments throughout the file.
23565         (ipa_devirt): Fix typos in format strings for dump output.
23567 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
23569         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
23570         discussion of defaults, light copy-editing.
23572 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23574         * tsan.c (instrument_expr): corrected previous checkin.
23576 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23578         Instrument bit field and unaligned accesses for TSAN.
23579         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
23580         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
23581         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
23582         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
23583         unaligned memory regions.
23585 2015-01-01  Anthony Green  <green@moxielogic.com>
23587         * config/moxie/predicates.md (moxie_general_movsrc_operand):
23588         Restrict move source register offsets to 16 bits.
23590 Copyright (C) 2015 Free Software Foundation, Inc.
23592 Copying and distribution of this file, with or without modification,
23593 are permitted in any medium without royalty provided the copyright
23594 notice and this notice are preserved.