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