1 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
4 * ipa-utils.c (ipa_merge_profiles): Add release argument.
5 * ipa-icf.c (sem_function::merge): Do not release body when merging.
6 * ipa-utils.h (ipa_merge_profiles): Update prototype.
8 2015-02-01 Jakub Jelinek <jakub@redhat.com>
11 * cfgexpand.c (deep_ter_debug_map): New variable.
12 (avoid_deep_ter_for_debug): New function.
13 (expand_debug_expr): If TERed SSA_NAME is in
14 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
15 instead of trying to expand SSA_NAME's def stmt.
16 (expand_debug_locations): When expanding debug bind
17 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
18 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
20 (pass_expand::execute): Call avoid_deep_ter_for_debug on
21 all debug bind stmts. Delete deep_ter_debug_map after
22 expand_debug_location if non-NULL and clear it.
24 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
27 * config/sh/sync.md (atomic_fetch_notsi_hard,
28 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
29 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
31 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
32 atomic_not_fetch<mode>_soft_imask): New insns.
34 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37 (rank_for_schedule_debug): Split from ...
38 (rank_for_schedule): ... this.
39 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
40 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
42 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
44 * doc/md.texi (Machine Constraints): Alphabetize table by target.
45 * doc/extend.texi (x86 Variable Attributes): Move section to
46 correct alphabetization after renaming.
47 (x86 Type Attributes): Likewise.
48 (Target Builtins): Re-alphabetize menu.
49 (x86 Built-in Functions): Move section to correct alphabetization
51 (x86 transactional memory intrinsics): Likewise.
52 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
53 and x86 Windows Options in table and menu.
54 (x86 Options): Move section to correct alphabetization after
56 (x86 Windows Options): Likewise.
58 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
60 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
61 preferred names of the architecture and its 32- and 64-bit
63 * doc/invoke.texi: Likewise.
64 * doc/md.texi: Likewise.
66 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
69 * config/i386/predicates.md (address_no_seg_operand): Reject
70 non-CONST_INT_P operands in invalid mode.
72 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
74 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
75 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
76 * config/i386/predicates.md (address_no_seg_operand): Call
77 address_operand with VOIDmode.
78 (vsib_address_operand): Ditto.
79 (address_mpx_no_base_operand): Ditto.
80 (address_mpx_no_index_operand): Ditto.
82 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
85 * lra-constraints.c (original_subreg_reg_mode): New.
86 (simplify_operand_subreg): Try to simplify subreg of const. Use
87 original_subreg_reg_mode for it.
88 (swap_operands): Update original_subreg_reg_mode.
89 (curr_insn_transform): Set up original_subreg_reg_mode.
91 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
94 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
96 (process_alt_operands): Use it.
97 (curr_insn_transform): Check the optional reload pseudo class is
100 2015-01-30 Joseph Myers <joseph@codesourcery.com>
102 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
103 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
105 * toplev.h (init_asm_output): Update comment on use of
106 UNKNOWN_LOCATION with fatal_error.
107 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
108 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
109 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
110 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
111 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
112 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
113 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
114 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
115 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
116 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
117 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
118 fatal_error changed to pass input_location as first argument.
120 2015-01-30 Martin Liska <mliska@suse.cz>
122 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
123 in #pragma GCC diagnostic guards.
125 2015-01-30 Richard Biener <rguenther@suse.de>
127 PR tree-optimization/64829
128 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
129 not add a widening conversion pattern but hand off extra
130 widenings to callers.
131 (vect_recog_widen_mult_pattern): Handle extra widening produced
132 by vect_handle_widen_op_by_const.
133 (vect_recog_widen_shift_pattern): Likewise.
134 (vect_pattern_recog_1): Remove excess vertical space in dumping.
135 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
136 (vect_init_vector_1): Likewise.
137 (vect_get_vec_def_for_operand): Likewise.
138 (vect_finish_stmt_generation): Likewise.
139 (vectorizable_load): Likewise.
140 (vect_analyze_stmt): Likewise.
141 (vect_is_simple_use): Likewise.
143 2015-01-29 Jeff Law <law@redhat.com>
145 * combine.c (try_combine): Fix typo in comment.
147 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
150 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
151 (rs6000_stack_info): Add assert.
152 (rs6000_output_savres_externs): New function, split off from...
153 (rs6000_output_function_prologue): ... here. Do not call it for
156 2015-01-29 Jeff Law <law@redhat.com>
159 * combine.c (try_combine): If I0 is a memory load and I3 a store
160 to a related address, increase the "goodness" of doing a 4-insn
161 combination with I0-I3.
162 (make_field_assignment): Handle SUBREGs in the ior+and case.
164 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
166 PR tree-optimization/64746
167 * tree-if-conv.c (mask_exists): New function.
168 (predicate_mem_writes): Save created mask with given size for further
170 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
171 (ifcvt_repair_bool_pattern): Collect all statements that are root
172 of bool pattern and use iterative algorithm to remove multiple uses
173 of predicates, display number of required iterations.
175 2015-01-29 Richard Biener <rguenther@suse.de>
177 PR tree-optimization/64853
178 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
179 stmt will get simulated again.
180 * tree-ssa-ccp.c (valueize_op_1): Likewise.
182 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
184 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
185 return_in_pc. Remove redundant assignments.
186 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
187 (arm_expand_epilogue): Don't compare boolean with true in if condition.
189 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
191 * config/i386/i386.c (ix86_mode_after): Make static.
193 2015-01-29 Richard Biener <rguenther@suse.de>
195 PR tree-optimization/64844
196 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
197 dump cost model analysis.
198 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
199 Do not register adjusted load/store costs here.
201 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
202 Uros Bizjak <ubizjak@gmail.com>
204 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
205 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
206 using x86_use_pseudo_pic_reg.
207 * config/i386/i386.c (ix86_conditional_register_usage): Remove
208 support for fixed PIC register.
209 (ix86_use_pseudo_pic_reg): Not static any more.
211 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
214 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
215 to avoid error in cgraph node verification.
217 2015-01-29 Marek Polacek <polacek@redhat.com>
219 * doc/standards.texi: Reflect that the default for C is gnu11.
221 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
224 * reorg.c (switch_text_sections_between_p): New function.
225 (relax_delay_slots): Call it when testing if the jump insn
226 is removable. Use targetm.can_follow_jump when testing if
227 the conditional branch can follow an unconditional jump.
229 2015-01-27 Caroline Tice <cmtice@google.com>
231 Committing VTV Cywin/Ming patch for Patrick Wollgast
232 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
233 if -fvtable-verify=preinit/std is used.
234 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
235 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
236 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
237 if -fvtable-verify=preinit/std is used.
238 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
239 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
240 if -fvtable-verify=preinit/std is used.
241 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
242 * config/i386/mingw32.h (LIB_SPEC): Likewise.
243 * varasm.c (assemble_variable): Add code to properly set the comdat
244 section and name for the .vtable_map_vars section in case the
245 target is PE or COFF.
247 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
250 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
251 make sane BB profile.
252 (cgraph_node::expand_thunk): Make sane BB profile.
253 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
254 * cgraph.h (init_lowered_empty_function): Update prototype.
255 * config/i386/i386.c (make_resolver_func): Update call.
256 * predict.c (gate): Disable branch prediction pass if
257 profile is already there.
259 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
261 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
262 * opth-gen.awk: Likewise.
263 * common.opt: Mark flag_fp_contract_mode as Optimization.
265 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
267 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
268 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
270 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
273 * config/sh/predicates.md (atomic_arith_operand,
274 atomic_logical_operand): Remove.
275 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
276 (atomic_arith_operand_0): New predicate.
277 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
278 Use atomic_arith_operand_0 for input values.
279 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
280 atomic_compare_and_swap<mode>_soft_gusa,
281 atomic_compare_and_swap<mode>_soft_tcb,
282 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
283 arith_reg_operand instead of register_operand.
284 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
285 atomic_arith_operand_0 for newval input.
286 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
287 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
288 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
289 arith_reg_operand instead of register_operand.
290 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
291 fetchop_predicate_1, fetchop_constraint_1_llcs,
292 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
293 fetchop_constraint_1_imask): New code iterator attributes.
294 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
295 register_operand. Use fetchop_predicate_1.
296 (atomic_fetch_<fetchop_name>si_hard,
297 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
298 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
299 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
300 and arith_reg_operand instead of register_operand. Use
301 fetchop_predicate_1, fetchop_constraint_1_gusa.
302 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
303 and arith_reg_operand instead of register_operand. Use
304 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
306 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
307 and arith_reg_operand instead of register_operand. Use
308 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
310 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
311 register_operand. Use atomic_logical_operand_1.
312 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
313 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
314 arith_reg_operand instead of register_operand.
315 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
316 Use arith_reg_dest and arith_reg_operand instead of register_operand.
317 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
318 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
319 register_operand. Use fetchop_predicate_1.
320 (atomic_<fetchop_name>_fetchsi_hard,
321 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
322 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
323 fetchop_constraint_1_llcs.
324 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
325 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
326 fetchop_constraint_1_gusa.
327 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
328 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
329 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
330 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
331 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
332 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
333 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
334 register_operand. Use atomic_logical_operand_1.
335 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
336 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
337 arith_reg_operand instead of register_operand.
338 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
339 arith_reg_operand instead of register_operand. Use logical_operand
340 and K08. Adjust asm sequence to allow R0 usage.
341 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
342 arith_reg_operand instead of register_operand. Use logical_operand
345 2015-01-28 Jakub Jelinek <jakub@redhat.com>
348 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
349 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
350 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
351 only get_full_len HOST_WIDE_INTs from get_val () array rather than
352 all bits in *val_wide.
354 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
356 * varpool.c (tls_model_names): Fix names.
357 (varpool_node::dump): Dump tls- prefix for tls models.
359 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
360 Bernd Schmidt <bernds@codesourcery.com>
361 Nathan Sidwell <nathan@codesourcery.com>
363 * config/nvptx/mkoffload.c: New file.
364 * config/nvptx/t-nvptx: Add build rules for it.
365 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
366 (extra_programs): Add mkoffload.
367 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
369 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
371 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
374 * cfgexpand.c (reorder_operands): Skip debug gimples.
376 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
378 PR tree-optimization/64277
379 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
380 range info when possible to refine estimation.
382 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
384 PR tree-optimization/64718
385 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
386 be a 16bit unsigned integer when n->range is 16.
387 (bswap_replace): Convert src to that type if necessary for all bswap
388 sizes. Fix rotation right notation in nearby comment. Use bswap_type
389 set in pass_optimize_bswap::execute ().
391 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
393 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
394 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
395 integer and floating point variants.
396 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
398 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
400 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
401 for all vector modes.
403 2015-01-28 Jakub Jelinek <jakub@redhat.com>
406 * doc/sourcebuild.texi (comdat_group): Document.
408 2015-01-28 Terry Guo <terry.guo@arm.com>
410 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
412 2015-01-27 David Malcolm <dmalcolm@redhat.com>
414 * toplev.c (print_version): Add param "show_global_state", and
415 only print GGC and plugin information if it is true.
416 (init_asm_output): Pass in "true" for the new param when calling
418 (process_options): Likewise.
419 (toplev::main): Likewise.
420 * toplev.h (print_version): Add new param to decl.
422 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
426 * tree.c (lookup_binfo_at_offset): New function.
427 (get_binfo_at_offset): Use it.
429 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
432 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
433 on vtable being vtable.
435 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
437 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
438 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
440 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
441 -mno-hotpatch options. Change syntax of -mhotpatch= option.
442 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
444 (s390_hotpatch_trampoline_halfwords_max): Renamed.
445 (s390_hotpatch_hw_max): New name.
446 (s390_hotpatch_trampoline_halfwords): Renamed.
447 (s390_hotpatch_hw_before_label): New name.
448 (get_hotpatch_attribute): Removed.
449 (s390_hotpatch_hw_after_label): New name.
450 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
452 (s390_attribute_table): Ditto.
453 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
454 (s390_function_num_hotpatch_hw): New name.
455 Remove special handling of inline functions and hotpatching.
456 Return number of nops before and after the function label.
457 (s390_can_inline_p): Removed.
458 (s390_asm_output_function_label): Emit a configurable number of nops
459 after the function label.
460 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
461 (TARGET_CAN_INLINE_P) Removed.
462 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
464 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
465 Jiong Wang <jiong.wang@arm.com>
467 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
469 (cb<optab><mode>1): Likewise.
470 * config/aarch64/iterators.md (bcond): New define_code_attr.
472 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
474 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
477 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
479 * config/s390/s390.c (s390_register_move_cost): Increase costs for
482 2015-01-27 Richard Biener <rguenther@suse.de>
484 * tree-vrp.c (update_value_range): Intersect the range with
485 old recorded SSA name range information.
487 2015-01-27 Nick Clifton <nickc@redhat.com>
489 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
490 BC, DE and HL registers directly, not via AX.
491 When decrementing the stack pointer by a large amount, transfer SP
492 into AX and perform the subtraction there.
493 (rl78_expand_epilogue): Perform the inverse of the above
496 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
498 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
500 2015-01-27 Jakub Jelinek <jakub@redhat.com>
501 Yury Gribov <y.gribov@samsung.com>
504 * ubsan.c (ubsan_source_location): Refactor code.
505 (ubsan_type_descriptor): Update type size. Refactor code.
507 2015-01-27 Richard Biener <rguenther@suse.de>
509 PR tree-optimization/56273
510 PR tree-optimization/59124
511 PR tree-optimization/64277
512 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
513 from the first VRP pass.
515 2015-01-27 Jakub Jelinek <jakub@redhat.com>
518 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
519 handle the first argument in the same loop as all the other arguments.
521 PR rtl-optimization/61058
522 * jump.c (cleanup_barriers): Update basic block boundaries
523 if BLOCK_FOR_INSN is non-NULL on PREV.
525 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
527 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
528 bounds narrowing, already instrumented calls and calls to
529 not instrumentable functions.
531 2015-01-27 Jakub Jelinek <jakub@redhat.com>
533 PR tree-optimization/64807
534 * wide-int.cc (wi::divmod_internal): Clear
535 b_dividend[dividend_blocks_needed].
537 2015-01-26 DJ Delorie <dj@redhat.com>
539 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
540 volatile memory references.
542 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
545 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
547 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
548 shifts if it already fits into K08.
550 2015-01-26 Jakub Jelinek <jakub@redhat.com>
553 * ipa-inline.c (inline_small_functions): Print "unknown" even
554 if edge->call_stmt is non-NULL, but has builtins or unknown
558 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
559 with asterisk, skip the first character.
561 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
564 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
567 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
570 * config/i386/i386.md (*movdi_internal): Also check operand 0
571 to determine TYPE_LEA operand.
572 (*movsi_internal): Ditto.
574 2015-01-26 Jakub Jelinek <jakub@redhat.com>
576 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
577 OPTION_MASK_QUAD_MEMORY_ATOMIC.
579 2015-01-26 Renlin Li <renlin.li@arm.com>
581 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
583 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
586 2015-01-26 Richard Biener <rguenther@suse.de>
589 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
590 combining two BIT_AND_EXPR predicates.
592 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
595 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
597 2015-01-26 Terry Guo <terry.guo@arm.com>
599 * config/arm/arm.c (arm_file_start): Update the assignment of
602 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
604 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
606 config/arm/arm.md: Include the new Cortex-A57 model.
607 (generic_sched): Don't use generic_sched when tuning for
610 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
611 Uros Bizjak <ubizjak@gmail.com>
613 * config/i386/i386.c (get_builtin_code_for_version): Add
614 support for BMI and BMI2 multiversion functions.
616 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
618 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
619 (extract_bit_field): Likewise.
620 (extract_low_bits): Likewise.
621 (expand_mult): Likewise.
622 (expand_mult_highpart_adjust): Likewise.
624 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
626 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
627 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
628 * config/i386/i386.c (processor_model): Add
629 M_INTEL_COREI7_BROADWELL.
630 (arch_names_table): Add "broadwell".
632 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
641 * config/sh/sh-protos.h
642 (sh_extending_set_of_reg::can_use_as_unextended_reg,
643 sh_extending_set_of_reg::use_as_unextended_reg,
644 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
645 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
646 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
647 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
648 (sh_treg_insns): New class.
649 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
650 (scope_counter): New class.
651 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
652 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
653 sh_extending_set_of_reg::can_use_as_unextended_reg,
654 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
655 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
656 sh_split_treg_set_expr): New functions.
657 (addsubcosts): Handle treg_set_expr.
658 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
659 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
660 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
661 (sh_insn_operands_modified_between_p): Make non-static.
662 * config/sh/predicates.md (zero_extend_movu_operand): Allow
663 simple_mem_operand in addition to displacement_mem_operand.
664 (zero_extend_operand): Don't allow zero_extend_movu_operand.
665 (treg_set_expr, treg_set_expr_not_const01,
666 arith_reg_or_treg_set_expr): New predicates.
667 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
668 arith_or_int_operand instead of logical_operand. Convert to
669 insn_and_split. Try to optimize constant operand in splitter.
670 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
671 (*tstqi_t_zero): Delete.
672 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
673 (tstsi_t_and_not): Delete.
674 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
675 Convert to insn_and_split.
676 (unnamed split, tstsi_t_zero_extract_xor,
677 tstsi_t_zero_extract_subreg_xor_little,
678 tstsi_t_zero_extract_subreg_xor_big): Delete.
679 (*tstsi_t_shift_mask): New insn_and_split.
680 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
681 to recombine with surrounding insns when splitting.
682 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
683 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
684 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
685 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
686 (*cbranch_div0s: Delete.
687 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
688 Try to recombine with surrounding insns when splitting. Add operand
690 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
691 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
692 *addc_r_r_msb, *addc_2r_msb): Delete.
693 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
695 (*addc_negreg_t): New insn_and_split.
696 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
697 Try to recombine with surrounding insns when splitting.
698 Add operand order variants.
699 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
700 insn_and_split patterns.
701 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
702 surrounding insns when splitting.
703 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
704 (*rotcl): Likewise. Add zero_extract variant.
705 (*ashrsi2_31): New insn_and_split.
706 (*negc): Convert to insn_and_split. Use treg_set_expr.
707 (*zero_extend<mode>si2_disp_mem): Update comment.
708 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
710 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
711 with surrounding insns when splitting.
712 (any_treg_expr_to_reg): New insn_and_split.
713 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
714 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
715 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
716 *zero_extract_2): New single bit zero extract patterns.
717 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
718 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
719 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
720 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
722 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
723 register_operand for set source.
725 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
727 * i386.opt (prefetch_sse): New targetsave.
728 * i386.c (ix86_function_specific_save): Save prefetch_sse.
729 (ix86_function_specific_restore): Restore prefetch_sse and initialize
730 ix86_cost/ix86_tune_cost.
732 2015-01-23 David Malcolm <dmalcolm@redhat.com>
734 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
735 Support the JIT by using 0 as the language type.
737 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
740 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
741 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
742 (mark_regno_live, process_bb_lives): Pass new parameter value to
743 make_hard_regno_born.
745 2015-01-23 Jakub Jelinek <jakub@redhat.com>
747 PR rtl-optimization/63637
748 PR rtl-optimization/60663
749 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
750 if elt->cost is MAX_COST for ASM_OPERANDS.
751 (find_sets_in_insn): Fix up comment typo.
752 (cse_insn): Don't set src_volatile for all non-volatile
753 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
754 or with "memory" clobber. Set elt->cost to MAX_COST
755 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
756 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
758 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
760 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
763 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
765 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
766 libgcc/config/i386/elf-lib.h.
768 2015-01-23 Jakub Jelinek <jakub@redhat.com>
771 * gcc.c (print_configuration): Don't print a blank line at the end
773 (run_attempt): ... but here unstead.
776 * omp-low.c (scan_sharing_clauses): Don't ignore
777 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
778 on target data/update constructs.
780 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
783 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
784 (DEBUG_RELOAD): Removed define.
785 (m32c_limit_reload_class): Enable traces with if DEBUG0.
786 (m32c_function_arg): Added a type cast.
787 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
788 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
789 * config/m32c/bitops.md (andqi3_16): Likewise.
790 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
791 (push_a01_l): Likewise.
793 2015-01-23 David Malcolm <dmalcolm@redhat.com>
796 * main.c (main): Construct toplev instances with init_signals=true.
797 * toplev.c (general_init): Add param "init_signals", and use it to
798 conditionalize the calls to signal and host_hooks.extra_signals.
799 (toplev::toplev): Add param "init_signals".
800 (toplev::main): When invoking general_init, pass m_init_signals
801 to control whether signal-handlers are installed.
802 * toplev.h (toplev::toplev): Add param "init_signals".
803 (toplev::m_init_signals): New field.
805 2015-01-23 David Malcolm <dmalcolm@redhat.com>
808 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
809 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
810 latter may be affected by the former (e.g. on i686).
812 2015-01-23 Martin Liska <mliska@suse.cz>
814 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
815 false positive during profiledbootstrap.
817 2015-01-23 Tom de Vries <tom@codesourcery.com>
820 * lto-opts.c (lto_write_options): Output non-explicit conservative
822 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
823 (append_compiler_options): Pass -fopenacc through.
825 2015-01-23 Tom de Vries <tom@codesourcery.com>
828 * lto-opts.c (lto_write_options): Output non-explicit conservative
830 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
831 (append_compiler_options): Pass -fopenmp through.
833 2015-01-23 Jakub Jelinek <jakub@redhat.com>
836 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
839 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
840 * diagnostic.def (DK_ICE_NOBT): New kind.
841 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
842 like DK_ICE, but never print backtrace.
843 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
844 (internal_error_no_backtrace): New function.
845 * gcc.c (execute): Use internal_error_no_backtrace instead of
848 2015-01-22 Jeff Law <law@redhat.com>
851 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
852 improve code density for small immediate to memory case.
853 (insv): Better handle bitfield assignments when the field is
854 being set to all ones.
855 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
858 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
859 Jakub Jelinek <jakub@redhat.com>
861 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
862 for !TARGET_LIBC_PROVIDES_SSP version and
863 -fstack-protector-{all,strong,explicit} otherwise.
864 * config/freebsd.h (LINK_SSP_SPEC): Handle
865 -fstack-protector-{strong,explicit}.
867 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
868 H.J. Lu <hongjiu.lu@intel.com>
871 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
874 2015-01-22 Wei Mi <wmi@google.com>
876 PR rtl-optimization/64557
877 * dse.c (record_store): Call get_addr for mem_addr.
878 (check_mem_read_rtx): Likewise.
880 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
882 * fold-const.c (const_binop): Add early return for non-tcc_binary.
884 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
886 * toplev.c (init_local_tick): Process the failure when read
887 fails for random_seed.
889 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
890 'pretty_name' to avoid memory overflow.
892 2015-01-22 Richard Biener <rguenther@suse.de>
895 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
896 abnormal coalescing on undefined SSA names.
898 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
902 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
904 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
906 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
909 * fold-const.c (fold_checksum_tree): Don't include value of
910 expr->decl_with_vis.symtab_node in the checksum.
912 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
914 * config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
917 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
920 * gcc.c (insert_comments): New function.
921 (try_generate_repro): Call it.
922 (append_text): Removed.
924 2015-01-22 Richard Biener <rguenther@suse.de>
926 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
927 with IL incompatible options. Properly honor user optimize
930 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
932 PR rtl-optimization/64682
933 * combine.c (distribute_notes): When moving a death note for
934 a register that is set in the new I2, make sure to put it
937 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
939 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
942 2015-01-21 Jakub Jelinek <jakub@redhat.com>
945 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
946 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
947 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
950 * doc/invoke.texi (-fsanitize=vptr): Document.
952 PR rtl-optimization/62078
953 * dse.c: Include cfgcleanup.h.
954 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
955 anything call purge_all_dead_edges and cleanup_cfg at the end
958 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
960 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
963 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
965 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
968 2015-01-21 David Sherwood <david.sherwood@arm.com>
969 Tejas Belagod <Tejas.Belagod@arm.com>
971 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
972 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
973 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
976 2015-01-21 David Sherwood <david.sherwood@arm.com>
977 Tejas Belagod <Tejas.Belagod@arm.com>
979 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
980 (aarch64_reverse_mask): New decls.
981 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
982 (insn_count): New mode_attr.
983 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
984 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
985 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
986 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
987 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
988 (aarch64_simd_st4): New patterns.
989 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
990 (aarch64_reverse_mask): New functions.
992 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
994 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
996 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
997 addressing modes for BE.
998 (aarch64_print_operand): Add 'R' specifier.
999 (aarch64_simd_disambiguate_copy): Delete.
1000 (aarch64_simd_emit_reg_reg_move): New function.
1001 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
1002 in define_splits for structural moves.
1003 (mov<mode>): Use less restrictive predicates.
1004 (*aarch64_mov<mode>): Simplify and only allow for LE.
1005 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
1007 2015-01-21 Alan Hayward <alan.hayward@arm.com>
1009 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
1011 2015-01-21 Richard Henderson <rth@redhat.com>
1014 * ccmp.c (used_in_cond_stmt_p): Remove.
1015 (expand_ccmp_expr): Don't use it.
1017 2015-01-21 Nick Clifton <nickc@redhat.com>
1019 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
1022 2015-01-21 Richard Biener <rguenther@suse.de>
1025 * tree-core.h (builtin_info, builtin_info_type): Turn from
1026 an object with two arrays into an array of an object with
1027 decl and two flags, implicit_p and declared_p.
1028 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
1029 set_builtin_decl, set_builtin_decl_implicit_p,
1030 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
1031 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
1032 * builtins.c (builtin_info): Adjust.
1033 * gimplify.c (gimplify_addr_expr): References to builtins
1034 that have been declared by the user makes them eligible for
1035 use by the compiler. Call set_builtin_decl_implicit_p on them.
1037 2015-01-20 Jeff Law <law@redhat.com>
1040 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
1041 allow pc-relative addresses in operand predicates or constraints.
1043 2015-01-21 Bin Cheng <bin.cheng@arm.com>
1045 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
1046 neon on aarch32 processors for stringops.
1048 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1051 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
1053 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1056 * ipa-inline.c: Include lto-streamer.h
1057 (report_inline_failed_reason): Output source file differences and
1058 flags on optimization/target node mismatch.
1059 (can_inline_edge_p): Consider caller to be the outer inline function;
1060 be less restrictive about matching opimize and optimize_size attributes.
1061 (inline_account_function_p): Break out from ...
1062 (inline_small_functions): ... here.
1063 * ipa-inline-transform.c (clone_inlined_nodes): Use
1064 inline_account_function_p.
1065 (inline_call): Use optimize attribution; use inline_account_function_p.
1066 (inline_transform): Use opt_for_fn.
1067 * ipa-inline.h (inline_account_function_p): Declare.
1069 2015-01-20 Jakub Jelinek <jakub@redhat.com>
1072 * dwarf2out.c (decl_piece_node): Don't put bitsize into
1073 mode if bitsize <= 0.
1074 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
1075 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
1076 sizes and positions.
1078 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
1080 * config/nios2/nios2.c (nios2_asm_file_end): Implement
1081 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
1083 (TARGET_ASM_FILE_END): Define.
1085 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1087 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
1088 (struct tune_params): Use the enum.
1089 * arm.c (arm_*_tune): Update.
1090 (arm_option_override): Update.
1092 2015-01-20 Richard Biener <rguenther@suse.de>
1095 * ipa-reference.c (add_static_var): Inline ...
1096 (analyze_function): ... here after splitting out from ...
1097 (is_proper_for_analysis): ... this.
1099 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
1102 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
1103 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
1104 replace the conditional with it's true branch.
1105 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
1106 (arm_lra_p): Remove.
1108 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
1110 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
1112 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1114 * config/tilegx/mul-tables.c: Move symtab.h include after
1115 coretypes.h include.
1116 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
1117 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
1118 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
1119 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
1120 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1122 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
1126 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1128 PR rtl-optimization/64081
1129 * loop-iv.c (def_pred_latch_p): New function.
1130 (latch_dominating_def): Allow specific cases with non-single
1132 (iv_get_reaching_def): Likewise.
1133 (check_complex_exit_p): New function.
1134 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1135 with exits not executing on any iteration.
1137 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1140 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
1143 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1146 * i386.c (gate): Check flag_expensive_optimizations and
1148 (ix86_option_override_internal): Drop optimize_size condition
1149 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
1150 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
1152 (ix86_avx256_split_vector_move_misalign,
1153 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
1154 * sse.md (all uses of TARGET_PREFER_AVX128): Add
1155 optimize_insn_for_speed_p check.
1157 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
1159 * config/mips/mips.h (FP_ASM_SPEC): New define.
1160 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
1163 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
1166 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
1167 nullptr for insn when reaching the first insn.
1168 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
1169 (sh_insn_operands_modified_between_p): Add nullptr check.
1170 (sh_find_extending_set_of_reg): Fix log message. Don't accept
1171 sign extending mem load if the insn contains any UNSPEC or
1174 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1176 * params.def (inline-unit-growth): Drop to 15%.
1177 * invoke.texi (inline-unit-growth): Document change.
1179 2015-01-19 Martin Liska <mliska@suse.cz>
1182 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
1183 function for second argument of OBJ_TYPE_REF.
1185 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1188 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
1189 whether function is an alias.
1191 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1193 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
1196 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
1198 PR rtl-optimization/64671
1199 * lra-remat.c (operand_to_remat): Don't consider jump and call
1202 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
1204 * config/rs6000/default64.h: Include rs6000-cpus.def.
1205 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
1206 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
1207 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
1209 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
1211 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
1212 pseudo-op to specify assembler dialect.
1214 2015-01-19 Martin Liska <mliska@suse.cz>
1217 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
1218 Handle safe potentially removed nodes during filtering.
1220 2015-01-19 Martin Liska <mliska@suse.cz>
1222 * doc/extend.texi (no_icf): Add new attribute description.
1223 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
1224 where the pass attempts to merge a function with no_icf attribute.
1226 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1229 * doc/md.texi (ARM Options): Document register constraints.
1231 2015-01-19 Jiong Wang <jiong.wang@arm.com>
1232 Andrew Pinski <apinski@cavium.com>
1235 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
1236 (ashl<mode>3): Don't expand if operands[2] is not constant.
1238 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1241 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
1242 Match xor-and-xor RTL pattern.
1244 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1246 PR rtl-optimization/64081
1247 * loop-iv.c (def_pred_latch_p): New function.
1248 (latch_dominating_def): Allow specific cases with non-single
1250 (iv_get_reaching_def): Likewise.
1251 (check_complex_exit_p): New function.
1252 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1253 with exits not executing on any iteration.
1255 2015-01-19 Jakub Jelinek <jakub@redhat.com>
1257 * common.opt (fgraphite): Fix a typo.
1259 2015-01-19 Felix Yang <felix.yang@huawei.com>
1261 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
1263 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
1264 uminp, smax_nanp, smin_nanp): New builtins.
1265 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
1266 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
1267 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
1268 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
1269 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
1270 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
1271 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
1272 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
1273 vpminnms_f32): Rewrite using builtin functions.
1275 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1278 * omp-low.c (offload_symbol_decl): Remove variable.
1279 (get_offload_symbol_decl): Remove function.
1280 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
1281 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
1282 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
1283 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
1284 BUILT_IN_GOACC_UPDATE don't pass it at all.
1286 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1288 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
1291 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1293 * ipa-chkp.c (chkp_produce_thunks): Add early param
1294 to split thunks production into two passes. Keep
1295 'always_inline' function bodies after the first pass.
1296 (pass_data_ipa_chkp_early_produce_thunks): New.
1297 (pass_ipa_chkp_early_produce_thunks): New.
1298 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
1299 chkp_produce_thunks signature.
1300 (make_pass_ipa_chkp_early_produce_thunks): New.
1301 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
1302 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
1303 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
1305 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1307 * cgraph.c (cgraph_node::dump): Dump profile flags.
1309 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
1312 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
1313 reg appear first in the parallel.
1315 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1317 * ipa-reference.c (set_reference_optimization_summary,
1318 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
1320 (ignore_module_statics): New static var.
1321 (propagate_bits): If ipa-reference is disabled, do not look into local
1323 (analyze_function): Disable analysis when ipa_reference is disabled.
1324 (generate_summary): Do not dump when reference is disabled;
1325 collect vars accessed from functions with ipa-reference disabled.
1326 (get_read_write_all_from_node): When ipa-reference is disabled, use the
1328 (gate): Enable for LTO.
1329 (ignore_edge_p): New function.
1330 (propagate): Skip functions w/o ipa-reference analysis.
1331 * optc-save-gen.awk: Handle optimize_debug correctly.
1332 * opth-gen.awk: Likewise.
1333 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
1334 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
1335 fira-share-save-slots, fira-share-spill-slots,
1336 fmodulo-sched-allow-regmoves, fpartial-inlining,
1337 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
1338 ftracer, ftree-parallelize-loops, fassociative-math,
1339 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
1341 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
1342 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
1344 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
1347 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1350 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
1352 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
1354 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
1356 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
1357 Remove duplicate option listings.
1359 2015-01-18 Felix Yang <felix.yang@huawei.com>
1361 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
1362 (autofdo_source_profile::get_callsite_total_count,
1363 function_instance::get_function_instance_by_decl,
1364 string_table::get_index, string_table::get_index_by_decl,
1365 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
1366 Fix comment typos. Reformatting and minor code rearrangement.
1368 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1370 * config/rs6000/rs6000.md (probe_stack): Delete.
1371 (probe_stack_address): New.
1373 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1375 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
1376 to test for 32-bit ABIs, not !TARGET_POWERPC64.
1378 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1380 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
1381 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
1382 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
1384 (rs6000_libcall_value): Use the new function.
1386 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
1388 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
1390 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
1392 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
1393 implement a more precise life analysis for it during backward scan.
1395 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1397 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
1399 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
1401 PR rtl-optimization/52773
1402 * calls.c (emit_library_call_value): When pushing arguments use
1403 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
1404 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
1405 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
1407 2015-01-17 Jeff Law <law@redhat.com>
1409 PR rtl-optimization/32790
1410 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
1411 not ZERO_EXTEND in SET_DESTs.
1413 2015-01-17 Alan Modra <amodra@gmail.com>
1415 * cprop.c (do_local_cprop): Revert last change.
1417 2015-01-16 DJ Delorie <dj@redhat.com>
1418 Nick Clifton <nickc@redhat.com>
1420 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
1421 (addhi3_real): Likewise. Fix [HL+0] syntax.
1422 (subqi3_real): Likewise.
1423 (subhi3_real): Likewise.
1424 (cbranchqi4_real): Likewise. Allow saddr,#imm.
1425 (cbranchhi4_real): Likewise.
1426 (cbranchhi4_real_inverted): Likewise.
1427 (cbranchsi4_real_lt): Likewise.
1428 (cbranchsi4_real_ge): Likewise.
1429 (cbranchsi4_real_ge): Likewise.
1430 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
1431 (sub<mode>3_virt): Likewise.
1432 (cbranchqi4_virt): Likewise.
1433 (cbranchhi4_virt): Likewise.
1434 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
1435 always use '[reg+imm]' even when imm is zero.
1436 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
1437 (rl78_general_operand): New.
1438 (rl78_nonimmediate_operand): New.
1439 (rl78_nonfar_operand): Use them.
1440 (rl78_nonfar_nonimm_operand): Likewise.
1441 (rl78_stack_based_mem): Fix.
1442 * config/rl78/constraints.md (Ibqi): New.
1447 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
1450 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
1452 * config/rl78/constrains (Qs8): New constraint.
1453 * config/rl78/rl78.c (rl78_flags_already_set): New function.
1454 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
1455 * config/rl78/rl78-real.md (update_Z): New attribute.
1456 Update patterns to set it.
1457 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
1458 shorter compare and branch sequence can be used.
1459 (cbranchhi4_real): Likewise.
1460 (cbranchhi4_real_inverted): Likewise.
1462 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
1463 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
1465 * config/rl78/rl78.c (rl78_get_name_encoding): New.
1466 (rl78_option_override): Allow -mes0 only if C.
1467 (characterize_address): Support subregs of symbol_refs.
1468 (rl78_addr_space_address_mode): Move. Add __near.
1469 (rl78_far_p): Likewise.
1470 (rl78_addr_space_pointer_mode): Likewise.
1471 (rl78_as_legitimate_address): Likewise.
1472 (rl78_addr_space_subset_p): Likewise.
1473 (rl78_addr_space_convert): Likewise.
1474 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
1476 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
1478 (rl78_alloc_physical_registers_op1): Change logic to prefer
1479 symbol[BC] addressing.
1480 (frodata_section): New.
1481 (rl78_asm_init_sections): Initialize it.
1482 (rl78_select_section): Put __far readonly symbols in .frodata.
1483 (rl78_make_type_far): New.
1484 (rl78_insert_attributes): Force all readonly symbols to be
1486 (rl78_asm_out_integer): New.
1487 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
1488 * config/rl78/rl78.opt (-mes0): New.
1490 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
1491 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1492 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1493 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
1494 (rl78_saddr_p): New.
1495 (rl78_output_aligned_common): New.
1496 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
1497 (rl78_handle_saddr_attribute): New.
1498 (rl78_handle_naked_attribute): New.
1499 (rl78_attribute_table): Add saddr.
1500 (rl78_print_operand_1): Don't print '!' on saddr operands.
1501 (rl78_print_operand_1): Strip encodings.
1503 (rl78_strip_name_encoding): New.
1504 (rl78_attrlist_to_encoding): New.
1505 (rl78_encode_section_info): New.
1506 (rl78_asm_init_sections): New.
1507 (rl78_select_section): New.
1508 (rl78_output_labelref): New.
1509 (rl78_output_aligned_common): New.
1510 (rl78_asm_out_integer): New.
1511 (rl78_asm_ctor_dtor): New.
1512 (rl78_asm_constructor): New.
1513 (rl78_asm_destructor): New.
1515 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
1516 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
1517 (transcode_memory_rtx): Update.
1518 (rl78_expand_epilogue): Use A_REG instead of 0.
1520 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1522 * config/arm/arm-protos.h (struct tune_params): New field
1523 sched_autopref_queue_depth.
1524 * config/arm/arm.c (sched-int.h): Include header.
1525 (arm_first_cycle_multipass_dfa_lookahead_guard,)
1526 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
1527 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
1528 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
1529 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
1530 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
1531 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
1532 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
1533 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
1534 * config/arm/t-arm (arm.o): Update.
1535 * haifa-sched.c (update_insn_after_change): Update.
1536 (rank_for_schedule): Use auto-prefetcher model, if requested.
1537 (autopref_multipass_init): New static function.
1538 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
1539 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
1540 variable for debug dumps.
1541 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
1542 (autopref_multipass_dfa_lookahead_guard): New global function that
1543 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
1544 (init_h_i_d): Update.
1545 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
1546 * sched-int.h (enum autopref_multipass_data_status): New const enum.
1547 (autopref_multipass_data_): Structure for auto-prefetcher data.
1548 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
1549 (struct _haifa_insn_data:autopref_multipass_data): New field.
1550 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
1551 (autopref_multipass_dfa_lookahead_guard): Declare.
1553 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1555 * rtlanal.c (get_base_term): Handle SCRATCH.
1557 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1559 * config/aarch64/aarch64.c
1560 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
1561 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1563 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
1564 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1566 2015-01-17 Alan Modra <amodra@gmail.com>
1568 * cprop.c (do_local_cprop): Disallow replacement of fixed
1571 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1574 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
1577 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1579 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
1580 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
1582 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1584 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
1585 * config/arm/thumb1.md: ... Here.
1587 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1589 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
1590 TImode for TARGET_32BIT.
1592 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1594 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
1595 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
1597 (rs6000_abi_word_mode): New function.
1599 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1601 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
1602 instead of UNITS_PER_WORD to describe the size of stack slots.
1604 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1606 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
1607 as rs6000_promote_function_mode. Move comment to there.
1608 (rs6000_promote_function_mode): New function.
1610 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1612 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
1613 -mpowerpc64 is active.
1615 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1618 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
1621 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1623 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
1624 introduced in revision 219724.
1626 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1627 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1630 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
1631 destination is not a GP reg.
1632 (*movdi_aarch64): Likewise.
1634 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
1637 * config/rs6000/default64.h: Revert ISA change.
1639 2015-01-16 Richard Biener <rguenther@suse.de>
1642 * tree-ssa-uninit.c: Include tree-cfg.h.
1643 (MAX_SWITCH_CASES): New define.
1644 (convert_control_dep_chain_into_preds): Handle switch statements.
1645 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
1646 (normalize_one_pred_1): Do not split bit-manipulations.
1649 2015-01-16 Richard Biener <rguenther@suse.de>
1651 PR tree-optimization/64568
1652 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
1653 complex load rewriting for TARGET_MEM_REFs.
1655 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
1657 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
1659 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
1662 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
1664 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
1665 (aarch64_lra_p): Remove.
1667 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1670 * ipa-chkp.h (chkp_instrumentable_p): New.
1671 * ipa-chkp.c: Include tree-inline.h.
1672 (chkp_instrumentable_p): New.
1673 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
1674 Fix processing of not instrumentable functions.
1675 (chkp_versioning): Use chkp_instrumentable_p. Warn about
1676 not instrumentable functions.
1677 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
1678 chkp_instrumentable_p.
1679 * tree-inline.h (copy_forbidden): New.
1680 * tree-inline.c (copy_forbidden): Not static anymore.
1682 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1684 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
1687 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1689 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
1690 type OP_OUT to OP_INOUT.
1692 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1694 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
1695 (high x) y) to y if x and y have the same base.
1697 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1699 * config/arm/cortex-a57.md: New.
1700 * config/aarch64/aarch64.md: Include it.
1701 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
1702 * config/aarch64/aarch64-tune.md: Regenerate.
1704 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
1707 * ccmp.c (expand_ccmp_next): New function.
1708 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
1709 and compare insn sequence.
1710 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
1711 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
1712 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
1713 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
1714 (*ccmp_ior): Changed to ccmp_ior<mode>.
1715 (cmp<mode>): New pattern.
1716 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
1718 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
1720 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
1722 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
1723 _mm256_bsrli_epi128): New.
1724 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
1726 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1728 * expmed.c (store_bit_field_using_insv): Improve warning message.
1729 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
1731 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1733 PR rtl-optimization/64011
1734 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
1735 there is partial overflow.
1737 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1739 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
1741 (nds32_expand_epilogue_v3pop): Likewise.
1742 * config/nds32/nds32.md (sibcall): Define this for sibling call
1744 (sibcall_register): Likewise.
1745 (sibcall_immediate): Likewise.
1746 (sibcall_value): Likewise.
1747 (sibcall_value_register): Likewise.
1748 (sibcall_value_immediate): Likewise.
1749 (sibcall_epilogue): Likewise.
1750 (epilogue): Pass false to indicate this is not a sibcall epilogue.
1751 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
1752 (nds32_expand_epilogue_v3pop): Likewise.
1754 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1756 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
1757 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
1758 (return_internal): New.
1759 (return): Define this named pattern.
1760 (simple_return): Define this named pattern.
1761 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
1762 pattern instead of unspec_volatile_func_return.
1763 (nds32_expand_epilogue_v3pop): Likewise.
1764 (nds32_can_use_return_insn): New function.
1766 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1768 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
1769 * config/nds32/nds32.md (pop25return): New.
1770 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
1771 pop25return pattern.
1773 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1775 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
1776 -mforbid-fp-as-gp, and -mex9 options.
1778 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1780 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
1781 remove -mgp-direct option.
1783 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1785 * doc/invoke.texi (--param early-inlining-insns): Update default value.
1786 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
1788 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1790 * ipa-inline.c (inline_small_functions): Work around hints
1793 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
1796 * doc/invoke.texi (Option Summary): Document new Nios II
1798 (Nios II Options): Likewise.
1799 * config/nios2/nios2.opt: Add -mgpopt= option support.
1800 Modify existing -mgpopt and -mno-gpopt options to be aliases.
1801 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
1802 * config/nios2/nios2.c (nios2_option_override): Adjust
1804 (nios2_in_small_data_p): Return true for explicit small data
1805 sections even with -G0.
1806 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
1809 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1812 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
1814 (inline_call): Fix removal of aliases.
1816 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1818 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
1819 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
1820 * opts.c (common_handle_option): Add -fsanitize=vptr.
1821 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
1822 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
1823 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
1824 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
1825 (ubsan_expand_vptr_ifn): New prototype.
1826 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
1827 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
1828 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
1829 expand_LOOP_VECTORIZED): Make argument nameless, remove
1831 (expand_UBSAN_VPTR): New function.
1832 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
1834 (UBSAN_VPTR): New internal function.
1835 * sanopt.c (tree_map_traits): Renamed to ...
1836 (sanopt_tree_map_traits): ... this.
1837 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
1838 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
1839 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
1840 (maybe_optimize_ubsan_vptr_ifn): New function.
1841 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
1842 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
1844 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
1845 internal calls like pure functions for aliasing, even when they
1846 have other side-effects that prevent making them ECF_PURE.
1847 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
1848 (ubsan_expand_vptr_ifn): New function.
1850 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
1852 PR rtl-optimization/64110
1853 * stmt.c (parse_output_constraint): Process '^' and '$'.
1854 (parse_input_constraint): Ditto.
1855 * lra-constraints.c (process_alt_operands): Process the new
1857 * ira-costs.c (record_reg_classes): Process the new constraint
1859 * genoutput.c (indep_constraints): Add '^' and '$'.
1860 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
1861 * doc/md.texi: Add description of the new constraints.
1863 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1864 Bernd Schmidt <bernds@codesourcery.com>
1865 Cesar Philippidis <cesar@codesourcery.com>
1866 James Norris <jnorris@codesourcery.com>
1867 Tom de Vries <tom@codesourcery.com>
1868 Ilmir Usmanov <i.usmanov@samsung.com>
1869 Dmitry Bocharnikov <dmitry.b@samsung.com>
1870 Evgeny Gavrin <e.gavrin@samsung.com>
1871 Jakub Jelinek <jakub@redhat.com>
1873 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
1874 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
1875 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
1877 * builtins.c: Include "gomp-constants.h".
1878 (expand_builtin_acc_on_device): New function.
1879 (expand_builtin, is_inexpensive_builtin): Handle
1880 BUILT_IN_ACC_ON_DEVICE.
1881 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
1883 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
1885 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
1886 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
1887 i386/intelmic-offload.h.
1888 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
1889 to libgomp and its dependencies.
1890 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
1891 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1892 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
1893 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1894 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1895 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1896 * doc/generic.texi: Update for OpenACC changes.
1897 * doc/gimple.texi: Likewise.
1898 * doc/invoke.texi: Likewise.
1899 * doc/sourcebuild.texi: Likewise.
1900 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
1901 GF_OMP_FOR_KIND_OACC_LOOP.
1902 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
1903 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
1904 GF_OMP_TARGET_KIND_OACC_UPDATE,
1905 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
1907 * gimple.c: Update comments for OpenACC changes.
1908 * gimple.def: Likewise.
1909 * gimple.h: Likewise.
1910 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
1911 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
1912 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
1913 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
1914 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
1916 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
1917 * gimplify.c: Include "gomp-constants.h".
1918 Update comments for OpenACC changes.
1919 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
1920 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
1921 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
1922 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
1923 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1924 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1925 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
1926 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
1927 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1929 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
1930 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1931 OMP_CLAUSE_SET_MAP_KIND.
1932 (gimplify_oacc_cache): New function.
1933 (gimplify_omp_for): Handle OACC_LOOP.
1934 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
1936 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
1937 OACC_EXIT_DATA, OACC_UPDATE.
1938 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
1939 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
1940 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
1941 (gimplify_body): Consider flag_openacc next to flag_openmp.
1942 * lto-streamer-out.c: Include "gomp-constants.h".
1943 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
1944 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
1945 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
1946 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
1947 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
1948 (BUILT_IN_ACC_ON_DEVICE): New builtins.
1949 * omp-low.c: Include "gomp-constants.h".
1950 Update comments for OpenACC changes.
1951 (struct omp_context): Add reduction_map, gwv_below, gwv_this
1953 (extract_omp_for_data, use_pointer_for_field, install_var_field)
1954 (new_omp_context, delete_omp_context, scan_sharing_clauses)
1955 (create_omp_child_function, scan_omp_for, scan_omp_target)
1956 (check_omp_nesting_restrictions, lower_reduction_clauses)
1957 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
1958 Update for OpenACC changes.
1959 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
1960 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
1961 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
1962 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
1963 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
1964 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
1966 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1967 Handle GF_OMP_FOR_KIND_OACC_LOOP.
1968 (expand_omp_target, lower_omp_target): Handle
1969 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
1970 GF_OMP_TARGET_KIND_OACC_UPDATE,
1971 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
1972 GF_OMP_TARGET_KIND_OACC_DATA.
1973 (pass_expand_omp::execute, execute_lower_omp)
1974 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
1976 (offload_symbol_decl): New variable.
1977 (oacc_get_reduction_array_id, oacc_max_threads)
1978 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
1979 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
1980 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
1981 (oacc_gimple_assign, oacc_initialize_reduction_data)
1982 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
1984 (is_targetreg_ctx): Remove function.
1985 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
1986 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
1987 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1988 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
1989 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
1990 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
1991 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
1992 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
1993 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
1994 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
1995 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
1996 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
1997 * tree-core.h: Update comments for OpenACC changes.
1998 (enum omp_clause_map_kind): Remove.
1999 (struct tree_omp_clause): Change type of map_kind member from enum
2000 omp_clause_map_kind to unsigned char.
2001 * tree-inline.c: Update comments for OpenACC changes.
2002 * tree-nested.c: Likewise. Include "gomp-constants.h".
2003 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
2004 (convert_tramp_reference_stmt, convert_gimple_call): Update for
2005 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2006 OMP_CLAUSE_SET_MAP_KIND.
2007 * tree-pretty-print.c: Include "gomp-constants.h".
2008 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
2009 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
2010 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
2011 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
2012 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2013 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
2014 instead of OMP_CLAUSE_MAP_*.
2015 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
2016 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
2017 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2018 * tree-streamer-in.c: Include "gomp-constants.h".
2019 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
2020 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
2021 * tree-streamer-out.c: Include "gomp-constants.h".
2022 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
2024 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
2025 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
2026 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
2027 * tree.c (omp_clause_num_ops): Update accordingly.
2028 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
2030 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
2031 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
2032 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
2033 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
2034 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
2035 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
2036 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
2037 (OMP_CLAUSE_SET_MAP_KIND): New macro.
2038 * varpool.c (varpool_node::get_create): Consider flag_openacc next
2040 * config/i386/intelmic-offload.h: New file.
2041 * config/nvptx/offload.h: Likewise.
2043 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2045 * explow.h: Remove duplicate contents.
2046 * dojump.h: Likewise.
2048 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
2050 * arm.c (arm_xgene_tune): Add default initializer for instruction
2053 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2057 * ipa.c (symbol_table::remove_unreachable_nodes):
2058 Do not put abstract origins into boundary.
2060 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
2062 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
2063 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
2065 2015-01-15 Steve Ellcey <sellcey@mips.com>
2067 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
2068 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
2069 builtins.def, and chkp-builtins.def.
2071 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
2073 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
2076 2015-01-15 Richard Biener <rguenther@suse.de>
2078 PR tree-optimization/61743
2079 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
2080 information on PHIs for some simple cases.
2082 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2084 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
2086 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
2087 * config/arm/arm-cores.def (xgene1): New entry.
2088 * config/arm/arm-tables.opt: Regenerate.
2089 * config/arm/arm-tune.md: Regenerate.
2090 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
2092 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2094 * tree-if-conv.c: Include hash-map.h.
2095 (aggressive_if_conv): New variable.
2096 (fold_build_cond_expr): Add simplification of non-zero condition.
2097 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
2098 destination block is not always executed.
2099 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
2100 than two predecessors if AGGRESSIVE_IF_CONV is true.
2101 (if_convertible_stmt_p): Fix commentary.
2102 (all_preds_critical_p): New function.
2103 (has_pred_critical_p): New function.
2104 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
2105 BB can have more than two predecessors and all incoming edges can be
2107 (predicate_bbs): Skip predication for loop exit block, use build2_loc
2108 to compute predicate for true edge.
2109 (find_phi_replacement_condition): Delete this function.
2110 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
2111 Allow interchange PHI arguments if EXTENDED is false.
2112 Change check that block containing reduction statement candidate
2113 is predecessor of phi-block since phi may have more than two arguments.
2114 (phi_args_hash_traits): New helper structure.
2115 (struct phi_args_hash_traits): New type.
2116 (phi_args_hash_traits::hash): New function.
2117 (phi_args_hash_traits::equal_keys): New function.
2118 (gen_phi_arg_condition): New function.
2119 (predicate_scalar_phi): Add handling of phi nodes with more than two
2120 arguments, delete COND and TRUE_BB arguments, insert body of
2121 find_phi_replacement_condition to predicate ordinary phi nodes.
2122 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
2123 delete call of find_phi_replacement_condition and invoke
2124 predicate_scalar_phi with two arguments.
2125 (insert_gimplified_predicates): Add assert that non-predicated block
2126 don't have statements to insert.
2127 (ifcvt_split_critical_edges): New function.
2128 (ifcvt_split_def_stmt): Likewise.
2129 (ifcvt_walk_pattern_tree): Likewise.
2130 (stmt_is_root_of_bool_pattern): Likewise.
2131 (ifcvt_repair_bool_pattern): Likewise.
2132 (ifcvt_local_dce): Likewise.
2133 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
2134 is copy of inner or outer loop force_vectorize field, invoke
2135 ifcvt_split_critical_edges, ifcvt_local_dce and
2136 ifcvt_repair_bool_pattern for aggressive if-conversion.
2138 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
2140 * config/aarch64/aarch64.md: Include xgene1.md.
2141 * config/aarch64/xgene1.md: New file.
2143 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2145 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
2146 xgene1 (APM XGene-1) core definition.
2147 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
2148 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
2149 * doc/invoke.texi: Document -mcpu=xgene1.
2151 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2153 * dojump.h: New header file.
2154 * explow.h: Likewise.
2155 * expr.h: Remove includes.
2156 Move expmed.c prototypes to expmed.h.
2157 Move dojump.c prototypes to dojump.h.
2158 Move alias.c prototypes to alias.h.
2159 Move explow.c prototypes to explow.h.
2160 Move calls.c prototypes to calls.h.
2161 Move emit-rtl.c prototypes to emit-rtl.h.
2162 Move varasm.c prototypes to varasm.h.
2163 Move stmt.c prototypes to stmt.h.
2164 (saved_pending_stack_adjust): Move to dojump.h.
2165 (adjust_address): Move to explow.h.
2166 (adjust_address_nv): Move to emit-rtl.h.
2167 (adjust_bitfield_address): Likewise.
2168 (adjust_bitfield_address_size): Likewise.
2169 (adjust_bitfield_address_nv): Likewise.
2170 (adjust_automodify_address_nv): Likewise.
2171 * explow.c (expr_size): Move to expr.c.
2172 (int_expr_size): Likewise.
2173 (tree_expr_size): Likewise.
2174 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2175 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2176 * genemit.c (main): Generate includes statistics.h, real.h,
2177 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
2179 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
2180 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
2181 explow.h, emit-rtl.h, stmt.h.
2182 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
2183 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
2184 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
2185 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
2186 emit-rtl.h, varasm.h, stmt.h.
2187 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
2188 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
2189 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
2190 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
2191 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2192 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
2193 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
2194 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
2195 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
2196 tm.h tree.h varasm.h vec.h wide-int.h.
2197 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2198 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2199 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
2200 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
2201 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
2202 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
2203 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
2204 * loop-iv.c: Likewise.
2205 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
2206 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
2207 statistics.h stmt.h tree.h varasm.h wide-int.h.
2208 * lra-constraints.c: Likewise.
2209 * lra-eliminations.c: Likewise.
2210 * lra-lives.c: Likewise.
2211 * lra-remat.c: Likewise.
2212 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2213 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
2214 statistics.h stmt.h tree.h varasm.h wide-int.h.
2215 * hw-doloop.c: Likewise.
2216 * ira-color.c: Likewise.
2217 * ira-emit.c: Likewise.
2218 * loop-doloop.c: Likewise.
2219 * loop-invariant.c: Likewise.
2220 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2221 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
2222 statistics.h stmt.h tree.h varasm.h wide-int.h.
2223 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
2224 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
2225 statistics.h stmt.h tree.h varasm.h wide-int.h.
2226 * combine-stack-adj.c: Likewise.
2229 * ifcvt.c: Likewise.
2230 * ira-costs.c: Likewise.
2232 * lra-coalesce.c: Likewise.
2233 * lra-spills.c: Likewise.
2234 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2235 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
2236 stmt.h varasm.h wide-int.h.
2237 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2238 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2240 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
2241 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
2242 statistics.h stmt.h varasm.h wide-int.h.
2243 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
2244 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
2245 varasm.h wide-int.h.
2246 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
2247 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2248 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
2249 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
2250 statistics.h stmt.h.
2251 * config/tilepro/tilepro.c: Likewise.
2252 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
2253 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
2254 * config/pdp11/pdp11.c: Likewise.
2255 * config/xtensa/xtensa.c: Likewise.
2256 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
2257 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2259 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2260 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2261 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
2262 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2263 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2264 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
2265 * rtl-chkp.c: Likewise.
2266 * tree-chkp-opt.c: Likewise.
2267 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
2268 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2269 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
2270 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2271 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2272 statistics.h stmt.h.
2273 * tree-vect-data-refs.c: Likewise.
2274 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
2275 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2276 rtl.h statistics.h stmt.h varasm.h.
2277 * internal-fn.c: Likewise.
2278 * ipa-icf-gimple.c: Likewise.
2279 * lto-section-out.c: Likewise.
2280 * tree-data-ref.c: Likewise.
2281 * tree-nested.c: Likewise.
2282 * tree-outof-ssa.c: Likewise.
2283 * tree-predcom.c: Likewise.
2284 * tree-pretty-print.c: Likewise.
2285 * tree-scalar-evolution.c: Likewise.
2286 * tree-ssa-strlen.c: Likewise.
2287 * tree-vect-loop.c: Likewise.
2288 * tree-vect-patterns.c: Likewise.
2289 * tree-vect-slp.c: Likewise.
2290 * tree-vect-stmts.c: Likewise.
2292 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2293 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
2295 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
2296 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2297 statistics.h stmt.h varasm.h.
2298 * loop-unroll.c: Likewise.
2299 * ubsan.c: Likewise.
2300 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
2301 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
2303 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2304 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
2305 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
2306 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2307 statistics.h stmt.h.
2308 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
2309 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2310 statistics.h stmt.h varasm.h.
2311 * gimple-match-head.c: Likewise.
2312 * lto-cgraph.c: Likewise.
2313 * lto-section-in.c: Likewise.
2314 * lto-streamer-in.c: Likewise.
2315 * lto-streamer-out.c: Likewise.
2316 * tree-affine.c: Likewise.
2317 * tree-cfg.c: Likewise.
2318 * tree-cfgcleanup.c: Likewise.
2319 * tree-if-conv.c: Likewise.
2320 * tree-into-ssa.c: Likewise.
2321 * tree-ssa-alias.c: Likewise.
2322 * tree-ssa-copyrename.c: Likewise.
2323 * tree-ssa-dse.c: Likewise.
2324 * tree-ssa-forwprop.c: Likewise.
2325 * tree-ssa-live.c: Likewise.
2326 * tree-ssa-math-opts.c: Likewise.
2327 * tree-ssa-pre.c: Likewise.
2328 * tree-ssa-sccvn.c: Likewise.
2329 * tree-tailcall.c: Likewise.
2330 * tree-vect-generic.c: Likewise.
2331 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2332 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
2333 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2334 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
2335 * varasm.c: Likewise.
2336 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2337 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
2339 * init-regs.c: Likewise.
2341 * omp-low.c: Likewise.
2342 * stack-ptr-mod.c: Likewise.
2343 * tree-ssa-reassoc.c: Likewise.
2344 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2345 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
2347 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2348 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
2349 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2350 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
2351 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2352 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
2353 * tree-ssa-phiopt.c: Likewise.
2354 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2355 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2356 * config/fr30/fr30.c: Likewise.
2357 * config/frv/frv.c: Likewise.
2359 * final.c: Likewise.
2360 * optabs.c: Likewise.
2361 * passes.c: Likewise.
2362 * simplify-rtx.c: Likewise.
2364 * toplev.c: Likewise.
2365 * var-tracking.c: Likewise.
2366 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2367 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2368 * lower-subreg.c: Likewise.
2369 * postreload-gcse.c: Likewise.
2371 * reginfo.c: Likewise.
2372 * store-motion.c: Likewise.
2373 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2374 fixed-value.h hashtab.h real.h stmt.h varasm.h.
2375 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2376 fixed-value.h hashtab.h statistics.h stmt.h.
2377 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2378 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2379 * except.c: Likewise.
2380 * explow.c: Likewise.
2381 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2382 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
2384 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2385 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
2386 * tree-ssa-structalias.c: Likewise.
2387 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2388 fixed-value.h insn-config.h real.h statistics.h.
2389 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2390 fixed-value.h insn-config.h real.h statistics.h stmt.h.
2391 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2392 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2393 * cfgbuild.c: Likewise.
2394 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2395 fixed-value.h real.h rtl.h statistics.h stmt.h.
2396 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2397 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2398 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2399 fixed-value.h real.h statistics.h stmt.h.
2400 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2401 fixed-value.h real.h statistics.h stmt.h varasm.h.
2402 * cprop.c: Likewise.
2403 * modulo-sched.c: Likewise.
2404 * postreload.c: Likewise.
2405 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2406 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
2407 statistics.h stmt.h varasm.h.
2408 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
2409 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2410 rtl.h statistics.h stmt.h varasm.h.
2411 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
2412 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
2414 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2415 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
2417 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
2418 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
2420 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
2421 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2422 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2423 function.h real.h statistics.h stmt.h varasm.h.
2424 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2425 insn-config.h real.h statistics.h stmt.h.
2426 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2427 statistics.h stmt.h.
2428 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
2429 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
2430 statistics.h stmt.h varasm.h.
2431 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
2432 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
2433 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2434 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
2435 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
2436 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2437 statistics.h stmt.h varasm.h.
2438 * ipa-polymorphic-call.c: Likewise.
2439 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
2440 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2441 statistics.h stmt.h.
2442 * config/c6x/c6x.c: Likewise.
2443 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
2444 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2445 statistics.h stmt.h varasm.h.
2446 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
2447 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
2449 * ipa-split.c: Likewise.
2450 * tree-eh.c: Likewise.
2451 * tree-ssa-dce.c: Likewise.
2452 * tree-ssa-loop-niter.c: Likewise.
2453 * tree-vrp.c: Likewise.
2454 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
2455 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
2457 * config/nds32/nds32-fp-as-gp.c: Likewise.
2458 * config/nds32/nds32-intrinsic.c: Likewise.
2459 * config/nds32/nds32-isr.c: Likewise.
2460 * config/nds32/nds32-md-auxiliary.c: Likewise.
2461 * config/nds32/nds32-memory-manipulation.c: Likewise.
2462 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2463 * config/nds32/nds32-predicates.c: Likewise.
2464 * config/nds32/nds32.c: Likewise.
2465 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
2466 fixed-value.h hashtab.h real.h statistics.h.
2467 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
2468 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2469 * config/arm/arm.c: Likewise.
2470 * config/avr/avr.c: Likewise.
2471 * config/bfin/bfin.c: Likewise.
2472 * config/h8300/h8300.c: Likewise.
2473 * config/i386/i386.c: Likewise.
2474 * config/ia64/ia64.c: Likewise.
2475 * config/iq2000/iq2000.c: Likewise.
2476 * config/m32c/m32c.c: Likewise.
2477 * config/m32r/m32r.c: Likewise.
2478 * config/m68k/m68k.c: Likewise.
2479 * config/mcore/mcore.c: Likewise.
2480 * config/mep/mep.c: Likewise.
2481 * config/mips/mips.c: Likewise.
2482 * config/mn10300/mn10300.c: Likewise.
2483 * config/moxie/moxie.c: Likewise.
2484 * config/pa/pa.c: Likewise.
2485 * config/rl78/rl78.c: Likewise.
2486 * config/rx/rx.c: Likewise.
2487 * config/s390/s390.c: Likewise.
2488 * config/sh/sh.c: Likewise.
2489 * config/sparc/sparc.c: Likewise.
2490 * config/spu/spu.c: Likewise.
2491 * config/stormy16/stormy16.c: Likewise.
2492 * config/v850/v850.c: Likewise.
2493 * config/vax/vax.c: Likewise.
2494 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
2495 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2496 * config/msp430/msp430.c: Likewise.
2497 * predict.c: Likewise.
2498 * value-prof.c: Likewise.
2499 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
2500 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
2501 * config/microblaze/microblaze.c: Likewise.
2502 * config/nios2/nios2.c: Likewise.
2503 * config/rs6000/rs6000.c: Likewise.
2504 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2505 insn-config.h real.h rtl.h statistics.h stmt.h.
2506 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2507 insn-config.h real.h statistics.h stmt.h.
2508 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
2509 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2510 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
2511 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2512 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
2513 fixed-value.h real.h statistics.h stmt.h.
2514 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
2515 fixed-value.h statistics.h stmt.h.
2516 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
2519 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2521 * gengtype.c (create_user_defined_type): Workaround
2522 -Wmaybe-uninitialized false positives.
2523 * cse.c (fold_rtx): Likewise.
2524 * loop-invariant.c (gain_for_invariant): Likewise.
2526 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
2528 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
2529 set the memory attributes in all cases but clear MEM_EXPR if need be.
2531 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2533 PR tree-optimization/64434
2534 * cfgexpand.c (reorder_operands): New function.
2535 (expand_gimple_basic_block): Insert call of reorder_operands if
2538 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
2540 * config/mips/micromips.md (*swp): Remove explicit parallel.
2541 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
2542 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
2543 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
2544 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
2545 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
2546 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
2547 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
2548 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
2549 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
2550 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
2551 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
2552 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
2553 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
2554 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
2555 (mips_wrdsp): Likewise.
2556 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
2558 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
2559 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
2560 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
2561 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
2562 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
2563 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
2564 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
2565 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
2566 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
2568 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2570 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
2571 (mips_print_operand): Support 'y' to print exact log2 in decimal
2573 * config/mips/mips.h (ISA_HAS_LSA): New define.
2574 (ISA_HAS_DLSA): Likewise.
2575 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
2576 * config/mips/predicates.md (const_immlsa_operand): New predicate.
2578 2015-01-15 Martin Liska <mliska@suse.cz>
2581 * optc-save-gen.awk: Add support for array types.
2583 2015-01-15 Richard Biener <rguenther@suse.de>
2586 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
2587 for MEM_REF access functions with the same base can never partially
2590 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
2592 * common.opt: New option -fstack-protector-explicit.
2593 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
2594 (stack_protect_decl_phase): Handle stack_protect attribute for
2595 explicit stack protection requests.
2596 (expand_used_vars): Similarly.
2597 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
2598 * doc/extend.texi: Add documentation for "stack_protect" attribute.
2599 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
2601 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
2604 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
2606 (sh_extending_set_of_reg): New struct.
2607 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
2608 sh_remove_reg_dead_or_unused_notes): New Declarations.
2609 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
2610 sh_find_extending_set_of_reg, sh_split_tst_subregs,
2611 sh_extending_set_of_reg::use_as_extended_reg): New functions.
2612 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
2613 convert to insn_and_split and use new function sh_split_tst_subregs.
2615 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
2617 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
2619 (Optimization Options): Move -fuse-ld documentation to...
2620 (Link Options): ...here.
2622 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2624 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
2626 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
2627 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
2628 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
2629 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
2630 instead of ZR for the memory operand of LL/SC.
2631 (compare_and_swap_12, sync_add<mode>): Likewise.
2632 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
2633 (sync_new_<optab>_12, sync_nand_12): Likewise.
2634 (sync_old_nand_12, sync_new_nand_12): Likewise.
2635 (sync_sub<mode>, sync_old_add<mode>): Likewise.
2636 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
2637 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
2638 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
2639 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
2640 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
2641 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
2642 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
2643 * doc/md.texi (ZC): Update description.
2645 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2647 * builtins.c (expand_builtin_atomic_exchange): Remove error when
2648 memory model is CONSUME.
2649 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
2650 expand_builtin_atomic_store): Change invalid memory model errors to
2652 (expand_builtin_atomic_clear): Change invalid model errors to warnings
2653 and issue warning for CONSUME.
2655 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
2657 * lto-cgraph: Update function comments for
2658 lto_symtab_encoder_encode_*.
2660 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2662 * Makefile.in (site.exp): Do not set ENABLE_LTO.
2664 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2666 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
2667 * lto-cgraph.c (select_what_to_stream): Remove argument, use
2668 lto_stream_offload_p instead.
2669 * lto-streamer.h (select_what_to_stream): Remove argument.
2670 * passes.c (ipa_write_summaries): Likewise.
2671 * tree-pass.h (ipa_write_summaries): Likewise.
2673 2015-01-14 Richard Biener <rguenther@suse.de>
2675 PR tree-optimization/59354
2676 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
2677 groups larger than the slp group size as having gaps.
2679 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2682 * builtins.c (get_memmodel): Promote consume to acquire always.
2684 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2687 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
2690 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2693 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
2695 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
2696 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
2697 AVX512VBMI, as it implies AVX512BW.
2699 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2702 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
2703 (vec_unpacks_hi_v16sf): Ditto.
2705 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2707 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
2710 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2712 * doc/invoke.texi (mapcs): Mention deprecation.
2713 (mapcs-frame): Likewise.
2715 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2718 * config/arm/arm.c (callee_saved_reg_p): Define.
2719 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
2720 register is callee saved instead of !call_used_regs[reg].
2721 (thumb1_compute_save_reg_mask): Likewise.
2723 2015-01-14 Hale Wang <hale.wang@arm.com>
2725 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
2728 2015-01-14 Richard Biener <rguenther@suse.de>
2731 * tree-inline.c (insert_debug_decl_map): Check destination
2732 function MAY_HAVE_DEBUG_STMTS.
2733 (insert_init_debug_bind): Likewise.
2734 (insert_init_stmt): Remove redundant check.
2735 (remap_gimple_stmt): Drop debug stmts if the destination
2736 function has var-tracking assignments disabled.
2738 2015-01-14 Martin Liska <mliska@suse.cz>
2740 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
2741 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
2743 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2746 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
2747 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
2749 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2751 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
2752 level from an ARCH; do not inject the default.
2753 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
2754 MIPS_ISA_LEVEL_SPEC.
2755 (MIPS_ISA_NAN2008_SPEC): Update comment.
2756 (BASE_DRIVER_SELF_SPECS): Likewise.
2757 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
2758 MIPS_DEFAULT_ISA_LEVEL_SPEC.
2759 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
2760 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
2761 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
2763 2015-01-14 Richard Biener <rguenther@suse.de>
2765 PR tree-optimization/64493
2766 PR tree-optimization/64495
2767 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
2768 assign the proper vectorized PHI to the inner loop exit PHIs.
2770 2015-01-14 Joey Ye <joey.ye@arm.com>
2772 * config/arm/arm.c (arm_compute_save_reg_mask):
2773 Do not save lr in case of tail call.
2774 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
2776 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
2778 * tree-vrp.c (check_array_ref): Emit more warnings
2779 for warn_array_bounds >= 2.
2780 * common.opt: New option -Warray-bounds=.
2781 * doc/invoke.texi: Document -Warray-bounds=.
2783 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
2785 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
2786 (mforbid-fp-as-gp): Remove.
2788 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
2789 (nds32_symbol_load_store_p): Remove.
2790 (nds32_fp_as_gp_check_available): Clean up implementation.
2791 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
2793 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
2794 fp-as-gp and ex9 cases.
2796 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2798 * tree-profile.c (init_ic_make_global_vars): Drop workaround
2799 for bintuils bug 14342.
2800 (init_ic_make_global_vars): Likewise.
2801 (gimple_init_edge_profiler): Likewise.
2802 (gimple_gen_ic_func_profiler): Likewise.
2804 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2806 * ipa-inline.c (inline_small_functions): Swap the operands in
2809 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2812 * ipa-inline-analysis.c (node_growth_cache): Remove.
2813 (initialize_growth_caches): Do not initialize it.
2814 (free_growth_caches): Do not free it.
2815 (do_estimate_growth): Rename to ...
2816 (estimate_growth): ... this one; drop growth cache code.
2817 (growth_likely_positive): Always go the heuristics way.
2818 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
2819 (reset_edge_caches): Do not reset node growth.
2820 (heap_edge_removal_hook): Do not maintain cache.
2821 (inline_small_functions): Likewise; strenghten sanity check.
2822 (ipa_inline): Do not maintain caches.
2823 * ipa-inline.h (node_growth_cache): Remove.
2824 (do_estimate_growth): Remove to ...
2825 (estimate_growth): this one; remove inline version.
2826 (reset_node_growth_cache): Remove.
2828 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2831 * ipa-inline.c (inline_small_functions): Update callee keys after
2832 resolving speculation
2833 (inline_small_functions): Always check monotonicity of the queue.
2835 2015-01-13 Marek Polacek <polacek@redhat.com>
2838 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
2840 2015-01-13 Jakub Jelinek <jakub@redhat.com>
2842 PR rtl-optimization/64286
2843 * ree.c (combine_reaching_defs): Move part of comment earlier,
2844 remove !SCALAR_INT_MODE_P check.
2845 (add_removable_extension): Don't add vector mode
2846 extensions if all uses of the source register aren't the same
2849 2015-01-13 Renlin Li <renlin.li@arm.com>
2851 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
2852 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
2854 2015-01-13 Martin Liska <mliska@suse.cz>
2856 * ipa-icf.c (sem_function::equals_private): Call new functions
2857 cl_target_option_print_diff and cl_optimization_print_diff.
2858 * optc-save-gen.awk (cl_target_option_print_diff): New function.
2859 (cl_optimization_print_diff): Likewise.
2860 * opth-gen.awk: Likewise.
2862 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
2864 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
2865 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
2866 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
2867 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
2868 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
2869 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
2871 2015-01-13 Andrew Pinski <apinski@cavium.com>
2873 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
2874 instead of src mode.
2876 2015-01-13 Richard Biener <rguenther@suse.de>
2879 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
2882 2015-01-13 Andrew Pinski <apinski@cavium.com>
2884 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
2886 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2888 2015-01-13 Jakub Jelinek <jakub@redhat.com>
2891 * cfgexpand.c (expand_computed_goto): Don't call
2892 convert_memory_address here.
2894 2015-01-13 Richard Biener <rguenther@suse.de>
2896 PR tree-optimization/64406
2897 * tree-loop-distibution.c (pass_loop_distribution::execute):
2898 Reset the SCEV hashtable if we distributed anything.
2900 2015-01-13 Richard Biener <rguenther@suse.de>
2902 PR tree-optimization/64404
2903 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
2904 SLP types for CSEd loads.
2906 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2908 PR tree-optimization/64436
2909 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
2910 merge of two symbolic numbers for a bitwise OR to ...
2911 (perform_symbolic_merge): This. Also fix computation of the range and
2912 end of the symbolic number corresponding to the result of a bitwise OR.
2914 2015-01-13 Richard Biener <rguenther@suse.de>
2916 PR tree-optimization/64568
2917 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
2918 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
2920 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2922 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
2923 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
2925 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2927 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
2928 target-specific symbol_ref flag.
2929 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
2930 resides in rodata section.
2931 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
2932 (nds32_encode_section_info): New function.
2934 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2936 * config/nds32/nds32.md (call): Use pseudo instruction bal which
2937 clobbers TA_REGNUM if large code model is specified.
2938 (call_register): Likewise.
2939 (call_immediate): Likewise.
2940 (call_value): Likewise.
2941 (call_value_register): Likewise.
2942 (call_value_immediate): Likewise.
2944 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2946 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
2947 (TARGET_CMODEL_MEDIUM): New macro.
2948 (TARGET_CMODEL_LARGE): New macro.
2949 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
2950 code model setting in assembly code.
2952 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2954 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
2955 Remove MASK_GP_DIRECT flag.
2956 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
2957 one of the multilib default options.
2958 * config/nds32/nds32.opt (mgp-direct): Remove.
2959 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
2960 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
2962 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2964 * config/nds32/nds32.opt (mcmodel): Add new option.
2965 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
2966 to describe code model.
2968 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
2971 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
2973 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
2975 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
2976 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
2977 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
2978 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
2979 __builtin_sh_set_fpscr.
2981 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
2983 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
2984 after a funtion name just to indicate it is a function.
2985 ([-fsanitize-undefined-trap-on-error]): Likewise.
2986 ([-fdbg-cnt=]): Likewise.
2987 ([-mmemcpy]): Likewise.
2988 ([-mflush-func]): Likewise.
2989 ([-msynci]): Likewise.
2991 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
2993 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
2996 2015-01-12 Jakub Jelinek <jakub@redhat.com>
2998 PR tree-optimization/64563
2999 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
3000 instead of != VR_VARYING.
3003 * config/i386/i386.c (ix86_expand_prologue): Add
3004 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
3006 PR tree-optimization/64454
3007 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
3008 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
3009 for signed or [0, op1 - 1] for unsigned modulo.
3010 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3011 even if op1 does not satisfy integer_pow2p.
3014 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
3016 2015-01-12 Jeff Law <law@redhat.com>
3019 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
3020 (trunchiqi2, truncsihi2): Similarly.
3022 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
3023 rather than calling F.
3025 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3027 * tsan.c (instrument_expr): Use force_gimple_operand.
3028 Use may_be_nonaddressable_p instead of is_gimple_addressable.
3030 2015-01-12 Richard Biener <rguenther@suse.de>
3032 PR tree-optimization/64530
3033 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
3036 2015-01-12 Richard Biener <rguenther@suse.de>
3039 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
3042 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3044 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
3045 Cortex-A17 tuning parameters.
3046 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
3048 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3050 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
3051 * config/arm/arm.c (arm_macro_fusion_p): New function.
3052 (arm_macro_fusion_pair_p): Likewise.
3053 (TARGET_SCHED_MACRO_FUSION_P): Define.
3054 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3055 (ARM_FUSE_NOTHING): Likewise.
3056 (ARM_FUSE_MOVW_MOVT): Likewise.
3057 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
3058 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
3059 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
3060 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
3061 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
3062 arm_cortex_a5_tune): Specify fuseable_ops value.
3064 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
3067 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
3068 test for PIE with copy reloc.
3069 * configure: Regenerated.
3071 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3073 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
3075 (arm_tls_descseq_addr): Likewise.
3076 (arm_gen_movmemqi): Likewise.
3077 (arm_expand_epilogue_apcs_frame): Likewise.
3078 (arm_expand_epilogue): Likewise.
3079 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
3082 2015-01-12 Martin Liska <mliska@suse.cz>
3085 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
3086 volatility for correct operands.
3088 2015-01-12 Martin Liska <mliska@suse.cz>
3090 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3091 that a function is not leaf.
3092 (sem_function::compare_polymorphic_p): Likewise.
3094 2015-01-12 Martin Liska <mliska@suse.cz>
3096 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3097 that a function is not leaf.
3098 (sem_function::compare_polymorphic_p): Likewise.
3100 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3102 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
3103 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
3104 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
3105 fold-const.h, tree-check.h.
3107 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3111 * ipa-inline.c (compute_uninlined_call_time,
3112 compute_inlined_call_time): Use counts for extra precision when
3114 (big_speedup_p): Fix formating.
3115 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
3116 (relative_time_benefit): Remove.
3117 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
3118 merge guessed and read profile paths.
3119 (inline_small_functions): Count only !optimize_size functions into
3120 initial size; be more lax about sanity check when profile is used;
3121 be sure to update inlined function profile when profile is read.
3123 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3126 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
3127 cost when edge becomes direct.
3128 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
3129 is resolved or when introducing new speculation.
3131 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
3135 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
3136 '||' to fix typo issue.
3138 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
3139 accept and return NULL.
3141 2015-01-12 Martin Liska <mliska@suse.cz>
3143 * cgraph.c (cgraph_edge::remove_callee): Move function to header
3144 file for being inlined.
3145 (cgraph_set_edge_callee): Delete.
3146 (cgraph_edge::redirect_callee): Move function to header file
3148 (cgraph_edge::make_direct): Use new function.
3149 (cgraph_edge::dump_edge_flags): New function created from
3150 static dump_edge_flags function.
3151 (cgraph_node::dump): Use new function.
3152 (cgraph_edge::verify_count_and_frequency): New function created
3153 from verify_edge_count_and_frequency.
3154 (cgraph_edge::verify_corresponds_to_fndecl): New function created
3155 from verify_edge_corresponds_to_fndecl.
3156 (verify_edge_corresponds_to_fndecl): Delete.
3157 (cgraph_node::verify_node): Use new function.
3158 * cgraph.h (cgraph_edge::set_callee): New function.
3159 (cgraph_edge::dump_edge_flags): Likewise.
3160 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
3162 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
3164 * ipa-utils.c (estimate_function_body_sizes): Do not
3165 free node params when called late with early=true.
3167 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
3169 * doc/md.texi (Instruction Patterns): Rewrite text for
3171 (Example): Likewise.
3173 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
3175 * doc/invoke.texi (Option Summary): Break long lines.
3176 [(-fdiagnostics-color)]: Put long literal in @smallexample
3178 [(-fsanitize-recover)]: Likewise.
3179 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
3180 [(-ffast-math)]: Likewise.
3181 [(--param max-inline-insns-recursive)]: Likewise.
3182 [(--param max-inline-recursive-depth)]: Likewise.
3183 [(-mno-text-section-literals)]: Likewise.
3185 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3187 * doc/install.texi: Update for libgomp being renamed from "GNU
3188 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
3190 * doc/sourcebuild.texi: Likewise.
3192 2015-01-10 Anthony Green <green@moxielogic.com>
3194 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
3195 mul.x availability for moxiebox configuration.
3197 2015-01-09 Anthony Green <green@moxielogic.com>
3199 * config/moxie/moxie.md: Tabify assembly output.
3201 2015-01-09 Anthony Green <green@moxielogic.com>
3203 * config/moxie/moxie.md (CC_REG): Correct register definition.
3205 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
3207 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
3208 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
3211 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3213 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
3215 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
3216 Jakub Jelinek <jakub@redhat.com>
3219 * lto-streamer.h (lto_stream_offload_p): New declaration.
3220 * lto-streamer.c (lto_stream_offload_p): New variable.
3221 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
3222 at the same time as section_name_prefix.
3223 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
3224 if lto_stream_offload_p.
3225 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
3226 stream TREE_TARGET_OPTION if lto_stream_offload_p.
3227 (write_ts_function_decl_tree_pointers): Don't
3228 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
3229 * tree-streamer-in.c (unpack_value_fields): Don't stream
3230 TREE_TARGET_OPTION in if ACCEL_COMPILER.
3231 (lto_input_ts_function_decl_tree_pointers): Don't stream
3232 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
3233 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
3234 instead of section_name_prefix string comparisons.
3236 2015-01-09 Jakub Jelinek <jakub@redhat.com>
3238 PR rtl-optimization/64536
3239 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
3242 2015-01-09 Michael Collison <michael.collison@linaro.org>
3244 PR tree-optimization/64322
3245 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
3246 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
3248 2015-01-09 Tom de Vries <tom@codesourcery.com>
3250 PR rtl-optimization/64539
3251 * regcprop.c (kill_clobbered_values): Factor out of ...
3252 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
3253 instead of note_stores with kill_clobbered_value.
3255 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3257 * ginclude/unwind-arm-common.h: Revert previous commit.
3259 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3261 * config.gcc (arm*-*-freebsd*): New configuration.
3262 * config/arm/freebsd.h: New file.
3263 * config.host: Add extra components for arm*-*-freebsd*.
3264 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
3265 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
3267 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3269 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
3271 * config/rs6000/t-rtems: Add e6500 multilibs.
3273 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3275 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
3278 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3280 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
3281 MULTILIB_EXCEPTIONS.
3283 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3285 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
3286 MULTILIB_EXCEPTIONS.
3288 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3290 * config/arm/t-rtems-eabi: Rename to...
3291 * config/arm/t-rtems: ...this.
3292 * config/arm/rtems-eabi.h: Rename to...
3293 * config/arm/rtems.h: ...this.
3294 * config.gcc (arm*-*-rtems*): Reflect changes above.
3296 2015-01-09 Richard Biener <rguenther@suse.de>
3298 PR tree-optimization/64410
3299 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
3301 (execute_update_addresses_taken): Deal with that.
3302 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
3303 loads/stores for complex variables.
3305 2015-01-09 Martin Liska <mliska@suse.cz>
3307 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
3309 (func_checker::compare_memory_operand): New function.
3310 (func_checker::compare_operand): Split case to newly
3312 (func_checker::compare_cst_or_decl): New function.
3313 (func_checker::compare_gimple_call): Identify
3315 (func_checker::compare_gimple_assign): Likewise.
3316 * ipa-icf-gimple.h: New function.
3318 2015-01-09 Martin Liska <mliska@suse.cz>
3321 * sreal.c (sreal::dump): Change unsigned format to signed for
3323 (sreal::to_double): Replace exp2 with scalbln.
3325 2015-01-09 Martin Liska <mliska@suse.cz>
3327 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
3328 * ipa-icf.c (sem_function::equals_private): Add support for target and
3329 (sem_item_optimizer::merge_classes): Remove redundant function
3330 optimization flags comparison.
3331 * tree.h (target_opts_for_fn): New function.
3333 2015-01-09 Tom de Vries <tom@codesourcery.com>
3335 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
3337 2015-01-09 Kito Cheng <kito@0xlab.org>
3339 PR rtl-optimization/64348
3340 * lra-constraints.c (split_reg): Fix caller-save store/restore
3341 instruction generation.
3343 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
3345 PR gcov-profile/61790
3346 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
3347 long long. Fallback to int64_t if host doesn't have long long and
3348 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
3350 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3352 PR tree-optimization/63989
3353 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
3355 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
3356 (get_stridx): If we don't have a record for certain SSA_NAME,
3357 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
3358 constant offset, call get_stridx_plus_constant.
3359 (get_stridx_plus_constant): New function.
3360 (zero_length_string): Don't use get_stridx here.
3364 * dse.c (struct insn_info): Mention frame_read set also
3365 before reload for tail calls on some targets.
3366 (scan_insn): Revert 2014-12-22 change. Set frame_read
3367 also before reload for tail calls if
3368 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
3369 instead of add_non_frame_wild_read for non-const/memset
3370 tail calls after reload.
3372 2015-01-08 Jason Merrill <jason@redhat.com>
3374 * ubsan.c (do_ubsan_in_current_function): New.
3375 (pass_ubsan::gate): Use it.
3376 * ubsan.h: Declare it.
3377 * convert.c (convert_to_integer): Use it.
3379 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3382 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
3383 compare_code when it is unconditionally overwritten afterwards.
3384 Use ix86_reverse_condition instead of reverse_condition. Don't
3385 change code if *reverse_condition* returned UNKNOWN and don't
3386 swap ct/cf and negate diff in that case.
3388 2015-01-08 Mike Stump <mikestump@comcast.net>
3390 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
3391 (pass_tsan_O0::gate): Likewise.
3392 * extend.texi (Function Attributes): Add no_sanitize_thread
3395 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3397 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
3398 for registering builtins.
3399 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
3400 add -fopenmp to the argv_obstack used when invoking
3403 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
3404 add "-m32" or "-m64" to argv_obstack.
3405 (generate_host_descr_file): Likewise, when invoking host_compiler.
3406 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
3409 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3411 * config/sh/sh-mem.cc: Use constant as second operand when emitting
3414 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3417 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
3418 constant load if constant operand fits into I08.
3420 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3423 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
3424 and TREE_THIS_VOLATILE for MEM_REFs.
3425 (build5_stat): Fix up initialization of TREE_READONLY and
3426 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
3428 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3431 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
3432 of r for the second alternative of the destination operand.
3434 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
3437 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
3439 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3441 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
3443 ([-fivar-visibility], [-fvisibility]): Likewise.
3445 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3447 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
3448 the file where @code, @command, etc is more appropriate.
3450 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
3452 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
3453 of -mrecip= documentation.
3455 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3458 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
3459 correct reload handler if -m32 -mpowerpc64 is used.
3461 2015-01-06 Tom de Vries <tom@codesourcery.com>
3463 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
3465 2015-01-08 Christian Bruel <christian.bruel@st.com>
3468 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
3470 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3472 PR tree-optimization/63259
3473 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
3474 if optab exists for 16bit byteswap.
3476 2015-01-06 Jakub Jelinek <jakub@redhat.com>
3478 * opts.c (common_handle_option): Add support for
3479 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
3480 * doc/invoke.texi: Document -fno-sanitize=all,
3481 -f{,no-}sanitize-recover=all. Document that
3482 -fsanitize=float-cast-overflow is not enabled
3483 by -fsanitize=undefined. Fix up documentation
3484 of -f{,no-}sanitize-recover.
3486 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3488 * config.gcc: Add Visium support.
3489 * configure.ac: Likewise.
3490 * configure: Regenerate.
3491 * doc/extend.texi (interrupt attribute): Add Visium.
3492 * doc/invoke.texi: Document Visium options.
3493 * doc/install.texi: Document Visium target.
3494 * doc/md.texi: Document Visium constraints.
3495 * common/config/visium: New directory.
3496 * config/visium: Likewise.
3498 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3500 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
3501 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
3503 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3505 * combine.c (combine_validate_cost): Do not count the cost of a
3506 split I2 twice. Do not display it twice in the dump, either.
3508 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3510 Revert parts of r219199.
3511 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
3513 ([-Wtraditional]): Restore markup on <limits.h>.
3515 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3518 * doc/invoke.texi: Document -Wsuggest-override.
3520 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
3522 PR rtl-optimization/64287
3523 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
3524 (process_options): Disable flag_ipa_ra if profiling.
3526 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
3528 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
3530 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
3532 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
3533 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
3534 put under #if TARGET_LOOPS guard.
3536 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
3538 * config/i386/i386.c (output_387_binary_op): Use std::swap.
3540 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
3542 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
3543 * rtl.h (refers_to_regno_p): Add overload.
3545 * bt-load.c: Likewise.
3546 * combine.c: Likewise.
3547 * df-scan.c: Likewise.
3548 * sched-deps.c: Likewise.
3549 * config/s390/s390.c: Likewise.
3550 * config/m32r/m32r.c: Likewise.
3551 * config/rs6000/spe.md: Likewise.
3552 * config/rs6000/rs6000.c: Likewise.
3553 * config/pa/pa.c: Likewise.
3554 * config/stormy16/stormy16.c: Likewise.
3555 * config/cris/cris.c: Likewise.
3556 * config/arc/arc.md: Likewise.
3557 * config/arc/arc.c: Likewise.
3558 * config/sh/sh.md: Likewise.
3559 * config/sh/sh.c: Likewise.
3560 * config/frv/frv.c: Likewise.
3562 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3565 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
3566 call as cleanup of the whole body.
3567 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
3568 * tsan.c (replace_func_exit): New function.
3569 (instrument_func_exit): Moved earlier.
3570 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
3571 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
3573 (tsan_pass): Don't call instrument_func_exit.
3574 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
3575 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
3579 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
3580 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
3581 it to libubsan handler instead of EXPR. Fold comparisons earlier,
3582 if the result is integer_zerop, return NULL_TREE.
3583 * convert.c (convert_to_integer): Pass expr as ARG.
3585 PR tree-optimization/64465
3586 * tree-inline.c (redirect_all_calls): During inlining
3587 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
3588 changed the stmt to a non-throwing call.
3590 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3592 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
3593 etc markup throughout the file.
3595 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3597 Enable experimental TSAN support for Ada.
3598 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
3600 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3602 PR tree-optimization/64494
3603 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
3604 clear SSA_NAME_ANTI_RANGE_P flag.
3606 2015-01-05 Marek Polacek <polacek@redhat.com>
3608 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
3610 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3612 Update copyright years.
3614 * gcc.c (process_command): Update copyright notice dates.
3615 * gcov-dump.c: Ditto.
3617 * doc/cpp.texi: Bump @copying's copyright year.
3618 * doc/cppinternals.texi: Ditto.
3619 * doc/gcc.texi: Ditto.
3620 * doc/gccint.texi: Ditto.
3621 * doc/gcov.texi: Ditto.
3622 * doc/install.texi: Ditto.
3623 * doc/invoke.texi: Ditto.
3625 * auto-profile.c, auto-profile.h: Fix up Copyright line.
3627 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
3629 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
3631 ([-fvtable-verify], [-fvtv-debug]): Likewise.
3632 ([-Wabi]): Likewise.
3633 ([-fmessage-length]): Likewise.
3634 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
3635 ([-Wno-discarded-qualifiers]): Likewise.
3636 ([-Wnodiscarded-array-qualifiers]): Likewise.
3637 ([-Wno-virtual-move-assign]): Likewise.
3638 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
3639 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
3640 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
3641 ([-fsanitize-undefined-trap-on-error]): Likewise.
3642 ([-floop-interchange]): Likewise.
3643 ([-ftree-coalesce-inlined-vars]): Likewise.
3644 ([-fvect-cost-model]): Likewise.
3645 ([-flto]): Likewise.
3646 ([--param]): Likewise.
3647 (Spec Files): Likewise.
3648 ([-mstrict-align]): Likewise.
3649 ([-mfix-cortex-a53-835769]): Likewise.
3650 ([-march], [-mtune]): Likewise.
3651 ([-mpic-register]): Likewise.
3652 ([-munaligned-access]): Likewise.
3653 ([-msp8]): Likewise.
3654 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
3655 (AVR Built-in Macros): Likewise.
3656 ([-mpreferred-stack-boundary]): Likewise.
3657 ([-mtune-crtl]): Likewise.
3658 ([-mashf]): Likewise.
3659 ([-mmcu=]): Likewise.
3660 ([-minrt]): Likewise.
3661 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
3662 ([-mupper-regs]): Likewise.
3663 ([-matomic-model]): Likewise.
3664 ([-mdiv]): Likewise.
3665 ([-mzdcbranch]): Likewise.
3666 ([-mdisable-callt]): Likewise.
3667 ([-msoft-float]): Likewise.
3668 ([-m8byte-align]): Likewise.
3669 ([-fstack-reuse]): Likewise.
3671 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3673 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
3674 Fix markup, light copy-editing.
3675 ([-fauto-profile]): Rewrite to fix formatting and content
3678 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3680 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
3681 Copy-edit description.
3682 ([-fisolate-erroneous-paths-attribute]): Likewise.
3683 * common.opt (fisolate-erroneous-paths-dereference):
3684 Copy-edit description.
3685 (fisolate-erroneous-paths-attribute): Likewise.
3687 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3689 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
3692 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3694 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
3695 ([-fvtv-debug]): Likewise.
3696 ([-Wc++-compat]): Likewise.
3697 ([-Wc++11-compat]): Likewise.
3698 ([-Wc++14-compat]): Likewise.
3699 ([-Wno-sized-deallocation]): Likewise.
3700 ([-femit-class-debug-always]): Likewise.
3701 ([-femit-struct-debug-detailed]): Likewise.
3702 ([-fno-keep-inline-dllexport]): Likewise.
3703 ([-fira-algorithm]): Likewise.
3704 ([-fira-region]): Likewise.
3705 ([-flra-remat]): Likewise.
3706 ([-fipa-ra]): Likewise.
3707 ([-fhoist-adjacent-loads]): Likewise.
3708 ([-fisolate-erroneous-paths-dereference]): Likewise.
3709 ([-fisolate-erroneous-paths-attribute]): Likewise.
3710 ([-ftree-switch-conversion]): Likewise.
3711 ([-ftree-tail-merge]): Likewise.
3712 ([-ftree-loop-if-convert]): Likewise.
3713 ([-ftree-loop-if-convert-stores]): Likewise.
3714 ([-ftree-loop-distribution]): Likewise.
3715 ([-ftree-loop-distribute-patterns]): Likewise.
3716 ([-flto-compression-level]): Likewise.
3717 ([-flto-report]): Likewise.
3718 ([-flto-report-wpa]): Likewise.
3719 ([-fuse-linker-plugin]): Likewise.
3720 ([-mfix-cortex-a53-835769]): Likewise.
3721 ([-mno-fix-cortex-a53-835769]): Likewise.
3722 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
3723 explicit listing; add a note to the discussion indicating they
3724 exist. Reorder table to group similar options. Add missing
3725 @opindex entries. Add @need commands throughout the table to
3726 allow it to be split across multiple pages.
3727 ([-m8bit-idiv]): Fix @opindex.
3728 ([-mavx256-split-unaligned-load]): Likewise.
3729 ([-mavx256-split-unaligned-store]): Likewise.
3730 ([-mstack-protector-guard]): Likewise.
3731 ([-mcpu=]): Likewise.
3732 ([-mcpu]): Likewise.
3733 ([-mpointer-size=]): Likewise.
3735 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
3737 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
3738 instead of `m' constraint. Likewise for unnamed movb comparison
3739 patterns using reg_before_reload_operand predicate.
3740 * config/pa/predicates.md (reg_before_reload_operand): Tighten
3741 predicate to reject register index and LO_SUM DLT memory forms
3744 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3746 * doc/invoke.texi (Option Summary): Fix spelling of
3747 -fdevirtualize-at-ltrans.
3748 ([-fdevirtualize]): Fix markup.
3749 ([-fdevirtualize-speculatively]): Fix typo.
3750 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
3752 * common.opt (fdevirtualize-at-ltrans): Likewise.
3753 * ipa-devirt.c: Fix typos in comments throughout the file.
3754 (ipa_devirt): Fix typos in format strings for dump output.
3756 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3758 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
3759 discussion of defaults, light copy-editing.
3761 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3763 * tsan.c (instrument_expr): corrected previous checkin.
3765 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3767 Instrument bit field and unaligned accesses for TSAN.
3768 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
3769 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
3770 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
3771 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
3772 unaligned memory regions.
3774 2015-01-01 Anthony Green <green@moxielogic.com>
3776 * config/moxie/predicates.md (moxie_general_movsrc_operand):
3777 Restrict move source register offsets to 16 bits.
3779 Copyright (C) 2015 Free Software Foundation, Inc.
3781 Copying and distribution of this file, with or without modification,
3782 are permitted in any medium without royalty provided the copyright
3783 notice and this notice are preserved.