1 2015-02-03 Jakub Jelinek <jakub@redhat.com>
4 * combine.c (reg_n_sets_max): New variable.
5 (can_change_dest_mode, reg_nonzero_bits_for_combine,
6 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
7 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
8 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
9 (rest_of_handle_combine): Initialize reg_n_sets_max.
11 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
13 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
14 if some always_inline was inlined, apply changes before inlining
17 2015-02-02 David Malcolm <dmalcolm@redhat.com>
20 * config/arm/arm.c (arm_option_override): Set
21 arm_selected_arch/cpu/tune to NULL on entry.
23 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
24 Andrew Pinski <pinskia@gcc.gnu.org>
25 Jakub Jelinek <jakub@gcc.gnu.org>
28 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
29 integer typing for small model. Use IN_RANGE.
31 2015-02-02 Richard Biener <rguenther@suse.de>
33 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
34 * tree-vrp.c (vrp_valueize_1): Likewise.
36 2015-02-02 Alan Modra <amodra@gmail.com>
38 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
39 than mem for toc_restore.
40 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
41 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
42 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
44 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
47 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
48 explicit default options.
50 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
53 * ipa-utils.c (ipa_merge_profiles): Add release argument.
54 * ipa-icf.c (sem_function::merge): Do not release body when merging.
55 * ipa-utils.h (ipa_merge_profiles): Update prototype.
57 2015-02-01 Jakub Jelinek <jakub@redhat.com>
60 * cfgexpand.c (deep_ter_debug_map): New variable.
61 (avoid_deep_ter_for_debug): New function.
62 (expand_debug_expr): If TERed SSA_NAME is in
63 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
64 instead of trying to expand SSA_NAME's def stmt.
65 (expand_debug_locations): When expanding debug bind
66 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
67 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
69 (pass_expand::execute): Call avoid_deep_ter_for_debug on
70 all debug bind stmts. Delete deep_ter_debug_map after
71 expand_debug_location if non-NULL and clear it.
73 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
76 * config/sh/sync.md (atomic_fetch_notsi_hard,
77 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
78 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
79 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
80 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
81 atomic_not_fetch<mode>_soft_imask): New insns.
83 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
85 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
86 (rank_for_schedule_debug): Split from ...
87 (rank_for_schedule): ... this.
88 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
89 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
91 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
93 * doc/md.texi (Machine Constraints): Alphabetize table by target.
94 * doc/extend.texi (x86 Variable Attributes): Move section to
95 correct alphabetization after renaming.
96 (x86 Type Attributes): Likewise.
97 (Target Builtins): Re-alphabetize menu.
98 (x86 Built-in Functions): Move section to correct alphabetization
100 (x86 transactional memory intrinsics): Likewise.
101 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
102 and x86 Windows Options in table and menu.
103 (x86 Options): Move section to correct alphabetization after
105 (x86 Windows Options): Likewise.
107 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
109 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
110 preferred names of the architecture and its 32- and 64-bit
112 * doc/invoke.texi: Likewise.
113 * doc/md.texi: Likewise.
115 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
118 * config/i386/predicates.md (address_no_seg_operand): Reject
119 non-CONST_INT_P operands in invalid mode.
121 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
123 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
124 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
125 * config/i386/predicates.md (address_no_seg_operand): Call
126 address_operand with VOIDmode.
127 (vsib_address_operand): Ditto.
128 (address_mpx_no_base_operand): Ditto.
129 (address_mpx_no_index_operand): Ditto.
131 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
134 * lra-constraints.c (original_subreg_reg_mode): New.
135 (simplify_operand_subreg): Try to simplify subreg of const. Use
136 original_subreg_reg_mode for it.
137 (swap_operands): Update original_subreg_reg_mode.
138 (curr_insn_transform): Set up original_subreg_reg_mode.
140 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
143 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
145 (process_alt_operands): Use it.
146 (curr_insn_transform): Check the optional reload pseudo class is
149 2015-01-30 Joseph Myers <joseph@codesourcery.com>
151 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
152 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
154 * toplev.h (init_asm_output): Update comment on use of
155 UNKNOWN_LOCATION with fatal_error.
156 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
157 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
158 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
159 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
160 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
161 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
162 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
163 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
164 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
165 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
166 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
167 fatal_error changed to pass input_location as first argument.
169 2015-01-30 Martin Liska <mliska@suse.cz>
171 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
172 in #pragma GCC diagnostic guards.
174 2015-01-30 Richard Biener <rguenther@suse.de>
176 PR tree-optimization/64829
177 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
178 not add a widening conversion pattern but hand off extra
179 widenings to callers.
180 (vect_recog_widen_mult_pattern): Handle extra widening produced
181 by vect_handle_widen_op_by_const.
182 (vect_recog_widen_shift_pattern): Likewise.
183 (vect_pattern_recog_1): Remove excess vertical space in dumping.
184 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
185 (vect_init_vector_1): Likewise.
186 (vect_get_vec_def_for_operand): Likewise.
187 (vect_finish_stmt_generation): Likewise.
188 (vectorizable_load): Likewise.
189 (vect_analyze_stmt): Likewise.
190 (vect_is_simple_use): Likewise.
192 2015-01-29 Jeff Law <law@redhat.com>
194 * combine.c (try_combine): Fix typo in comment.
196 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
199 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
200 (rs6000_stack_info): Add assert.
201 (rs6000_output_savres_externs): New function, split off from...
202 (rs6000_output_function_prologue): ... here. Do not call it for
205 2015-01-29 Jeff Law <law@redhat.com>
208 * combine.c (try_combine): If I0 is a memory load and I3 a store
209 to a related address, increase the "goodness" of doing a 4-insn
210 combination with I0-I3.
211 (make_field_assignment): Handle SUBREGs in the ior+and case.
213 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
215 PR tree-optimization/64746
216 * tree-if-conv.c (mask_exists): New function.
217 (predicate_mem_writes): Save created mask with given size for further
219 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
220 (ifcvt_repair_bool_pattern): Collect all statements that are root
221 of bool pattern and use iterative algorithm to remove multiple uses
222 of predicates, display number of required iterations.
224 2015-01-29 Richard Biener <rguenther@suse.de>
226 PR tree-optimization/64853
227 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
228 stmt will get simulated again.
229 * tree-ssa-ccp.c (valueize_op_1): Likewise.
231 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
233 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
234 return_in_pc. Remove redundant assignments.
235 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
236 (arm_expand_epilogue): Don't compare boolean with true in if condition.
238 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
240 * config/i386/i386.c (ix86_mode_after): Make static.
242 2015-01-29 Richard Biener <rguenther@suse.de>
244 PR tree-optimization/64844
245 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
246 dump cost model analysis.
247 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
248 Do not register adjusted load/store costs here.
250 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
251 Uros Bizjak <ubizjak@gmail.com>
253 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
254 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
255 using x86_use_pseudo_pic_reg.
256 * config/i386/i386.c (ix86_conditional_register_usage): Remove
257 support for fixed PIC register.
258 (ix86_use_pseudo_pic_reg): Not static any more.
260 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
263 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
264 to avoid error in cgraph node verification.
266 2015-01-29 Marek Polacek <polacek@redhat.com>
268 * doc/standards.texi: Reflect that the default for C is gnu11.
270 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
273 * reorg.c (switch_text_sections_between_p): New function.
274 (relax_delay_slots): Call it when testing if the jump insn
275 is removable. Use targetm.can_follow_jump when testing if
276 the conditional branch can follow an unconditional jump.
278 2015-01-27 Caroline Tice <cmtice@google.com>
280 Committing VTV Cywin/Ming patch for Patrick Wollgast
281 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
282 if -fvtable-verify=preinit/std is used.
283 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
284 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
285 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
286 if -fvtable-verify=preinit/std is used.
287 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
288 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
289 if -fvtable-verify=preinit/std is used.
290 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
291 * config/i386/mingw32.h (LIB_SPEC): Likewise.
292 * varasm.c (assemble_variable): Add code to properly set the comdat
293 section and name for the .vtable_map_vars section in case the
294 target is PE or COFF.
296 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
299 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
300 make sane BB profile.
301 (cgraph_node::expand_thunk): Make sane BB profile.
302 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
303 * cgraph.h (init_lowered_empty_function): Update prototype.
304 * config/i386/i386.c (make_resolver_func): Update call.
305 * predict.c (gate): Disable branch prediction pass if
306 profile is already there.
308 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
310 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
311 * opth-gen.awk: Likewise.
312 * common.opt: Mark flag_fp_contract_mode as Optimization.
314 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
316 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
317 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
319 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
322 * config/sh/predicates.md (atomic_arith_operand,
323 atomic_logical_operand): Remove.
324 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
325 (atomic_arith_operand_0): New predicate.
326 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
327 Use atomic_arith_operand_0 for input values.
328 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
329 atomic_compare_and_swap<mode>_soft_gusa,
330 atomic_compare_and_swap<mode>_soft_tcb,
331 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
332 arith_reg_operand instead of register_operand.
333 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
334 atomic_arith_operand_0 for newval input.
335 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
336 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
337 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
338 arith_reg_operand instead of register_operand.
339 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
340 fetchop_predicate_1, fetchop_constraint_1_llcs,
341 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
342 fetchop_constraint_1_imask): New code iterator attributes.
343 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
344 register_operand. Use fetchop_predicate_1.
345 (atomic_fetch_<fetchop_name>si_hard,
346 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
347 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
348 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
349 and arith_reg_operand instead of register_operand. Use
350 fetchop_predicate_1, fetchop_constraint_1_gusa.
351 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
352 and arith_reg_operand instead of register_operand. Use
353 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
355 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
356 and arith_reg_operand instead of register_operand. Use
357 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
359 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
360 register_operand. Use atomic_logical_operand_1.
361 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
362 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
363 arith_reg_operand instead of register_operand.
364 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
365 Use arith_reg_dest and arith_reg_operand instead of register_operand.
366 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
367 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
368 register_operand. Use fetchop_predicate_1.
369 (atomic_<fetchop_name>_fetchsi_hard,
370 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
371 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
372 fetchop_constraint_1_llcs.
373 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
374 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
375 fetchop_constraint_1_gusa.
376 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
377 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
378 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
379 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
380 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
381 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
382 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
383 register_operand. Use atomic_logical_operand_1.
384 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
385 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
386 arith_reg_operand instead of register_operand.
387 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
388 arith_reg_operand instead of register_operand. Use logical_operand
389 and K08. Adjust asm sequence to allow R0 usage.
390 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
391 arith_reg_operand instead of register_operand. Use logical_operand
394 2015-01-28 Jakub Jelinek <jakub@redhat.com>
397 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
398 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
399 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
400 only get_full_len HOST_WIDE_INTs from get_val () array rather than
401 all bits in *val_wide.
403 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
405 * varpool.c (tls_model_names): Fix names.
406 (varpool_node::dump): Dump tls- prefix for tls models.
408 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
409 Bernd Schmidt <bernds@codesourcery.com>
410 Nathan Sidwell <nathan@codesourcery.com>
412 * config/nvptx/mkoffload.c: New file.
413 * config/nvptx/t-nvptx: Add build rules for it.
414 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
415 (extra_programs): Add mkoffload.
416 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
418 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
420 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
423 * cfgexpand.c (reorder_operands): Skip debug gimples.
425 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
427 PR tree-optimization/64277
428 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
429 range info when possible to refine estimation.
431 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
433 PR tree-optimization/64718
434 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
435 be a 16bit unsigned integer when n->range is 16.
436 (bswap_replace): Convert src to that type if necessary for all bswap
437 sizes. Fix rotation right notation in nearby comment. Use bswap_type
438 set in pass_optimize_bswap::execute ().
440 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
442 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
443 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
444 integer and floating point variants.
445 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
447 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
449 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
450 for all vector modes.
452 2015-01-28 Jakub Jelinek <jakub@redhat.com>
455 * doc/sourcebuild.texi (comdat_group): Document.
457 2015-01-28 Terry Guo <terry.guo@arm.com>
459 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
461 2015-01-27 David Malcolm <dmalcolm@redhat.com>
463 * toplev.c (print_version): Add param "show_global_state", and
464 only print GGC and plugin information if it is true.
465 (init_asm_output): Pass in "true" for the new param when calling
467 (process_options): Likewise.
468 (toplev::main): Likewise.
469 * toplev.h (print_version): Add new param to decl.
471 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
475 * tree.c (lookup_binfo_at_offset): New function.
476 (get_binfo_at_offset): Use it.
478 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
481 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
482 on vtable being vtable.
484 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
486 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
487 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
489 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
490 -mno-hotpatch options. Change syntax of -mhotpatch= option.
491 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
493 (s390_hotpatch_trampoline_halfwords_max): Renamed.
494 (s390_hotpatch_hw_max): New name.
495 (s390_hotpatch_trampoline_halfwords): Renamed.
496 (s390_hotpatch_hw_before_label): New name.
497 (get_hotpatch_attribute): Removed.
498 (s390_hotpatch_hw_after_label): New name.
499 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
501 (s390_attribute_table): Ditto.
502 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
503 (s390_function_num_hotpatch_hw): New name.
504 Remove special handling of inline functions and hotpatching.
505 Return number of nops before and after the function label.
506 (s390_can_inline_p): Removed.
507 (s390_asm_output_function_label): Emit a configurable number of nops
508 after the function label.
509 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
510 (TARGET_CAN_INLINE_P) Removed.
511 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
513 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
514 Jiong Wang <jiong.wang@arm.com>
516 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
518 (cb<optab><mode>1): Likewise.
519 * config/aarch64/iterators.md (bcond): New define_code_attr.
521 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
523 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
526 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
528 * config/s390/s390.c (s390_register_move_cost): Increase costs for
531 2015-01-27 Richard Biener <rguenther@suse.de>
533 * tree-vrp.c (update_value_range): Intersect the range with
534 old recorded SSA name range information.
536 2015-01-27 Nick Clifton <nickc@redhat.com>
538 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
539 BC, DE and HL registers directly, not via AX.
540 When decrementing the stack pointer by a large amount, transfer SP
541 into AX and perform the subtraction there.
542 (rl78_expand_epilogue): Perform the inverse of the above
545 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
547 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
549 2015-01-27 Jakub Jelinek <jakub@redhat.com>
550 Yury Gribov <y.gribov@samsung.com>
553 * ubsan.c (ubsan_source_location): Refactor code.
554 (ubsan_type_descriptor): Update type size. Refactor code.
556 2015-01-27 Richard Biener <rguenther@suse.de>
558 PR tree-optimization/56273
559 PR tree-optimization/59124
560 PR tree-optimization/64277
561 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
562 from the first VRP pass.
564 2015-01-27 Jakub Jelinek <jakub@redhat.com>
567 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
568 handle the first argument in the same loop as all the other arguments.
570 PR rtl-optimization/61058
571 * jump.c (cleanup_barriers): Update basic block boundaries
572 if BLOCK_FOR_INSN is non-NULL on PREV.
574 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
576 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
577 bounds narrowing, already instrumented calls and calls to
578 not instrumentable functions.
580 2015-01-27 Jakub Jelinek <jakub@redhat.com>
582 PR tree-optimization/64807
583 * wide-int.cc (wi::divmod_internal): Clear
584 b_dividend[dividend_blocks_needed].
586 2015-01-26 DJ Delorie <dj@redhat.com>
588 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
589 volatile memory references.
591 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
594 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
596 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
597 shifts if it already fits into K08.
599 2015-01-26 Jakub Jelinek <jakub@redhat.com>
602 * ipa-inline.c (inline_small_functions): Print "unknown" even
603 if edge->call_stmt is non-NULL, but has builtins or unknown
607 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
608 with asterisk, skip the first character.
610 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
613 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
616 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
619 * config/i386/i386.md (*movdi_internal): Also check operand 0
620 to determine TYPE_LEA operand.
621 (*movsi_internal): Ditto.
623 2015-01-26 Jakub Jelinek <jakub@redhat.com>
625 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
626 OPTION_MASK_QUAD_MEMORY_ATOMIC.
628 2015-01-26 Renlin Li <renlin.li@arm.com>
630 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
632 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
635 2015-01-26 Richard Biener <rguenther@suse.de>
638 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
639 combining two BIT_AND_EXPR predicates.
641 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
644 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
646 2015-01-26 Terry Guo <terry.guo@arm.com>
648 * config/arm/arm.c (arm_file_start): Update the assignment of
651 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
653 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
655 config/arm/arm.md: Include the new Cortex-A57 model.
656 (generic_sched): Don't use generic_sched when tuning for
659 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
660 Uros Bizjak <ubizjak@gmail.com>
662 * config/i386/i386.c (get_builtin_code_for_version): Add
663 support for BMI and BMI2 multiversion functions.
665 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
667 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
668 (extract_bit_field): Likewise.
669 (extract_low_bits): Likewise.
670 (expand_mult): Likewise.
671 (expand_mult_highpart_adjust): Likewise.
673 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
675 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
676 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
677 * config/i386/i386.c (processor_model): Add
678 M_INTEL_COREI7_BROADWELL.
679 (arch_names_table): Add "broadwell".
681 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
690 * config/sh/sh-protos.h
691 (sh_extending_set_of_reg::can_use_as_unextended_reg,
692 sh_extending_set_of_reg::use_as_unextended_reg,
693 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
694 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
695 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
696 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
697 (sh_treg_insns): New class.
698 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
699 (scope_counter): New class.
700 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
701 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
702 sh_extending_set_of_reg::can_use_as_unextended_reg,
703 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
704 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
705 sh_split_treg_set_expr): New functions.
706 (addsubcosts): Handle treg_set_expr.
707 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
708 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
709 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
710 (sh_insn_operands_modified_between_p): Make non-static.
711 * config/sh/predicates.md (zero_extend_movu_operand): Allow
712 simple_mem_operand in addition to displacement_mem_operand.
713 (zero_extend_operand): Don't allow zero_extend_movu_operand.
714 (treg_set_expr, treg_set_expr_not_const01,
715 arith_reg_or_treg_set_expr): New predicates.
716 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
717 arith_or_int_operand instead of logical_operand. Convert to
718 insn_and_split. Try to optimize constant operand in splitter.
719 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
720 (*tstqi_t_zero): Delete.
721 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
722 (tstsi_t_and_not): Delete.
723 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
724 Convert to insn_and_split.
725 (unnamed split, tstsi_t_zero_extract_xor,
726 tstsi_t_zero_extract_subreg_xor_little,
727 tstsi_t_zero_extract_subreg_xor_big): Delete.
728 (*tstsi_t_shift_mask): New insn_and_split.
729 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
730 to recombine with surrounding insns when splitting.
731 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
732 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
733 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
734 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
735 (*cbranch_div0s: Delete.
736 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
737 Try to recombine with surrounding insns when splitting. Add operand
739 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
740 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
741 *addc_r_r_msb, *addc_2r_msb): Delete.
742 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
744 (*addc_negreg_t): New insn_and_split.
745 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
746 Try to recombine with surrounding insns when splitting.
747 Add operand order variants.
748 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
749 insn_and_split patterns.
750 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
751 surrounding insns when splitting.
752 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
753 (*rotcl): Likewise. Add zero_extract variant.
754 (*ashrsi2_31): New insn_and_split.
755 (*negc): Convert to insn_and_split. Use treg_set_expr.
756 (*zero_extend<mode>si2_disp_mem): Update comment.
757 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
759 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
760 with surrounding insns when splitting.
761 (any_treg_expr_to_reg): New insn_and_split.
762 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
763 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
764 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
765 *zero_extract_2): New single bit zero extract patterns.
766 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
767 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
768 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
769 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
771 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
772 register_operand for set source.
774 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
776 * i386.opt (prefetch_sse): New targetsave.
777 * i386.c (ix86_function_specific_save): Save prefetch_sse.
778 (ix86_function_specific_restore): Restore prefetch_sse and initialize
779 ix86_cost/ix86_tune_cost.
781 2015-01-23 David Malcolm <dmalcolm@redhat.com>
783 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
784 Support the JIT by using 0 as the language type.
786 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
789 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
790 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
791 (mark_regno_live, process_bb_lives): Pass new parameter value to
792 make_hard_regno_born.
794 2015-01-23 Jakub Jelinek <jakub@redhat.com>
796 PR rtl-optimization/63637
797 PR rtl-optimization/60663
798 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
799 if elt->cost is MAX_COST for ASM_OPERANDS.
800 (find_sets_in_insn): Fix up comment typo.
801 (cse_insn): Don't set src_volatile for all non-volatile
802 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
803 or with "memory" clobber. Set elt->cost to MAX_COST
804 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
805 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
807 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
809 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
812 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
814 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
815 libgcc/config/i386/elf-lib.h.
817 2015-01-23 Jakub Jelinek <jakub@redhat.com>
820 * gcc.c (print_configuration): Don't print a blank line at the end
822 (run_attempt): ... but here unstead.
825 * omp-low.c (scan_sharing_clauses): Don't ignore
826 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
827 on target data/update constructs.
829 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
832 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
833 (DEBUG_RELOAD): Removed define.
834 (m32c_limit_reload_class): Enable traces with if DEBUG0.
835 (m32c_function_arg): Added a type cast.
836 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
837 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
838 * config/m32c/bitops.md (andqi3_16): Likewise.
839 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
840 (push_a01_l): Likewise.
842 2015-01-23 David Malcolm <dmalcolm@redhat.com>
845 * main.c (main): Construct toplev instances with init_signals=true.
846 * toplev.c (general_init): Add param "init_signals", and use it to
847 conditionalize the calls to signal and host_hooks.extra_signals.
848 (toplev::toplev): Add param "init_signals".
849 (toplev::main): When invoking general_init, pass m_init_signals
850 to control whether signal-handlers are installed.
851 * toplev.h (toplev::toplev): Add param "init_signals".
852 (toplev::m_init_signals): New field.
854 2015-01-23 David Malcolm <dmalcolm@redhat.com>
857 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
858 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
859 latter may be affected by the former (e.g. on i686).
861 2015-01-23 Martin Liska <mliska@suse.cz>
863 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
864 false positive during profiledbootstrap.
866 2015-01-23 Tom de Vries <tom@codesourcery.com>
869 * lto-opts.c (lto_write_options): Output non-explicit conservative
871 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
872 (append_compiler_options): Pass -fopenacc through.
874 2015-01-23 Tom de Vries <tom@codesourcery.com>
877 * lto-opts.c (lto_write_options): Output non-explicit conservative
879 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
880 (append_compiler_options): Pass -fopenmp through.
882 2015-01-23 Jakub Jelinek <jakub@redhat.com>
885 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
888 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
889 * diagnostic.def (DK_ICE_NOBT): New kind.
890 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
891 like DK_ICE, but never print backtrace.
892 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
893 (internal_error_no_backtrace): New function.
894 * gcc.c (execute): Use internal_error_no_backtrace instead of
897 2015-01-22 Jeff Law <law@redhat.com>
900 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
901 improve code density for small immediate to memory case.
902 (insv): Better handle bitfield assignments when the field is
903 being set to all ones.
904 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
907 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
908 Jakub Jelinek <jakub@redhat.com>
910 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
911 for !TARGET_LIBC_PROVIDES_SSP version and
912 -fstack-protector-{all,strong,explicit} otherwise.
913 * config/freebsd.h (LINK_SSP_SPEC): Handle
914 -fstack-protector-{strong,explicit}.
916 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
917 H.J. Lu <hongjiu.lu@intel.com>
920 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
923 2015-01-22 Wei Mi <wmi@google.com>
925 PR rtl-optimization/64557
926 * dse.c (record_store): Call get_addr for mem_addr.
927 (check_mem_read_rtx): Likewise.
929 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
931 * fold-const.c (const_binop): Add early return for non-tcc_binary.
933 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
935 * toplev.c (init_local_tick): Process the failure when read
936 fails for random_seed.
938 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
939 'pretty_name' to avoid memory overflow.
941 2015-01-22 Richard Biener <rguenther@suse.de>
944 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
945 abnormal coalescing on undefined SSA names.
947 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
951 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
953 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
955 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
958 * fold-const.c (fold_checksum_tree): Don't include value of
959 expr->decl_with_vis.symtab_node in the checksum.
961 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
963 * config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
966 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
969 * gcc.c (insert_comments): New function.
970 (try_generate_repro): Call it.
971 (append_text): Removed.
973 2015-01-22 Richard Biener <rguenther@suse.de>
975 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
976 with IL incompatible options. Properly honor user optimize
979 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
981 PR rtl-optimization/64682
982 * combine.c (distribute_notes): When moving a death note for
983 a register that is set in the new I2, make sure to put it
986 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
988 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
991 2015-01-21 Jakub Jelinek <jakub@redhat.com>
994 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
995 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
996 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
999 * doc/invoke.texi (-fsanitize=vptr): Document.
1001 PR rtl-optimization/62078
1002 * dse.c: Include cfgcleanup.h.
1003 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
1004 anything call purge_all_dead_edges and cleanup_cfg at the end
1007 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
1009 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
1012 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1014 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
1017 2015-01-21 David Sherwood <david.sherwood@arm.com>
1018 Tejas Belagod <Tejas.Belagod@arm.com>
1020 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
1021 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
1022 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
1025 2015-01-21 David Sherwood <david.sherwood@arm.com>
1026 Tejas Belagod <Tejas.Belagod@arm.com>
1028 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
1029 (aarch64_reverse_mask): New decls.
1030 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
1031 (insn_count): New mode_attr.
1032 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
1033 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
1034 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
1035 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
1036 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
1037 (aarch64_simd_st4): New patterns.
1038 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
1039 (aarch64_reverse_mask): New functions.
1041 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
1043 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
1045 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
1046 addressing modes for BE.
1047 (aarch64_print_operand): Add 'R' specifier.
1048 (aarch64_simd_disambiguate_copy): Delete.
1049 (aarch64_simd_emit_reg_reg_move): New function.
1050 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
1051 in define_splits for structural moves.
1052 (mov<mode>): Use less restrictive predicates.
1053 (*aarch64_mov<mode>): Simplify and only allow for LE.
1054 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
1056 2015-01-21 Alan Hayward <alan.hayward@arm.com>
1058 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
1060 2015-01-21 Richard Henderson <rth@redhat.com>
1063 * ccmp.c (used_in_cond_stmt_p): Remove.
1064 (expand_ccmp_expr): Don't use it.
1066 2015-01-21 Nick Clifton <nickc@redhat.com>
1068 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
1071 2015-01-21 Richard Biener <rguenther@suse.de>
1074 * tree-core.h (builtin_info, builtin_info_type): Turn from
1075 an object with two arrays into an array of an object with
1076 decl and two flags, implicit_p and declared_p.
1077 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
1078 set_builtin_decl, set_builtin_decl_implicit_p,
1079 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
1080 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
1081 * builtins.c (builtin_info): Adjust.
1082 * gimplify.c (gimplify_addr_expr): References to builtins
1083 that have been declared by the user makes them eligible for
1084 use by the compiler. Call set_builtin_decl_implicit_p on them.
1086 2015-01-20 Jeff Law <law@redhat.com>
1089 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
1090 allow pc-relative addresses in operand predicates or constraints.
1092 2015-01-21 Bin Cheng <bin.cheng@arm.com>
1094 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
1095 neon on aarch32 processors for stringops.
1097 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1100 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
1102 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1105 * ipa-inline.c: Include lto-streamer.h
1106 (report_inline_failed_reason): Output source file differences and
1107 flags on optimization/target node mismatch.
1108 (can_inline_edge_p): Consider caller to be the outer inline function;
1109 be less restrictive about matching opimize and optimize_size attributes.
1110 (inline_account_function_p): Break out from ...
1111 (inline_small_functions): ... here.
1112 * ipa-inline-transform.c (clone_inlined_nodes): Use
1113 inline_account_function_p.
1114 (inline_call): Use optimize attribution; use inline_account_function_p.
1115 (inline_transform): Use opt_for_fn.
1116 * ipa-inline.h (inline_account_function_p): Declare.
1118 2015-01-20 Jakub Jelinek <jakub@redhat.com>
1121 * dwarf2out.c (decl_piece_node): Don't put bitsize into
1122 mode if bitsize <= 0.
1123 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
1124 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
1125 sizes and positions.
1127 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
1129 * config/nios2/nios2.c (nios2_asm_file_end): Implement
1130 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
1132 (TARGET_ASM_FILE_END): Define.
1134 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1136 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
1137 (struct tune_params): Use the enum.
1138 * arm.c (arm_*_tune): Update.
1139 (arm_option_override): Update.
1141 2015-01-20 Richard Biener <rguenther@suse.de>
1144 * ipa-reference.c (add_static_var): Inline ...
1145 (analyze_function): ... here after splitting out from ...
1146 (is_proper_for_analysis): ... this.
1148 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
1151 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
1152 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
1153 replace the conditional with it's true branch.
1154 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
1155 (arm_lra_p): Remove.
1157 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
1159 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
1161 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1163 * config/tilegx/mul-tables.c: Move symtab.h include after
1164 coretypes.h include.
1165 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
1166 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
1167 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
1168 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
1169 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1171 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
1175 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1177 PR rtl-optimization/64081
1178 * loop-iv.c (def_pred_latch_p): New function.
1179 (latch_dominating_def): Allow specific cases with non-single
1181 (iv_get_reaching_def): Likewise.
1182 (check_complex_exit_p): New function.
1183 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1184 with exits not executing on any iteration.
1186 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1189 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
1192 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1195 * i386.c (gate): Check flag_expensive_optimizations and
1197 (ix86_option_override_internal): Drop optimize_size condition
1198 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
1199 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
1201 (ix86_avx256_split_vector_move_misalign,
1202 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
1203 * sse.md (all uses of TARGET_PREFER_AVX128): Add
1204 optimize_insn_for_speed_p check.
1206 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
1208 * config/mips/mips.h (FP_ASM_SPEC): New define.
1209 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
1212 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
1215 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
1216 nullptr for insn when reaching the first insn.
1217 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
1218 (sh_insn_operands_modified_between_p): Add nullptr check.
1219 (sh_find_extending_set_of_reg): Fix log message. Don't accept
1220 sign extending mem load if the insn contains any UNSPEC or
1223 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1225 * params.def (inline-unit-growth): Drop to 15%.
1226 * invoke.texi (inline-unit-growth): Document change.
1228 2015-01-19 Martin Liska <mliska@suse.cz>
1231 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
1232 function for second argument of OBJ_TYPE_REF.
1234 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1237 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
1238 whether function is an alias.
1240 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1242 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
1245 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
1247 PR rtl-optimization/64671
1248 * lra-remat.c (operand_to_remat): Don't consider jump and call
1251 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
1253 * config/rs6000/default64.h: Include rs6000-cpus.def.
1254 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
1255 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
1256 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
1258 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
1260 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
1261 pseudo-op to specify assembler dialect.
1263 2015-01-19 Martin Liska <mliska@suse.cz>
1266 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
1267 Handle safe potentially removed nodes during filtering.
1269 2015-01-19 Martin Liska <mliska@suse.cz>
1271 * doc/extend.texi (no_icf): Add new attribute description.
1272 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
1273 where the pass attempts to merge a function with no_icf attribute.
1275 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1278 * doc/md.texi (ARM Options): Document register constraints.
1280 2015-01-19 Jiong Wang <jiong.wang@arm.com>
1281 Andrew Pinski <apinski@cavium.com>
1284 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
1285 (ashl<mode>3): Don't expand if operands[2] is not constant.
1287 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1290 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
1291 Match xor-and-xor RTL pattern.
1293 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1295 PR rtl-optimization/64081
1296 * loop-iv.c (def_pred_latch_p): New function.
1297 (latch_dominating_def): Allow specific cases with non-single
1299 (iv_get_reaching_def): Likewise.
1300 (check_complex_exit_p): New function.
1301 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1302 with exits not executing on any iteration.
1304 2015-01-19 Jakub Jelinek <jakub@redhat.com>
1306 * common.opt (fgraphite): Fix a typo.
1308 2015-01-19 Felix Yang <felix.yang@huawei.com>
1310 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
1312 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
1313 uminp, smax_nanp, smin_nanp): New builtins.
1314 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
1315 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
1316 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
1317 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
1318 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
1319 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
1320 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
1321 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
1322 vpminnms_f32): Rewrite using builtin functions.
1324 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1327 * omp-low.c (offload_symbol_decl): Remove variable.
1328 (get_offload_symbol_decl): Remove function.
1329 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
1330 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
1331 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
1332 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
1333 BUILT_IN_GOACC_UPDATE don't pass it at all.
1335 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1337 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
1340 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1342 * ipa-chkp.c (chkp_produce_thunks): Add early param
1343 to split thunks production into two passes. Keep
1344 'always_inline' function bodies after the first pass.
1345 (pass_data_ipa_chkp_early_produce_thunks): New.
1346 (pass_ipa_chkp_early_produce_thunks): New.
1347 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
1348 chkp_produce_thunks signature.
1349 (make_pass_ipa_chkp_early_produce_thunks): New.
1350 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
1351 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
1352 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
1354 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1356 * cgraph.c (cgraph_node::dump): Dump profile flags.
1358 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
1361 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
1362 reg appear first in the parallel.
1364 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1366 * ipa-reference.c (set_reference_optimization_summary,
1367 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
1369 (ignore_module_statics): New static var.
1370 (propagate_bits): If ipa-reference is disabled, do not look into local
1372 (analyze_function): Disable analysis when ipa_reference is disabled.
1373 (generate_summary): Do not dump when reference is disabled;
1374 collect vars accessed from functions with ipa-reference disabled.
1375 (get_read_write_all_from_node): When ipa-reference is disabled, use the
1377 (gate): Enable for LTO.
1378 (ignore_edge_p): New function.
1379 (propagate): Skip functions w/o ipa-reference analysis.
1380 * optc-save-gen.awk: Handle optimize_debug correctly.
1381 * opth-gen.awk: Likewise.
1382 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
1383 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
1384 fira-share-save-slots, fira-share-spill-slots,
1385 fmodulo-sched-allow-regmoves, fpartial-inlining,
1386 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
1387 ftracer, ftree-parallelize-loops, fassociative-math,
1388 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
1390 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
1391 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
1393 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
1396 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1399 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
1401 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
1403 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
1405 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
1406 Remove duplicate option listings.
1408 2015-01-18 Felix Yang <felix.yang@huawei.com>
1410 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
1411 (autofdo_source_profile::get_callsite_total_count,
1412 function_instance::get_function_instance_by_decl,
1413 string_table::get_index, string_table::get_index_by_decl,
1414 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
1415 Fix comment typos. Reformatting and minor code rearrangement.
1417 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1419 * config/rs6000/rs6000.md (probe_stack): Delete.
1420 (probe_stack_address): New.
1422 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1424 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
1425 to test for 32-bit ABIs, not !TARGET_POWERPC64.
1427 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1429 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
1430 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
1431 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
1433 (rs6000_libcall_value): Use the new function.
1435 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
1437 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
1439 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
1441 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
1442 implement a more precise life analysis for it during backward scan.
1444 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1446 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
1448 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
1450 PR rtl-optimization/52773
1451 * calls.c (emit_library_call_value): When pushing arguments use
1452 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
1453 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
1454 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
1456 2015-01-17 Jeff Law <law@redhat.com>
1458 PR rtl-optimization/32790
1459 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
1460 not ZERO_EXTEND in SET_DESTs.
1462 2015-01-17 Alan Modra <amodra@gmail.com>
1464 * cprop.c (do_local_cprop): Revert last change.
1466 2015-01-16 DJ Delorie <dj@redhat.com>
1467 Nick Clifton <nickc@redhat.com>
1469 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
1470 (addhi3_real): Likewise. Fix [HL+0] syntax.
1471 (subqi3_real): Likewise.
1472 (subhi3_real): Likewise.
1473 (cbranchqi4_real): Likewise. Allow saddr,#imm.
1474 (cbranchhi4_real): Likewise.
1475 (cbranchhi4_real_inverted): Likewise.
1476 (cbranchsi4_real_lt): Likewise.
1477 (cbranchsi4_real_ge): Likewise.
1478 (cbranchsi4_real_ge): Likewise.
1479 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
1480 (sub<mode>3_virt): Likewise.
1481 (cbranchqi4_virt): Likewise.
1482 (cbranchhi4_virt): Likewise.
1483 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
1484 always use '[reg+imm]' even when imm is zero.
1485 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
1486 (rl78_general_operand): New.
1487 (rl78_nonimmediate_operand): New.
1488 (rl78_nonfar_operand): Use them.
1489 (rl78_nonfar_nonimm_operand): Likewise.
1490 (rl78_stack_based_mem): Fix.
1491 * config/rl78/constraints.md (Ibqi): New.
1496 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
1499 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
1501 * config/rl78/constrains (Qs8): New constraint.
1502 * config/rl78/rl78.c (rl78_flags_already_set): New function.
1503 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
1504 * config/rl78/rl78-real.md (update_Z): New attribute.
1505 Update patterns to set it.
1506 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
1507 shorter compare and branch sequence can be used.
1508 (cbranchhi4_real): Likewise.
1509 (cbranchhi4_real_inverted): Likewise.
1511 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
1512 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
1514 * config/rl78/rl78.c (rl78_get_name_encoding): New.
1515 (rl78_option_override): Allow -mes0 only if C.
1516 (characterize_address): Support subregs of symbol_refs.
1517 (rl78_addr_space_address_mode): Move. Add __near.
1518 (rl78_far_p): Likewise.
1519 (rl78_addr_space_pointer_mode): Likewise.
1520 (rl78_as_legitimate_address): Likewise.
1521 (rl78_addr_space_subset_p): Likewise.
1522 (rl78_addr_space_convert): Likewise.
1523 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
1525 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
1527 (rl78_alloc_physical_registers_op1): Change logic to prefer
1528 symbol[BC] addressing.
1529 (frodata_section): New.
1530 (rl78_asm_init_sections): Initialize it.
1531 (rl78_select_section): Put __far readonly symbols in .frodata.
1532 (rl78_make_type_far): New.
1533 (rl78_insert_attributes): Force all readonly symbols to be
1535 (rl78_asm_out_integer): New.
1536 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
1537 * config/rl78/rl78.opt (-mes0): New.
1539 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
1540 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1541 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1542 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
1543 (rl78_saddr_p): New.
1544 (rl78_output_aligned_common): New.
1545 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
1546 (rl78_handle_saddr_attribute): New.
1547 (rl78_handle_naked_attribute): New.
1548 (rl78_attribute_table): Add saddr.
1549 (rl78_print_operand_1): Don't print '!' on saddr operands.
1550 (rl78_print_operand_1): Strip encodings.
1552 (rl78_strip_name_encoding): New.
1553 (rl78_attrlist_to_encoding): New.
1554 (rl78_encode_section_info): New.
1555 (rl78_asm_init_sections): New.
1556 (rl78_select_section): New.
1557 (rl78_output_labelref): New.
1558 (rl78_output_aligned_common): New.
1559 (rl78_asm_out_integer): New.
1560 (rl78_asm_ctor_dtor): New.
1561 (rl78_asm_constructor): New.
1562 (rl78_asm_destructor): New.
1564 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
1565 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
1566 (transcode_memory_rtx): Update.
1567 (rl78_expand_epilogue): Use A_REG instead of 0.
1569 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1571 * config/arm/arm-protos.h (struct tune_params): New field
1572 sched_autopref_queue_depth.
1573 * config/arm/arm.c (sched-int.h): Include header.
1574 (arm_first_cycle_multipass_dfa_lookahead_guard,)
1575 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
1576 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
1577 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
1578 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
1579 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
1580 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
1581 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
1582 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
1583 * config/arm/t-arm (arm.o): Update.
1584 * haifa-sched.c (update_insn_after_change): Update.
1585 (rank_for_schedule): Use auto-prefetcher model, if requested.
1586 (autopref_multipass_init): New static function.
1587 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
1588 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
1589 variable for debug dumps.
1590 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
1591 (autopref_multipass_dfa_lookahead_guard): New global function that
1592 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
1593 (init_h_i_d): Update.
1594 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
1595 * sched-int.h (enum autopref_multipass_data_status): New const enum.
1596 (autopref_multipass_data_): Structure for auto-prefetcher data.
1597 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
1598 (struct _haifa_insn_data:autopref_multipass_data): New field.
1599 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
1600 (autopref_multipass_dfa_lookahead_guard): Declare.
1602 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1604 * rtlanal.c (get_base_term): Handle SCRATCH.
1606 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1608 * config/aarch64/aarch64.c
1609 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
1610 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1612 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
1613 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1615 2015-01-17 Alan Modra <amodra@gmail.com>
1617 * cprop.c (do_local_cprop): Disallow replacement of fixed
1620 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1623 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
1626 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1628 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
1629 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
1631 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1633 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
1634 * config/arm/thumb1.md: ... Here.
1636 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1638 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
1639 TImode for TARGET_32BIT.
1641 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1643 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
1644 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
1646 (rs6000_abi_word_mode): New function.
1648 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1650 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
1651 instead of UNITS_PER_WORD to describe the size of stack slots.
1653 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1655 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
1656 as rs6000_promote_function_mode. Move comment to there.
1657 (rs6000_promote_function_mode): New function.
1659 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1661 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
1662 -mpowerpc64 is active.
1664 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1667 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
1670 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1672 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
1673 introduced in revision 219724.
1675 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1676 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1679 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
1680 destination is not a GP reg.
1681 (*movdi_aarch64): Likewise.
1683 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
1686 * config/rs6000/default64.h: Revert ISA change.
1688 2015-01-16 Richard Biener <rguenther@suse.de>
1691 * tree-ssa-uninit.c: Include tree-cfg.h.
1692 (MAX_SWITCH_CASES): New define.
1693 (convert_control_dep_chain_into_preds): Handle switch statements.
1694 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
1695 (normalize_one_pred_1): Do not split bit-manipulations.
1698 2015-01-16 Richard Biener <rguenther@suse.de>
1700 PR tree-optimization/64568
1701 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
1702 complex load rewriting for TARGET_MEM_REFs.
1704 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
1706 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
1708 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
1711 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
1713 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
1714 (aarch64_lra_p): Remove.
1716 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1719 * ipa-chkp.h (chkp_instrumentable_p): New.
1720 * ipa-chkp.c: Include tree-inline.h.
1721 (chkp_instrumentable_p): New.
1722 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
1723 Fix processing of not instrumentable functions.
1724 (chkp_versioning): Use chkp_instrumentable_p. Warn about
1725 not instrumentable functions.
1726 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
1727 chkp_instrumentable_p.
1728 * tree-inline.h (copy_forbidden): New.
1729 * tree-inline.c (copy_forbidden): Not static anymore.
1731 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1733 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
1736 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1738 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
1739 type OP_OUT to OP_INOUT.
1741 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1743 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
1744 (high x) y) to y if x and y have the same base.
1746 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1748 * config/arm/cortex-a57.md: New.
1749 * config/aarch64/aarch64.md: Include it.
1750 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
1751 * config/aarch64/aarch64-tune.md: Regenerate.
1753 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
1756 * ccmp.c (expand_ccmp_next): New function.
1757 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
1758 and compare insn sequence.
1759 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
1760 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
1761 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
1762 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
1763 (*ccmp_ior): Changed to ccmp_ior<mode>.
1764 (cmp<mode>): New pattern.
1765 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
1767 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
1769 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
1771 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
1772 _mm256_bsrli_epi128): New.
1773 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
1775 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1777 * expmed.c (store_bit_field_using_insv): Improve warning message.
1778 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
1780 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1782 PR rtl-optimization/64011
1783 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
1784 there is partial overflow.
1786 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1788 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
1790 (nds32_expand_epilogue_v3pop): Likewise.
1791 * config/nds32/nds32.md (sibcall): Define this for sibling call
1793 (sibcall_register): Likewise.
1794 (sibcall_immediate): Likewise.
1795 (sibcall_value): Likewise.
1796 (sibcall_value_register): Likewise.
1797 (sibcall_value_immediate): Likewise.
1798 (sibcall_epilogue): Likewise.
1799 (epilogue): Pass false to indicate this is not a sibcall epilogue.
1800 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
1801 (nds32_expand_epilogue_v3pop): Likewise.
1803 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1805 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
1806 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
1807 (return_internal): New.
1808 (return): Define this named pattern.
1809 (simple_return): Define this named pattern.
1810 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
1811 pattern instead of unspec_volatile_func_return.
1812 (nds32_expand_epilogue_v3pop): Likewise.
1813 (nds32_can_use_return_insn): New function.
1815 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1817 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
1818 * config/nds32/nds32.md (pop25return): New.
1819 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
1820 pop25return pattern.
1822 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1824 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
1825 -mforbid-fp-as-gp, and -mex9 options.
1827 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1829 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
1830 remove -mgp-direct option.
1832 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1834 * doc/invoke.texi (--param early-inlining-insns): Update default value.
1835 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
1837 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1839 * ipa-inline.c (inline_small_functions): Work around hints
1842 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
1845 * doc/invoke.texi (Option Summary): Document new Nios II
1847 (Nios II Options): Likewise.
1848 * config/nios2/nios2.opt: Add -mgpopt= option support.
1849 Modify existing -mgpopt and -mno-gpopt options to be aliases.
1850 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
1851 * config/nios2/nios2.c (nios2_option_override): Adjust
1853 (nios2_in_small_data_p): Return true for explicit small data
1854 sections even with -G0.
1855 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
1858 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1861 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
1863 (inline_call): Fix removal of aliases.
1865 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1867 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
1868 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
1869 * opts.c (common_handle_option): Add -fsanitize=vptr.
1870 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
1871 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
1872 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
1873 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
1874 (ubsan_expand_vptr_ifn): New prototype.
1875 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
1876 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
1877 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
1878 expand_LOOP_VECTORIZED): Make argument nameless, remove
1880 (expand_UBSAN_VPTR): New function.
1881 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
1883 (UBSAN_VPTR): New internal function.
1884 * sanopt.c (tree_map_traits): Renamed to ...
1885 (sanopt_tree_map_traits): ... this.
1886 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
1887 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
1888 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
1889 (maybe_optimize_ubsan_vptr_ifn): New function.
1890 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
1891 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
1893 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
1894 internal calls like pure functions for aliasing, even when they
1895 have other side-effects that prevent making them ECF_PURE.
1896 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
1897 (ubsan_expand_vptr_ifn): New function.
1899 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
1901 PR rtl-optimization/64110
1902 * stmt.c (parse_output_constraint): Process '^' and '$'.
1903 (parse_input_constraint): Ditto.
1904 * lra-constraints.c (process_alt_operands): Process the new
1906 * ira-costs.c (record_reg_classes): Process the new constraint
1908 * genoutput.c (indep_constraints): Add '^' and '$'.
1909 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
1910 * doc/md.texi: Add description of the new constraints.
1912 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1913 Bernd Schmidt <bernds@codesourcery.com>
1914 Cesar Philippidis <cesar@codesourcery.com>
1915 James Norris <jnorris@codesourcery.com>
1916 Tom de Vries <tom@codesourcery.com>
1917 Ilmir Usmanov <i.usmanov@samsung.com>
1918 Dmitry Bocharnikov <dmitry.b@samsung.com>
1919 Evgeny Gavrin <e.gavrin@samsung.com>
1920 Jakub Jelinek <jakub@redhat.com>
1922 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
1923 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
1924 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
1926 * builtins.c: Include "gomp-constants.h".
1927 (expand_builtin_acc_on_device): New function.
1928 (expand_builtin, is_inexpensive_builtin): Handle
1929 BUILT_IN_ACC_ON_DEVICE.
1930 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
1932 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
1934 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
1935 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
1936 i386/intelmic-offload.h.
1937 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
1938 to libgomp and its dependencies.
1939 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
1940 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1941 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
1942 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1943 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1944 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1945 * doc/generic.texi: Update for OpenACC changes.
1946 * doc/gimple.texi: Likewise.
1947 * doc/invoke.texi: Likewise.
1948 * doc/sourcebuild.texi: Likewise.
1949 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
1950 GF_OMP_FOR_KIND_OACC_LOOP.
1951 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
1952 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
1953 GF_OMP_TARGET_KIND_OACC_UPDATE,
1954 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
1956 * gimple.c: Update comments for OpenACC changes.
1957 * gimple.def: Likewise.
1958 * gimple.h: Likewise.
1959 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
1960 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
1961 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
1962 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
1963 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
1965 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
1966 * gimplify.c: Include "gomp-constants.h".
1967 Update comments for OpenACC changes.
1968 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
1969 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
1970 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
1971 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
1972 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1973 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1974 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
1975 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
1976 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1978 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
1979 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1980 OMP_CLAUSE_SET_MAP_KIND.
1981 (gimplify_oacc_cache): New function.
1982 (gimplify_omp_for): Handle OACC_LOOP.
1983 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
1985 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
1986 OACC_EXIT_DATA, OACC_UPDATE.
1987 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
1988 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
1989 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
1990 (gimplify_body): Consider flag_openacc next to flag_openmp.
1991 * lto-streamer-out.c: Include "gomp-constants.h".
1992 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
1993 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
1994 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
1995 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
1996 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
1997 (BUILT_IN_ACC_ON_DEVICE): New builtins.
1998 * omp-low.c: Include "gomp-constants.h".
1999 Update comments for OpenACC changes.
2000 (struct omp_context): Add reduction_map, gwv_below, gwv_this
2002 (extract_omp_for_data, use_pointer_for_field, install_var_field)
2003 (new_omp_context, delete_omp_context, scan_sharing_clauses)
2004 (create_omp_child_function, scan_omp_for, scan_omp_target)
2005 (check_omp_nesting_restrictions, lower_reduction_clauses)
2006 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
2007 Update for OpenACC changes.
2008 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
2009 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
2010 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
2011 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2012 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
2013 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
2015 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2016 Handle GF_OMP_FOR_KIND_OACC_LOOP.
2017 (expand_omp_target, lower_omp_target): Handle
2018 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2019 GF_OMP_TARGET_KIND_OACC_UPDATE,
2020 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
2021 GF_OMP_TARGET_KIND_OACC_DATA.
2022 (pass_expand_omp::execute, execute_lower_omp)
2023 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
2025 (offload_symbol_decl): New variable.
2026 (oacc_get_reduction_array_id, oacc_max_threads)
2027 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
2028 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
2029 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
2030 (oacc_gimple_assign, oacc_initialize_reduction_data)
2031 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
2033 (is_targetreg_ctx): Remove function.
2034 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
2035 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
2036 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2037 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
2038 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
2039 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
2040 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
2041 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
2042 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
2043 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
2044 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
2045 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
2046 * tree-core.h: Update comments for OpenACC changes.
2047 (enum omp_clause_map_kind): Remove.
2048 (struct tree_omp_clause): Change type of map_kind member from enum
2049 omp_clause_map_kind to unsigned char.
2050 * tree-inline.c: Update comments for OpenACC changes.
2051 * tree-nested.c: Likewise. Include "gomp-constants.h".
2052 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
2053 (convert_tramp_reference_stmt, convert_gimple_call): Update for
2054 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2055 OMP_CLAUSE_SET_MAP_KIND.
2056 * tree-pretty-print.c: Include "gomp-constants.h".
2057 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
2058 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
2059 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
2060 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
2061 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2062 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
2063 instead of OMP_CLAUSE_MAP_*.
2064 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
2065 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
2066 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2067 * tree-streamer-in.c: Include "gomp-constants.h".
2068 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
2069 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
2070 * tree-streamer-out.c: Include "gomp-constants.h".
2071 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
2073 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
2074 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
2075 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
2076 * tree.c (omp_clause_num_ops): Update accordingly.
2077 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
2079 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
2080 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
2081 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
2082 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
2083 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
2084 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
2085 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
2086 (OMP_CLAUSE_SET_MAP_KIND): New macro.
2087 * varpool.c (varpool_node::get_create): Consider flag_openacc next
2089 * config/i386/intelmic-offload.h: New file.
2090 * config/nvptx/offload.h: Likewise.
2092 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2094 * explow.h: Remove duplicate contents.
2095 * dojump.h: Likewise.
2097 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
2099 * arm.c (arm_xgene_tune): Add default initializer for instruction
2102 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2106 * ipa.c (symbol_table::remove_unreachable_nodes):
2107 Do not put abstract origins into boundary.
2109 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
2111 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
2112 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
2114 2015-01-15 Steve Ellcey <sellcey@mips.com>
2116 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
2117 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
2118 builtins.def, and chkp-builtins.def.
2120 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
2122 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
2125 2015-01-15 Richard Biener <rguenther@suse.de>
2127 PR tree-optimization/61743
2128 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
2129 information on PHIs for some simple cases.
2131 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2133 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
2135 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
2136 * config/arm/arm-cores.def (xgene1): New entry.
2137 * config/arm/arm-tables.opt: Regenerate.
2138 * config/arm/arm-tune.md: Regenerate.
2139 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
2141 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2143 * tree-if-conv.c: Include hash-map.h.
2144 (aggressive_if_conv): New variable.
2145 (fold_build_cond_expr): Add simplification of non-zero condition.
2146 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
2147 destination block is not always executed.
2148 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
2149 than two predecessors if AGGRESSIVE_IF_CONV is true.
2150 (if_convertible_stmt_p): Fix commentary.
2151 (all_preds_critical_p): New function.
2152 (has_pred_critical_p): New function.
2153 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
2154 BB can have more than two predecessors and all incoming edges can be
2156 (predicate_bbs): Skip predication for loop exit block, use build2_loc
2157 to compute predicate for true edge.
2158 (find_phi_replacement_condition): Delete this function.
2159 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
2160 Allow interchange PHI arguments if EXTENDED is false.
2161 Change check that block containing reduction statement candidate
2162 is predecessor of phi-block since phi may have more than two arguments.
2163 (phi_args_hash_traits): New helper structure.
2164 (struct phi_args_hash_traits): New type.
2165 (phi_args_hash_traits::hash): New function.
2166 (phi_args_hash_traits::equal_keys): New function.
2167 (gen_phi_arg_condition): New function.
2168 (predicate_scalar_phi): Add handling of phi nodes with more than two
2169 arguments, delete COND and TRUE_BB arguments, insert body of
2170 find_phi_replacement_condition to predicate ordinary phi nodes.
2171 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
2172 delete call of find_phi_replacement_condition and invoke
2173 predicate_scalar_phi with two arguments.
2174 (insert_gimplified_predicates): Add assert that non-predicated block
2175 don't have statements to insert.
2176 (ifcvt_split_critical_edges): New function.
2177 (ifcvt_split_def_stmt): Likewise.
2178 (ifcvt_walk_pattern_tree): Likewise.
2179 (stmt_is_root_of_bool_pattern): Likewise.
2180 (ifcvt_repair_bool_pattern): Likewise.
2181 (ifcvt_local_dce): Likewise.
2182 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
2183 is copy of inner or outer loop force_vectorize field, invoke
2184 ifcvt_split_critical_edges, ifcvt_local_dce and
2185 ifcvt_repair_bool_pattern for aggressive if-conversion.
2187 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
2189 * config/aarch64/aarch64.md: Include xgene1.md.
2190 * config/aarch64/xgene1.md: New file.
2192 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2194 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
2195 xgene1 (APM XGene-1) core definition.
2196 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
2197 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
2198 * doc/invoke.texi: Document -mcpu=xgene1.
2200 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2202 * dojump.h: New header file.
2203 * explow.h: Likewise.
2204 * expr.h: Remove includes.
2205 Move expmed.c prototypes to expmed.h.
2206 Move dojump.c prototypes to dojump.h.
2207 Move alias.c prototypes to alias.h.
2208 Move explow.c prototypes to explow.h.
2209 Move calls.c prototypes to calls.h.
2210 Move emit-rtl.c prototypes to emit-rtl.h.
2211 Move varasm.c prototypes to varasm.h.
2212 Move stmt.c prototypes to stmt.h.
2213 (saved_pending_stack_adjust): Move to dojump.h.
2214 (adjust_address): Move to explow.h.
2215 (adjust_address_nv): Move to emit-rtl.h.
2216 (adjust_bitfield_address): Likewise.
2217 (adjust_bitfield_address_size): Likewise.
2218 (adjust_bitfield_address_nv): Likewise.
2219 (adjust_automodify_address_nv): Likewise.
2220 * explow.c (expr_size): Move to expr.c.
2221 (int_expr_size): Likewise.
2222 (tree_expr_size): Likewise.
2223 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2224 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2225 * genemit.c (main): Generate includes statistics.h, real.h,
2226 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
2228 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
2229 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
2230 explow.h, emit-rtl.h, stmt.h.
2231 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
2232 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
2233 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
2234 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
2235 emit-rtl.h, varasm.h, stmt.h.
2236 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
2237 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
2238 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
2239 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
2240 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2241 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
2242 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
2243 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
2244 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
2245 tm.h tree.h varasm.h vec.h wide-int.h.
2246 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2247 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2248 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
2249 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
2250 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
2251 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
2252 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
2253 * loop-iv.c: Likewise.
2254 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
2255 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
2256 statistics.h stmt.h tree.h varasm.h wide-int.h.
2257 * lra-constraints.c: Likewise.
2258 * lra-eliminations.c: Likewise.
2259 * lra-lives.c: Likewise.
2260 * lra-remat.c: Likewise.
2261 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2262 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
2263 statistics.h stmt.h tree.h varasm.h wide-int.h.
2264 * hw-doloop.c: Likewise.
2265 * ira-color.c: Likewise.
2266 * ira-emit.c: Likewise.
2267 * loop-doloop.c: Likewise.
2268 * loop-invariant.c: Likewise.
2269 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2270 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
2271 statistics.h stmt.h tree.h varasm.h wide-int.h.
2272 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
2273 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
2274 statistics.h stmt.h tree.h varasm.h wide-int.h.
2275 * combine-stack-adj.c: Likewise.
2278 * ifcvt.c: Likewise.
2279 * ira-costs.c: Likewise.
2281 * lra-coalesce.c: Likewise.
2282 * lra-spills.c: Likewise.
2283 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2284 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
2285 stmt.h varasm.h wide-int.h.
2286 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2287 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2289 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
2290 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
2291 statistics.h stmt.h varasm.h wide-int.h.
2292 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
2293 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
2294 varasm.h wide-int.h.
2295 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
2296 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2297 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
2298 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
2299 statistics.h stmt.h.
2300 * config/tilepro/tilepro.c: Likewise.
2301 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
2302 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
2303 * config/pdp11/pdp11.c: Likewise.
2304 * config/xtensa/xtensa.c: Likewise.
2305 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
2306 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2308 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2309 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2310 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
2311 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2312 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2313 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
2314 * rtl-chkp.c: Likewise.
2315 * tree-chkp-opt.c: Likewise.
2316 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
2317 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2318 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
2319 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2320 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2321 statistics.h stmt.h.
2322 * tree-vect-data-refs.c: Likewise.
2323 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
2324 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2325 rtl.h statistics.h stmt.h varasm.h.
2326 * internal-fn.c: Likewise.
2327 * ipa-icf-gimple.c: Likewise.
2328 * lto-section-out.c: Likewise.
2329 * tree-data-ref.c: Likewise.
2330 * tree-nested.c: Likewise.
2331 * tree-outof-ssa.c: Likewise.
2332 * tree-predcom.c: Likewise.
2333 * tree-pretty-print.c: Likewise.
2334 * tree-scalar-evolution.c: Likewise.
2335 * tree-ssa-strlen.c: Likewise.
2336 * tree-vect-loop.c: Likewise.
2337 * tree-vect-patterns.c: Likewise.
2338 * tree-vect-slp.c: Likewise.
2339 * tree-vect-stmts.c: Likewise.
2341 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2342 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
2344 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
2345 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2346 statistics.h stmt.h varasm.h.
2347 * loop-unroll.c: Likewise.
2348 * ubsan.c: Likewise.
2349 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
2350 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
2352 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2353 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
2354 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
2355 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2356 statistics.h stmt.h.
2357 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
2358 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2359 statistics.h stmt.h varasm.h.
2360 * gimple-match-head.c: Likewise.
2361 * lto-cgraph.c: Likewise.
2362 * lto-section-in.c: Likewise.
2363 * lto-streamer-in.c: Likewise.
2364 * lto-streamer-out.c: Likewise.
2365 * tree-affine.c: Likewise.
2366 * tree-cfg.c: Likewise.
2367 * tree-cfgcleanup.c: Likewise.
2368 * tree-if-conv.c: Likewise.
2369 * tree-into-ssa.c: Likewise.
2370 * tree-ssa-alias.c: Likewise.
2371 * tree-ssa-copyrename.c: Likewise.
2372 * tree-ssa-dse.c: Likewise.
2373 * tree-ssa-forwprop.c: Likewise.
2374 * tree-ssa-live.c: Likewise.
2375 * tree-ssa-math-opts.c: Likewise.
2376 * tree-ssa-pre.c: Likewise.
2377 * tree-ssa-sccvn.c: Likewise.
2378 * tree-tailcall.c: Likewise.
2379 * tree-vect-generic.c: Likewise.
2380 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2381 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
2382 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2383 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
2384 * varasm.c: Likewise.
2385 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2386 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
2388 * init-regs.c: Likewise.
2390 * omp-low.c: Likewise.
2391 * stack-ptr-mod.c: Likewise.
2392 * tree-ssa-reassoc.c: Likewise.
2393 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2394 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
2396 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2397 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
2398 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2399 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
2400 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2401 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
2402 * tree-ssa-phiopt.c: Likewise.
2403 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2404 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2405 * config/fr30/fr30.c: Likewise.
2406 * config/frv/frv.c: Likewise.
2408 * final.c: Likewise.
2409 * optabs.c: Likewise.
2410 * passes.c: Likewise.
2411 * simplify-rtx.c: Likewise.
2413 * toplev.c: Likewise.
2414 * var-tracking.c: Likewise.
2415 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2416 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2417 * lower-subreg.c: Likewise.
2418 * postreload-gcse.c: Likewise.
2420 * reginfo.c: Likewise.
2421 * store-motion.c: Likewise.
2422 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2423 fixed-value.h hashtab.h real.h stmt.h varasm.h.
2424 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2425 fixed-value.h hashtab.h statistics.h stmt.h.
2426 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2427 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2428 * except.c: Likewise.
2429 * explow.c: Likewise.
2430 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2431 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
2433 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2434 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
2435 * tree-ssa-structalias.c: Likewise.
2436 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2437 fixed-value.h insn-config.h real.h statistics.h.
2438 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2439 fixed-value.h insn-config.h real.h statistics.h stmt.h.
2440 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2441 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2442 * cfgbuild.c: Likewise.
2443 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2444 fixed-value.h real.h rtl.h statistics.h stmt.h.
2445 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2446 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2447 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2448 fixed-value.h real.h statistics.h stmt.h.
2449 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2450 fixed-value.h real.h statistics.h stmt.h varasm.h.
2451 * cprop.c: Likewise.
2452 * modulo-sched.c: Likewise.
2453 * postreload.c: Likewise.
2454 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2455 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
2456 statistics.h stmt.h varasm.h.
2457 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
2458 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2459 rtl.h statistics.h stmt.h varasm.h.
2460 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
2461 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
2463 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2464 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
2466 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
2467 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
2469 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
2470 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2471 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2472 function.h real.h statistics.h stmt.h varasm.h.
2473 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2474 insn-config.h real.h statistics.h stmt.h.
2475 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2476 statistics.h stmt.h.
2477 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
2478 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
2479 statistics.h stmt.h varasm.h.
2480 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
2481 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
2482 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2483 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
2484 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
2485 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2486 statistics.h stmt.h varasm.h.
2487 * ipa-polymorphic-call.c: Likewise.
2488 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
2489 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2490 statistics.h stmt.h.
2491 * config/c6x/c6x.c: Likewise.
2492 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
2493 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2494 statistics.h stmt.h varasm.h.
2495 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
2496 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
2498 * ipa-split.c: Likewise.
2499 * tree-eh.c: Likewise.
2500 * tree-ssa-dce.c: Likewise.
2501 * tree-ssa-loop-niter.c: Likewise.
2502 * tree-vrp.c: Likewise.
2503 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
2504 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
2506 * config/nds32/nds32-fp-as-gp.c: Likewise.
2507 * config/nds32/nds32-intrinsic.c: Likewise.
2508 * config/nds32/nds32-isr.c: Likewise.
2509 * config/nds32/nds32-md-auxiliary.c: Likewise.
2510 * config/nds32/nds32-memory-manipulation.c: Likewise.
2511 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2512 * config/nds32/nds32-predicates.c: Likewise.
2513 * config/nds32/nds32.c: Likewise.
2514 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
2515 fixed-value.h hashtab.h real.h statistics.h.
2516 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
2517 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2518 * config/arm/arm.c: Likewise.
2519 * config/avr/avr.c: Likewise.
2520 * config/bfin/bfin.c: Likewise.
2521 * config/h8300/h8300.c: Likewise.
2522 * config/i386/i386.c: Likewise.
2523 * config/ia64/ia64.c: Likewise.
2524 * config/iq2000/iq2000.c: Likewise.
2525 * config/m32c/m32c.c: Likewise.
2526 * config/m32r/m32r.c: Likewise.
2527 * config/m68k/m68k.c: Likewise.
2528 * config/mcore/mcore.c: Likewise.
2529 * config/mep/mep.c: Likewise.
2530 * config/mips/mips.c: Likewise.
2531 * config/mn10300/mn10300.c: Likewise.
2532 * config/moxie/moxie.c: Likewise.
2533 * config/pa/pa.c: Likewise.
2534 * config/rl78/rl78.c: Likewise.
2535 * config/rx/rx.c: Likewise.
2536 * config/s390/s390.c: Likewise.
2537 * config/sh/sh.c: Likewise.
2538 * config/sparc/sparc.c: Likewise.
2539 * config/spu/spu.c: Likewise.
2540 * config/stormy16/stormy16.c: Likewise.
2541 * config/v850/v850.c: Likewise.
2542 * config/vax/vax.c: Likewise.
2543 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
2544 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2545 * config/msp430/msp430.c: Likewise.
2546 * predict.c: Likewise.
2547 * value-prof.c: Likewise.
2548 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
2549 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
2550 * config/microblaze/microblaze.c: Likewise.
2551 * config/nios2/nios2.c: Likewise.
2552 * config/rs6000/rs6000.c: Likewise.
2553 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2554 insn-config.h real.h rtl.h statistics.h stmt.h.
2555 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2556 insn-config.h real.h statistics.h stmt.h.
2557 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
2558 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2559 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
2560 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2561 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
2562 fixed-value.h real.h statistics.h stmt.h.
2563 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
2564 fixed-value.h statistics.h stmt.h.
2565 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
2568 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2570 * gengtype.c (create_user_defined_type): Workaround
2571 -Wmaybe-uninitialized false positives.
2572 * cse.c (fold_rtx): Likewise.
2573 * loop-invariant.c (gain_for_invariant): Likewise.
2575 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
2577 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
2578 set the memory attributes in all cases but clear MEM_EXPR if need be.
2580 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2582 PR tree-optimization/64434
2583 * cfgexpand.c (reorder_operands): New function.
2584 (expand_gimple_basic_block): Insert call of reorder_operands if
2587 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
2589 * config/mips/micromips.md (*swp): Remove explicit parallel.
2590 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
2591 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
2592 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
2593 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
2594 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
2595 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
2596 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
2597 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
2598 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
2599 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
2600 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
2601 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
2602 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
2603 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
2604 (mips_wrdsp): Likewise.
2605 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
2607 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
2608 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
2609 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
2610 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
2611 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
2612 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
2613 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
2614 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
2615 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
2617 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2619 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
2620 (mips_print_operand): Support 'y' to print exact log2 in decimal
2622 * config/mips/mips.h (ISA_HAS_LSA): New define.
2623 (ISA_HAS_DLSA): Likewise.
2624 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
2625 * config/mips/predicates.md (const_immlsa_operand): New predicate.
2627 2015-01-15 Martin Liska <mliska@suse.cz>
2630 * optc-save-gen.awk: Add support for array types.
2632 2015-01-15 Richard Biener <rguenther@suse.de>
2635 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
2636 for MEM_REF access functions with the same base can never partially
2639 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
2641 * common.opt: New option -fstack-protector-explicit.
2642 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
2643 (stack_protect_decl_phase): Handle stack_protect attribute for
2644 explicit stack protection requests.
2645 (expand_used_vars): Similarly.
2646 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
2647 * doc/extend.texi: Add documentation for "stack_protect" attribute.
2648 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
2650 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
2653 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
2655 (sh_extending_set_of_reg): New struct.
2656 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
2657 sh_remove_reg_dead_or_unused_notes): New Declarations.
2658 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
2659 sh_find_extending_set_of_reg, sh_split_tst_subregs,
2660 sh_extending_set_of_reg::use_as_extended_reg): New functions.
2661 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
2662 convert to insn_and_split and use new function sh_split_tst_subregs.
2664 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
2666 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
2668 (Optimization Options): Move -fuse-ld documentation to...
2669 (Link Options): ...here.
2671 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2673 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
2675 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
2676 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
2677 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
2678 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
2679 instead of ZR for the memory operand of LL/SC.
2680 (compare_and_swap_12, sync_add<mode>): Likewise.
2681 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
2682 (sync_new_<optab>_12, sync_nand_12): Likewise.
2683 (sync_old_nand_12, sync_new_nand_12): Likewise.
2684 (sync_sub<mode>, sync_old_add<mode>): Likewise.
2685 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
2686 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
2687 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
2688 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
2689 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
2690 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
2691 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
2692 * doc/md.texi (ZC): Update description.
2694 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2696 * builtins.c (expand_builtin_atomic_exchange): Remove error when
2697 memory model is CONSUME.
2698 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
2699 expand_builtin_atomic_store): Change invalid memory model errors to
2701 (expand_builtin_atomic_clear): Change invalid model errors to warnings
2702 and issue warning for CONSUME.
2704 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
2706 * lto-cgraph: Update function comments for
2707 lto_symtab_encoder_encode_*.
2709 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2711 * Makefile.in (site.exp): Do not set ENABLE_LTO.
2713 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2715 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
2716 * lto-cgraph.c (select_what_to_stream): Remove argument, use
2717 lto_stream_offload_p instead.
2718 * lto-streamer.h (select_what_to_stream): Remove argument.
2719 * passes.c (ipa_write_summaries): Likewise.
2720 * tree-pass.h (ipa_write_summaries): Likewise.
2722 2015-01-14 Richard Biener <rguenther@suse.de>
2724 PR tree-optimization/59354
2725 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
2726 groups larger than the slp group size as having gaps.
2728 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2731 * builtins.c (get_memmodel): Promote consume to acquire always.
2733 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2736 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
2739 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2742 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
2744 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
2745 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
2746 AVX512VBMI, as it implies AVX512BW.
2748 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2751 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
2752 (vec_unpacks_hi_v16sf): Ditto.
2754 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2756 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
2759 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2761 * doc/invoke.texi (mapcs): Mention deprecation.
2762 (mapcs-frame): Likewise.
2764 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2767 * config/arm/arm.c (callee_saved_reg_p): Define.
2768 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
2769 register is callee saved instead of !call_used_regs[reg].
2770 (thumb1_compute_save_reg_mask): Likewise.
2772 2015-01-14 Hale Wang <hale.wang@arm.com>
2774 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
2777 2015-01-14 Richard Biener <rguenther@suse.de>
2780 * tree-inline.c (insert_debug_decl_map): Check destination
2781 function MAY_HAVE_DEBUG_STMTS.
2782 (insert_init_debug_bind): Likewise.
2783 (insert_init_stmt): Remove redundant check.
2784 (remap_gimple_stmt): Drop debug stmts if the destination
2785 function has var-tracking assignments disabled.
2787 2015-01-14 Martin Liska <mliska@suse.cz>
2789 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
2790 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
2792 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2795 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
2796 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
2798 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2800 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
2801 level from an ARCH; do not inject the default.
2802 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
2803 MIPS_ISA_LEVEL_SPEC.
2804 (MIPS_ISA_NAN2008_SPEC): Update comment.
2805 (BASE_DRIVER_SELF_SPECS): Likewise.
2806 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
2807 MIPS_DEFAULT_ISA_LEVEL_SPEC.
2808 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
2809 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
2810 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
2812 2015-01-14 Richard Biener <rguenther@suse.de>
2814 PR tree-optimization/64493
2815 PR tree-optimization/64495
2816 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
2817 assign the proper vectorized PHI to the inner loop exit PHIs.
2819 2015-01-14 Joey Ye <joey.ye@arm.com>
2821 * config/arm/arm.c (arm_compute_save_reg_mask):
2822 Do not save lr in case of tail call.
2823 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
2825 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
2827 * tree-vrp.c (check_array_ref): Emit more warnings
2828 for warn_array_bounds >= 2.
2829 * common.opt: New option -Warray-bounds=.
2830 * doc/invoke.texi: Document -Warray-bounds=.
2832 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
2834 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
2835 (mforbid-fp-as-gp): Remove.
2837 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
2838 (nds32_symbol_load_store_p): Remove.
2839 (nds32_fp_as_gp_check_available): Clean up implementation.
2840 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
2842 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
2843 fp-as-gp and ex9 cases.
2845 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2847 * tree-profile.c (init_ic_make_global_vars): Drop workaround
2848 for bintuils bug 14342.
2849 (init_ic_make_global_vars): Likewise.
2850 (gimple_init_edge_profiler): Likewise.
2851 (gimple_gen_ic_func_profiler): Likewise.
2853 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2855 * ipa-inline.c (inline_small_functions): Swap the operands in
2858 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2861 * ipa-inline-analysis.c (node_growth_cache): Remove.
2862 (initialize_growth_caches): Do not initialize it.
2863 (free_growth_caches): Do not free it.
2864 (do_estimate_growth): Rename to ...
2865 (estimate_growth): ... this one; drop growth cache code.
2866 (growth_likely_positive): Always go the heuristics way.
2867 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
2868 (reset_edge_caches): Do not reset node growth.
2869 (heap_edge_removal_hook): Do not maintain cache.
2870 (inline_small_functions): Likewise; strenghten sanity check.
2871 (ipa_inline): Do not maintain caches.
2872 * ipa-inline.h (node_growth_cache): Remove.
2873 (do_estimate_growth): Remove to ...
2874 (estimate_growth): this one; remove inline version.
2875 (reset_node_growth_cache): Remove.
2877 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2880 * ipa-inline.c (inline_small_functions): Update callee keys after
2881 resolving speculation
2882 (inline_small_functions): Always check monotonicity of the queue.
2884 2015-01-13 Marek Polacek <polacek@redhat.com>
2887 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
2889 2015-01-13 Jakub Jelinek <jakub@redhat.com>
2891 PR rtl-optimization/64286
2892 * ree.c (combine_reaching_defs): Move part of comment earlier,
2893 remove !SCALAR_INT_MODE_P check.
2894 (add_removable_extension): Don't add vector mode
2895 extensions if all uses of the source register aren't the same
2898 2015-01-13 Renlin Li <renlin.li@arm.com>
2900 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
2901 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
2903 2015-01-13 Martin Liska <mliska@suse.cz>
2905 * ipa-icf.c (sem_function::equals_private): Call new functions
2906 cl_target_option_print_diff and cl_optimization_print_diff.
2907 * optc-save-gen.awk (cl_target_option_print_diff): New function.
2908 (cl_optimization_print_diff): Likewise.
2909 * opth-gen.awk: Likewise.
2911 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
2913 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
2914 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
2915 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
2916 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
2917 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
2918 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
2920 2015-01-13 Andrew Pinski <apinski@cavium.com>
2922 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
2923 instead of src mode.
2925 2015-01-13 Richard Biener <rguenther@suse.de>
2928 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
2931 2015-01-13 Andrew Pinski <apinski@cavium.com>
2933 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
2935 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2937 2015-01-13 Jakub Jelinek <jakub@redhat.com>
2940 * cfgexpand.c (expand_computed_goto): Don't call
2941 convert_memory_address here.
2943 2015-01-13 Richard Biener <rguenther@suse.de>
2945 PR tree-optimization/64406
2946 * tree-loop-distibution.c (pass_loop_distribution::execute):
2947 Reset the SCEV hashtable if we distributed anything.
2949 2015-01-13 Richard Biener <rguenther@suse.de>
2951 PR tree-optimization/64404
2952 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
2953 SLP types for CSEd loads.
2955 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2957 PR tree-optimization/64436
2958 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
2959 merge of two symbolic numbers for a bitwise OR to ...
2960 (perform_symbolic_merge): This. Also fix computation of the range and
2961 end of the symbolic number corresponding to the result of a bitwise OR.
2963 2015-01-13 Richard Biener <rguenther@suse.de>
2965 PR tree-optimization/64568
2966 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
2967 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
2969 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2971 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
2972 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
2974 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2976 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
2977 target-specific symbol_ref flag.
2978 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
2979 resides in rodata section.
2980 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
2981 (nds32_encode_section_info): New function.
2983 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2985 * config/nds32/nds32.md (call): Use pseudo instruction bal which
2986 clobbers TA_REGNUM if large code model is specified.
2987 (call_register): Likewise.
2988 (call_immediate): Likewise.
2989 (call_value): Likewise.
2990 (call_value_register): Likewise.
2991 (call_value_immediate): Likewise.
2993 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2995 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
2996 (TARGET_CMODEL_MEDIUM): New macro.
2997 (TARGET_CMODEL_LARGE): New macro.
2998 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
2999 code model setting in assembly code.
3001 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3003 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
3004 Remove MASK_GP_DIRECT flag.
3005 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
3006 one of the multilib default options.
3007 * config/nds32/nds32.opt (mgp-direct): Remove.
3008 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
3009 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
3011 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3013 * config/nds32/nds32.opt (mcmodel): Add new option.
3014 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
3015 to describe code model.
3017 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
3020 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
3022 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
3024 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
3025 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
3026 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
3027 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
3028 __builtin_sh_set_fpscr.
3030 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3032 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
3033 after a funtion name just to indicate it is a function.
3034 ([-fsanitize-undefined-trap-on-error]): Likewise.
3035 ([-fdbg-cnt=]): Likewise.
3036 ([-mmemcpy]): Likewise.
3037 ([-mflush-func]): Likewise.
3038 ([-msynci]): Likewise.
3040 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3042 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
3045 2015-01-12 Jakub Jelinek <jakub@redhat.com>
3047 PR tree-optimization/64563
3048 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
3049 instead of != VR_VARYING.
3052 * config/i386/i386.c (ix86_expand_prologue): Add
3053 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
3055 PR tree-optimization/64454
3056 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
3057 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
3058 for signed or [0, op1 - 1] for unsigned modulo.
3059 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3060 even if op1 does not satisfy integer_pow2p.
3063 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
3065 2015-01-12 Jeff Law <law@redhat.com>
3068 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
3069 (trunchiqi2, truncsihi2): Similarly.
3071 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
3072 rather than calling F.
3074 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3076 * tsan.c (instrument_expr): Use force_gimple_operand.
3077 Use may_be_nonaddressable_p instead of is_gimple_addressable.
3079 2015-01-12 Richard Biener <rguenther@suse.de>
3081 PR tree-optimization/64530
3082 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
3085 2015-01-12 Richard Biener <rguenther@suse.de>
3088 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
3091 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3093 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
3094 Cortex-A17 tuning parameters.
3095 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
3097 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3099 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
3100 * config/arm/arm.c (arm_macro_fusion_p): New function.
3101 (arm_macro_fusion_pair_p): Likewise.
3102 (TARGET_SCHED_MACRO_FUSION_P): Define.
3103 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3104 (ARM_FUSE_NOTHING): Likewise.
3105 (ARM_FUSE_MOVW_MOVT): Likewise.
3106 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
3107 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
3108 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
3109 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
3110 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
3111 arm_cortex_a5_tune): Specify fuseable_ops value.
3113 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
3116 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
3117 test for PIE with copy reloc.
3118 * configure: Regenerated.
3120 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3122 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
3124 (arm_tls_descseq_addr): Likewise.
3125 (arm_gen_movmemqi): Likewise.
3126 (arm_expand_epilogue_apcs_frame): Likewise.
3127 (arm_expand_epilogue): Likewise.
3128 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
3131 2015-01-12 Martin Liska <mliska@suse.cz>
3134 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
3135 volatility for correct operands.
3137 2015-01-12 Martin Liska <mliska@suse.cz>
3139 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3140 that a function is not leaf.
3141 (sem_function::compare_polymorphic_p): Likewise.
3143 2015-01-12 Martin Liska <mliska@suse.cz>
3145 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3146 that a function is not leaf.
3147 (sem_function::compare_polymorphic_p): Likewise.
3149 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3151 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
3152 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
3153 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
3154 fold-const.h, tree-check.h.
3156 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3160 * ipa-inline.c (compute_uninlined_call_time,
3161 compute_inlined_call_time): Use counts for extra precision when
3163 (big_speedup_p): Fix formating.
3164 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
3165 (relative_time_benefit): Remove.
3166 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
3167 merge guessed and read profile paths.
3168 (inline_small_functions): Count only !optimize_size functions into
3169 initial size; be more lax about sanity check when profile is used;
3170 be sure to update inlined function profile when profile is read.
3172 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3175 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
3176 cost when edge becomes direct.
3177 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
3178 is resolved or when introducing new speculation.
3180 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
3184 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
3185 '||' to fix typo issue.
3187 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
3188 accept and return NULL.
3190 2015-01-12 Martin Liska <mliska@suse.cz>
3192 * cgraph.c (cgraph_edge::remove_callee): Move function to header
3193 file for being inlined.
3194 (cgraph_set_edge_callee): Delete.
3195 (cgraph_edge::redirect_callee): Move function to header file
3197 (cgraph_edge::make_direct): Use new function.
3198 (cgraph_edge::dump_edge_flags): New function created from
3199 static dump_edge_flags function.
3200 (cgraph_node::dump): Use new function.
3201 (cgraph_edge::verify_count_and_frequency): New function created
3202 from verify_edge_count_and_frequency.
3203 (cgraph_edge::verify_corresponds_to_fndecl): New function created
3204 from verify_edge_corresponds_to_fndecl.
3205 (verify_edge_corresponds_to_fndecl): Delete.
3206 (cgraph_node::verify_node): Use new function.
3207 * cgraph.h (cgraph_edge::set_callee): New function.
3208 (cgraph_edge::dump_edge_flags): Likewise.
3209 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
3211 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
3213 * ipa-utils.c (estimate_function_body_sizes): Do not
3214 free node params when called late with early=true.
3216 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
3218 * doc/md.texi (Instruction Patterns): Rewrite text for
3220 (Example): Likewise.
3222 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
3224 * doc/invoke.texi (Option Summary): Break long lines.
3225 [(-fdiagnostics-color)]: Put long literal in @smallexample
3227 [(-fsanitize-recover)]: Likewise.
3228 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
3229 [(-ffast-math)]: Likewise.
3230 [(--param max-inline-insns-recursive)]: Likewise.
3231 [(--param max-inline-recursive-depth)]: Likewise.
3232 [(-mno-text-section-literals)]: Likewise.
3234 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3236 * doc/install.texi: Update for libgomp being renamed from "GNU
3237 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
3239 * doc/sourcebuild.texi: Likewise.
3241 2015-01-10 Anthony Green <green@moxielogic.com>
3243 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
3244 mul.x availability for moxiebox configuration.
3246 2015-01-09 Anthony Green <green@moxielogic.com>
3248 * config/moxie/moxie.md: Tabify assembly output.
3250 2015-01-09 Anthony Green <green@moxielogic.com>
3252 * config/moxie/moxie.md (CC_REG): Correct register definition.
3254 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
3256 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
3257 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
3260 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3262 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
3264 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
3265 Jakub Jelinek <jakub@redhat.com>
3268 * lto-streamer.h (lto_stream_offload_p): New declaration.
3269 * lto-streamer.c (lto_stream_offload_p): New variable.
3270 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
3271 at the same time as section_name_prefix.
3272 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
3273 if lto_stream_offload_p.
3274 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
3275 stream TREE_TARGET_OPTION if lto_stream_offload_p.
3276 (write_ts_function_decl_tree_pointers): Don't
3277 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
3278 * tree-streamer-in.c (unpack_value_fields): Don't stream
3279 TREE_TARGET_OPTION in if ACCEL_COMPILER.
3280 (lto_input_ts_function_decl_tree_pointers): Don't stream
3281 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
3282 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
3283 instead of section_name_prefix string comparisons.
3285 2015-01-09 Jakub Jelinek <jakub@redhat.com>
3287 PR rtl-optimization/64536
3288 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
3291 2015-01-09 Michael Collison <michael.collison@linaro.org>
3293 PR tree-optimization/64322
3294 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
3295 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
3297 2015-01-09 Tom de Vries <tom@codesourcery.com>
3299 PR rtl-optimization/64539
3300 * regcprop.c (kill_clobbered_values): Factor out of ...
3301 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
3302 instead of note_stores with kill_clobbered_value.
3304 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3306 * ginclude/unwind-arm-common.h: Revert previous commit.
3308 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3310 * config.gcc (arm*-*-freebsd*): New configuration.
3311 * config/arm/freebsd.h: New file.
3312 * config.host: Add extra components for arm*-*-freebsd*.
3313 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
3314 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
3316 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3318 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
3320 * config/rs6000/t-rtems: Add e6500 multilibs.
3322 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3324 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
3327 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3329 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
3330 MULTILIB_EXCEPTIONS.
3332 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3334 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
3335 MULTILIB_EXCEPTIONS.
3337 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3339 * config/arm/t-rtems-eabi: Rename to...
3340 * config/arm/t-rtems: ...this.
3341 * config/arm/rtems-eabi.h: Rename to...
3342 * config/arm/rtems.h: ...this.
3343 * config.gcc (arm*-*-rtems*): Reflect changes above.
3345 2015-01-09 Richard Biener <rguenther@suse.de>
3347 PR tree-optimization/64410
3348 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
3350 (execute_update_addresses_taken): Deal with that.
3351 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
3352 loads/stores for complex variables.
3354 2015-01-09 Martin Liska <mliska@suse.cz>
3356 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
3358 (func_checker::compare_memory_operand): New function.
3359 (func_checker::compare_operand): Split case to newly
3361 (func_checker::compare_cst_or_decl): New function.
3362 (func_checker::compare_gimple_call): Identify
3364 (func_checker::compare_gimple_assign): Likewise.
3365 * ipa-icf-gimple.h: New function.
3367 2015-01-09 Martin Liska <mliska@suse.cz>
3370 * sreal.c (sreal::dump): Change unsigned format to signed for
3372 (sreal::to_double): Replace exp2 with scalbln.
3374 2015-01-09 Martin Liska <mliska@suse.cz>
3376 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
3377 * ipa-icf.c (sem_function::equals_private): Add support for target and
3378 (sem_item_optimizer::merge_classes): Remove redundant function
3379 optimization flags comparison.
3380 * tree.h (target_opts_for_fn): New function.
3382 2015-01-09 Tom de Vries <tom@codesourcery.com>
3384 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
3386 2015-01-09 Kito Cheng <kito@0xlab.org>
3388 PR rtl-optimization/64348
3389 * lra-constraints.c (split_reg): Fix caller-save store/restore
3390 instruction generation.
3392 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
3394 PR gcov-profile/61790
3395 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
3396 long long. Fallback to int64_t if host doesn't have long long and
3397 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
3399 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3401 PR tree-optimization/63989
3402 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
3404 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
3405 (get_stridx): If we don't have a record for certain SSA_NAME,
3406 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
3407 constant offset, call get_stridx_plus_constant.
3408 (get_stridx_plus_constant): New function.
3409 (zero_length_string): Don't use get_stridx here.
3413 * dse.c (struct insn_info): Mention frame_read set also
3414 before reload for tail calls on some targets.
3415 (scan_insn): Revert 2014-12-22 change. Set frame_read
3416 also before reload for tail calls if
3417 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
3418 instead of add_non_frame_wild_read for non-const/memset
3419 tail calls after reload.
3421 2015-01-08 Jason Merrill <jason@redhat.com>
3423 * ubsan.c (do_ubsan_in_current_function): New.
3424 (pass_ubsan::gate): Use it.
3425 * ubsan.h: Declare it.
3426 * convert.c (convert_to_integer): Use it.
3428 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3431 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
3432 compare_code when it is unconditionally overwritten afterwards.
3433 Use ix86_reverse_condition instead of reverse_condition. Don't
3434 change code if *reverse_condition* returned UNKNOWN and don't
3435 swap ct/cf and negate diff in that case.
3437 2015-01-08 Mike Stump <mikestump@comcast.net>
3439 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
3440 (pass_tsan_O0::gate): Likewise.
3441 * extend.texi (Function Attributes): Add no_sanitize_thread
3444 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3446 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
3447 for registering builtins.
3448 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
3449 add -fopenmp to the argv_obstack used when invoking
3452 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
3453 add "-m32" or "-m64" to argv_obstack.
3454 (generate_host_descr_file): Likewise, when invoking host_compiler.
3455 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
3458 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3460 * config/sh/sh-mem.cc: Use constant as second operand when emitting
3463 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3466 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
3467 constant load if constant operand fits into I08.
3469 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3472 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
3473 and TREE_THIS_VOLATILE for MEM_REFs.
3474 (build5_stat): Fix up initialization of TREE_READONLY and
3475 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
3477 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3480 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
3481 of r for the second alternative of the destination operand.
3483 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
3486 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
3488 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3490 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
3492 ([-fivar-visibility], [-fvisibility]): Likewise.
3494 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3496 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
3497 the file where @code, @command, etc is more appropriate.
3499 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
3501 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
3502 of -mrecip= documentation.
3504 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3507 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
3508 correct reload handler if -m32 -mpowerpc64 is used.
3510 2015-01-06 Tom de Vries <tom@codesourcery.com>
3512 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
3514 2015-01-08 Christian Bruel <christian.bruel@st.com>
3517 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
3519 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3521 PR tree-optimization/63259
3522 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
3523 if optab exists for 16bit byteswap.
3525 2015-01-06 Jakub Jelinek <jakub@redhat.com>
3527 * opts.c (common_handle_option): Add support for
3528 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
3529 * doc/invoke.texi: Document -fno-sanitize=all,
3530 -f{,no-}sanitize-recover=all. Document that
3531 -fsanitize=float-cast-overflow is not enabled
3532 by -fsanitize=undefined. Fix up documentation
3533 of -f{,no-}sanitize-recover.
3535 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3537 * config.gcc: Add Visium support.
3538 * configure.ac: Likewise.
3539 * configure: Regenerate.
3540 * doc/extend.texi (interrupt attribute): Add Visium.
3541 * doc/invoke.texi: Document Visium options.
3542 * doc/install.texi: Document Visium target.
3543 * doc/md.texi: Document Visium constraints.
3544 * common/config/visium: New directory.
3545 * config/visium: Likewise.
3547 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3549 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
3550 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
3552 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3554 * combine.c (combine_validate_cost): Do not count the cost of a
3555 split I2 twice. Do not display it twice in the dump, either.
3557 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3559 Revert parts of r219199.
3560 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
3562 ([-Wtraditional]): Restore markup on <limits.h>.
3564 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3567 * doc/invoke.texi: Document -Wsuggest-override.
3569 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
3571 PR rtl-optimization/64287
3572 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
3573 (process_options): Disable flag_ipa_ra if profiling.
3575 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
3577 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
3579 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
3581 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
3582 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
3583 put under #if TARGET_LOOPS guard.
3585 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
3587 * config/i386/i386.c (output_387_binary_op): Use std::swap.
3589 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
3591 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
3592 * rtl.h (refers_to_regno_p): Add overload.
3594 * bt-load.c: Likewise.
3595 * combine.c: Likewise.
3596 * df-scan.c: Likewise.
3597 * sched-deps.c: Likewise.
3598 * config/s390/s390.c: Likewise.
3599 * config/m32r/m32r.c: Likewise.
3600 * config/rs6000/spe.md: Likewise.
3601 * config/rs6000/rs6000.c: Likewise.
3602 * config/pa/pa.c: Likewise.
3603 * config/stormy16/stormy16.c: Likewise.
3604 * config/cris/cris.c: Likewise.
3605 * config/arc/arc.md: Likewise.
3606 * config/arc/arc.c: Likewise.
3607 * config/sh/sh.md: Likewise.
3608 * config/sh/sh.c: Likewise.
3609 * config/frv/frv.c: Likewise.
3611 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3614 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
3615 call as cleanup of the whole body.
3616 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
3617 * tsan.c (replace_func_exit): New function.
3618 (instrument_func_exit): Moved earlier.
3619 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
3620 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
3622 (tsan_pass): Don't call instrument_func_exit.
3623 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
3624 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
3628 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
3629 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
3630 it to libubsan handler instead of EXPR. Fold comparisons earlier,
3631 if the result is integer_zerop, return NULL_TREE.
3632 * convert.c (convert_to_integer): Pass expr as ARG.
3634 PR tree-optimization/64465
3635 * tree-inline.c (redirect_all_calls): During inlining
3636 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
3637 changed the stmt to a non-throwing call.
3639 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3641 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
3642 etc markup throughout the file.
3644 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3646 Enable experimental TSAN support for Ada.
3647 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
3649 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3651 PR tree-optimization/64494
3652 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
3653 clear SSA_NAME_ANTI_RANGE_P flag.
3655 2015-01-05 Marek Polacek <polacek@redhat.com>
3657 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
3659 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3661 Update copyright years.
3663 * gcc.c (process_command): Update copyright notice dates.
3664 * gcov-dump.c: Ditto.
3666 * doc/cpp.texi: Bump @copying's copyright year.
3667 * doc/cppinternals.texi: Ditto.
3668 * doc/gcc.texi: Ditto.
3669 * doc/gccint.texi: Ditto.
3670 * doc/gcov.texi: Ditto.
3671 * doc/install.texi: Ditto.
3672 * doc/invoke.texi: Ditto.
3674 * auto-profile.c, auto-profile.h: Fix up Copyright line.
3676 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
3678 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
3680 ([-fvtable-verify], [-fvtv-debug]): Likewise.
3681 ([-Wabi]): Likewise.
3682 ([-fmessage-length]): Likewise.
3683 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
3684 ([-Wno-discarded-qualifiers]): Likewise.
3685 ([-Wnodiscarded-array-qualifiers]): Likewise.
3686 ([-Wno-virtual-move-assign]): Likewise.
3687 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
3688 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
3689 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
3690 ([-fsanitize-undefined-trap-on-error]): Likewise.
3691 ([-floop-interchange]): Likewise.
3692 ([-ftree-coalesce-inlined-vars]): Likewise.
3693 ([-fvect-cost-model]): Likewise.
3694 ([-flto]): Likewise.
3695 ([--param]): Likewise.
3696 (Spec Files): Likewise.
3697 ([-mstrict-align]): Likewise.
3698 ([-mfix-cortex-a53-835769]): Likewise.
3699 ([-march], [-mtune]): Likewise.
3700 ([-mpic-register]): Likewise.
3701 ([-munaligned-access]): Likewise.
3702 ([-msp8]): Likewise.
3703 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
3704 (AVR Built-in Macros): Likewise.
3705 ([-mpreferred-stack-boundary]): Likewise.
3706 ([-mtune-crtl]): Likewise.
3707 ([-mashf]): Likewise.
3708 ([-mmcu=]): Likewise.
3709 ([-minrt]): Likewise.
3710 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
3711 ([-mupper-regs]): Likewise.
3712 ([-matomic-model]): Likewise.
3713 ([-mdiv]): Likewise.
3714 ([-mzdcbranch]): Likewise.
3715 ([-mdisable-callt]): Likewise.
3716 ([-msoft-float]): Likewise.
3717 ([-m8byte-align]): Likewise.
3718 ([-fstack-reuse]): Likewise.
3720 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3722 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
3723 Fix markup, light copy-editing.
3724 ([-fauto-profile]): Rewrite to fix formatting and content
3727 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3729 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
3730 Copy-edit description.
3731 ([-fisolate-erroneous-paths-attribute]): Likewise.
3732 * common.opt (fisolate-erroneous-paths-dereference):
3733 Copy-edit description.
3734 (fisolate-erroneous-paths-attribute): Likewise.
3736 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3738 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
3741 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3743 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
3744 ([-fvtv-debug]): Likewise.
3745 ([-Wc++-compat]): Likewise.
3746 ([-Wc++11-compat]): Likewise.
3747 ([-Wc++14-compat]): Likewise.
3748 ([-Wno-sized-deallocation]): Likewise.
3749 ([-femit-class-debug-always]): Likewise.
3750 ([-femit-struct-debug-detailed]): Likewise.
3751 ([-fno-keep-inline-dllexport]): Likewise.
3752 ([-fira-algorithm]): Likewise.
3753 ([-fira-region]): Likewise.
3754 ([-flra-remat]): Likewise.
3755 ([-fipa-ra]): Likewise.
3756 ([-fhoist-adjacent-loads]): Likewise.
3757 ([-fisolate-erroneous-paths-dereference]): Likewise.
3758 ([-fisolate-erroneous-paths-attribute]): Likewise.
3759 ([-ftree-switch-conversion]): Likewise.
3760 ([-ftree-tail-merge]): Likewise.
3761 ([-ftree-loop-if-convert]): Likewise.
3762 ([-ftree-loop-if-convert-stores]): Likewise.
3763 ([-ftree-loop-distribution]): Likewise.
3764 ([-ftree-loop-distribute-patterns]): Likewise.
3765 ([-flto-compression-level]): Likewise.
3766 ([-flto-report]): Likewise.
3767 ([-flto-report-wpa]): Likewise.
3768 ([-fuse-linker-plugin]): Likewise.
3769 ([-mfix-cortex-a53-835769]): Likewise.
3770 ([-mno-fix-cortex-a53-835769]): Likewise.
3771 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
3772 explicit listing; add a note to the discussion indicating they
3773 exist. Reorder table to group similar options. Add missing
3774 @opindex entries. Add @need commands throughout the table to
3775 allow it to be split across multiple pages.
3776 ([-m8bit-idiv]): Fix @opindex.
3777 ([-mavx256-split-unaligned-load]): Likewise.
3778 ([-mavx256-split-unaligned-store]): Likewise.
3779 ([-mstack-protector-guard]): Likewise.
3780 ([-mcpu=]): Likewise.
3781 ([-mcpu]): Likewise.
3782 ([-mpointer-size=]): Likewise.
3784 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
3786 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
3787 instead of `m' constraint. Likewise for unnamed movb comparison
3788 patterns using reg_before_reload_operand predicate.
3789 * config/pa/predicates.md (reg_before_reload_operand): Tighten
3790 predicate to reject register index and LO_SUM DLT memory forms
3793 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3795 * doc/invoke.texi (Option Summary): Fix spelling of
3796 -fdevirtualize-at-ltrans.
3797 ([-fdevirtualize]): Fix markup.
3798 ([-fdevirtualize-speculatively]): Fix typo.
3799 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
3801 * common.opt (fdevirtualize-at-ltrans): Likewise.
3802 * ipa-devirt.c: Fix typos in comments throughout the file.
3803 (ipa_devirt): Fix typos in format strings for dump output.
3805 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3807 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
3808 discussion of defaults, light copy-editing.
3810 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3812 * tsan.c (instrument_expr): corrected previous checkin.
3814 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3816 Instrument bit field and unaligned accesses for TSAN.
3817 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
3818 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
3819 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
3820 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
3821 unaligned memory regions.
3823 2015-01-01 Anthony Green <green@moxielogic.com>
3825 * config/moxie/predicates.md (moxie_general_movsrc_operand):
3826 Restrict move source register offsets to 16 bits.
3828 Copyright (C) 2015 Free Software Foundation, Inc.
3830 Copying and distribution of this file, with or without modification,
3831 are permitted in any medium without royalty provided the copyright
3832 notice and this notice are preserved.