1 2015-02-02 David Malcolm <dmalcolm@redhat.com>
4 * config/arm/arm.c (arm_option_override): Set
5 arm_selected_arch/cpu/tune to NULL on entry.
7 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
8 Andrew Pinski <pinskia@gcc.gnu.org>
9 Jakub Jelinek <jakub@gcc.gnu.org>
12 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
13 integer typing for small model. Use IN_RANGE.
15 2015-02-02 Richard Biener <rguenther@suse.de>
17 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
18 * tree-vrp.c (vrp_valueize_1): Likewise.
20 2015-02-02 Alan Modra <amodra@gmail.com>
22 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
23 than mem for toc_restore.
24 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
25 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
26 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
28 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
31 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
32 explicit default options.
34 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
37 * ipa-utils.c (ipa_merge_profiles): Add release argument.
38 * ipa-icf.c (sem_function::merge): Do not release body when merging.
39 * ipa-utils.h (ipa_merge_profiles): Update prototype.
41 2015-02-01 Jakub Jelinek <jakub@redhat.com>
44 * cfgexpand.c (deep_ter_debug_map): New variable.
45 (avoid_deep_ter_for_debug): New function.
46 (expand_debug_expr): If TERed SSA_NAME is in
47 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
48 instead of trying to expand SSA_NAME's def stmt.
49 (expand_debug_locations): When expanding debug bind
50 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
51 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
53 (pass_expand::execute): Call avoid_deep_ter_for_debug on
54 all debug bind stmts. Delete deep_ter_debug_map after
55 expand_debug_location if non-NULL and clear it.
57 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
60 * config/sh/sync.md (atomic_fetch_notsi_hard,
61 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
62 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
63 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
64 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
65 atomic_not_fetch<mode>_soft_imask): New insns.
67 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
69 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
70 (rank_for_schedule_debug): Split from ...
71 (rank_for_schedule): ... this.
72 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
73 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
75 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
77 * doc/md.texi (Machine Constraints): Alphabetize table by target.
78 * doc/extend.texi (x86 Variable Attributes): Move section to
79 correct alphabetization after renaming.
80 (x86 Type Attributes): Likewise.
81 (Target Builtins): Re-alphabetize menu.
82 (x86 Built-in Functions): Move section to correct alphabetization
84 (x86 transactional memory intrinsics): Likewise.
85 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
86 and x86 Windows Options in table and menu.
87 (x86 Options): Move section to correct alphabetization after
89 (x86 Windows Options): Likewise.
91 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
93 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
94 preferred names of the architecture and its 32- and 64-bit
96 * doc/invoke.texi: Likewise.
97 * doc/md.texi: Likewise.
99 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
102 * config/i386/predicates.md (address_no_seg_operand): Reject
103 non-CONST_INT_P operands in invalid mode.
105 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
107 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
108 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
109 * config/i386/predicates.md (address_no_seg_operand): Call
110 address_operand with VOIDmode.
111 (vsib_address_operand): Ditto.
112 (address_mpx_no_base_operand): Ditto.
113 (address_mpx_no_index_operand): Ditto.
115 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
118 * lra-constraints.c (original_subreg_reg_mode): New.
119 (simplify_operand_subreg): Try to simplify subreg of const. Use
120 original_subreg_reg_mode for it.
121 (swap_operands): Update original_subreg_reg_mode.
122 (curr_insn_transform): Set up original_subreg_reg_mode.
124 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
127 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
129 (process_alt_operands): Use it.
130 (curr_insn_transform): Check the optional reload pseudo class is
133 2015-01-30 Joseph Myers <joseph@codesourcery.com>
135 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
136 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
138 * toplev.h (init_asm_output): Update comment on use of
139 UNKNOWN_LOCATION with fatal_error.
140 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
141 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
142 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
143 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
144 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
145 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
146 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
147 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
148 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
149 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
150 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
151 fatal_error changed to pass input_location as first argument.
153 2015-01-30 Martin Liska <mliska@suse.cz>
155 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
156 in #pragma GCC diagnostic guards.
158 2015-01-30 Richard Biener <rguenther@suse.de>
160 PR tree-optimization/64829
161 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
162 not add a widening conversion pattern but hand off extra
163 widenings to callers.
164 (vect_recog_widen_mult_pattern): Handle extra widening produced
165 by vect_handle_widen_op_by_const.
166 (vect_recog_widen_shift_pattern): Likewise.
167 (vect_pattern_recog_1): Remove excess vertical space in dumping.
168 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
169 (vect_init_vector_1): Likewise.
170 (vect_get_vec_def_for_operand): Likewise.
171 (vect_finish_stmt_generation): Likewise.
172 (vectorizable_load): Likewise.
173 (vect_analyze_stmt): Likewise.
174 (vect_is_simple_use): Likewise.
176 2015-01-29 Jeff Law <law@redhat.com>
178 * combine.c (try_combine): Fix typo in comment.
180 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
183 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
184 (rs6000_stack_info): Add assert.
185 (rs6000_output_savres_externs): New function, split off from...
186 (rs6000_output_function_prologue): ... here. Do not call it for
189 2015-01-29 Jeff Law <law@redhat.com>
192 * combine.c (try_combine): If I0 is a memory load and I3 a store
193 to a related address, increase the "goodness" of doing a 4-insn
194 combination with I0-I3.
195 (make_field_assignment): Handle SUBREGs in the ior+and case.
197 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
199 PR tree-optimization/64746
200 * tree-if-conv.c (mask_exists): New function.
201 (predicate_mem_writes): Save created mask with given size for further
203 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
204 (ifcvt_repair_bool_pattern): Collect all statements that are root
205 of bool pattern and use iterative algorithm to remove multiple uses
206 of predicates, display number of required iterations.
208 2015-01-29 Richard Biener <rguenther@suse.de>
210 PR tree-optimization/64853
211 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
212 stmt will get simulated again.
213 * tree-ssa-ccp.c (valueize_op_1): Likewise.
215 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
217 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
218 return_in_pc. Remove redundant assignments.
219 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
220 (arm_expand_epilogue): Don't compare boolean with true in if condition.
222 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
224 * config/i386/i386.c (ix86_mode_after): Make static.
226 2015-01-29 Richard Biener <rguenther@suse.de>
228 PR tree-optimization/64844
229 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
230 dump cost model analysis.
231 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
232 Do not register adjusted load/store costs here.
234 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
235 Uros Bizjak <ubizjak@gmail.com>
237 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
238 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
239 using x86_use_pseudo_pic_reg.
240 * config/i386/i386.c (ix86_conditional_register_usage): Remove
241 support for fixed PIC register.
242 (ix86_use_pseudo_pic_reg): Not static any more.
244 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
247 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
248 to avoid error in cgraph node verification.
250 2015-01-29 Marek Polacek <polacek@redhat.com>
252 * doc/standards.texi: Reflect that the default for C is gnu11.
254 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
257 * reorg.c (switch_text_sections_between_p): New function.
258 (relax_delay_slots): Call it when testing if the jump insn
259 is removable. Use targetm.can_follow_jump when testing if
260 the conditional branch can follow an unconditional jump.
262 2015-01-27 Caroline Tice <cmtice@google.com>
264 Committing VTV Cywin/Ming patch for Patrick Wollgast
265 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
266 if -fvtable-verify=preinit/std is used.
267 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
268 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
269 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
270 if -fvtable-verify=preinit/std is used.
271 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
272 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
273 if -fvtable-verify=preinit/std is used.
274 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
275 * config/i386/mingw32.h (LIB_SPEC): Likewise.
276 * varasm.c (assemble_variable): Add code to properly set the comdat
277 section and name for the .vtable_map_vars section in case the
278 target is PE or COFF.
280 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
283 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
284 make sane BB profile.
285 (cgraph_node::expand_thunk): Make sane BB profile.
286 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
287 * cgraph.h (init_lowered_empty_function): Update prototype.
288 * config/i386/i386.c (make_resolver_func): Update call.
289 * predict.c (gate): Disable branch prediction pass if
290 profile is already there.
292 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
294 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
295 * opth-gen.awk: Likewise.
296 * common.opt: Mark flag_fp_contract_mode as Optimization.
298 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
300 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
301 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
303 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
306 * config/sh/predicates.md (atomic_arith_operand,
307 atomic_logical_operand): Remove.
308 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
309 (atomic_arith_operand_0): New predicate.
310 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
311 Use atomic_arith_operand_0 for input values.
312 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
313 atomic_compare_and_swap<mode>_soft_gusa,
314 atomic_compare_and_swap<mode>_soft_tcb,
315 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
316 arith_reg_operand instead of register_operand.
317 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
318 atomic_arith_operand_0 for newval input.
319 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
320 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
321 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
322 arith_reg_operand instead of register_operand.
323 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
324 fetchop_predicate_1, fetchop_constraint_1_llcs,
325 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
326 fetchop_constraint_1_imask): New code iterator attributes.
327 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
328 register_operand. Use fetchop_predicate_1.
329 (atomic_fetch_<fetchop_name>si_hard,
330 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
331 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
332 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
333 and arith_reg_operand instead of register_operand. Use
334 fetchop_predicate_1, fetchop_constraint_1_gusa.
335 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
336 and arith_reg_operand instead of register_operand. Use
337 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
339 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
340 and arith_reg_operand instead of register_operand. Use
341 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
343 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
344 register_operand. Use atomic_logical_operand_1.
345 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
346 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
347 arith_reg_operand instead of register_operand.
348 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
349 Use arith_reg_dest and arith_reg_operand instead of register_operand.
350 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
351 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
352 register_operand. Use fetchop_predicate_1.
353 (atomic_<fetchop_name>_fetchsi_hard,
354 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
355 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
356 fetchop_constraint_1_llcs.
357 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
358 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
359 fetchop_constraint_1_gusa.
360 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
361 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
362 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
363 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
364 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
365 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
366 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
367 register_operand. Use atomic_logical_operand_1.
368 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
369 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
370 arith_reg_operand instead of register_operand.
371 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
372 arith_reg_operand instead of register_operand. Use logical_operand
373 and K08. Adjust asm sequence to allow R0 usage.
374 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
375 arith_reg_operand instead of register_operand. Use logical_operand
378 2015-01-28 Jakub Jelinek <jakub@redhat.com>
381 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
382 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
383 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
384 only get_full_len HOST_WIDE_INTs from get_val () array rather than
385 all bits in *val_wide.
387 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
389 * varpool.c (tls_model_names): Fix names.
390 (varpool_node::dump): Dump tls- prefix for tls models.
392 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
393 Bernd Schmidt <bernds@codesourcery.com>
394 Nathan Sidwell <nathan@codesourcery.com>
396 * config/nvptx/mkoffload.c: New file.
397 * config/nvptx/t-nvptx: Add build rules for it.
398 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
399 (extra_programs): Add mkoffload.
400 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
402 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
404 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
407 * cfgexpand.c (reorder_operands): Skip debug gimples.
409 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
411 PR tree-optimization/64277
412 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
413 range info when possible to refine estimation.
415 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
417 PR tree-optimization/64718
418 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
419 be a 16bit unsigned integer when n->range is 16.
420 (bswap_replace): Convert src to that type if necessary for all bswap
421 sizes. Fix rotation right notation in nearby comment. Use bswap_type
422 set in pass_optimize_bswap::execute ().
424 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
426 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
427 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
428 integer and floating point variants.
429 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
431 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
433 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
434 for all vector modes.
436 2015-01-28 Jakub Jelinek <jakub@redhat.com>
439 * doc/sourcebuild.texi (comdat_group): Document.
441 2015-01-28 Terry Guo <terry.guo@arm.com>
443 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
445 2015-01-27 David Malcolm <dmalcolm@redhat.com>
447 * toplev.c (print_version): Add param "show_global_state", and
448 only print GGC and plugin information if it is true.
449 (init_asm_output): Pass in "true" for the new param when calling
451 (process_options): Likewise.
452 (toplev::main): Likewise.
453 * toplev.h (print_version): Add new param to decl.
455 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
459 * tree.c (lookup_binfo_at_offset): New function.
460 (get_binfo_at_offset): Use it.
462 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
465 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
466 on vtable being vtable.
468 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
470 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
471 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
473 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
474 -mno-hotpatch options. Change syntax of -mhotpatch= option.
475 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
477 (s390_hotpatch_trampoline_halfwords_max): Renamed.
478 (s390_hotpatch_hw_max): New name.
479 (s390_hotpatch_trampoline_halfwords): Renamed.
480 (s390_hotpatch_hw_before_label): New name.
481 (get_hotpatch_attribute): Removed.
482 (s390_hotpatch_hw_after_label): New name.
483 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
485 (s390_attribute_table): Ditto.
486 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
487 (s390_function_num_hotpatch_hw): New name.
488 Remove special handling of inline functions and hotpatching.
489 Return number of nops before and after the function label.
490 (s390_can_inline_p): Removed.
491 (s390_asm_output_function_label): Emit a configurable number of nops
492 after the function label.
493 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
494 (TARGET_CAN_INLINE_P) Removed.
495 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
497 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
498 Jiong Wang <jiong.wang@arm.com>
500 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
502 (cb<optab><mode>1): Likewise.
503 * config/aarch64/iterators.md (bcond): New define_code_attr.
505 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
507 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
510 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
512 * config/s390/s390.c (s390_register_move_cost): Increase costs for
515 2015-01-27 Richard Biener <rguenther@suse.de>
517 * tree-vrp.c (update_value_range): Intersect the range with
518 old recorded SSA name range information.
520 2015-01-27 Nick Clifton <nickc@redhat.com>
522 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
523 BC, DE and HL registers directly, not via AX.
524 When decrementing the stack pointer by a large amount, transfer SP
525 into AX and perform the subtraction there.
526 (rl78_expand_epilogue): Perform the inverse of the above
529 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
531 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
533 2015-01-27 Jakub Jelinek <jakub@redhat.com>
534 Yury Gribov <y.gribov@samsung.com>
537 * ubsan.c (ubsan_source_location): Refactor code.
538 (ubsan_type_descriptor): Update type size. Refactor code.
540 2015-01-27 Richard Biener <rguenther@suse.de>
542 PR tree-optimization/56273
543 PR tree-optimization/59124
544 PR tree-optimization/64277
545 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
546 from the first VRP pass.
548 2015-01-27 Jakub Jelinek <jakub@redhat.com>
551 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
552 handle the first argument in the same loop as all the other arguments.
554 PR rtl-optimization/61058
555 * jump.c (cleanup_barriers): Update basic block boundaries
556 if BLOCK_FOR_INSN is non-NULL on PREV.
558 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
560 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
561 bounds narrowing, already instrumented calls and calls to
562 not instrumentable functions.
564 2015-01-27 Jakub Jelinek <jakub@redhat.com>
566 PR tree-optimization/64807
567 * wide-int.cc (wi::divmod_internal): Clear
568 b_dividend[dividend_blocks_needed].
570 2015-01-26 DJ Delorie <dj@redhat.com>
572 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
573 volatile memory references.
575 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
578 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
580 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
581 shifts if it already fits into K08.
583 2015-01-26 Jakub Jelinek <jakub@redhat.com>
586 * ipa-inline.c (inline_small_functions): Print "unknown" even
587 if edge->call_stmt is non-NULL, but has builtins or unknown
591 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
592 with asterisk, skip the first character.
594 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
597 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
600 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
603 * config/i386/i386.md (*movdi_internal): Also check operand 0
604 to determine TYPE_LEA operand.
605 (*movsi_internal): Ditto.
607 2015-01-26 Jakub Jelinek <jakub@redhat.com>
609 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
610 OPTION_MASK_QUAD_MEMORY_ATOMIC.
612 2015-01-26 Renlin Li <renlin.li@arm.com>
614 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
616 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
619 2015-01-26 Richard Biener <rguenther@suse.de>
622 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
623 combining two BIT_AND_EXPR predicates.
625 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
628 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
630 2015-01-26 Terry Guo <terry.guo@arm.com>
632 * config/arm/arm.c (arm_file_start): Update the assignment of
635 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
637 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
639 config/arm/arm.md: Include the new Cortex-A57 model.
640 (generic_sched): Don't use generic_sched when tuning for
643 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
644 Uros Bizjak <ubizjak@gmail.com>
646 * config/i386/i386.c (get_builtin_code_for_version): Add
647 support for BMI and BMI2 multiversion functions.
649 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
651 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
652 (extract_bit_field): Likewise.
653 (extract_low_bits): Likewise.
654 (expand_mult): Likewise.
655 (expand_mult_highpart_adjust): Likewise.
657 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
659 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
660 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
661 * config/i386/i386.c (processor_model): Add
662 M_INTEL_COREI7_BROADWELL.
663 (arch_names_table): Add "broadwell".
665 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
674 * config/sh/sh-protos.h
675 (sh_extending_set_of_reg::can_use_as_unextended_reg,
676 sh_extending_set_of_reg::use_as_unextended_reg,
677 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
678 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
679 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
680 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
681 (sh_treg_insns): New class.
682 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
683 (scope_counter): New class.
684 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
685 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
686 sh_extending_set_of_reg::can_use_as_unextended_reg,
687 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
688 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
689 sh_split_treg_set_expr): New functions.
690 (addsubcosts): Handle treg_set_expr.
691 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
692 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
693 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
694 (sh_insn_operands_modified_between_p): Make non-static.
695 * config/sh/predicates.md (zero_extend_movu_operand): Allow
696 simple_mem_operand in addition to displacement_mem_operand.
697 (zero_extend_operand): Don't allow zero_extend_movu_operand.
698 (treg_set_expr, treg_set_expr_not_const01,
699 arith_reg_or_treg_set_expr): New predicates.
700 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
701 arith_or_int_operand instead of logical_operand. Convert to
702 insn_and_split. Try to optimize constant operand in splitter.
703 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
704 (*tstqi_t_zero): Delete.
705 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
706 (tstsi_t_and_not): Delete.
707 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
708 Convert to insn_and_split.
709 (unnamed split, tstsi_t_zero_extract_xor,
710 tstsi_t_zero_extract_subreg_xor_little,
711 tstsi_t_zero_extract_subreg_xor_big): Delete.
712 (*tstsi_t_shift_mask): New insn_and_split.
713 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
714 to recombine with surrounding insns when splitting.
715 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
716 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
717 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
718 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
719 (*cbranch_div0s: Delete.
720 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
721 Try to recombine with surrounding insns when splitting. Add operand
723 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
724 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
725 *addc_r_r_msb, *addc_2r_msb): Delete.
726 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
728 (*addc_negreg_t): New insn_and_split.
729 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
730 Try to recombine with surrounding insns when splitting.
731 Add operand order variants.
732 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
733 insn_and_split patterns.
734 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
735 surrounding insns when splitting.
736 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
737 (*rotcl): Likewise. Add zero_extract variant.
738 (*ashrsi2_31): New insn_and_split.
739 (*negc): Convert to insn_and_split. Use treg_set_expr.
740 (*zero_extend<mode>si2_disp_mem): Update comment.
741 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
743 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
744 with surrounding insns when splitting.
745 (any_treg_expr_to_reg): New insn_and_split.
746 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
747 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
748 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
749 *zero_extract_2): New single bit zero extract patterns.
750 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
751 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
752 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
753 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
755 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
756 register_operand for set source.
758 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
760 * i386.opt (prefetch_sse): New targetsave.
761 * i386.c (ix86_function_specific_save): Save prefetch_sse.
762 (ix86_function_specific_restore): Restore prefetch_sse and initialize
763 ix86_cost/ix86_tune_cost.
765 2015-01-23 David Malcolm <dmalcolm@redhat.com>
767 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
768 Support the JIT by using 0 as the language type.
770 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
773 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
774 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
775 (mark_regno_live, process_bb_lives): Pass new parameter value to
776 make_hard_regno_born.
778 2015-01-23 Jakub Jelinek <jakub@redhat.com>
780 PR rtl-optimization/63637
781 PR rtl-optimization/60663
782 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
783 if elt->cost is MAX_COST for ASM_OPERANDS.
784 (find_sets_in_insn): Fix up comment typo.
785 (cse_insn): Don't set src_volatile for all non-volatile
786 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
787 or with "memory" clobber. Set elt->cost to MAX_COST
788 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
789 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
791 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
793 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
796 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
798 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
799 libgcc/config/i386/elf-lib.h.
801 2015-01-23 Jakub Jelinek <jakub@redhat.com>
804 * gcc.c (print_configuration): Don't print a blank line at the end
806 (run_attempt): ... but here unstead.
809 * omp-low.c (scan_sharing_clauses): Don't ignore
810 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
811 on target data/update constructs.
813 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
816 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
817 (DEBUG_RELOAD): Removed define.
818 (m32c_limit_reload_class): Enable traces with if DEBUG0.
819 (m32c_function_arg): Added a type cast.
820 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
821 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
822 * config/m32c/bitops.md (andqi3_16): Likewise.
823 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
824 (push_a01_l): Likewise.
826 2015-01-23 David Malcolm <dmalcolm@redhat.com>
829 * main.c (main): Construct toplev instances with init_signals=true.
830 * toplev.c (general_init): Add param "init_signals", and use it to
831 conditionalize the calls to signal and host_hooks.extra_signals.
832 (toplev::toplev): Add param "init_signals".
833 (toplev::main): When invoking general_init, pass m_init_signals
834 to control whether signal-handlers are installed.
835 * toplev.h (toplev::toplev): Add param "init_signals".
836 (toplev::m_init_signals): New field.
838 2015-01-23 David Malcolm <dmalcolm@redhat.com>
841 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
842 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
843 latter may be affected by the former (e.g. on i686).
845 2015-01-23 Martin Liska <mliska@suse.cz>
847 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
848 false positive during profiledbootstrap.
850 2015-01-23 Tom de Vries <tom@codesourcery.com>
853 * lto-opts.c (lto_write_options): Output non-explicit conservative
855 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
856 (append_compiler_options): Pass -fopenacc through.
858 2015-01-23 Tom de Vries <tom@codesourcery.com>
861 * lto-opts.c (lto_write_options): Output non-explicit conservative
863 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
864 (append_compiler_options): Pass -fopenmp through.
866 2015-01-23 Jakub Jelinek <jakub@redhat.com>
869 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
872 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
873 * diagnostic.def (DK_ICE_NOBT): New kind.
874 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
875 like DK_ICE, but never print backtrace.
876 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
877 (internal_error_no_backtrace): New function.
878 * gcc.c (execute): Use internal_error_no_backtrace instead of
881 2015-01-22 Jeff Law <law@redhat.com>
884 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
885 improve code density for small immediate to memory case.
886 (insv): Better handle bitfield assignments when the field is
887 being set to all ones.
888 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
891 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
892 Jakub Jelinek <jakub@redhat.com>
894 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
895 for !TARGET_LIBC_PROVIDES_SSP version and
896 -fstack-protector-{all,strong,explicit} otherwise.
897 * config/freebsd.h (LINK_SSP_SPEC): Handle
898 -fstack-protector-{strong,explicit}.
900 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
901 H.J. Lu <hongjiu.lu@intel.com>
904 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
907 2015-01-22 Wei Mi <wmi@google.com>
909 PR rtl-optimization/64557
910 * dse.c (record_store): Call get_addr for mem_addr.
911 (check_mem_read_rtx): Likewise.
913 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
915 * fold-const.c (const_binop): Add early return for non-tcc_binary.
917 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
919 * toplev.c (init_local_tick): Process the failure when read
920 fails for random_seed.
922 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
923 'pretty_name' to avoid memory overflow.
925 2015-01-22 Richard Biener <rguenther@suse.de>
928 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
929 abnormal coalescing on undefined SSA names.
931 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
935 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
937 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
939 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
942 * fold-const.c (fold_checksum_tree): Don't include value of
943 expr->decl_with_vis.symtab_node in the checksum.
945 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
947 * config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
950 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
953 * gcc.c (insert_comments): New function.
954 (try_generate_repro): Call it.
955 (append_text): Removed.
957 2015-01-22 Richard Biener <rguenther@suse.de>
959 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
960 with IL incompatible options. Properly honor user optimize
963 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
965 PR rtl-optimization/64682
966 * combine.c (distribute_notes): When moving a death note for
967 a register that is set in the new I2, make sure to put it
970 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
972 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
975 2015-01-21 Jakub Jelinek <jakub@redhat.com>
978 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
979 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
980 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
983 * doc/invoke.texi (-fsanitize=vptr): Document.
985 PR rtl-optimization/62078
986 * dse.c: Include cfgcleanup.h.
987 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
988 anything call purge_all_dead_edges and cleanup_cfg at the end
991 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
993 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
996 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
998 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
1001 2015-01-21 David Sherwood <david.sherwood@arm.com>
1002 Tejas Belagod <Tejas.Belagod@arm.com>
1004 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
1005 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
1006 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
1009 2015-01-21 David Sherwood <david.sherwood@arm.com>
1010 Tejas Belagod <Tejas.Belagod@arm.com>
1012 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
1013 (aarch64_reverse_mask): New decls.
1014 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
1015 (insn_count): New mode_attr.
1016 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
1017 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
1018 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
1019 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
1020 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
1021 (aarch64_simd_st4): New patterns.
1022 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
1023 (aarch64_reverse_mask): New functions.
1025 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
1027 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
1029 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
1030 addressing modes for BE.
1031 (aarch64_print_operand): Add 'R' specifier.
1032 (aarch64_simd_disambiguate_copy): Delete.
1033 (aarch64_simd_emit_reg_reg_move): New function.
1034 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
1035 in define_splits for structural moves.
1036 (mov<mode>): Use less restrictive predicates.
1037 (*aarch64_mov<mode>): Simplify and only allow for LE.
1038 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
1040 2015-01-21 Alan Hayward <alan.hayward@arm.com>
1042 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
1044 2015-01-21 Richard Henderson <rth@redhat.com>
1047 * ccmp.c (used_in_cond_stmt_p): Remove.
1048 (expand_ccmp_expr): Don't use it.
1050 2015-01-21 Nick Clifton <nickc@redhat.com>
1052 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
1055 2015-01-21 Richard Biener <rguenther@suse.de>
1058 * tree-core.h (builtin_info, builtin_info_type): Turn from
1059 an object with two arrays into an array of an object with
1060 decl and two flags, implicit_p and declared_p.
1061 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
1062 set_builtin_decl, set_builtin_decl_implicit_p,
1063 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
1064 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
1065 * builtins.c (builtin_info): Adjust.
1066 * gimplify.c (gimplify_addr_expr): References to builtins
1067 that have been declared by the user makes them eligible for
1068 use by the compiler. Call set_builtin_decl_implicit_p on them.
1070 2015-01-20 Jeff Law <law@redhat.com>
1073 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
1074 allow pc-relative addresses in operand predicates or constraints.
1076 2015-01-21 Bin Cheng <bin.cheng@arm.com>
1078 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
1079 neon on aarch32 processors for stringops.
1081 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1084 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
1086 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1089 * ipa-inline.c: Include lto-streamer.h
1090 (report_inline_failed_reason): Output source file differences and
1091 flags on optimization/target node mismatch.
1092 (can_inline_edge_p): Consider caller to be the outer inline function;
1093 be less restrictive about matching opimize and optimize_size attributes.
1094 (inline_account_function_p): Break out from ...
1095 (inline_small_functions): ... here.
1096 * ipa-inline-transform.c (clone_inlined_nodes): Use
1097 inline_account_function_p.
1098 (inline_call): Use optimize attribution; use inline_account_function_p.
1099 (inline_transform): Use opt_for_fn.
1100 * ipa-inline.h (inline_account_function_p): Declare.
1102 2015-01-20 Jakub Jelinek <jakub@redhat.com>
1105 * dwarf2out.c (decl_piece_node): Don't put bitsize into
1106 mode if bitsize <= 0.
1107 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
1108 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
1109 sizes and positions.
1111 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
1113 * config/nios2/nios2.c (nios2_asm_file_end): Implement
1114 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
1116 (TARGET_ASM_FILE_END): Define.
1118 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1120 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
1121 (struct tune_params): Use the enum.
1122 * arm.c (arm_*_tune): Update.
1123 (arm_option_override): Update.
1125 2015-01-20 Richard Biener <rguenther@suse.de>
1128 * ipa-reference.c (add_static_var): Inline ...
1129 (analyze_function): ... here after splitting out from ...
1130 (is_proper_for_analysis): ... this.
1132 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
1135 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
1136 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
1137 replace the conditional with it's true branch.
1138 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
1139 (arm_lra_p): Remove.
1141 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
1143 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
1145 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1147 * config/tilegx/mul-tables.c: Move symtab.h include after
1148 coretypes.h include.
1149 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
1150 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
1151 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
1152 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
1153 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1155 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
1159 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1161 PR rtl-optimization/64081
1162 * loop-iv.c (def_pred_latch_p): New function.
1163 (latch_dominating_def): Allow specific cases with non-single
1165 (iv_get_reaching_def): Likewise.
1166 (check_complex_exit_p): New function.
1167 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1168 with exits not executing on any iteration.
1170 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1173 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
1176 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1179 * i386.c (gate): Check flag_expensive_optimizations and
1181 (ix86_option_override_internal): Drop optimize_size condition
1182 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
1183 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
1185 (ix86_avx256_split_vector_move_misalign,
1186 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
1187 * sse.md (all uses of TARGET_PREFER_AVX128): Add
1188 optimize_insn_for_speed_p check.
1190 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
1192 * config/mips/mips.h (FP_ASM_SPEC): New define.
1193 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
1196 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
1199 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
1200 nullptr for insn when reaching the first insn.
1201 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
1202 (sh_insn_operands_modified_between_p): Add nullptr check.
1203 (sh_find_extending_set_of_reg): Fix log message. Don't accept
1204 sign extending mem load if the insn contains any UNSPEC or
1207 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1209 * params.def (inline-unit-growth): Drop to 15%.
1210 * invoke.texi (inline-unit-growth): Document change.
1212 2015-01-19 Martin Liska <mliska@suse.cz>
1215 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
1216 function for second argument of OBJ_TYPE_REF.
1218 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1221 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
1222 whether function is an alias.
1224 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1226 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
1229 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
1231 PR rtl-optimization/64671
1232 * lra-remat.c (operand_to_remat): Don't consider jump and call
1235 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
1237 * config/rs6000/default64.h: Include rs6000-cpus.def.
1238 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
1239 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
1240 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
1242 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
1244 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
1245 pseudo-op to specify assembler dialect.
1247 2015-01-19 Martin Liska <mliska@suse.cz>
1250 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
1251 Handle safe potentially removed nodes during filtering.
1253 2015-01-19 Martin Liska <mliska@suse.cz>
1255 * doc/extend.texi (no_icf): Add new attribute description.
1256 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
1257 where the pass attempts to merge a function with no_icf attribute.
1259 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1262 * doc/md.texi (ARM Options): Document register constraints.
1264 2015-01-19 Jiong Wang <jiong.wang@arm.com>
1265 Andrew Pinski <apinski@cavium.com>
1268 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
1269 (ashl<mode>3): Don't expand if operands[2] is not constant.
1271 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1274 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
1275 Match xor-and-xor RTL pattern.
1277 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1279 PR rtl-optimization/64081
1280 * loop-iv.c (def_pred_latch_p): New function.
1281 (latch_dominating_def): Allow specific cases with non-single
1283 (iv_get_reaching_def): Likewise.
1284 (check_complex_exit_p): New function.
1285 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1286 with exits not executing on any iteration.
1288 2015-01-19 Jakub Jelinek <jakub@redhat.com>
1290 * common.opt (fgraphite): Fix a typo.
1292 2015-01-19 Felix Yang <felix.yang@huawei.com>
1294 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
1296 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
1297 uminp, smax_nanp, smin_nanp): New builtins.
1298 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
1299 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
1300 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
1301 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
1302 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
1303 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
1304 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
1305 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
1306 vpminnms_f32): Rewrite using builtin functions.
1308 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1311 * omp-low.c (offload_symbol_decl): Remove variable.
1312 (get_offload_symbol_decl): Remove function.
1313 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
1314 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
1315 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
1316 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
1317 BUILT_IN_GOACC_UPDATE don't pass it at all.
1319 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1321 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
1324 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1326 * ipa-chkp.c (chkp_produce_thunks): Add early param
1327 to split thunks production into two passes. Keep
1328 'always_inline' function bodies after the first pass.
1329 (pass_data_ipa_chkp_early_produce_thunks): New.
1330 (pass_ipa_chkp_early_produce_thunks): New.
1331 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
1332 chkp_produce_thunks signature.
1333 (make_pass_ipa_chkp_early_produce_thunks): New.
1334 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
1335 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
1336 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
1338 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1340 * cgraph.c (cgraph_node::dump): Dump profile flags.
1342 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
1345 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
1346 reg appear first in the parallel.
1348 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1350 * ipa-reference.c (set_reference_optimization_summary,
1351 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
1353 (ignore_module_statics): New static var.
1354 (propagate_bits): If ipa-reference is disabled, do not look into local
1356 (analyze_function): Disable analysis when ipa_reference is disabled.
1357 (generate_summary): Do not dump when reference is disabled;
1358 collect vars accessed from functions with ipa-reference disabled.
1359 (get_read_write_all_from_node): When ipa-reference is disabled, use the
1361 (gate): Enable for LTO.
1362 (ignore_edge_p): New function.
1363 (propagate): Skip functions w/o ipa-reference analysis.
1364 * optc-save-gen.awk: Handle optimize_debug correctly.
1365 * opth-gen.awk: Likewise.
1366 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
1367 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
1368 fira-share-save-slots, fira-share-spill-slots,
1369 fmodulo-sched-allow-regmoves, fpartial-inlining,
1370 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
1371 ftracer, ftree-parallelize-loops, fassociative-math,
1372 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
1374 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
1375 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
1377 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
1380 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1383 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
1385 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
1387 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
1389 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
1390 Remove duplicate option listings.
1392 2015-01-18 Felix Yang <felix.yang@huawei.com>
1394 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
1395 (autofdo_source_profile::get_callsite_total_count,
1396 function_instance::get_function_instance_by_decl,
1397 string_table::get_index, string_table::get_index_by_decl,
1398 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
1399 Fix comment typos. Reformatting and minor code rearrangement.
1401 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1403 * config/rs6000/rs6000.md (probe_stack): Delete.
1404 (probe_stack_address): New.
1406 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1408 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
1409 to test for 32-bit ABIs, not !TARGET_POWERPC64.
1411 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1413 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
1414 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
1415 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
1417 (rs6000_libcall_value): Use the new function.
1419 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
1421 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
1423 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
1425 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
1426 implement a more precise life analysis for it during backward scan.
1428 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1430 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
1432 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
1434 PR rtl-optimization/52773
1435 * calls.c (emit_library_call_value): When pushing arguments use
1436 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
1437 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
1438 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
1440 2015-01-17 Jeff Law <law@redhat.com>
1442 PR rtl-optimization/32790
1443 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
1444 not ZERO_EXTEND in SET_DESTs.
1446 2015-01-17 Alan Modra <amodra@gmail.com>
1448 * cprop.c (do_local_cprop): Revert last change.
1450 2015-01-16 DJ Delorie <dj@redhat.com>
1451 Nick Clifton <nickc@redhat.com>
1453 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
1454 (addhi3_real): Likewise. Fix [HL+0] syntax.
1455 (subqi3_real): Likewise.
1456 (subhi3_real): Likewise.
1457 (cbranchqi4_real): Likewise. Allow saddr,#imm.
1458 (cbranchhi4_real): Likewise.
1459 (cbranchhi4_real_inverted): Likewise.
1460 (cbranchsi4_real_lt): Likewise.
1461 (cbranchsi4_real_ge): Likewise.
1462 (cbranchsi4_real_ge): Likewise.
1463 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
1464 (sub<mode>3_virt): Likewise.
1465 (cbranchqi4_virt): Likewise.
1466 (cbranchhi4_virt): Likewise.
1467 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
1468 always use '[reg+imm]' even when imm is zero.
1469 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
1470 (rl78_general_operand): New.
1471 (rl78_nonimmediate_operand): New.
1472 (rl78_nonfar_operand): Use them.
1473 (rl78_nonfar_nonimm_operand): Likewise.
1474 (rl78_stack_based_mem): Fix.
1475 * config/rl78/constraints.md (Ibqi): New.
1480 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
1483 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
1485 * config/rl78/constrains (Qs8): New constraint.
1486 * config/rl78/rl78.c (rl78_flags_already_set): New function.
1487 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
1488 * config/rl78/rl78-real.md (update_Z): New attribute.
1489 Update patterns to set it.
1490 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
1491 shorter compare and branch sequence can be used.
1492 (cbranchhi4_real): Likewise.
1493 (cbranchhi4_real_inverted): Likewise.
1495 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
1496 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
1498 * config/rl78/rl78.c (rl78_get_name_encoding): New.
1499 (rl78_option_override): Allow -mes0 only if C.
1500 (characterize_address): Support subregs of symbol_refs.
1501 (rl78_addr_space_address_mode): Move. Add __near.
1502 (rl78_far_p): Likewise.
1503 (rl78_addr_space_pointer_mode): Likewise.
1504 (rl78_as_legitimate_address): Likewise.
1505 (rl78_addr_space_subset_p): Likewise.
1506 (rl78_addr_space_convert): Likewise.
1507 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
1509 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
1511 (rl78_alloc_physical_registers_op1): Change logic to prefer
1512 symbol[BC] addressing.
1513 (frodata_section): New.
1514 (rl78_asm_init_sections): Initialize it.
1515 (rl78_select_section): Put __far readonly symbols in .frodata.
1516 (rl78_make_type_far): New.
1517 (rl78_insert_attributes): Force all readonly symbols to be
1519 (rl78_asm_out_integer): New.
1520 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
1521 * config/rl78/rl78.opt (-mes0): New.
1523 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
1524 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1525 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1526 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
1527 (rl78_saddr_p): New.
1528 (rl78_output_aligned_common): New.
1529 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
1530 (rl78_handle_saddr_attribute): New.
1531 (rl78_handle_naked_attribute): New.
1532 (rl78_attribute_table): Add saddr.
1533 (rl78_print_operand_1): Don't print '!' on saddr operands.
1534 (rl78_print_operand_1): Strip encodings.
1536 (rl78_strip_name_encoding): New.
1537 (rl78_attrlist_to_encoding): New.
1538 (rl78_encode_section_info): New.
1539 (rl78_asm_init_sections): New.
1540 (rl78_select_section): New.
1541 (rl78_output_labelref): New.
1542 (rl78_output_aligned_common): New.
1543 (rl78_asm_out_integer): New.
1544 (rl78_asm_ctor_dtor): New.
1545 (rl78_asm_constructor): New.
1546 (rl78_asm_destructor): New.
1548 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
1549 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
1550 (transcode_memory_rtx): Update.
1551 (rl78_expand_epilogue): Use A_REG instead of 0.
1553 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1555 * config/arm/arm-protos.h (struct tune_params): New field
1556 sched_autopref_queue_depth.
1557 * config/arm/arm.c (sched-int.h): Include header.
1558 (arm_first_cycle_multipass_dfa_lookahead_guard,)
1559 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
1560 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
1561 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
1562 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
1563 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
1564 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
1565 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
1566 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
1567 * config/arm/t-arm (arm.o): Update.
1568 * haifa-sched.c (update_insn_after_change): Update.
1569 (rank_for_schedule): Use auto-prefetcher model, if requested.
1570 (autopref_multipass_init): New static function.
1571 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
1572 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
1573 variable for debug dumps.
1574 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
1575 (autopref_multipass_dfa_lookahead_guard): New global function that
1576 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
1577 (init_h_i_d): Update.
1578 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
1579 * sched-int.h (enum autopref_multipass_data_status): New const enum.
1580 (autopref_multipass_data_): Structure for auto-prefetcher data.
1581 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
1582 (struct _haifa_insn_data:autopref_multipass_data): New field.
1583 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
1584 (autopref_multipass_dfa_lookahead_guard): Declare.
1586 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1588 * rtlanal.c (get_base_term): Handle SCRATCH.
1590 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1592 * config/aarch64/aarch64.c
1593 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
1594 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1596 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
1597 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1599 2015-01-17 Alan Modra <amodra@gmail.com>
1601 * cprop.c (do_local_cprop): Disallow replacement of fixed
1604 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1607 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
1610 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1612 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
1613 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
1615 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1617 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
1618 * config/arm/thumb1.md: ... Here.
1620 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1622 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
1623 TImode for TARGET_32BIT.
1625 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1627 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
1628 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
1630 (rs6000_abi_word_mode): New function.
1632 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1634 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
1635 instead of UNITS_PER_WORD to describe the size of stack slots.
1637 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1639 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
1640 as rs6000_promote_function_mode. Move comment to there.
1641 (rs6000_promote_function_mode): New function.
1643 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1645 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
1646 -mpowerpc64 is active.
1648 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1651 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
1654 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1656 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
1657 introduced in revision 219724.
1659 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1660 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1663 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
1664 destination is not a GP reg.
1665 (*movdi_aarch64): Likewise.
1667 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
1670 * config/rs6000/default64.h: Revert ISA change.
1672 2015-01-16 Richard Biener <rguenther@suse.de>
1675 * tree-ssa-uninit.c: Include tree-cfg.h.
1676 (MAX_SWITCH_CASES): New define.
1677 (convert_control_dep_chain_into_preds): Handle switch statements.
1678 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
1679 (normalize_one_pred_1): Do not split bit-manipulations.
1682 2015-01-16 Richard Biener <rguenther@suse.de>
1684 PR tree-optimization/64568
1685 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
1686 complex load rewriting for TARGET_MEM_REFs.
1688 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
1690 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
1692 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
1695 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
1697 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
1698 (aarch64_lra_p): Remove.
1700 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1703 * ipa-chkp.h (chkp_instrumentable_p): New.
1704 * ipa-chkp.c: Include tree-inline.h.
1705 (chkp_instrumentable_p): New.
1706 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
1707 Fix processing of not instrumentable functions.
1708 (chkp_versioning): Use chkp_instrumentable_p. Warn about
1709 not instrumentable functions.
1710 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
1711 chkp_instrumentable_p.
1712 * tree-inline.h (copy_forbidden): New.
1713 * tree-inline.c (copy_forbidden): Not static anymore.
1715 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1717 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
1720 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1722 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
1723 type OP_OUT to OP_INOUT.
1725 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1727 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
1728 (high x) y) to y if x and y have the same base.
1730 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1732 * config/arm/cortex-a57.md: New.
1733 * config/aarch64/aarch64.md: Include it.
1734 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
1735 * config/aarch64/aarch64-tune.md: Regenerate.
1737 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
1740 * ccmp.c (expand_ccmp_next): New function.
1741 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
1742 and compare insn sequence.
1743 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
1744 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
1745 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
1746 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
1747 (*ccmp_ior): Changed to ccmp_ior<mode>.
1748 (cmp<mode>): New pattern.
1749 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
1751 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
1753 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
1755 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
1756 _mm256_bsrli_epi128): New.
1757 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
1759 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1761 * expmed.c (store_bit_field_using_insv): Improve warning message.
1762 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
1764 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1766 PR rtl-optimization/64011
1767 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
1768 there is partial overflow.
1770 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1772 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
1774 (nds32_expand_epilogue_v3pop): Likewise.
1775 * config/nds32/nds32.md (sibcall): Define this for sibling call
1777 (sibcall_register): Likewise.
1778 (sibcall_immediate): Likewise.
1779 (sibcall_value): Likewise.
1780 (sibcall_value_register): Likewise.
1781 (sibcall_value_immediate): Likewise.
1782 (sibcall_epilogue): Likewise.
1783 (epilogue): Pass false to indicate this is not a sibcall epilogue.
1784 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
1785 (nds32_expand_epilogue_v3pop): Likewise.
1787 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1789 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
1790 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
1791 (return_internal): New.
1792 (return): Define this named pattern.
1793 (simple_return): Define this named pattern.
1794 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
1795 pattern instead of unspec_volatile_func_return.
1796 (nds32_expand_epilogue_v3pop): Likewise.
1797 (nds32_can_use_return_insn): New function.
1799 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1801 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
1802 * config/nds32/nds32.md (pop25return): New.
1803 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
1804 pop25return pattern.
1806 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1808 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
1809 -mforbid-fp-as-gp, and -mex9 options.
1811 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1813 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
1814 remove -mgp-direct option.
1816 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1818 * doc/invoke.texi (--param early-inlining-insns): Update default value.
1819 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
1821 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1823 * ipa-inline.c (inline_small_functions): Work around hints
1826 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
1829 * doc/invoke.texi (Option Summary): Document new Nios II
1831 (Nios II Options): Likewise.
1832 * config/nios2/nios2.opt: Add -mgpopt= option support.
1833 Modify existing -mgpopt and -mno-gpopt options to be aliases.
1834 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
1835 * config/nios2/nios2.c (nios2_option_override): Adjust
1837 (nios2_in_small_data_p): Return true for explicit small data
1838 sections even with -G0.
1839 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
1842 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1845 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
1847 (inline_call): Fix removal of aliases.
1849 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1851 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
1852 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
1853 * opts.c (common_handle_option): Add -fsanitize=vptr.
1854 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
1855 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
1856 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
1857 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
1858 (ubsan_expand_vptr_ifn): New prototype.
1859 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
1860 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
1861 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
1862 expand_LOOP_VECTORIZED): Make argument nameless, remove
1864 (expand_UBSAN_VPTR): New function.
1865 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
1867 (UBSAN_VPTR): New internal function.
1868 * sanopt.c (tree_map_traits): Renamed to ...
1869 (sanopt_tree_map_traits): ... this.
1870 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
1871 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
1872 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
1873 (maybe_optimize_ubsan_vptr_ifn): New function.
1874 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
1875 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
1877 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
1878 internal calls like pure functions for aliasing, even when they
1879 have other side-effects that prevent making them ECF_PURE.
1880 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
1881 (ubsan_expand_vptr_ifn): New function.
1883 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
1885 PR rtl-optimization/64110
1886 * stmt.c (parse_output_constraint): Process '^' and '$'.
1887 (parse_input_constraint): Ditto.
1888 * lra-constraints.c (process_alt_operands): Process the new
1890 * ira-costs.c (record_reg_classes): Process the new constraint
1892 * genoutput.c (indep_constraints): Add '^' and '$'.
1893 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
1894 * doc/md.texi: Add description of the new constraints.
1896 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1897 Bernd Schmidt <bernds@codesourcery.com>
1898 Cesar Philippidis <cesar@codesourcery.com>
1899 James Norris <jnorris@codesourcery.com>
1900 Tom de Vries <tom@codesourcery.com>
1901 Ilmir Usmanov <i.usmanov@samsung.com>
1902 Dmitry Bocharnikov <dmitry.b@samsung.com>
1903 Evgeny Gavrin <e.gavrin@samsung.com>
1904 Jakub Jelinek <jakub@redhat.com>
1906 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
1907 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
1908 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
1910 * builtins.c: Include "gomp-constants.h".
1911 (expand_builtin_acc_on_device): New function.
1912 (expand_builtin, is_inexpensive_builtin): Handle
1913 BUILT_IN_ACC_ON_DEVICE.
1914 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
1916 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
1918 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
1919 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
1920 i386/intelmic-offload.h.
1921 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
1922 to libgomp and its dependencies.
1923 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
1924 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1925 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
1926 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1927 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1928 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1929 * doc/generic.texi: Update for OpenACC changes.
1930 * doc/gimple.texi: Likewise.
1931 * doc/invoke.texi: Likewise.
1932 * doc/sourcebuild.texi: Likewise.
1933 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
1934 GF_OMP_FOR_KIND_OACC_LOOP.
1935 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
1936 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
1937 GF_OMP_TARGET_KIND_OACC_UPDATE,
1938 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
1940 * gimple.c: Update comments for OpenACC changes.
1941 * gimple.def: Likewise.
1942 * gimple.h: Likewise.
1943 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
1944 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
1945 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
1946 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
1947 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
1949 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
1950 * gimplify.c: Include "gomp-constants.h".
1951 Update comments for OpenACC changes.
1952 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
1953 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
1954 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
1955 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
1956 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1957 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1958 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
1959 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
1960 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1962 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
1963 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1964 OMP_CLAUSE_SET_MAP_KIND.
1965 (gimplify_oacc_cache): New function.
1966 (gimplify_omp_for): Handle OACC_LOOP.
1967 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
1969 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
1970 OACC_EXIT_DATA, OACC_UPDATE.
1971 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
1972 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
1973 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
1974 (gimplify_body): Consider flag_openacc next to flag_openmp.
1975 * lto-streamer-out.c: Include "gomp-constants.h".
1976 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
1977 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
1978 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
1979 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
1980 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
1981 (BUILT_IN_ACC_ON_DEVICE): New builtins.
1982 * omp-low.c: Include "gomp-constants.h".
1983 Update comments for OpenACC changes.
1984 (struct omp_context): Add reduction_map, gwv_below, gwv_this
1986 (extract_omp_for_data, use_pointer_for_field, install_var_field)
1987 (new_omp_context, delete_omp_context, scan_sharing_clauses)
1988 (create_omp_child_function, scan_omp_for, scan_omp_target)
1989 (check_omp_nesting_restrictions, lower_reduction_clauses)
1990 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
1991 Update for OpenACC changes.
1992 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
1993 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
1994 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
1995 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
1996 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
1997 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
1999 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2000 Handle GF_OMP_FOR_KIND_OACC_LOOP.
2001 (expand_omp_target, lower_omp_target): Handle
2002 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2003 GF_OMP_TARGET_KIND_OACC_UPDATE,
2004 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
2005 GF_OMP_TARGET_KIND_OACC_DATA.
2006 (pass_expand_omp::execute, execute_lower_omp)
2007 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
2009 (offload_symbol_decl): New variable.
2010 (oacc_get_reduction_array_id, oacc_max_threads)
2011 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
2012 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
2013 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
2014 (oacc_gimple_assign, oacc_initialize_reduction_data)
2015 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
2017 (is_targetreg_ctx): Remove function.
2018 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
2019 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
2020 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2021 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
2022 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
2023 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
2024 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
2025 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
2026 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
2027 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
2028 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
2029 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
2030 * tree-core.h: Update comments for OpenACC changes.
2031 (enum omp_clause_map_kind): Remove.
2032 (struct tree_omp_clause): Change type of map_kind member from enum
2033 omp_clause_map_kind to unsigned char.
2034 * tree-inline.c: Update comments for OpenACC changes.
2035 * tree-nested.c: Likewise. Include "gomp-constants.h".
2036 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
2037 (convert_tramp_reference_stmt, convert_gimple_call): Update for
2038 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2039 OMP_CLAUSE_SET_MAP_KIND.
2040 * tree-pretty-print.c: Include "gomp-constants.h".
2041 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
2042 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
2043 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
2044 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
2045 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2046 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
2047 instead of OMP_CLAUSE_MAP_*.
2048 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
2049 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
2050 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2051 * tree-streamer-in.c: Include "gomp-constants.h".
2052 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
2053 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
2054 * tree-streamer-out.c: Include "gomp-constants.h".
2055 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
2057 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
2058 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
2059 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
2060 * tree.c (omp_clause_num_ops): Update accordingly.
2061 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
2063 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
2064 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
2065 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
2066 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
2067 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
2068 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
2069 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
2070 (OMP_CLAUSE_SET_MAP_KIND): New macro.
2071 * varpool.c (varpool_node::get_create): Consider flag_openacc next
2073 * config/i386/intelmic-offload.h: New file.
2074 * config/nvptx/offload.h: Likewise.
2076 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2078 * explow.h: Remove duplicate contents.
2079 * dojump.h: Likewise.
2081 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
2083 * arm.c (arm_xgene_tune): Add default initializer for instruction
2086 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2090 * ipa.c (symbol_table::remove_unreachable_nodes):
2091 Do not put abstract origins into boundary.
2093 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
2095 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
2096 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
2098 2015-01-15 Steve Ellcey <sellcey@mips.com>
2100 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
2101 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
2102 builtins.def, and chkp-builtins.def.
2104 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
2106 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
2109 2015-01-15 Richard Biener <rguenther@suse.de>
2111 PR tree-optimization/61743
2112 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
2113 information on PHIs for some simple cases.
2115 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2117 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
2119 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
2120 * config/arm/arm-cores.def (xgene1): New entry.
2121 * config/arm/arm-tables.opt: Regenerate.
2122 * config/arm/arm-tune.md: Regenerate.
2123 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
2125 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2127 * tree-if-conv.c: Include hash-map.h.
2128 (aggressive_if_conv): New variable.
2129 (fold_build_cond_expr): Add simplification of non-zero condition.
2130 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
2131 destination block is not always executed.
2132 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
2133 than two predecessors if AGGRESSIVE_IF_CONV is true.
2134 (if_convertible_stmt_p): Fix commentary.
2135 (all_preds_critical_p): New function.
2136 (has_pred_critical_p): New function.
2137 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
2138 BB can have more than two predecessors and all incoming edges can be
2140 (predicate_bbs): Skip predication for loop exit block, use build2_loc
2141 to compute predicate for true edge.
2142 (find_phi_replacement_condition): Delete this function.
2143 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
2144 Allow interchange PHI arguments if EXTENDED is false.
2145 Change check that block containing reduction statement candidate
2146 is predecessor of phi-block since phi may have more than two arguments.
2147 (phi_args_hash_traits): New helper structure.
2148 (struct phi_args_hash_traits): New type.
2149 (phi_args_hash_traits::hash): New function.
2150 (phi_args_hash_traits::equal_keys): New function.
2151 (gen_phi_arg_condition): New function.
2152 (predicate_scalar_phi): Add handling of phi nodes with more than two
2153 arguments, delete COND and TRUE_BB arguments, insert body of
2154 find_phi_replacement_condition to predicate ordinary phi nodes.
2155 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
2156 delete call of find_phi_replacement_condition and invoke
2157 predicate_scalar_phi with two arguments.
2158 (insert_gimplified_predicates): Add assert that non-predicated block
2159 don't have statements to insert.
2160 (ifcvt_split_critical_edges): New function.
2161 (ifcvt_split_def_stmt): Likewise.
2162 (ifcvt_walk_pattern_tree): Likewise.
2163 (stmt_is_root_of_bool_pattern): Likewise.
2164 (ifcvt_repair_bool_pattern): Likewise.
2165 (ifcvt_local_dce): Likewise.
2166 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
2167 is copy of inner or outer loop force_vectorize field, invoke
2168 ifcvt_split_critical_edges, ifcvt_local_dce and
2169 ifcvt_repair_bool_pattern for aggressive if-conversion.
2171 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
2173 * config/aarch64/aarch64.md: Include xgene1.md.
2174 * config/aarch64/xgene1.md: New file.
2176 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2178 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
2179 xgene1 (APM XGene-1) core definition.
2180 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
2181 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
2182 * doc/invoke.texi: Document -mcpu=xgene1.
2184 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2186 * dojump.h: New header file.
2187 * explow.h: Likewise.
2188 * expr.h: Remove includes.
2189 Move expmed.c prototypes to expmed.h.
2190 Move dojump.c prototypes to dojump.h.
2191 Move alias.c prototypes to alias.h.
2192 Move explow.c prototypes to explow.h.
2193 Move calls.c prototypes to calls.h.
2194 Move emit-rtl.c prototypes to emit-rtl.h.
2195 Move varasm.c prototypes to varasm.h.
2196 Move stmt.c prototypes to stmt.h.
2197 (saved_pending_stack_adjust): Move to dojump.h.
2198 (adjust_address): Move to explow.h.
2199 (adjust_address_nv): Move to emit-rtl.h.
2200 (adjust_bitfield_address): Likewise.
2201 (adjust_bitfield_address_size): Likewise.
2202 (adjust_bitfield_address_nv): Likewise.
2203 (adjust_automodify_address_nv): Likewise.
2204 * explow.c (expr_size): Move to expr.c.
2205 (int_expr_size): Likewise.
2206 (tree_expr_size): Likewise.
2207 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2208 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2209 * genemit.c (main): Generate includes statistics.h, real.h,
2210 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
2212 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
2213 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
2214 explow.h, emit-rtl.h, stmt.h.
2215 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
2216 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
2217 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
2218 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
2219 emit-rtl.h, varasm.h, stmt.h.
2220 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
2221 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
2222 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
2223 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
2224 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2225 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
2226 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
2227 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
2228 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
2229 tm.h tree.h varasm.h vec.h wide-int.h.
2230 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2231 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2232 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
2233 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
2234 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
2235 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
2236 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
2237 * loop-iv.c: Likewise.
2238 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
2239 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
2240 statistics.h stmt.h tree.h varasm.h wide-int.h.
2241 * lra-constraints.c: Likewise.
2242 * lra-eliminations.c: Likewise.
2243 * lra-lives.c: Likewise.
2244 * lra-remat.c: Likewise.
2245 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2246 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
2247 statistics.h stmt.h tree.h varasm.h wide-int.h.
2248 * hw-doloop.c: Likewise.
2249 * ira-color.c: Likewise.
2250 * ira-emit.c: Likewise.
2251 * loop-doloop.c: Likewise.
2252 * loop-invariant.c: Likewise.
2253 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2254 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
2255 statistics.h stmt.h tree.h varasm.h wide-int.h.
2256 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
2257 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
2258 statistics.h stmt.h tree.h varasm.h wide-int.h.
2259 * combine-stack-adj.c: Likewise.
2262 * ifcvt.c: Likewise.
2263 * ira-costs.c: Likewise.
2265 * lra-coalesce.c: Likewise.
2266 * lra-spills.c: Likewise.
2267 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2268 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
2269 stmt.h varasm.h wide-int.h.
2270 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2271 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2273 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
2274 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
2275 statistics.h stmt.h varasm.h wide-int.h.
2276 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
2277 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
2278 varasm.h wide-int.h.
2279 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
2280 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2281 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
2282 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
2283 statistics.h stmt.h.
2284 * config/tilepro/tilepro.c: Likewise.
2285 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
2286 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
2287 * config/pdp11/pdp11.c: Likewise.
2288 * config/xtensa/xtensa.c: Likewise.
2289 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
2290 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2292 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2293 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2294 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
2295 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2296 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2297 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
2298 * rtl-chkp.c: Likewise.
2299 * tree-chkp-opt.c: Likewise.
2300 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
2301 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2302 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
2303 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2304 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2305 statistics.h stmt.h.
2306 * tree-vect-data-refs.c: Likewise.
2307 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
2308 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2309 rtl.h statistics.h stmt.h varasm.h.
2310 * internal-fn.c: Likewise.
2311 * ipa-icf-gimple.c: Likewise.
2312 * lto-section-out.c: Likewise.
2313 * tree-data-ref.c: Likewise.
2314 * tree-nested.c: Likewise.
2315 * tree-outof-ssa.c: Likewise.
2316 * tree-predcom.c: Likewise.
2317 * tree-pretty-print.c: Likewise.
2318 * tree-scalar-evolution.c: Likewise.
2319 * tree-ssa-strlen.c: Likewise.
2320 * tree-vect-loop.c: Likewise.
2321 * tree-vect-patterns.c: Likewise.
2322 * tree-vect-slp.c: Likewise.
2323 * tree-vect-stmts.c: Likewise.
2325 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2326 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
2328 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
2329 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2330 statistics.h stmt.h varasm.h.
2331 * loop-unroll.c: Likewise.
2332 * ubsan.c: Likewise.
2333 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
2334 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
2336 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2337 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
2338 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
2339 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2340 statistics.h stmt.h.
2341 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
2342 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2343 statistics.h stmt.h varasm.h.
2344 * gimple-match-head.c: Likewise.
2345 * lto-cgraph.c: Likewise.
2346 * lto-section-in.c: Likewise.
2347 * lto-streamer-in.c: Likewise.
2348 * lto-streamer-out.c: Likewise.
2349 * tree-affine.c: Likewise.
2350 * tree-cfg.c: Likewise.
2351 * tree-cfgcleanup.c: Likewise.
2352 * tree-if-conv.c: Likewise.
2353 * tree-into-ssa.c: Likewise.
2354 * tree-ssa-alias.c: Likewise.
2355 * tree-ssa-copyrename.c: Likewise.
2356 * tree-ssa-dse.c: Likewise.
2357 * tree-ssa-forwprop.c: Likewise.
2358 * tree-ssa-live.c: Likewise.
2359 * tree-ssa-math-opts.c: Likewise.
2360 * tree-ssa-pre.c: Likewise.
2361 * tree-ssa-sccvn.c: Likewise.
2362 * tree-tailcall.c: Likewise.
2363 * tree-vect-generic.c: Likewise.
2364 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2365 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
2366 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2367 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
2368 * varasm.c: Likewise.
2369 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2370 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
2372 * init-regs.c: Likewise.
2374 * omp-low.c: Likewise.
2375 * stack-ptr-mod.c: Likewise.
2376 * tree-ssa-reassoc.c: Likewise.
2377 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2378 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
2380 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2381 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
2382 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2383 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
2384 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2385 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
2386 * tree-ssa-phiopt.c: Likewise.
2387 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2388 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2389 * config/fr30/fr30.c: Likewise.
2390 * config/frv/frv.c: Likewise.
2392 * final.c: Likewise.
2393 * optabs.c: Likewise.
2394 * passes.c: Likewise.
2395 * simplify-rtx.c: Likewise.
2397 * toplev.c: Likewise.
2398 * var-tracking.c: Likewise.
2399 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2400 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2401 * lower-subreg.c: Likewise.
2402 * postreload-gcse.c: Likewise.
2404 * reginfo.c: Likewise.
2405 * store-motion.c: Likewise.
2406 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2407 fixed-value.h hashtab.h real.h stmt.h varasm.h.
2408 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2409 fixed-value.h hashtab.h statistics.h stmt.h.
2410 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2411 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2412 * except.c: Likewise.
2413 * explow.c: Likewise.
2414 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2415 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
2417 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2418 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
2419 * tree-ssa-structalias.c: Likewise.
2420 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2421 fixed-value.h insn-config.h real.h statistics.h.
2422 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2423 fixed-value.h insn-config.h real.h statistics.h stmt.h.
2424 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2425 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2426 * cfgbuild.c: Likewise.
2427 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2428 fixed-value.h real.h rtl.h statistics.h stmt.h.
2429 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2430 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2431 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2432 fixed-value.h real.h statistics.h stmt.h.
2433 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2434 fixed-value.h real.h statistics.h stmt.h varasm.h.
2435 * cprop.c: Likewise.
2436 * modulo-sched.c: Likewise.
2437 * postreload.c: Likewise.
2438 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2439 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
2440 statistics.h stmt.h varasm.h.
2441 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
2442 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2443 rtl.h statistics.h stmt.h varasm.h.
2444 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
2445 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
2447 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2448 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
2450 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
2451 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
2453 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
2454 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2455 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2456 function.h real.h statistics.h stmt.h varasm.h.
2457 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2458 insn-config.h real.h statistics.h stmt.h.
2459 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2460 statistics.h stmt.h.
2461 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
2462 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
2463 statistics.h stmt.h varasm.h.
2464 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
2465 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
2466 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2467 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
2468 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
2469 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2470 statistics.h stmt.h varasm.h.
2471 * ipa-polymorphic-call.c: Likewise.
2472 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
2473 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2474 statistics.h stmt.h.
2475 * config/c6x/c6x.c: Likewise.
2476 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
2477 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2478 statistics.h stmt.h varasm.h.
2479 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
2480 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
2482 * ipa-split.c: Likewise.
2483 * tree-eh.c: Likewise.
2484 * tree-ssa-dce.c: Likewise.
2485 * tree-ssa-loop-niter.c: Likewise.
2486 * tree-vrp.c: Likewise.
2487 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
2488 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
2490 * config/nds32/nds32-fp-as-gp.c: Likewise.
2491 * config/nds32/nds32-intrinsic.c: Likewise.
2492 * config/nds32/nds32-isr.c: Likewise.
2493 * config/nds32/nds32-md-auxiliary.c: Likewise.
2494 * config/nds32/nds32-memory-manipulation.c: Likewise.
2495 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2496 * config/nds32/nds32-predicates.c: Likewise.
2497 * config/nds32/nds32.c: Likewise.
2498 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
2499 fixed-value.h hashtab.h real.h statistics.h.
2500 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
2501 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2502 * config/arm/arm.c: Likewise.
2503 * config/avr/avr.c: Likewise.
2504 * config/bfin/bfin.c: Likewise.
2505 * config/h8300/h8300.c: Likewise.
2506 * config/i386/i386.c: Likewise.
2507 * config/ia64/ia64.c: Likewise.
2508 * config/iq2000/iq2000.c: Likewise.
2509 * config/m32c/m32c.c: Likewise.
2510 * config/m32r/m32r.c: Likewise.
2511 * config/m68k/m68k.c: Likewise.
2512 * config/mcore/mcore.c: Likewise.
2513 * config/mep/mep.c: Likewise.
2514 * config/mips/mips.c: Likewise.
2515 * config/mn10300/mn10300.c: Likewise.
2516 * config/moxie/moxie.c: Likewise.
2517 * config/pa/pa.c: Likewise.
2518 * config/rl78/rl78.c: Likewise.
2519 * config/rx/rx.c: Likewise.
2520 * config/s390/s390.c: Likewise.
2521 * config/sh/sh.c: Likewise.
2522 * config/sparc/sparc.c: Likewise.
2523 * config/spu/spu.c: Likewise.
2524 * config/stormy16/stormy16.c: Likewise.
2525 * config/v850/v850.c: Likewise.
2526 * config/vax/vax.c: Likewise.
2527 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
2528 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2529 * config/msp430/msp430.c: Likewise.
2530 * predict.c: Likewise.
2531 * value-prof.c: Likewise.
2532 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
2533 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
2534 * config/microblaze/microblaze.c: Likewise.
2535 * config/nios2/nios2.c: Likewise.
2536 * config/rs6000/rs6000.c: Likewise.
2537 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2538 insn-config.h real.h rtl.h statistics.h stmt.h.
2539 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2540 insn-config.h real.h statistics.h stmt.h.
2541 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
2542 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2543 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
2544 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2545 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
2546 fixed-value.h real.h statistics.h stmt.h.
2547 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
2548 fixed-value.h statistics.h stmt.h.
2549 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
2552 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2554 * gengtype.c (create_user_defined_type): Workaround
2555 -Wmaybe-uninitialized false positives.
2556 * cse.c (fold_rtx): Likewise.
2557 * loop-invariant.c (gain_for_invariant): Likewise.
2559 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
2561 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
2562 set the memory attributes in all cases but clear MEM_EXPR if need be.
2564 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2566 PR tree-optimization/64434
2567 * cfgexpand.c (reorder_operands): New function.
2568 (expand_gimple_basic_block): Insert call of reorder_operands if
2571 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
2573 * config/mips/micromips.md (*swp): Remove explicit parallel.
2574 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
2575 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
2576 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
2577 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
2578 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
2579 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
2580 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
2581 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
2582 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
2583 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
2584 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
2585 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
2586 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
2587 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
2588 (mips_wrdsp): Likewise.
2589 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
2591 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
2592 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
2593 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
2594 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
2595 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
2596 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
2597 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
2598 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
2599 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
2601 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2603 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
2604 (mips_print_operand): Support 'y' to print exact log2 in decimal
2606 * config/mips/mips.h (ISA_HAS_LSA): New define.
2607 (ISA_HAS_DLSA): Likewise.
2608 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
2609 * config/mips/predicates.md (const_immlsa_operand): New predicate.
2611 2015-01-15 Martin Liska <mliska@suse.cz>
2614 * optc-save-gen.awk: Add support for array types.
2616 2015-01-15 Richard Biener <rguenther@suse.de>
2619 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
2620 for MEM_REF access functions with the same base can never partially
2623 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
2625 * common.opt: New option -fstack-protector-explicit.
2626 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
2627 (stack_protect_decl_phase): Handle stack_protect attribute for
2628 explicit stack protection requests.
2629 (expand_used_vars): Similarly.
2630 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
2631 * doc/extend.texi: Add documentation for "stack_protect" attribute.
2632 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
2634 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
2637 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
2639 (sh_extending_set_of_reg): New struct.
2640 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
2641 sh_remove_reg_dead_or_unused_notes): New Declarations.
2642 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
2643 sh_find_extending_set_of_reg, sh_split_tst_subregs,
2644 sh_extending_set_of_reg::use_as_extended_reg): New functions.
2645 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
2646 convert to insn_and_split and use new function sh_split_tst_subregs.
2648 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
2650 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
2652 (Optimization Options): Move -fuse-ld documentation to...
2653 (Link Options): ...here.
2655 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2657 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
2659 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
2660 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
2661 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
2662 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
2663 instead of ZR for the memory operand of LL/SC.
2664 (compare_and_swap_12, sync_add<mode>): Likewise.
2665 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
2666 (sync_new_<optab>_12, sync_nand_12): Likewise.
2667 (sync_old_nand_12, sync_new_nand_12): Likewise.
2668 (sync_sub<mode>, sync_old_add<mode>): Likewise.
2669 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
2670 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
2671 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
2672 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
2673 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
2674 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
2675 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
2676 * doc/md.texi (ZC): Update description.
2678 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2680 * builtins.c (expand_builtin_atomic_exchange): Remove error when
2681 memory model is CONSUME.
2682 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
2683 expand_builtin_atomic_store): Change invalid memory model errors to
2685 (expand_builtin_atomic_clear): Change invalid model errors to warnings
2686 and issue warning for CONSUME.
2688 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
2690 * lto-cgraph: Update function comments for
2691 lto_symtab_encoder_encode_*.
2693 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2695 * Makefile.in (site.exp): Do not set ENABLE_LTO.
2697 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2699 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
2700 * lto-cgraph.c (select_what_to_stream): Remove argument, use
2701 lto_stream_offload_p instead.
2702 * lto-streamer.h (select_what_to_stream): Remove argument.
2703 * passes.c (ipa_write_summaries): Likewise.
2704 * tree-pass.h (ipa_write_summaries): Likewise.
2706 2015-01-14 Richard Biener <rguenther@suse.de>
2708 PR tree-optimization/59354
2709 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
2710 groups larger than the slp group size as having gaps.
2712 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2715 * builtins.c (get_memmodel): Promote consume to acquire always.
2717 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2720 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
2723 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2726 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
2728 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
2729 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
2730 AVX512VBMI, as it implies AVX512BW.
2732 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2735 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
2736 (vec_unpacks_hi_v16sf): Ditto.
2738 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2740 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
2743 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2745 * doc/invoke.texi (mapcs): Mention deprecation.
2746 (mapcs-frame): Likewise.
2748 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2751 * config/arm/arm.c (callee_saved_reg_p): Define.
2752 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
2753 register is callee saved instead of !call_used_regs[reg].
2754 (thumb1_compute_save_reg_mask): Likewise.
2756 2015-01-14 Hale Wang <hale.wang@arm.com>
2758 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
2761 2015-01-14 Richard Biener <rguenther@suse.de>
2764 * tree-inline.c (insert_debug_decl_map): Check destination
2765 function MAY_HAVE_DEBUG_STMTS.
2766 (insert_init_debug_bind): Likewise.
2767 (insert_init_stmt): Remove redundant check.
2768 (remap_gimple_stmt): Drop debug stmts if the destination
2769 function has var-tracking assignments disabled.
2771 2015-01-14 Martin Liska <mliska@suse.cz>
2773 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
2774 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
2776 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2779 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
2780 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
2782 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2784 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
2785 level from an ARCH; do not inject the default.
2786 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
2787 MIPS_ISA_LEVEL_SPEC.
2788 (MIPS_ISA_NAN2008_SPEC): Update comment.
2789 (BASE_DRIVER_SELF_SPECS): Likewise.
2790 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
2791 MIPS_DEFAULT_ISA_LEVEL_SPEC.
2792 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
2793 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
2794 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
2796 2015-01-14 Richard Biener <rguenther@suse.de>
2798 PR tree-optimization/64493
2799 PR tree-optimization/64495
2800 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
2801 assign the proper vectorized PHI to the inner loop exit PHIs.
2803 2015-01-14 Joey Ye <joey.ye@arm.com>
2805 * config/arm/arm.c (arm_compute_save_reg_mask):
2806 Do not save lr in case of tail call.
2807 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
2809 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
2811 * tree-vrp.c (check_array_ref): Emit more warnings
2812 for warn_array_bounds >= 2.
2813 * common.opt: New option -Warray-bounds=.
2814 * doc/invoke.texi: Document -Warray-bounds=.
2816 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
2818 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
2819 (mforbid-fp-as-gp): Remove.
2821 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
2822 (nds32_symbol_load_store_p): Remove.
2823 (nds32_fp_as_gp_check_available): Clean up implementation.
2824 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
2826 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
2827 fp-as-gp and ex9 cases.
2829 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2831 * tree-profile.c (init_ic_make_global_vars): Drop workaround
2832 for bintuils bug 14342.
2833 (init_ic_make_global_vars): Likewise.
2834 (gimple_init_edge_profiler): Likewise.
2835 (gimple_gen_ic_func_profiler): Likewise.
2837 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2839 * ipa-inline.c (inline_small_functions): Swap the operands in
2842 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2845 * ipa-inline-analysis.c (node_growth_cache): Remove.
2846 (initialize_growth_caches): Do not initialize it.
2847 (free_growth_caches): Do not free it.
2848 (do_estimate_growth): Rename to ...
2849 (estimate_growth): ... this one; drop growth cache code.
2850 (growth_likely_positive): Always go the heuristics way.
2851 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
2852 (reset_edge_caches): Do not reset node growth.
2853 (heap_edge_removal_hook): Do not maintain cache.
2854 (inline_small_functions): Likewise; strenghten sanity check.
2855 (ipa_inline): Do not maintain caches.
2856 * ipa-inline.h (node_growth_cache): Remove.
2857 (do_estimate_growth): Remove to ...
2858 (estimate_growth): this one; remove inline version.
2859 (reset_node_growth_cache): Remove.
2861 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2864 * ipa-inline.c (inline_small_functions): Update callee keys after
2865 resolving speculation
2866 (inline_small_functions): Always check monotonicity of the queue.
2868 2015-01-13 Marek Polacek <polacek@redhat.com>
2871 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
2873 2015-01-13 Jakub Jelinek <jakub@redhat.com>
2875 PR rtl-optimization/64286
2876 * ree.c (combine_reaching_defs): Move part of comment earlier,
2877 remove !SCALAR_INT_MODE_P check.
2878 (add_removable_extension): Don't add vector mode
2879 extensions if all uses of the source register aren't the same
2882 2015-01-13 Renlin Li <renlin.li@arm.com>
2884 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
2885 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
2887 2015-01-13 Martin Liska <mliska@suse.cz>
2889 * ipa-icf.c (sem_function::equals_private): Call new functions
2890 cl_target_option_print_diff and cl_optimization_print_diff.
2891 * optc-save-gen.awk (cl_target_option_print_diff): New function.
2892 (cl_optimization_print_diff): Likewise.
2893 * opth-gen.awk: Likewise.
2895 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
2897 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
2898 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
2899 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
2900 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
2901 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
2902 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
2904 2015-01-13 Andrew Pinski <apinski@cavium.com>
2906 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
2907 instead of src mode.
2909 2015-01-13 Richard Biener <rguenther@suse.de>
2912 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
2915 2015-01-13 Andrew Pinski <apinski@cavium.com>
2917 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
2919 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2921 2015-01-13 Jakub Jelinek <jakub@redhat.com>
2924 * cfgexpand.c (expand_computed_goto): Don't call
2925 convert_memory_address here.
2927 2015-01-13 Richard Biener <rguenther@suse.de>
2929 PR tree-optimization/64406
2930 * tree-loop-distibution.c (pass_loop_distribution::execute):
2931 Reset the SCEV hashtable if we distributed anything.
2933 2015-01-13 Richard Biener <rguenther@suse.de>
2935 PR tree-optimization/64404
2936 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
2937 SLP types for CSEd loads.
2939 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2941 PR tree-optimization/64436
2942 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
2943 merge of two symbolic numbers for a bitwise OR to ...
2944 (perform_symbolic_merge): This. Also fix computation of the range and
2945 end of the symbolic number corresponding to the result of a bitwise OR.
2947 2015-01-13 Richard Biener <rguenther@suse.de>
2949 PR tree-optimization/64568
2950 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
2951 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
2953 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2955 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
2956 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
2958 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2960 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
2961 target-specific symbol_ref flag.
2962 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
2963 resides in rodata section.
2964 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
2965 (nds32_encode_section_info): New function.
2967 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2969 * config/nds32/nds32.md (call): Use pseudo instruction bal which
2970 clobbers TA_REGNUM if large code model is specified.
2971 (call_register): Likewise.
2972 (call_immediate): Likewise.
2973 (call_value): Likewise.
2974 (call_value_register): Likewise.
2975 (call_value_immediate): Likewise.
2977 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2979 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
2980 (TARGET_CMODEL_MEDIUM): New macro.
2981 (TARGET_CMODEL_LARGE): New macro.
2982 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
2983 code model setting in assembly code.
2985 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2987 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
2988 Remove MASK_GP_DIRECT flag.
2989 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
2990 one of the multilib default options.
2991 * config/nds32/nds32.opt (mgp-direct): Remove.
2992 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
2993 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
2995 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2997 * config/nds32/nds32.opt (mcmodel): Add new option.
2998 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
2999 to describe code model.
3001 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
3004 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
3006 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
3008 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
3009 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
3010 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
3011 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
3012 __builtin_sh_set_fpscr.
3014 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3016 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
3017 after a funtion name just to indicate it is a function.
3018 ([-fsanitize-undefined-trap-on-error]): Likewise.
3019 ([-fdbg-cnt=]): Likewise.
3020 ([-mmemcpy]): Likewise.
3021 ([-mflush-func]): Likewise.
3022 ([-msynci]): Likewise.
3024 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3026 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
3029 2015-01-12 Jakub Jelinek <jakub@redhat.com>
3031 PR tree-optimization/64563
3032 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
3033 instead of != VR_VARYING.
3036 * config/i386/i386.c (ix86_expand_prologue): Add
3037 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
3039 PR tree-optimization/64454
3040 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
3041 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
3042 for signed or [0, op1 - 1] for unsigned modulo.
3043 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3044 even if op1 does not satisfy integer_pow2p.
3047 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
3049 2015-01-12 Jeff Law <law@redhat.com>
3052 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
3053 (trunchiqi2, truncsihi2): Similarly.
3055 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
3056 rather than calling F.
3058 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3060 * tsan.c (instrument_expr): Use force_gimple_operand.
3061 Use may_be_nonaddressable_p instead of is_gimple_addressable.
3063 2015-01-12 Richard Biener <rguenther@suse.de>
3065 PR tree-optimization/64530
3066 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
3069 2015-01-12 Richard Biener <rguenther@suse.de>
3072 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
3075 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3077 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
3078 Cortex-A17 tuning parameters.
3079 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
3081 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3083 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
3084 * config/arm/arm.c (arm_macro_fusion_p): New function.
3085 (arm_macro_fusion_pair_p): Likewise.
3086 (TARGET_SCHED_MACRO_FUSION_P): Define.
3087 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3088 (ARM_FUSE_NOTHING): Likewise.
3089 (ARM_FUSE_MOVW_MOVT): Likewise.
3090 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
3091 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
3092 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
3093 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
3094 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
3095 arm_cortex_a5_tune): Specify fuseable_ops value.
3097 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
3100 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
3101 test for PIE with copy reloc.
3102 * configure: Regenerated.
3104 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3106 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
3108 (arm_tls_descseq_addr): Likewise.
3109 (arm_gen_movmemqi): Likewise.
3110 (arm_expand_epilogue_apcs_frame): Likewise.
3111 (arm_expand_epilogue): Likewise.
3112 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
3115 2015-01-12 Martin Liska <mliska@suse.cz>
3118 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
3119 volatility for correct operands.
3121 2015-01-12 Martin Liska <mliska@suse.cz>
3123 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3124 that a function is not leaf.
3125 (sem_function::compare_polymorphic_p): Likewise.
3127 2015-01-12 Martin Liska <mliska@suse.cz>
3129 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3130 that a function is not leaf.
3131 (sem_function::compare_polymorphic_p): Likewise.
3133 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3135 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
3136 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
3137 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
3138 fold-const.h, tree-check.h.
3140 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3144 * ipa-inline.c (compute_uninlined_call_time,
3145 compute_inlined_call_time): Use counts for extra precision when
3147 (big_speedup_p): Fix formating.
3148 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
3149 (relative_time_benefit): Remove.
3150 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
3151 merge guessed and read profile paths.
3152 (inline_small_functions): Count only !optimize_size functions into
3153 initial size; be more lax about sanity check when profile is used;
3154 be sure to update inlined function profile when profile is read.
3156 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3159 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
3160 cost when edge becomes direct.
3161 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
3162 is resolved or when introducing new speculation.
3164 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
3168 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
3169 '||' to fix typo issue.
3171 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
3172 accept and return NULL.
3174 2015-01-12 Martin Liska <mliska@suse.cz>
3176 * cgraph.c (cgraph_edge::remove_callee): Move function to header
3177 file for being inlined.
3178 (cgraph_set_edge_callee): Delete.
3179 (cgraph_edge::redirect_callee): Move function to header file
3181 (cgraph_edge::make_direct): Use new function.
3182 (cgraph_edge::dump_edge_flags): New function created from
3183 static dump_edge_flags function.
3184 (cgraph_node::dump): Use new function.
3185 (cgraph_edge::verify_count_and_frequency): New function created
3186 from verify_edge_count_and_frequency.
3187 (cgraph_edge::verify_corresponds_to_fndecl): New function created
3188 from verify_edge_corresponds_to_fndecl.
3189 (verify_edge_corresponds_to_fndecl): Delete.
3190 (cgraph_node::verify_node): Use new function.
3191 * cgraph.h (cgraph_edge::set_callee): New function.
3192 (cgraph_edge::dump_edge_flags): Likewise.
3193 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
3195 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
3197 * ipa-utils.c (estimate_function_body_sizes): Do not
3198 free node params when called late with early=true.
3200 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
3202 * doc/md.texi (Instruction Patterns): Rewrite text for
3204 (Example): Likewise.
3206 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
3208 * doc/invoke.texi (Option Summary): Break long lines.
3209 [(-fdiagnostics-color)]: Put long literal in @smallexample
3211 [(-fsanitize-recover)]: Likewise.
3212 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
3213 [(-ffast-math)]: Likewise.
3214 [(--param max-inline-insns-recursive)]: Likewise.
3215 [(--param max-inline-recursive-depth)]: Likewise.
3216 [(-mno-text-section-literals)]: Likewise.
3218 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3220 * doc/install.texi: Update for libgomp being renamed from "GNU
3221 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
3223 * doc/sourcebuild.texi: Likewise.
3225 2015-01-10 Anthony Green <green@moxielogic.com>
3227 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
3228 mul.x availability for moxiebox configuration.
3230 2015-01-09 Anthony Green <green@moxielogic.com>
3232 * config/moxie/moxie.md: Tabify assembly output.
3234 2015-01-09 Anthony Green <green@moxielogic.com>
3236 * config/moxie/moxie.md (CC_REG): Correct register definition.
3238 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
3240 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
3241 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
3244 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3246 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
3248 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
3249 Jakub Jelinek <jakub@redhat.com>
3252 * lto-streamer.h (lto_stream_offload_p): New declaration.
3253 * lto-streamer.c (lto_stream_offload_p): New variable.
3254 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
3255 at the same time as section_name_prefix.
3256 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
3257 if lto_stream_offload_p.
3258 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
3259 stream TREE_TARGET_OPTION if lto_stream_offload_p.
3260 (write_ts_function_decl_tree_pointers): Don't
3261 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
3262 * tree-streamer-in.c (unpack_value_fields): Don't stream
3263 TREE_TARGET_OPTION in if ACCEL_COMPILER.
3264 (lto_input_ts_function_decl_tree_pointers): Don't stream
3265 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
3266 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
3267 instead of section_name_prefix string comparisons.
3269 2015-01-09 Jakub Jelinek <jakub@redhat.com>
3271 PR rtl-optimization/64536
3272 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
3275 2015-01-09 Michael Collison <michael.collison@linaro.org>
3277 PR tree-optimization/64322
3278 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
3279 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
3281 2015-01-09 Tom de Vries <tom@codesourcery.com>
3283 PR rtl-optimization/64539
3284 * regcprop.c (kill_clobbered_values): Factor out of ...
3285 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
3286 instead of note_stores with kill_clobbered_value.
3288 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3290 * ginclude/unwind-arm-common.h: Revert previous commit.
3292 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3294 * config.gcc (arm*-*-freebsd*): New configuration.
3295 * config/arm/freebsd.h: New file.
3296 * config.host: Add extra components for arm*-*-freebsd*.
3297 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
3298 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
3300 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3302 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
3304 * config/rs6000/t-rtems: Add e6500 multilibs.
3306 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3308 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
3311 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3313 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
3314 MULTILIB_EXCEPTIONS.
3316 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3318 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
3319 MULTILIB_EXCEPTIONS.
3321 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3323 * config/arm/t-rtems-eabi: Rename to...
3324 * config/arm/t-rtems: ...this.
3325 * config/arm/rtems-eabi.h: Rename to...
3326 * config/arm/rtems.h: ...this.
3327 * config.gcc (arm*-*-rtems*): Reflect changes above.
3329 2015-01-09 Richard Biener <rguenther@suse.de>
3331 PR tree-optimization/64410
3332 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
3334 (execute_update_addresses_taken): Deal with that.
3335 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
3336 loads/stores for complex variables.
3338 2015-01-09 Martin Liska <mliska@suse.cz>
3340 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
3342 (func_checker::compare_memory_operand): New function.
3343 (func_checker::compare_operand): Split case to newly
3345 (func_checker::compare_cst_or_decl): New function.
3346 (func_checker::compare_gimple_call): Identify
3348 (func_checker::compare_gimple_assign): Likewise.
3349 * ipa-icf-gimple.h: New function.
3351 2015-01-09 Martin Liska <mliska@suse.cz>
3354 * sreal.c (sreal::dump): Change unsigned format to signed for
3356 (sreal::to_double): Replace exp2 with scalbln.
3358 2015-01-09 Martin Liska <mliska@suse.cz>
3360 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
3361 * ipa-icf.c (sem_function::equals_private): Add support for target and
3362 (sem_item_optimizer::merge_classes): Remove redundant function
3363 optimization flags comparison.
3364 * tree.h (target_opts_for_fn): New function.
3366 2015-01-09 Tom de Vries <tom@codesourcery.com>
3368 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
3370 2015-01-09 Kito Cheng <kito@0xlab.org>
3372 PR rtl-optimization/64348
3373 * lra-constraints.c (split_reg): Fix caller-save store/restore
3374 instruction generation.
3376 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
3378 PR gcov-profile/61790
3379 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
3380 long long. Fallback to int64_t if host doesn't have long long and
3381 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
3383 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3385 PR tree-optimization/63989
3386 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
3388 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
3389 (get_stridx): If we don't have a record for certain SSA_NAME,
3390 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
3391 constant offset, call get_stridx_plus_constant.
3392 (get_stridx_plus_constant): New function.
3393 (zero_length_string): Don't use get_stridx here.
3397 * dse.c (struct insn_info): Mention frame_read set also
3398 before reload for tail calls on some targets.
3399 (scan_insn): Revert 2014-12-22 change. Set frame_read
3400 also before reload for tail calls if
3401 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
3402 instead of add_non_frame_wild_read for non-const/memset
3403 tail calls after reload.
3405 2015-01-08 Jason Merrill <jason@redhat.com>
3407 * ubsan.c (do_ubsan_in_current_function): New.
3408 (pass_ubsan::gate): Use it.
3409 * ubsan.h: Declare it.
3410 * convert.c (convert_to_integer): Use it.
3412 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3415 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
3416 compare_code when it is unconditionally overwritten afterwards.
3417 Use ix86_reverse_condition instead of reverse_condition. Don't
3418 change code if *reverse_condition* returned UNKNOWN and don't
3419 swap ct/cf and negate diff in that case.
3421 2015-01-08 Mike Stump <mikestump@comcast.net>
3423 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
3424 (pass_tsan_O0::gate): Likewise.
3425 * extend.texi (Function Attributes): Add no_sanitize_thread
3428 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3430 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
3431 for registering builtins.
3432 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
3433 add -fopenmp to the argv_obstack used when invoking
3436 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
3437 add "-m32" or "-m64" to argv_obstack.
3438 (generate_host_descr_file): Likewise, when invoking host_compiler.
3439 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
3442 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3444 * config/sh/sh-mem.cc: Use constant as second operand when emitting
3447 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3450 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
3451 constant load if constant operand fits into I08.
3453 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3456 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
3457 and TREE_THIS_VOLATILE for MEM_REFs.
3458 (build5_stat): Fix up initialization of TREE_READONLY and
3459 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
3461 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3464 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
3465 of r for the second alternative of the destination operand.
3467 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
3470 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
3472 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3474 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
3476 ([-fivar-visibility], [-fvisibility]): Likewise.
3478 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3480 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
3481 the file where @code, @command, etc is more appropriate.
3483 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
3485 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
3486 of -mrecip= documentation.
3488 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3491 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
3492 correct reload handler if -m32 -mpowerpc64 is used.
3494 2015-01-06 Tom de Vries <tom@codesourcery.com>
3496 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
3498 2015-01-08 Christian Bruel <christian.bruel@st.com>
3501 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
3503 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3505 PR tree-optimization/63259
3506 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
3507 if optab exists for 16bit byteswap.
3509 2015-01-06 Jakub Jelinek <jakub@redhat.com>
3511 * opts.c (common_handle_option): Add support for
3512 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
3513 * doc/invoke.texi: Document -fno-sanitize=all,
3514 -f{,no-}sanitize-recover=all. Document that
3515 -fsanitize=float-cast-overflow is not enabled
3516 by -fsanitize=undefined. Fix up documentation
3517 of -f{,no-}sanitize-recover.
3519 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3521 * config.gcc: Add Visium support.
3522 * configure.ac: Likewise.
3523 * configure: Regenerate.
3524 * doc/extend.texi (interrupt attribute): Add Visium.
3525 * doc/invoke.texi: Document Visium options.
3526 * doc/install.texi: Document Visium target.
3527 * doc/md.texi: Document Visium constraints.
3528 * common/config/visium: New directory.
3529 * config/visium: Likewise.
3531 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3533 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
3534 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
3536 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3538 * combine.c (combine_validate_cost): Do not count the cost of a
3539 split I2 twice. Do not display it twice in the dump, either.
3541 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3543 Revert parts of r219199.
3544 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
3546 ([-Wtraditional]): Restore markup on <limits.h>.
3548 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3551 * doc/invoke.texi: Document -Wsuggest-override.
3553 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
3555 PR rtl-optimization/64287
3556 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
3557 (process_options): Disable flag_ipa_ra if profiling.
3559 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
3561 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
3563 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
3565 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
3566 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
3567 put under #if TARGET_LOOPS guard.
3569 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
3571 * config/i386/i386.c (output_387_binary_op): Use std::swap.
3573 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
3575 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
3576 * rtl.h (refers_to_regno_p): Add overload.
3578 * bt-load.c: Likewise.
3579 * combine.c: Likewise.
3580 * df-scan.c: Likewise.
3581 * sched-deps.c: Likewise.
3582 * config/s390/s390.c: Likewise.
3583 * config/m32r/m32r.c: Likewise.
3584 * config/rs6000/spe.md: Likewise.
3585 * config/rs6000/rs6000.c: Likewise.
3586 * config/pa/pa.c: Likewise.
3587 * config/stormy16/stormy16.c: Likewise.
3588 * config/cris/cris.c: Likewise.
3589 * config/arc/arc.md: Likewise.
3590 * config/arc/arc.c: Likewise.
3591 * config/sh/sh.md: Likewise.
3592 * config/sh/sh.c: Likewise.
3593 * config/frv/frv.c: Likewise.
3595 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3598 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
3599 call as cleanup of the whole body.
3600 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
3601 * tsan.c (replace_func_exit): New function.
3602 (instrument_func_exit): Moved earlier.
3603 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
3604 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
3606 (tsan_pass): Don't call instrument_func_exit.
3607 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
3608 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
3612 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
3613 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
3614 it to libubsan handler instead of EXPR. Fold comparisons earlier,
3615 if the result is integer_zerop, return NULL_TREE.
3616 * convert.c (convert_to_integer): Pass expr as ARG.
3618 PR tree-optimization/64465
3619 * tree-inline.c (redirect_all_calls): During inlining
3620 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
3621 changed the stmt to a non-throwing call.
3623 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3625 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
3626 etc markup throughout the file.
3628 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3630 Enable experimental TSAN support for Ada.
3631 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
3633 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3635 PR tree-optimization/64494
3636 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
3637 clear SSA_NAME_ANTI_RANGE_P flag.
3639 2015-01-05 Marek Polacek <polacek@redhat.com>
3641 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
3643 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3645 Update copyright years.
3647 * gcc.c (process_command): Update copyright notice dates.
3648 * gcov-dump.c: Ditto.
3650 * doc/cpp.texi: Bump @copying's copyright year.
3651 * doc/cppinternals.texi: Ditto.
3652 * doc/gcc.texi: Ditto.
3653 * doc/gccint.texi: Ditto.
3654 * doc/gcov.texi: Ditto.
3655 * doc/install.texi: Ditto.
3656 * doc/invoke.texi: Ditto.
3658 * auto-profile.c, auto-profile.h: Fix up Copyright line.
3660 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
3662 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
3664 ([-fvtable-verify], [-fvtv-debug]): Likewise.
3665 ([-Wabi]): Likewise.
3666 ([-fmessage-length]): Likewise.
3667 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
3668 ([-Wno-discarded-qualifiers]): Likewise.
3669 ([-Wnodiscarded-array-qualifiers]): Likewise.
3670 ([-Wno-virtual-move-assign]): Likewise.
3671 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
3672 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
3673 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
3674 ([-fsanitize-undefined-trap-on-error]): Likewise.
3675 ([-floop-interchange]): Likewise.
3676 ([-ftree-coalesce-inlined-vars]): Likewise.
3677 ([-fvect-cost-model]): Likewise.
3678 ([-flto]): Likewise.
3679 ([--param]): Likewise.
3680 (Spec Files): Likewise.
3681 ([-mstrict-align]): Likewise.
3682 ([-mfix-cortex-a53-835769]): Likewise.
3683 ([-march], [-mtune]): Likewise.
3684 ([-mpic-register]): Likewise.
3685 ([-munaligned-access]): Likewise.
3686 ([-msp8]): Likewise.
3687 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
3688 (AVR Built-in Macros): Likewise.
3689 ([-mpreferred-stack-boundary]): Likewise.
3690 ([-mtune-crtl]): Likewise.
3691 ([-mashf]): Likewise.
3692 ([-mmcu=]): Likewise.
3693 ([-minrt]): Likewise.
3694 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
3695 ([-mupper-regs]): Likewise.
3696 ([-matomic-model]): Likewise.
3697 ([-mdiv]): Likewise.
3698 ([-mzdcbranch]): Likewise.
3699 ([-mdisable-callt]): Likewise.
3700 ([-msoft-float]): Likewise.
3701 ([-m8byte-align]): Likewise.
3702 ([-fstack-reuse]): Likewise.
3704 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3706 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
3707 Fix markup, light copy-editing.
3708 ([-fauto-profile]): Rewrite to fix formatting and content
3711 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3713 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
3714 Copy-edit description.
3715 ([-fisolate-erroneous-paths-attribute]): Likewise.
3716 * common.opt (fisolate-erroneous-paths-dereference):
3717 Copy-edit description.
3718 (fisolate-erroneous-paths-attribute): Likewise.
3720 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3722 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
3725 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3727 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
3728 ([-fvtv-debug]): Likewise.
3729 ([-Wc++-compat]): Likewise.
3730 ([-Wc++11-compat]): Likewise.
3731 ([-Wc++14-compat]): Likewise.
3732 ([-Wno-sized-deallocation]): Likewise.
3733 ([-femit-class-debug-always]): Likewise.
3734 ([-femit-struct-debug-detailed]): Likewise.
3735 ([-fno-keep-inline-dllexport]): Likewise.
3736 ([-fira-algorithm]): Likewise.
3737 ([-fira-region]): Likewise.
3738 ([-flra-remat]): Likewise.
3739 ([-fipa-ra]): Likewise.
3740 ([-fhoist-adjacent-loads]): Likewise.
3741 ([-fisolate-erroneous-paths-dereference]): Likewise.
3742 ([-fisolate-erroneous-paths-attribute]): Likewise.
3743 ([-ftree-switch-conversion]): Likewise.
3744 ([-ftree-tail-merge]): Likewise.
3745 ([-ftree-loop-if-convert]): Likewise.
3746 ([-ftree-loop-if-convert-stores]): Likewise.
3747 ([-ftree-loop-distribution]): Likewise.
3748 ([-ftree-loop-distribute-patterns]): Likewise.
3749 ([-flto-compression-level]): Likewise.
3750 ([-flto-report]): Likewise.
3751 ([-flto-report-wpa]): Likewise.
3752 ([-fuse-linker-plugin]): Likewise.
3753 ([-mfix-cortex-a53-835769]): Likewise.
3754 ([-mno-fix-cortex-a53-835769]): Likewise.
3755 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
3756 explicit listing; add a note to the discussion indicating they
3757 exist. Reorder table to group similar options. Add missing
3758 @opindex entries. Add @need commands throughout the table to
3759 allow it to be split across multiple pages.
3760 ([-m8bit-idiv]): Fix @opindex.
3761 ([-mavx256-split-unaligned-load]): Likewise.
3762 ([-mavx256-split-unaligned-store]): Likewise.
3763 ([-mstack-protector-guard]): Likewise.
3764 ([-mcpu=]): Likewise.
3765 ([-mcpu]): Likewise.
3766 ([-mpointer-size=]): Likewise.
3768 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
3770 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
3771 instead of `m' constraint. Likewise for unnamed movb comparison
3772 patterns using reg_before_reload_operand predicate.
3773 * config/pa/predicates.md (reg_before_reload_operand): Tighten
3774 predicate to reject register index and LO_SUM DLT memory forms
3777 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3779 * doc/invoke.texi (Option Summary): Fix spelling of
3780 -fdevirtualize-at-ltrans.
3781 ([-fdevirtualize]): Fix markup.
3782 ([-fdevirtualize-speculatively]): Fix typo.
3783 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
3785 * common.opt (fdevirtualize-at-ltrans): Likewise.
3786 * ipa-devirt.c: Fix typos in comments throughout the file.
3787 (ipa_devirt): Fix typos in format strings for dump output.
3789 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3791 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
3792 discussion of defaults, light copy-editing.
3794 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3796 * tsan.c (instrument_expr): corrected previous checkin.
3798 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3800 Instrument bit field and unaligned accesses for TSAN.
3801 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
3802 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
3803 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
3804 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
3805 unaligned memory regions.
3807 2015-01-01 Anthony Green <green@moxielogic.com>
3809 * config/moxie/predicates.md (moxie_general_movsrc_operand):
3810 Restrict move source register offsets to 16 bits.
3812 Copyright (C) 2015 Free Software Foundation, Inc.
3814 Copying and distribution of this file, with or without modification,
3815 are permitted in any medium without royalty provided the copyright
3816 notice and this notice are preserved.