1 2015-01-30 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/64829
4 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
5 not add a widening conversion pattern but hand off extra
7 (vect_recog_widen_mult_pattern): Handle extra widening produced
8 by vect_handle_widen_op_by_const.
9 (vect_recog_widen_shift_pattern): Likewise.
10 (vect_pattern_recog_1): Remove excess vertical space in dumping.
11 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
12 (vect_init_vector_1): Likewise.
13 (vect_get_vec_def_for_operand): Likewise.
14 (vect_finish_stmt_generation): Likewise.
15 (vectorizable_load): Likewise.
16 (vect_analyze_stmt): Likewise.
17 (vect_is_simple_use): Likewise.
19 2015-01-29 Jeff Law <law@redhat.com>
21 * combine.c (try_combine): Fix typo in comment.
23 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
27 (rs6000_stack_info): Add assert.
28 (rs6000_output_savres_externs): New function, split off from...
29 (rs6000_output_function_prologue): ... here. Do not call it for
32 2015-01-29 Jeff Law <law@redhat.com>
35 * combine.c (try_combine): If I0 is a memory load and I3 a store
36 to a related address, increase the "goodness" of doing a 4-insn
37 combination with I0-I3.
38 (make_field_assignment): Handle SUBREGs in the ior+and case.
40 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
42 PR tree-optimization/64746
43 * tree-if-conv.c (mask_exists): New function.
44 (predicate_mem_writes): Save created mask with given size for further
46 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
47 (ifcvt_repair_bool_pattern): Collect all statements that are root
48 of bool pattern and use iterative algorithm to remove multiple uses
49 of predicates, display number of required iterations.
51 2015-01-29 Richard Biener <rguenther@suse.de>
53 PR tree-optimization/64853
54 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
55 stmt will get simulated again.
56 * tree-ssa-ccp.c (valueize_op_1): Likewise.
58 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
60 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
61 return_in_pc. Remove redundant assignments.
62 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
63 (arm_expand_epilogue): Don't compare boolean with true in if condition.
65 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
67 * config/i386/i386.c (ix86_mode_after): Make static.
69 2015-01-29 Richard Biener <rguenther@suse.de>
71 PR tree-optimization/64844
72 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
73 dump cost model analysis.
74 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
75 Do not register adjusted load/store costs here.
77 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
78 Uros Bizjak <ubizjak@gmail.com>
80 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
81 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
82 using x86_use_pseudo_pic_reg.
83 * config/i386/i386.c (ix86_conditional_register_usage): Remove
84 support for fixed PIC register.
85 (ix86_use_pseudo_pic_reg): Not static any more.
87 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
90 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
91 to avoid error in cgraph node verification.
93 2015-01-29 Marek Polacek <polacek@redhat.com>
95 * doc/standards.texi: Reflect that the default for C is gnu11.
97 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
100 * reorg.c (switch_text_sections_between_p): New function.
101 (relax_delay_slots): Call it when testing if the jump insn
102 is removable. Use targetm.can_follow_jump when testing if
103 the conditional branch can follow an unconditional jump.
105 2015-01-27 Caroline Tice <cmtice@google.com>
107 Committing VTV Cywin/Ming patch for Patrick Wollgast
108 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
109 if -fvtable-verify=preinit/std is used.
110 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
111 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
112 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
113 if -fvtable-verify=preinit/std is used.
114 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
115 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
116 if -fvtable-verify=preinit/std is used.
117 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
118 * config/i386/mingw32.h (LIB_SPEC): Likewise.
119 * varasm.c (assemble_variable): Add code to properly set the comdat
120 section and name for the .vtable_map_vars section in case the
121 target is PE or COFF.
123 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
126 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
127 make sane BB profile.
128 (cgraph_node::expand_thunk): Make sane BB profile.
129 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
130 * cgraph.h (init_lowered_empty_function): Update prototype.
131 * config/i386/i386.c (make_resolver_func): Update call.
132 * predict.c (gate): Disable branch prediction pass if
133 profile is already there.
135 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
137 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
138 * opth-gen.awk: Likewise.
139 * common.opt: Mark flag_fp_contract_mode as Optimization.
141 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
143 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
144 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
146 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
149 * config/sh/predicates.md (atomic_arith_operand,
150 atomic_logical_operand): Remove.
151 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
152 (atomic_arith_operand_0): New predicate.
153 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
154 Use atomic_arith_operand_0 for input values.
155 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
156 atomic_compare_and_swap<mode>_soft_gusa,
157 atomic_compare_and_swap<mode>_soft_tcb,
158 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
159 arith_reg_operand instead of register_operand.
160 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
161 atomic_arith_operand_0 for newval input.
162 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
163 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
164 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
165 arith_reg_operand instead of register_operand.
166 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
167 fetchop_predicate_1, fetchop_constraint_1_llcs,
168 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
169 fetchop_constraint_1_imask): New code iterator attributes.
170 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
171 register_operand. Use fetchop_predicate_1.
172 (atomic_fetch_<fetchop_name>si_hard,
173 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
174 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
175 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
176 and arith_reg_operand instead of register_operand. Use
177 fetchop_predicate_1, fetchop_constraint_1_gusa.
178 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
179 and arith_reg_operand instead of register_operand. Use
180 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
182 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
183 and arith_reg_operand instead of register_operand. Use
184 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
186 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
187 register_operand. Use atomic_logical_operand_1.
188 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
189 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
190 arith_reg_operand instead of register_operand.
191 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
192 Use arith_reg_dest and arith_reg_operand instead of register_operand.
193 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
194 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
195 register_operand. Use fetchop_predicate_1.
196 (atomic_<fetchop_name>_fetchsi_hard,
197 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
198 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
199 fetchop_constraint_1_llcs.
200 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
201 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
202 fetchop_constraint_1_gusa.
203 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
204 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
205 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
206 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
207 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
208 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
209 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
210 register_operand. Use atomic_logical_operand_1.
211 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
212 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
213 arith_reg_operand instead of register_operand.
214 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
215 arith_reg_operand instead of register_operand. Use logical_operand
216 and K08. Adjust asm sequence to allow R0 usage.
217 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
218 arith_reg_operand instead of register_operand. Use logical_operand
221 2015-01-28 Jakub Jelinek <jakub@redhat.com>
224 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
225 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
226 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
227 only get_full_len HOST_WIDE_INTs from get_val () array rather than
228 all bits in *val_wide.
230 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
232 * varpool.c (tls_model_names): Fix names.
233 (varpool_node::dump): Dump tls- prefix for tls models.
235 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
236 Bernd Schmidt <bernds@codesourcery.com>
237 Nathan Sidwell <nathan@codesourcery.com>
239 * config/nvptx/mkoffload.c: New file.
240 * config/nvptx/t-nvptx: Add build rules for it.
241 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
242 (extra_programs): Add mkoffload.
243 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
245 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
247 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
250 * cfgexpand.c (reorder_operands): Skip debug gimples.
252 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
254 PR tree-optimization/64277
255 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
256 range info when possible to refine estimation.
258 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
260 PR tree-optimization/64718
261 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
262 be a 16bit unsigned integer when n->range is 16.
263 (bswap_replace): Convert src to that type if necessary for all bswap
264 sizes. Fix rotation right notation in nearby comment. Use bswap_type
265 set in pass_optimize_bswap::execute ().
267 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
269 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
270 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
271 integer and floating point variants.
272 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
274 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
276 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
277 for all vector modes.
279 2015-01-28 Jakub Jelinek <jakub@redhat.com>
282 * doc/sourcebuild.texi (comdat_group): Document.
284 2015-01-28 Terry Guo <terry.guo@arm.com>
286 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
288 2015-01-27 David Malcolm <dmalcolm@redhat.com>
290 * toplev.c (print_version): Add param "show_global_state", and
291 only print GGC and plugin information if it is true.
292 (init_asm_output): Pass in "true" for the new param when calling
294 (process_options): Likewise.
295 (toplev::main): Likewise.
296 * toplev.h (print_version): Add new param to decl.
298 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
302 * tree.c (lookup_binfo_at_offset): New function.
303 (get_binfo_at_offset): Use it.
305 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
308 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
309 on vtable being vtable.
311 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
313 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
314 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
316 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
317 -mno-hotpatch options. Change syntax of -mhotpatch= option.
318 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
320 (s390_hotpatch_trampoline_halfwords_max): Renamed.
321 (s390_hotpatch_hw_max): New name.
322 (s390_hotpatch_trampoline_halfwords): Renamed.
323 (s390_hotpatch_hw_before_label): New name.
324 (get_hotpatch_attribute): Removed.
325 (s390_hotpatch_hw_after_label): New name.
326 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
328 (s390_attribute_table): Ditto.
329 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
330 (s390_function_num_hotpatch_hw): New name.
331 Remove special handling of inline functions and hotpatching.
332 Return number of nops before and after the function label.
333 (s390_can_inline_p): Removed.
334 (s390_asm_output_function_label): Emit a configurable number of nops
335 after the function label.
336 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
337 (TARGET_CAN_INLINE_P) Removed.
338 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
340 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
341 Jiong Wang <jiong.wang@arm.com>
343 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
345 (cb<optab><mode>1): Likewise.
346 * config/aarch64/iterators.md (bcond): New define_code_attr.
348 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
350 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
353 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
355 * config/s390/s390.c (s390_register_move_cost): Increase costs for
358 2015-01-27 Richard Biener <rguenther@suse.de>
360 * tree-vrp.c (update_value_range): Intersect the range with
361 old recorded SSA name range information.
363 2015-01-27 Nick Clifton <nickc@redhat.com>
365 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
366 BC, DE and HL registers directly, not via AX.
367 When decrementing the stack pointer by a large amount, transfer SP
368 into AX and perform the subtraction there.
369 (rl78_expand_epilogue): Perform the inverse of the above
372 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
374 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
376 2015-01-27 Jakub Jelinek <jakub@redhat.com>
377 Yury Gribov <y.gribov@samsung.com>
380 * ubsan.c (ubsan_source_location): Refactor code.
381 (ubsan_type_descriptor): Update type size. Refactor code.
383 2015-01-27 Richard Biener <rguenther@suse.de>
385 PR tree-optimization/56273
386 PR tree-optimization/59124
387 PR tree-optimization/64277
388 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
389 from the first VRP pass.
391 2015-01-27 Jakub Jelinek <jakub@redhat.com>
394 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
395 handle the first argument in the same loop as all the other arguments.
397 PR rtl-optimization/61058
398 * jump.c (cleanup_barriers): Update basic block boundaries
399 if BLOCK_FOR_INSN is non-NULL on PREV.
401 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
403 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
404 bounds narrowing, already instrumented calls and calls to
405 not instrumentable functions.
407 2015-01-27 Jakub Jelinek <jakub@redhat.com>
409 PR tree-optimization/64807
410 * wide-int.cc (wi::divmod_internal): Clear
411 b_dividend[dividend_blocks_needed].
413 2015-01-26 DJ Delorie <dj@redhat.com>
415 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
416 volatile memory references.
418 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
421 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
423 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
424 shifts if it already fits into K08.
426 2015-01-26 Jakub Jelinek <jakub@redhat.com>
429 * ipa-inline.c (inline_small_functions): Print "unknown" even
430 if edge->call_stmt is non-NULL, but has builtins or unknown
434 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
435 with asterisk, skip the first character.
437 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
440 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
443 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
446 * config/i386/i386.md (*movdi_internal): Also check operand 0
447 to determine TYPE_LEA operand.
448 (*movsi_internal): Ditto.
450 2015-01-26 Jakub Jelinek <jakub@redhat.com>
452 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
453 OPTION_MASK_QUAD_MEMORY_ATOMIC.
455 2015-01-26 Renlin Li <renlin.li@arm.com>
457 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
459 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
462 2015-01-26 Richard Biener <rguenther@suse.de>
465 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
466 combining two BIT_AND_EXPR predicates.
468 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
471 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
473 2015-01-26 Terry Guo <terry.guo@arm.com>
475 * config/arm/arm.c (arm_file_start): Update the assignment of
478 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
480 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
482 config/arm/arm.md: Include the new Cortex-A57 model.
483 (generic_sched): Don't use generic_sched when tuning for
486 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
487 Uros Bizjak <ubizjak@gmail.com>
489 * config/i386/i386.c (get_builtin_code_for_version): Add
490 support for BMI and BMI2 multiversion functions.
492 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
494 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
495 (extract_bit_field): Likewise.
496 (extract_low_bits): Likewise.
497 (expand_mult): Likewise.
498 (expand_mult_highpart_adjust): Likewise.
500 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
502 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
503 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
504 * config/i386/i386.c (processor_model): Add
505 M_INTEL_COREI7_BROADWELL.
506 (arch_names_table): Add "broadwell".
508 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
517 * config/sh/sh-protos.h
518 (sh_extending_set_of_reg::can_use_as_unextended_reg,
519 sh_extending_set_of_reg::use_as_unextended_reg,
520 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
521 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
522 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
523 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
524 (sh_treg_insns): New class.
525 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
526 (scope_counter): New class.
527 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
528 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
529 sh_extending_set_of_reg::can_use_as_unextended_reg,
530 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
531 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
532 sh_split_treg_set_expr): New functions.
533 (addsubcosts): Handle treg_set_expr.
534 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
535 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
536 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
537 (sh_insn_operands_modified_between_p): Make non-static.
538 * config/sh/predicates.md (zero_extend_movu_operand): Allow
539 simple_mem_operand in addition to displacement_mem_operand.
540 (zero_extend_operand): Don't allow zero_extend_movu_operand.
541 (treg_set_expr, treg_set_expr_not_const01,
542 arith_reg_or_treg_set_expr): New predicates.
543 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
544 arith_or_int_operand instead of logical_operand. Convert to
545 insn_and_split. Try to optimize constant operand in splitter.
546 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
547 (*tstqi_t_zero): Delete.
548 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
549 (tstsi_t_and_not): Delete.
550 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
551 Convert to insn_and_split.
552 (unnamed split, tstsi_t_zero_extract_xor,
553 tstsi_t_zero_extract_subreg_xor_little,
554 tstsi_t_zero_extract_subreg_xor_big): Delete.
555 (*tstsi_t_shift_mask): New insn_and_split.
556 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
557 to recombine with surrounding insns when splitting.
558 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
559 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
560 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
561 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
562 (*cbranch_div0s: Delete.
563 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
564 Try to recombine with surrounding insns when splitting. Add operand
566 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
567 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
568 *addc_r_r_msb, *addc_2r_msb): Delete.
569 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
571 (*addc_negreg_t): New insn_and_split.
572 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
573 Try to recombine with surrounding insns when splitting.
574 Add operand order variants.
575 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
576 insn_and_split patterns.
577 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
578 surrounding insns when splitting.
579 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
580 (*rotcl): Likewise. Add zero_extract variant.
581 (*ashrsi2_31): New insn_and_split.
582 (*negc): Convert to insn_and_split. Use treg_set_expr.
583 (*zero_extend<mode>si2_disp_mem): Update comment.
584 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
586 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
587 with surrounding insns when splitting.
588 (any_treg_expr_to_reg): New insn_and_split.
589 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
590 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
591 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
592 *zero_extract_2): New single bit zero extract patterns.
593 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
594 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
595 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
596 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
598 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
599 register_operand for set source.
601 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
603 * i386.opt (prefetch_sse): New targetsave.
604 * i386.c (ix86_function_specific_save): Save prefetch_sse.
605 (ix86_function_specific_restore): Restore prefetch_sse and initialize
606 ix86_cost/ix86_tune_cost.
608 2015-01-23 David Malcolm <dmalcolm@redhat.com>
610 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
611 Support the JIT by using 0 as the language type.
613 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
616 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
617 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
618 (mark_regno_live, process_bb_lives): Pass new parameter value to
619 make_hard_regno_born.
621 2015-01-23 Jakub Jelinek <jakub@redhat.com>
623 PR rtl-optimization/63637
624 PR rtl-optimization/60663
625 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
626 if elt->cost is MAX_COST for ASM_OPERANDS.
627 (find_sets_in_insn): Fix up comment typo.
628 (cse_insn): Don't set src_volatile for all non-volatile
629 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
630 or with "memory" clobber. Set elt->cost to MAX_COST
631 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
632 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
634 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
636 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
639 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
641 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
642 libgcc/config/i386/elf-lib.h.
644 2015-01-23 Jakub Jelinek <jakub@redhat.com>
647 * gcc.c (print_configuration): Don't print a blank line at the end
649 (run_attempt): ... but here unstead.
652 * omp-low.c (scan_sharing_clauses): Don't ignore
653 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
654 on target data/update constructs.
656 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
659 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
660 (DEBUG_RELOAD): Removed define.
661 (m32c_limit_reload_class): Enable traces with if DEBUG0.
662 (m32c_function_arg): Added a type cast.
663 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
664 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
665 * config/m32c/bitops.md (andqi3_16): Likewise.
666 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
667 (push_a01_l): Likewise.
669 2015-01-23 David Malcolm <dmalcolm@redhat.com>
672 * main.c (main): Construct toplev instances with init_signals=true.
673 * toplev.c (general_init): Add param "init_signals", and use it to
674 conditionalize the calls to signal and host_hooks.extra_signals.
675 (toplev::toplev): Add param "init_signals".
676 (toplev::main): When invoking general_init, pass m_init_signals
677 to control whether signal-handlers are installed.
678 * toplev.h (toplev::toplev): Add param "init_signals".
679 (toplev::m_init_signals): New field.
681 2015-01-23 David Malcolm <dmalcolm@redhat.com>
684 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
685 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
686 latter may be affected by the former (e.g. on i686).
688 2015-01-23 Martin Liska <mliska@suse.cz>
690 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
691 false positive during profiledbootstrap.
693 2015-01-23 Tom de Vries <tom@codesourcery.com>
696 * lto-opts.c (lto_write_options): Output non-explicit conservative
698 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
699 (append_compiler_options): Pass -fopenacc through.
701 2015-01-23 Tom de Vries <tom@codesourcery.com>
704 * lto-opts.c (lto_write_options): Output non-explicit conservative
706 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
707 (append_compiler_options): Pass -fopenmp through.
709 2015-01-23 Jakub Jelinek <jakub@redhat.com>
712 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
715 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
716 * diagnostic.def (DK_ICE_NOBT): New kind.
717 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
718 like DK_ICE, but never print backtrace.
719 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
720 (internal_error_no_backtrace): New function.
721 * gcc.c (execute): Use internal_error_no_backtrace instead of
724 2015-01-22 Jeff Law <law@redhat.com>
727 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
728 improve code density for small immediate to memory case.
729 (insv): Better handle bitfield assignments when the field is
730 being set to all ones.
731 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
734 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
735 Jakub Jelinek <jakub@redhat.com>
737 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
738 for !TARGET_LIBC_PROVIDES_SSP version and
739 -fstack-protector-{all,strong,explicit} otherwise.
740 * config/freebsd.h (LINK_SSP_SPEC): Handle
741 -fstack-protector-{strong,explicit}.
743 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
744 H.J. Lu <hongjiu.lu@intel.com>
747 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
750 2015-01-22 Wei Mi <wmi@google.com>
752 PR rtl-optimization/64557
753 * dse.c (record_store): Call get_addr for mem_addr.
754 (check_mem_read_rtx): Likewise.
756 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
758 * fold-const.c (const_binop): Add early return for non-tcc_binary.
760 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
762 * toplev.c (init_local_tick): Process the failure when read
763 fails for random_seed.
765 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
766 'pretty_name' to avoid memory overflow.
768 2015-01-22 Richard Biener <rguenther@suse.de>
771 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
772 abnormal coalescing on undefined SSA names.
774 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
778 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
780 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
782 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
785 * fold-const.c (fold_checksum_tree): Don't include value of
786 expr->decl_with_vis.symtab_node in the checksum.
788 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
790 * config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
793 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
796 * gcc.c (insert_comments): New function.
797 (try_generate_repro): Call it.
798 (append_text): Removed.
800 2015-01-22 Richard Biener <rguenther@suse.de>
802 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
803 with IL incompatible options. Properly honor user optimize
806 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
808 PR rtl-optimization/64682
809 * combine.c (distribute_notes): When moving a death note for
810 a register that is set in the new I2, make sure to put it
813 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
815 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
818 2015-01-21 Jakub Jelinek <jakub@redhat.com>
821 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
822 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
823 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
826 * doc/invoke.texi (-fsanitize=vptr): Document.
828 PR rtl-optimization/62078
829 * dse.c: Include cfgcleanup.h.
830 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
831 anything call purge_all_dead_edges and cleanup_cfg at the end
834 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
836 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
839 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
841 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
844 2015-01-21 David Sherwood <david.sherwood@arm.com>
845 Tejas Belagod <Tejas.Belagod@arm.com>
847 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
848 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
849 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
852 2015-01-21 David Sherwood <david.sherwood@arm.com>
853 Tejas Belagod <Tejas.Belagod@arm.com>
855 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
856 (aarch64_reverse_mask): New decls.
857 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
858 (insn_count): New mode_attr.
859 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
860 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
861 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
862 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
863 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
864 (aarch64_simd_st4): New patterns.
865 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
866 (aarch64_reverse_mask): New functions.
868 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
870 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
872 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
873 addressing modes for BE.
874 (aarch64_print_operand): Add 'R' specifier.
875 (aarch64_simd_disambiguate_copy): Delete.
876 (aarch64_simd_emit_reg_reg_move): New function.
877 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
878 in define_splits for structural moves.
879 (mov<mode>): Use less restrictive predicates.
880 (*aarch64_mov<mode>): Simplify and only allow for LE.
881 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
883 2015-01-21 Alan Hayward <alan.hayward@arm.com>
885 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
887 2015-01-21 Richard Henderson <rth@redhat.com>
890 * ccmp.c (used_in_cond_stmt_p): Remove.
891 (expand_ccmp_expr): Don't use it.
893 2015-01-21 Nick Clifton <nickc@redhat.com>
895 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
898 2015-01-21 Richard Biener <rguenther@suse.de>
901 * tree-core.h (builtin_info, builtin_info_type): Turn from
902 an object with two arrays into an array of an object with
903 decl and two flags, implicit_p and declared_p.
904 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
905 set_builtin_decl, set_builtin_decl_implicit_p,
906 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
907 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
908 * builtins.c (builtin_info): Adjust.
909 * gimplify.c (gimplify_addr_expr): References to builtins
910 that have been declared by the user makes them eligible for
911 use by the compiler. Call set_builtin_decl_implicit_p on them.
913 2015-01-20 Jeff Law <law@redhat.com>
916 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
917 allow pc-relative addresses in operand predicates or constraints.
919 2015-01-21 Bin Cheng <bin.cheng@arm.com>
921 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
922 neon on aarch32 processors for stringops.
924 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
927 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
929 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
932 * ipa-inline.c: Include lto-streamer.h
933 (report_inline_failed_reason): Output source file differences and
934 flags on optimization/target node mismatch.
935 (can_inline_edge_p): Consider caller to be the outer inline function;
936 be less restrictive about matching opimize and optimize_size attributes.
937 (inline_account_function_p): Break out from ...
938 (inline_small_functions): ... here.
939 * ipa-inline-transform.c (clone_inlined_nodes): Use
940 inline_account_function_p.
941 (inline_call): Use optimize attribution; use inline_account_function_p.
942 (inline_transform): Use opt_for_fn.
943 * ipa-inline.h (inline_account_function_p): Declare.
945 2015-01-20 Jakub Jelinek <jakub@redhat.com>
948 * dwarf2out.c (decl_piece_node): Don't put bitsize into
949 mode if bitsize <= 0.
950 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
951 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
954 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
956 * config/nios2/nios2.c (nios2_asm_file_end): Implement
957 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
959 (TARGET_ASM_FILE_END): Define.
961 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
963 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
964 (struct tune_params): Use the enum.
965 * arm.c (arm_*_tune): Update.
966 (arm_option_override): Update.
968 2015-01-20 Richard Biener <rguenther@suse.de>
971 * ipa-reference.c (add_static_var): Inline ...
972 (analyze_function): ... here after splitting out from ...
973 (is_proper_for_analysis): ... this.
975 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
978 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
979 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
980 replace the conditional with it's true branch.
981 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
984 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
986 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
988 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
990 * config/tilegx/mul-tables.c: Move symtab.h include after
992 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
993 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
994 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
995 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
996 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
998 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
1002 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1004 PR rtl-optimization/64081
1005 * loop-iv.c (def_pred_latch_p): New function.
1006 (latch_dominating_def): Allow specific cases with non-single
1008 (iv_get_reaching_def): Likewise.
1009 (check_complex_exit_p): New function.
1010 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1011 with exits not executing on any iteration.
1013 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1016 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
1019 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1022 * i386.c (gate): Check flag_expensive_optimizations and
1024 (ix86_option_override_internal): Drop optimize_size condition
1025 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
1026 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
1028 (ix86_avx256_split_vector_move_misalign,
1029 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
1030 * sse.md (all uses of TARGET_PREFER_AVX128): Add
1031 optimize_insn_for_speed_p check.
1033 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
1035 * config/mips/mips.h (FP_ASM_SPEC): New define.
1036 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
1039 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
1042 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
1043 nullptr for insn when reaching the first insn.
1044 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
1045 (sh_insn_operands_modified_between_p): Add nullptr check.
1046 (sh_find_extending_set_of_reg): Fix log message. Don't accept
1047 sign extending mem load if the insn contains any UNSPEC or
1050 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1052 * params.def (inline-unit-growth): Drop to 15%.
1053 * invoke.texi (inline-unit-growth): Document change.
1055 2015-01-19 Martin Liska <mliska@suse.cz>
1058 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
1059 function for second argument of OBJ_TYPE_REF.
1061 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1064 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
1065 whether function is an alias.
1067 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1069 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
1072 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
1074 PR rtl-optimization/64671
1075 * lra-remat.c (operand_to_remat): Don't consider jump and call
1078 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
1080 * config/rs6000/default64.h: Include rs6000-cpus.def.
1081 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
1082 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
1083 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
1085 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
1087 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
1088 pseudo-op to specify assembler dialect.
1090 2015-01-19 Martin Liska <mliska@suse.cz>
1093 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
1094 Handle safe potentially removed nodes during filtering.
1096 2015-01-19 Martin Liska <mliska@suse.cz>
1098 * doc/extend.texi (no_icf): Add new attribute description.
1099 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
1100 where the pass attempts to merge a function with no_icf attribute.
1102 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1105 * doc/md.texi (ARM Options): Document register constraints.
1107 2015-01-19 Jiong Wang <jiong.wang@arm.com>
1108 Andrew Pinski <apinski@cavium.com>
1111 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
1112 (ashl<mode>3): Don't expand if operands[2] is not constant.
1114 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1117 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
1118 Match xor-and-xor RTL pattern.
1120 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1122 PR rtl-optimization/64081
1123 * loop-iv.c (def_pred_latch_p): New function.
1124 (latch_dominating_def): Allow specific cases with non-single
1126 (iv_get_reaching_def): Likewise.
1127 (check_complex_exit_p): New function.
1128 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1129 with exits not executing on any iteration.
1131 2015-01-19 Jakub Jelinek <jakub@redhat.com>
1133 * common.opt (fgraphite): Fix a typo.
1135 2015-01-19 Felix Yang <felix.yang@huawei.com>
1137 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
1139 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
1140 uminp, smax_nanp, smin_nanp): New builtins.
1141 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
1142 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
1143 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
1144 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
1145 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
1146 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
1147 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
1148 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
1149 vpminnms_f32): Rewrite using builtin functions.
1151 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1154 * omp-low.c (offload_symbol_decl): Remove variable.
1155 (get_offload_symbol_decl): Remove function.
1156 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
1157 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
1158 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
1159 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
1160 BUILT_IN_GOACC_UPDATE don't pass it at all.
1162 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1164 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
1167 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1169 * ipa-chkp.c (chkp_produce_thunks): Add early param
1170 to split thunks production into two passes. Keep
1171 'always_inline' function bodies after the first pass.
1172 (pass_data_ipa_chkp_early_produce_thunks): New.
1173 (pass_ipa_chkp_early_produce_thunks): New.
1174 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
1175 chkp_produce_thunks signature.
1176 (make_pass_ipa_chkp_early_produce_thunks): New.
1177 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
1178 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
1179 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
1181 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1183 * cgraph.c (cgraph_node::dump): Dump profile flags.
1185 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
1188 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
1189 reg appear first in the parallel.
1191 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1193 * ipa-reference.c (set_reference_optimization_summary,
1194 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
1196 (ignore_module_statics): New static var.
1197 (propagate_bits): If ipa-reference is disabled, do not look into local
1199 (analyze_function): Disable analysis when ipa_reference is disabled.
1200 (generate_summary): Do not dump when reference is disabled;
1201 collect vars accessed from functions with ipa-reference disabled.
1202 (get_read_write_all_from_node): When ipa-reference is disabled, use the
1204 (gate): Enable for LTO.
1205 (ignore_edge_p): New function.
1206 (propagate): Skip functions w/o ipa-reference analysis.
1207 * optc-save-gen.awk: Handle optimize_debug correctly.
1208 * opth-gen.awk: Likewise.
1209 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
1210 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
1211 fira-share-save-slots, fira-share-spill-slots,
1212 fmodulo-sched-allow-regmoves, fpartial-inlining,
1213 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
1214 ftracer, ftree-parallelize-loops, fassociative-math,
1215 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
1217 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
1218 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
1220 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
1223 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1226 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
1228 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
1230 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
1232 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
1233 Remove duplicate option listings.
1235 2015-01-18 Felix Yang <felix.yang@huawei.com>
1237 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
1238 (autofdo_source_profile::get_callsite_total_count,
1239 function_instance::get_function_instance_by_decl,
1240 string_table::get_index, string_table::get_index_by_decl,
1241 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
1242 Fix comment typos. Reformatting and minor code rearrangement.
1244 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1246 * config/rs6000/rs6000.md (probe_stack): Delete.
1247 (probe_stack_address): New.
1249 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1251 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
1252 to test for 32-bit ABIs, not !TARGET_POWERPC64.
1254 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1256 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
1257 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
1258 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
1260 (rs6000_libcall_value): Use the new function.
1262 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
1264 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
1266 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
1268 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
1269 implement a more precise life analysis for it during backward scan.
1271 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1273 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
1275 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
1277 PR rtl-optimization/52773
1278 * calls.c (emit_library_call_value): When pushing arguments use
1279 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
1280 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
1281 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
1283 2015-01-17 Jeff Law <law@redhat.com>
1285 PR rtl-optimization/32790
1286 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
1287 not ZERO_EXTEND in SET_DESTs.
1289 2015-01-17 Alan Modra <amodra@gmail.com>
1291 * cprop.c (do_local_cprop): Revert last change.
1293 2015-01-16 DJ Delorie <dj@redhat.com>
1294 Nick Clifton <nickc@redhat.com>
1296 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
1297 (addhi3_real): Likewise. Fix [HL+0] syntax.
1298 (subqi3_real): Likewise.
1299 (subhi3_real): Likewise.
1300 (cbranchqi4_real): Likewise. Allow saddr,#imm.
1301 (cbranchhi4_real): Likewise.
1302 (cbranchhi4_real_inverted): Likewise.
1303 (cbranchsi4_real_lt): Likewise.
1304 (cbranchsi4_real_ge): Likewise.
1305 (cbranchsi4_real_ge): Likewise.
1306 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
1307 (sub<mode>3_virt): Likewise.
1308 (cbranchqi4_virt): Likewise.
1309 (cbranchhi4_virt): Likewise.
1310 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
1311 always use '[reg+imm]' even when imm is zero.
1312 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
1313 (rl78_general_operand): New.
1314 (rl78_nonimmediate_operand): New.
1315 (rl78_nonfar_operand): Use them.
1316 (rl78_nonfar_nonimm_operand): Likewise.
1317 (rl78_stack_based_mem): Fix.
1318 * config/rl78/constraints.md (Ibqi): New.
1323 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
1326 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
1328 * config/rl78/constrains (Qs8): New constraint.
1329 * config/rl78/rl78.c (rl78_flags_already_set): New function.
1330 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
1331 * config/rl78/rl78-real.md (update_Z): New attribute.
1332 Update patterns to set it.
1333 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
1334 shorter compare and branch sequence can be used.
1335 (cbranchhi4_real): Likewise.
1336 (cbranchhi4_real_inverted): Likewise.
1338 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
1339 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
1341 * config/rl78/rl78.c (rl78_get_name_encoding): New.
1342 (rl78_option_override): Allow -mes0 only if C.
1343 (characterize_address): Support subregs of symbol_refs.
1344 (rl78_addr_space_address_mode): Move. Add __near.
1345 (rl78_far_p): Likewise.
1346 (rl78_addr_space_pointer_mode): Likewise.
1347 (rl78_as_legitimate_address): Likewise.
1348 (rl78_addr_space_subset_p): Likewise.
1349 (rl78_addr_space_convert): Likewise.
1350 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
1352 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
1354 (rl78_alloc_physical_registers_op1): Change logic to prefer
1355 symbol[BC] addressing.
1356 (frodata_section): New.
1357 (rl78_asm_init_sections): Initialize it.
1358 (rl78_select_section): Put __far readonly symbols in .frodata.
1359 (rl78_make_type_far): New.
1360 (rl78_insert_attributes): Force all readonly symbols to be
1362 (rl78_asm_out_integer): New.
1363 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
1364 * config/rl78/rl78.opt (-mes0): New.
1366 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
1367 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1368 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1369 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
1370 (rl78_saddr_p): New.
1371 (rl78_output_aligned_common): New.
1372 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
1373 (rl78_handle_saddr_attribute): New.
1374 (rl78_handle_naked_attribute): New.
1375 (rl78_attribute_table): Add saddr.
1376 (rl78_print_operand_1): Don't print '!' on saddr operands.
1377 (rl78_print_operand_1): Strip encodings.
1379 (rl78_strip_name_encoding): New.
1380 (rl78_attrlist_to_encoding): New.
1381 (rl78_encode_section_info): New.
1382 (rl78_asm_init_sections): New.
1383 (rl78_select_section): New.
1384 (rl78_output_labelref): New.
1385 (rl78_output_aligned_common): New.
1386 (rl78_asm_out_integer): New.
1387 (rl78_asm_ctor_dtor): New.
1388 (rl78_asm_constructor): New.
1389 (rl78_asm_destructor): New.
1391 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
1392 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
1393 (transcode_memory_rtx): Update.
1394 (rl78_expand_epilogue): Use A_REG instead of 0.
1396 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1398 * config/arm/arm-protos.h (struct tune_params): New field
1399 sched_autopref_queue_depth.
1400 * config/arm/arm.c (sched-int.h): Include header.
1401 (arm_first_cycle_multipass_dfa_lookahead_guard,)
1402 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
1403 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
1404 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
1405 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
1406 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
1407 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
1408 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
1409 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
1410 * config/arm/t-arm (arm.o): Update.
1411 * haifa-sched.c (update_insn_after_change): Update.
1412 (rank_for_schedule): Use auto-prefetcher model, if requested.
1413 (autopref_multipass_init): New static function.
1414 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
1415 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
1416 variable for debug dumps.
1417 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
1418 (autopref_multipass_dfa_lookahead_guard): New global function that
1419 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
1420 (init_h_i_d): Update.
1421 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
1422 * sched-int.h (enum autopref_multipass_data_status): New const enum.
1423 (autopref_multipass_data_): Structure for auto-prefetcher data.
1424 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
1425 (struct _haifa_insn_data:autopref_multipass_data): New field.
1426 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
1427 (autopref_multipass_dfa_lookahead_guard): Declare.
1429 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1431 * rtlanal.c (get_base_term): Handle SCRATCH.
1433 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1435 * config/aarch64/aarch64.c
1436 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
1437 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1439 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
1440 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1442 2015-01-17 Alan Modra <amodra@gmail.com>
1444 * cprop.c (do_local_cprop): Disallow replacement of fixed
1447 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1450 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
1453 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1455 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
1456 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
1458 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1460 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
1461 * config/arm/thumb1.md: ... Here.
1463 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1465 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
1466 TImode for TARGET_32BIT.
1468 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1470 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
1471 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
1473 (rs6000_abi_word_mode): New function.
1475 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1477 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
1478 instead of UNITS_PER_WORD to describe the size of stack slots.
1480 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1482 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
1483 as rs6000_promote_function_mode. Move comment to there.
1484 (rs6000_promote_function_mode): New function.
1486 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1488 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
1489 -mpowerpc64 is active.
1491 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1494 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
1497 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1499 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
1500 introduced in revision 219724.
1502 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1503 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1506 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
1507 destination is not a GP reg.
1508 (*movdi_aarch64): Likewise.
1510 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
1513 * config/rs6000/default64.h: Revert ISA change.
1515 2015-01-16 Richard Biener <rguenther@suse.de>
1518 * tree-ssa-uninit.c: Include tree-cfg.h.
1519 (MAX_SWITCH_CASES): New define.
1520 (convert_control_dep_chain_into_preds): Handle switch statements.
1521 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
1522 (normalize_one_pred_1): Do not split bit-manipulations.
1525 2015-01-16 Richard Biener <rguenther@suse.de>
1527 PR tree-optimization/64568
1528 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
1529 complex load rewriting for TARGET_MEM_REFs.
1531 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
1533 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
1535 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
1538 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
1540 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
1541 (aarch64_lra_p): Remove.
1543 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1546 * ipa-chkp.h (chkp_instrumentable_p): New.
1547 * ipa-chkp.c: Include tree-inline.h.
1548 (chkp_instrumentable_p): New.
1549 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
1550 Fix processing of not instrumentable functions.
1551 (chkp_versioning): Use chkp_instrumentable_p. Warn about
1552 not instrumentable functions.
1553 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
1554 chkp_instrumentable_p.
1555 * tree-inline.h (copy_forbidden): New.
1556 * tree-inline.c (copy_forbidden): Not static anymore.
1558 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1560 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
1563 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1565 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
1566 type OP_OUT to OP_INOUT.
1568 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1570 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
1571 (high x) y) to y if x and y have the same base.
1573 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1575 * config/arm/cortex-a57.md: New.
1576 * config/aarch64/aarch64.md: Include it.
1577 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
1578 * config/aarch64/aarch64-tune.md: Regenerate.
1580 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
1583 * ccmp.c (expand_ccmp_next): New function.
1584 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
1585 and compare insn sequence.
1586 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
1587 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
1588 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
1589 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
1590 (*ccmp_ior): Changed to ccmp_ior<mode>.
1591 (cmp<mode>): New pattern.
1592 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
1594 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
1596 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
1598 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
1599 _mm256_bsrli_epi128): New.
1600 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
1602 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1604 * expmed.c (store_bit_field_using_insv): Improve warning message.
1605 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
1607 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1609 PR rtl-optimization/64011
1610 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
1611 there is partial overflow.
1613 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1615 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
1617 (nds32_expand_epilogue_v3pop): Likewise.
1618 * config/nds32/nds32.md (sibcall): Define this for sibling call
1620 (sibcall_register): Likewise.
1621 (sibcall_immediate): Likewise.
1622 (sibcall_value): Likewise.
1623 (sibcall_value_register): Likewise.
1624 (sibcall_value_immediate): Likewise.
1625 (sibcall_epilogue): Likewise.
1626 (epilogue): Pass false to indicate this is not a sibcall epilogue.
1627 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
1628 (nds32_expand_epilogue_v3pop): Likewise.
1630 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1632 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
1633 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
1634 (return_internal): New.
1635 (return): Define this named pattern.
1636 (simple_return): Define this named pattern.
1637 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
1638 pattern instead of unspec_volatile_func_return.
1639 (nds32_expand_epilogue_v3pop): Likewise.
1640 (nds32_can_use_return_insn): New function.
1642 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1644 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
1645 * config/nds32/nds32.md (pop25return): New.
1646 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
1647 pop25return pattern.
1649 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1651 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
1652 -mforbid-fp-as-gp, and -mex9 options.
1654 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1656 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
1657 remove -mgp-direct option.
1659 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1661 * doc/invoke.texi (--param early-inlining-insns): Update default value.
1662 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
1664 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1666 * ipa-inline.c (inline_small_functions): Work around hints
1669 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
1672 * doc/invoke.texi (Option Summary): Document new Nios II
1674 (Nios II Options): Likewise.
1675 * config/nios2/nios2.opt: Add -mgpopt= option support.
1676 Modify existing -mgpopt and -mno-gpopt options to be aliases.
1677 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
1678 * config/nios2/nios2.c (nios2_option_override): Adjust
1680 (nios2_in_small_data_p): Return true for explicit small data
1681 sections even with -G0.
1682 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
1685 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1688 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
1690 (inline_call): Fix removal of aliases.
1692 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1694 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
1695 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
1696 * opts.c (common_handle_option): Add -fsanitize=vptr.
1697 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
1698 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
1699 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
1700 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
1701 (ubsan_expand_vptr_ifn): New prototype.
1702 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
1703 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
1704 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
1705 expand_LOOP_VECTORIZED): Make argument nameless, remove
1707 (expand_UBSAN_VPTR): New function.
1708 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
1710 (UBSAN_VPTR): New internal function.
1711 * sanopt.c (tree_map_traits): Renamed to ...
1712 (sanopt_tree_map_traits): ... this.
1713 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
1714 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
1715 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
1716 (maybe_optimize_ubsan_vptr_ifn): New function.
1717 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
1718 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
1720 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
1721 internal calls like pure functions for aliasing, even when they
1722 have other side-effects that prevent making them ECF_PURE.
1723 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
1724 (ubsan_expand_vptr_ifn): New function.
1726 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
1728 PR rtl-optimization/64110
1729 * stmt.c (parse_output_constraint): Process '^' and '$'.
1730 (parse_input_constraint): Ditto.
1731 * lra-constraints.c (process_alt_operands): Process the new
1733 * ira-costs.c (record_reg_classes): Process the new constraint
1735 * genoutput.c (indep_constraints): Add '^' and '$'.
1736 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
1737 * doc/md.texi: Add description of the new constraints.
1739 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1740 Bernd Schmidt <bernds@codesourcery.com>
1741 Cesar Philippidis <cesar@codesourcery.com>
1742 James Norris <jnorris@codesourcery.com>
1743 Tom de Vries <tom@codesourcery.com>
1744 Ilmir Usmanov <i.usmanov@samsung.com>
1745 Dmitry Bocharnikov <dmitry.b@samsung.com>
1746 Evgeny Gavrin <e.gavrin@samsung.com>
1747 Jakub Jelinek <jakub@redhat.com>
1749 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
1750 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
1751 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
1753 * builtins.c: Include "gomp-constants.h".
1754 (expand_builtin_acc_on_device): New function.
1755 (expand_builtin, is_inexpensive_builtin): Handle
1756 BUILT_IN_ACC_ON_DEVICE.
1757 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
1759 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
1761 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
1762 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
1763 i386/intelmic-offload.h.
1764 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
1765 to libgomp and its dependencies.
1766 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
1767 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1768 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
1769 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1770 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1771 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1772 * doc/generic.texi: Update for OpenACC changes.
1773 * doc/gimple.texi: Likewise.
1774 * doc/invoke.texi: Likewise.
1775 * doc/sourcebuild.texi: Likewise.
1776 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
1777 GF_OMP_FOR_KIND_OACC_LOOP.
1778 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
1779 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
1780 GF_OMP_TARGET_KIND_OACC_UPDATE,
1781 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
1783 * gimple.c: Update comments for OpenACC changes.
1784 * gimple.def: Likewise.
1785 * gimple.h: Likewise.
1786 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
1787 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
1788 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
1789 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
1790 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
1792 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
1793 * gimplify.c: Include "gomp-constants.h".
1794 Update comments for OpenACC changes.
1795 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
1796 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
1797 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
1798 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
1799 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1800 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1801 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
1802 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
1803 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1805 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
1806 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1807 OMP_CLAUSE_SET_MAP_KIND.
1808 (gimplify_oacc_cache): New function.
1809 (gimplify_omp_for): Handle OACC_LOOP.
1810 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
1812 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
1813 OACC_EXIT_DATA, OACC_UPDATE.
1814 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
1815 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
1816 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
1817 (gimplify_body): Consider flag_openacc next to flag_openmp.
1818 * lto-streamer-out.c: Include "gomp-constants.h".
1819 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
1820 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
1821 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
1822 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
1823 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
1824 (BUILT_IN_ACC_ON_DEVICE): New builtins.
1825 * omp-low.c: Include "gomp-constants.h".
1826 Update comments for OpenACC changes.
1827 (struct omp_context): Add reduction_map, gwv_below, gwv_this
1829 (extract_omp_for_data, use_pointer_for_field, install_var_field)
1830 (new_omp_context, delete_omp_context, scan_sharing_clauses)
1831 (create_omp_child_function, scan_omp_for, scan_omp_target)
1832 (check_omp_nesting_restrictions, lower_reduction_clauses)
1833 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
1834 Update for OpenACC changes.
1835 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
1836 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
1837 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
1838 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
1839 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
1840 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
1842 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1843 Handle GF_OMP_FOR_KIND_OACC_LOOP.
1844 (expand_omp_target, lower_omp_target): Handle
1845 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
1846 GF_OMP_TARGET_KIND_OACC_UPDATE,
1847 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
1848 GF_OMP_TARGET_KIND_OACC_DATA.
1849 (pass_expand_omp::execute, execute_lower_omp)
1850 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
1852 (offload_symbol_decl): New variable.
1853 (oacc_get_reduction_array_id, oacc_max_threads)
1854 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
1855 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
1856 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
1857 (oacc_gimple_assign, oacc_initialize_reduction_data)
1858 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
1860 (is_targetreg_ctx): Remove function.
1861 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
1862 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
1863 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1864 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
1865 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
1866 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
1867 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
1868 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
1869 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
1870 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
1871 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
1872 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
1873 * tree-core.h: Update comments for OpenACC changes.
1874 (enum omp_clause_map_kind): Remove.
1875 (struct tree_omp_clause): Change type of map_kind member from enum
1876 omp_clause_map_kind to unsigned char.
1877 * tree-inline.c: Update comments for OpenACC changes.
1878 * tree-nested.c: Likewise. Include "gomp-constants.h".
1879 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
1880 (convert_tramp_reference_stmt, convert_gimple_call): Update for
1881 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1882 OMP_CLAUSE_SET_MAP_KIND.
1883 * tree-pretty-print.c: Include "gomp-constants.h".
1884 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
1885 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
1886 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
1887 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
1888 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1889 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
1890 instead of OMP_CLAUSE_MAP_*.
1891 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
1892 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
1893 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
1894 * tree-streamer-in.c: Include "gomp-constants.h".
1895 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
1896 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
1897 * tree-streamer-out.c: Include "gomp-constants.h".
1898 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
1900 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
1901 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
1902 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
1903 * tree.c (omp_clause_num_ops): Update accordingly.
1904 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
1906 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
1907 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
1908 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
1909 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
1910 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
1911 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
1912 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
1913 (OMP_CLAUSE_SET_MAP_KIND): New macro.
1914 * varpool.c (varpool_node::get_create): Consider flag_openacc next
1916 * config/i386/intelmic-offload.h: New file.
1917 * config/nvptx/offload.h: Likewise.
1919 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1921 * explow.h: Remove duplicate contents.
1922 * dojump.h: Likewise.
1924 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
1926 * arm.c (arm_xgene_tune): Add default initializer for instruction
1929 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1933 * ipa.c (symbol_table::remove_unreachable_nodes):
1934 Do not put abstract origins into boundary.
1936 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
1938 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
1939 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
1941 2015-01-15 Steve Ellcey <sellcey@mips.com>
1943 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
1944 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
1945 builtins.def, and chkp-builtins.def.
1947 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
1949 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
1952 2015-01-15 Richard Biener <rguenther@suse.de>
1954 PR tree-optimization/61743
1955 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
1956 information on PHIs for some simple cases.
1958 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1960 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
1962 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
1963 * config/arm/arm-cores.def (xgene1): New entry.
1964 * config/arm/arm-tables.opt: Regenerate.
1965 * config/arm/arm-tune.md: Regenerate.
1966 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
1968 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
1970 * tree-if-conv.c: Include hash-map.h.
1971 (aggressive_if_conv): New variable.
1972 (fold_build_cond_expr): Add simplification of non-zero condition.
1973 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
1974 destination block is not always executed.
1975 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
1976 than two predecessors if AGGRESSIVE_IF_CONV is true.
1977 (if_convertible_stmt_p): Fix commentary.
1978 (all_preds_critical_p): New function.
1979 (has_pred_critical_p): New function.
1980 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
1981 BB can have more than two predecessors and all incoming edges can be
1983 (predicate_bbs): Skip predication for loop exit block, use build2_loc
1984 to compute predicate for true edge.
1985 (find_phi_replacement_condition): Delete this function.
1986 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
1987 Allow interchange PHI arguments if EXTENDED is false.
1988 Change check that block containing reduction statement candidate
1989 is predecessor of phi-block since phi may have more than two arguments.
1990 (phi_args_hash_traits): New helper structure.
1991 (struct phi_args_hash_traits): New type.
1992 (phi_args_hash_traits::hash): New function.
1993 (phi_args_hash_traits::equal_keys): New function.
1994 (gen_phi_arg_condition): New function.
1995 (predicate_scalar_phi): Add handling of phi nodes with more than two
1996 arguments, delete COND and TRUE_BB arguments, insert body of
1997 find_phi_replacement_condition to predicate ordinary phi nodes.
1998 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
1999 delete call of find_phi_replacement_condition and invoke
2000 predicate_scalar_phi with two arguments.
2001 (insert_gimplified_predicates): Add assert that non-predicated block
2002 don't have statements to insert.
2003 (ifcvt_split_critical_edges): New function.
2004 (ifcvt_split_def_stmt): Likewise.
2005 (ifcvt_walk_pattern_tree): Likewise.
2006 (stmt_is_root_of_bool_pattern): Likewise.
2007 (ifcvt_repair_bool_pattern): Likewise.
2008 (ifcvt_local_dce): Likewise.
2009 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
2010 is copy of inner or outer loop force_vectorize field, invoke
2011 ifcvt_split_critical_edges, ifcvt_local_dce and
2012 ifcvt_repair_bool_pattern for aggressive if-conversion.
2014 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
2016 * config/aarch64/aarch64.md: Include xgene1.md.
2017 * config/aarch64/xgene1.md: New file.
2019 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2021 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
2022 xgene1 (APM XGene-1) core definition.
2023 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
2024 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
2025 * doc/invoke.texi: Document -mcpu=xgene1.
2027 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2029 * dojump.h: New header file.
2030 * explow.h: Likewise.
2031 * expr.h: Remove includes.
2032 Move expmed.c prototypes to expmed.h.
2033 Move dojump.c prototypes to dojump.h.
2034 Move alias.c prototypes to alias.h.
2035 Move explow.c prototypes to explow.h.
2036 Move calls.c prototypes to calls.h.
2037 Move emit-rtl.c prototypes to emit-rtl.h.
2038 Move varasm.c prototypes to varasm.h.
2039 Move stmt.c prototypes to stmt.h.
2040 (saved_pending_stack_adjust): Move to dojump.h.
2041 (adjust_address): Move to explow.h.
2042 (adjust_address_nv): Move to emit-rtl.h.
2043 (adjust_bitfield_address): Likewise.
2044 (adjust_bitfield_address_size): Likewise.
2045 (adjust_bitfield_address_nv): Likewise.
2046 (adjust_automodify_address_nv): Likewise.
2047 * explow.c (expr_size): Move to expr.c.
2048 (int_expr_size): Likewise.
2049 (tree_expr_size): Likewise.
2050 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2051 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2052 * genemit.c (main): Generate includes statistics.h, real.h,
2053 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
2055 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
2056 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
2057 explow.h, emit-rtl.h, stmt.h.
2058 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
2059 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
2060 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
2061 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
2062 emit-rtl.h, varasm.h, stmt.h.
2063 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
2064 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
2065 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
2066 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
2067 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2068 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
2069 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
2070 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
2071 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
2072 tm.h tree.h varasm.h vec.h wide-int.h.
2073 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2074 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2075 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
2076 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
2077 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
2078 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
2079 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
2080 * loop-iv.c: Likewise.
2081 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
2082 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
2083 statistics.h stmt.h tree.h varasm.h wide-int.h.
2084 * lra-constraints.c: Likewise.
2085 * lra-eliminations.c: Likewise.
2086 * lra-lives.c: Likewise.
2087 * lra-remat.c: Likewise.
2088 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2089 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
2090 statistics.h stmt.h tree.h varasm.h wide-int.h.
2091 * hw-doloop.c: Likewise.
2092 * ira-color.c: Likewise.
2093 * ira-emit.c: Likewise.
2094 * loop-doloop.c: Likewise.
2095 * loop-invariant.c: Likewise.
2096 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2097 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
2098 statistics.h stmt.h tree.h varasm.h wide-int.h.
2099 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
2100 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
2101 statistics.h stmt.h tree.h varasm.h wide-int.h.
2102 * combine-stack-adj.c: Likewise.
2105 * ifcvt.c: Likewise.
2106 * ira-costs.c: Likewise.
2108 * lra-coalesce.c: Likewise.
2109 * lra-spills.c: Likewise.
2110 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2111 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
2112 stmt.h varasm.h wide-int.h.
2113 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2114 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2116 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
2117 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
2118 statistics.h stmt.h varasm.h wide-int.h.
2119 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
2120 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
2121 varasm.h wide-int.h.
2122 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
2123 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2124 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
2125 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
2126 statistics.h stmt.h.
2127 * config/tilepro/tilepro.c: Likewise.
2128 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
2129 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
2130 * config/pdp11/pdp11.c: Likewise.
2131 * config/xtensa/xtensa.c: Likewise.
2132 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
2133 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2135 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2136 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2137 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
2138 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2139 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2140 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
2141 * rtl-chkp.c: Likewise.
2142 * tree-chkp-opt.c: Likewise.
2143 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
2144 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2145 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
2146 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2147 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2148 statistics.h stmt.h.
2149 * tree-vect-data-refs.c: Likewise.
2150 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
2151 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2152 rtl.h statistics.h stmt.h varasm.h.
2153 * internal-fn.c: Likewise.
2154 * ipa-icf-gimple.c: Likewise.
2155 * lto-section-out.c: Likewise.
2156 * tree-data-ref.c: Likewise.
2157 * tree-nested.c: Likewise.
2158 * tree-outof-ssa.c: Likewise.
2159 * tree-predcom.c: Likewise.
2160 * tree-pretty-print.c: Likewise.
2161 * tree-scalar-evolution.c: Likewise.
2162 * tree-ssa-strlen.c: Likewise.
2163 * tree-vect-loop.c: Likewise.
2164 * tree-vect-patterns.c: Likewise.
2165 * tree-vect-slp.c: Likewise.
2166 * tree-vect-stmts.c: Likewise.
2168 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2169 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
2171 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
2172 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2173 statistics.h stmt.h varasm.h.
2174 * loop-unroll.c: Likewise.
2175 * ubsan.c: Likewise.
2176 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
2177 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
2179 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2180 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
2181 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
2182 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2183 statistics.h stmt.h.
2184 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
2185 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2186 statistics.h stmt.h varasm.h.
2187 * gimple-match-head.c: Likewise.
2188 * lto-cgraph.c: Likewise.
2189 * lto-section-in.c: Likewise.
2190 * lto-streamer-in.c: Likewise.
2191 * lto-streamer-out.c: Likewise.
2192 * tree-affine.c: Likewise.
2193 * tree-cfg.c: Likewise.
2194 * tree-cfgcleanup.c: Likewise.
2195 * tree-if-conv.c: Likewise.
2196 * tree-into-ssa.c: Likewise.
2197 * tree-ssa-alias.c: Likewise.
2198 * tree-ssa-copyrename.c: Likewise.
2199 * tree-ssa-dse.c: Likewise.
2200 * tree-ssa-forwprop.c: Likewise.
2201 * tree-ssa-live.c: Likewise.
2202 * tree-ssa-math-opts.c: Likewise.
2203 * tree-ssa-pre.c: Likewise.
2204 * tree-ssa-sccvn.c: Likewise.
2205 * tree-tailcall.c: Likewise.
2206 * tree-vect-generic.c: Likewise.
2207 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2208 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
2209 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2210 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
2211 * varasm.c: Likewise.
2212 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2213 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
2215 * init-regs.c: Likewise.
2217 * omp-low.c: Likewise.
2218 * stack-ptr-mod.c: Likewise.
2219 * tree-ssa-reassoc.c: Likewise.
2220 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2221 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
2223 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2224 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
2225 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2226 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
2227 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2228 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
2229 * tree-ssa-phiopt.c: Likewise.
2230 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2231 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2232 * config/fr30/fr30.c: Likewise.
2233 * config/frv/frv.c: Likewise.
2235 * final.c: Likewise.
2236 * optabs.c: Likewise.
2237 * passes.c: Likewise.
2238 * simplify-rtx.c: Likewise.
2240 * toplev.c: Likewise.
2241 * var-tracking.c: Likewise.
2242 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2243 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2244 * lower-subreg.c: Likewise.
2245 * postreload-gcse.c: Likewise.
2247 * reginfo.c: Likewise.
2248 * store-motion.c: Likewise.
2249 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2250 fixed-value.h hashtab.h real.h stmt.h varasm.h.
2251 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2252 fixed-value.h hashtab.h statistics.h stmt.h.
2253 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2254 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2255 * except.c: Likewise.
2256 * explow.c: Likewise.
2257 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2258 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
2260 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2261 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
2262 * tree-ssa-structalias.c: Likewise.
2263 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2264 fixed-value.h insn-config.h real.h statistics.h.
2265 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2266 fixed-value.h insn-config.h real.h statistics.h stmt.h.
2267 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2268 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2269 * cfgbuild.c: Likewise.
2270 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2271 fixed-value.h real.h rtl.h statistics.h stmt.h.
2272 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2273 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2274 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2275 fixed-value.h real.h statistics.h stmt.h.
2276 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2277 fixed-value.h real.h statistics.h stmt.h varasm.h.
2278 * cprop.c: Likewise.
2279 * modulo-sched.c: Likewise.
2280 * postreload.c: Likewise.
2281 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2282 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
2283 statistics.h stmt.h varasm.h.
2284 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
2285 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2286 rtl.h statistics.h stmt.h varasm.h.
2287 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
2288 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
2290 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2291 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
2293 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
2294 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
2296 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
2297 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2298 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2299 function.h real.h statistics.h stmt.h varasm.h.
2300 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2301 insn-config.h real.h statistics.h stmt.h.
2302 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2303 statistics.h stmt.h.
2304 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
2305 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
2306 statistics.h stmt.h varasm.h.
2307 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
2308 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
2309 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2310 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
2311 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
2312 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2313 statistics.h stmt.h varasm.h.
2314 * ipa-polymorphic-call.c: Likewise.
2315 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
2316 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2317 statistics.h stmt.h.
2318 * config/c6x/c6x.c: Likewise.
2319 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
2320 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2321 statistics.h stmt.h varasm.h.
2322 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
2323 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
2325 * ipa-split.c: Likewise.
2326 * tree-eh.c: Likewise.
2327 * tree-ssa-dce.c: Likewise.
2328 * tree-ssa-loop-niter.c: Likewise.
2329 * tree-vrp.c: Likewise.
2330 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
2331 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
2333 * config/nds32/nds32-fp-as-gp.c: Likewise.
2334 * config/nds32/nds32-intrinsic.c: Likewise.
2335 * config/nds32/nds32-isr.c: Likewise.
2336 * config/nds32/nds32-md-auxiliary.c: Likewise.
2337 * config/nds32/nds32-memory-manipulation.c: Likewise.
2338 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2339 * config/nds32/nds32-predicates.c: Likewise.
2340 * config/nds32/nds32.c: Likewise.
2341 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
2342 fixed-value.h hashtab.h real.h statistics.h.
2343 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
2344 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2345 * config/arm/arm.c: Likewise.
2346 * config/avr/avr.c: Likewise.
2347 * config/bfin/bfin.c: Likewise.
2348 * config/h8300/h8300.c: Likewise.
2349 * config/i386/i386.c: Likewise.
2350 * config/ia64/ia64.c: Likewise.
2351 * config/iq2000/iq2000.c: Likewise.
2352 * config/m32c/m32c.c: Likewise.
2353 * config/m32r/m32r.c: Likewise.
2354 * config/m68k/m68k.c: Likewise.
2355 * config/mcore/mcore.c: Likewise.
2356 * config/mep/mep.c: Likewise.
2357 * config/mips/mips.c: Likewise.
2358 * config/mn10300/mn10300.c: Likewise.
2359 * config/moxie/moxie.c: Likewise.
2360 * config/pa/pa.c: Likewise.
2361 * config/rl78/rl78.c: Likewise.
2362 * config/rx/rx.c: Likewise.
2363 * config/s390/s390.c: Likewise.
2364 * config/sh/sh.c: Likewise.
2365 * config/sparc/sparc.c: Likewise.
2366 * config/spu/spu.c: Likewise.
2367 * config/stormy16/stormy16.c: Likewise.
2368 * config/v850/v850.c: Likewise.
2369 * config/vax/vax.c: Likewise.
2370 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
2371 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2372 * config/msp430/msp430.c: Likewise.
2373 * predict.c: Likewise.
2374 * value-prof.c: Likewise.
2375 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
2376 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
2377 * config/microblaze/microblaze.c: Likewise.
2378 * config/nios2/nios2.c: Likewise.
2379 * config/rs6000/rs6000.c: Likewise.
2380 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2381 insn-config.h real.h rtl.h statistics.h stmt.h.
2382 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2383 insn-config.h real.h statistics.h stmt.h.
2384 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
2385 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2386 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
2387 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2388 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
2389 fixed-value.h real.h statistics.h stmt.h.
2390 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
2391 fixed-value.h statistics.h stmt.h.
2392 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
2395 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2397 * gengtype.c (create_user_defined_type): Workaround
2398 -Wmaybe-uninitialized false positives.
2399 * cse.c (fold_rtx): Likewise.
2400 * loop-invariant.c (gain_for_invariant): Likewise.
2402 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
2404 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
2405 set the memory attributes in all cases but clear MEM_EXPR if need be.
2407 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2409 PR tree-optimization/64434
2410 * cfgexpand.c (reorder_operands): New function.
2411 (expand_gimple_basic_block): Insert call of reorder_operands if
2414 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
2416 * config/mips/micromips.md (*swp): Remove explicit parallel.
2417 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
2418 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
2419 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
2420 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
2421 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
2422 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
2423 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
2424 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
2425 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
2426 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
2427 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
2428 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
2429 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
2430 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
2431 (mips_wrdsp): Likewise.
2432 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
2434 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
2435 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
2436 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
2437 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
2438 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
2439 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
2440 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
2441 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
2442 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
2444 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2446 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
2447 (mips_print_operand): Support 'y' to print exact log2 in decimal
2449 * config/mips/mips.h (ISA_HAS_LSA): New define.
2450 (ISA_HAS_DLSA): Likewise.
2451 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
2452 * config/mips/predicates.md (const_immlsa_operand): New predicate.
2454 2015-01-15 Martin Liska <mliska@suse.cz>
2457 * optc-save-gen.awk: Add support for array types.
2459 2015-01-15 Richard Biener <rguenther@suse.de>
2462 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
2463 for MEM_REF access functions with the same base can never partially
2466 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
2468 * common.opt: New option -fstack-protector-explicit.
2469 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
2470 (stack_protect_decl_phase): Handle stack_protect attribute for
2471 explicit stack protection requests.
2472 (expand_used_vars): Similarly.
2473 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
2474 * doc/extend.texi: Add documentation for "stack_protect" attribute.
2475 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
2477 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
2480 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
2482 (sh_extending_set_of_reg): New struct.
2483 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
2484 sh_remove_reg_dead_or_unused_notes): New Declarations.
2485 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
2486 sh_find_extending_set_of_reg, sh_split_tst_subregs,
2487 sh_extending_set_of_reg::use_as_extended_reg): New functions.
2488 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
2489 convert to insn_and_split and use new function sh_split_tst_subregs.
2491 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
2493 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
2495 (Optimization Options): Move -fuse-ld documentation to...
2496 (Link Options): ...here.
2498 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2500 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
2502 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
2503 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
2504 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
2505 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
2506 instead of ZR for the memory operand of LL/SC.
2507 (compare_and_swap_12, sync_add<mode>): Likewise.
2508 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
2509 (sync_new_<optab>_12, sync_nand_12): Likewise.
2510 (sync_old_nand_12, sync_new_nand_12): Likewise.
2511 (sync_sub<mode>, sync_old_add<mode>): Likewise.
2512 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
2513 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
2514 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
2515 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
2516 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
2517 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
2518 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
2519 * doc/md.texi (ZC): Update description.
2521 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2523 * builtins.c (expand_builtin_atomic_exchange): Remove error when
2524 memory model is CONSUME.
2525 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
2526 expand_builtin_atomic_store): Change invalid memory model errors to
2528 (expand_builtin_atomic_clear): Change invalid model errors to warnings
2529 and issue warning for CONSUME.
2531 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
2533 * lto-cgraph: Update function comments for
2534 lto_symtab_encoder_encode_*.
2536 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2538 * Makefile.in (site.exp): Do not set ENABLE_LTO.
2540 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2542 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
2543 * lto-cgraph.c (select_what_to_stream): Remove argument, use
2544 lto_stream_offload_p instead.
2545 * lto-streamer.h (select_what_to_stream): Remove argument.
2546 * passes.c (ipa_write_summaries): Likewise.
2547 * tree-pass.h (ipa_write_summaries): Likewise.
2549 2015-01-14 Richard Biener <rguenther@suse.de>
2551 PR tree-optimization/59354
2552 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
2553 groups larger than the slp group size as having gaps.
2555 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2558 * builtins.c (get_memmodel): Promote consume to acquire always.
2560 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2563 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
2566 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2569 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
2571 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
2572 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
2573 AVX512VBMI, as it implies AVX512BW.
2575 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2578 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
2579 (vec_unpacks_hi_v16sf): Ditto.
2581 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2583 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
2586 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2588 * doc/invoke.texi (mapcs): Mention deprecation.
2589 (mapcs-frame): Likewise.
2591 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2594 * config/arm/arm.c (callee_saved_reg_p): Define.
2595 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
2596 register is callee saved instead of !call_used_regs[reg].
2597 (thumb1_compute_save_reg_mask): Likewise.
2599 2015-01-14 Hale Wang <hale.wang@arm.com>
2601 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
2604 2015-01-14 Richard Biener <rguenther@suse.de>
2607 * tree-inline.c (insert_debug_decl_map): Check destination
2608 function MAY_HAVE_DEBUG_STMTS.
2609 (insert_init_debug_bind): Likewise.
2610 (insert_init_stmt): Remove redundant check.
2611 (remap_gimple_stmt): Drop debug stmts if the destination
2612 function has var-tracking assignments disabled.
2614 2015-01-14 Martin Liska <mliska@suse.cz>
2616 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
2617 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
2619 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2622 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
2623 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
2625 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2627 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
2628 level from an ARCH; do not inject the default.
2629 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
2630 MIPS_ISA_LEVEL_SPEC.
2631 (MIPS_ISA_NAN2008_SPEC): Update comment.
2632 (BASE_DRIVER_SELF_SPECS): Likewise.
2633 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
2634 MIPS_DEFAULT_ISA_LEVEL_SPEC.
2635 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
2636 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
2637 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
2639 2015-01-14 Richard Biener <rguenther@suse.de>
2641 PR tree-optimization/64493
2642 PR tree-optimization/64495
2643 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
2644 assign the proper vectorized PHI to the inner loop exit PHIs.
2646 2015-01-14 Joey Ye <joey.ye@arm.com>
2648 * config/arm/arm.c (arm_compute_save_reg_mask):
2649 Do not save lr in case of tail call.
2650 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
2652 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
2654 * tree-vrp.c (check_array_ref): Emit more warnings
2655 for warn_array_bounds >= 2.
2656 * common.opt: New option -Warray-bounds=.
2657 * doc/invoke.texi: Document -Warray-bounds=.
2659 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
2661 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
2662 (mforbid-fp-as-gp): Remove.
2664 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
2665 (nds32_symbol_load_store_p): Remove.
2666 (nds32_fp_as_gp_check_available): Clean up implementation.
2667 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
2669 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
2670 fp-as-gp and ex9 cases.
2672 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2674 * tree-profile.c (init_ic_make_global_vars): Drop workaround
2675 for bintuils bug 14342.
2676 (init_ic_make_global_vars): Likewise.
2677 (gimple_init_edge_profiler): Likewise.
2678 (gimple_gen_ic_func_profiler): Likewise.
2680 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2682 * ipa-inline.c (inline_small_functions): Swap the operands in
2685 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2688 * ipa-inline-analysis.c (node_growth_cache): Remove.
2689 (initialize_growth_caches): Do not initialize it.
2690 (free_growth_caches): Do not free it.
2691 (do_estimate_growth): Rename to ...
2692 (estimate_growth): ... this one; drop growth cache code.
2693 (growth_likely_positive): Always go the heuristics way.
2694 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
2695 (reset_edge_caches): Do not reset node growth.
2696 (heap_edge_removal_hook): Do not maintain cache.
2697 (inline_small_functions): Likewise; strenghten sanity check.
2698 (ipa_inline): Do not maintain caches.
2699 * ipa-inline.h (node_growth_cache): Remove.
2700 (do_estimate_growth): Remove to ...
2701 (estimate_growth): this one; remove inline version.
2702 (reset_node_growth_cache): Remove.
2704 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2707 * ipa-inline.c (inline_small_functions): Update callee keys after
2708 resolving speculation
2709 (inline_small_functions): Always check monotonicity of the queue.
2711 2015-01-13 Marek Polacek <polacek@redhat.com>
2714 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
2716 2015-01-13 Jakub Jelinek <jakub@redhat.com>
2718 PR rtl-optimization/64286
2719 * ree.c (combine_reaching_defs): Move part of comment earlier,
2720 remove !SCALAR_INT_MODE_P check.
2721 (add_removable_extension): Don't add vector mode
2722 extensions if all uses of the source register aren't the same
2725 2015-01-13 Renlin Li <renlin.li@arm.com>
2727 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
2728 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
2730 2015-01-13 Martin Liska <mliska@suse.cz>
2732 * ipa-icf.c (sem_function::equals_private): Call new functions
2733 cl_target_option_print_diff and cl_optimization_print_diff.
2734 * optc-save-gen.awk (cl_target_option_print_diff): New function.
2735 (cl_optimization_print_diff): Likewise.
2736 * opth-gen.awk: Likewise.
2738 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
2740 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
2741 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
2742 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
2743 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
2744 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
2745 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
2747 2015-01-13 Andrew Pinski <apinski@cavium.com>
2749 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
2750 instead of src mode.
2752 2015-01-13 Richard Biener <rguenther@suse.de>
2755 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
2758 2015-01-13 Andrew Pinski <apinski@cavium.com>
2760 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
2762 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2764 2015-01-13 Jakub Jelinek <jakub@redhat.com>
2767 * cfgexpand.c (expand_computed_goto): Don't call
2768 convert_memory_address here.
2770 2015-01-13 Richard Biener <rguenther@suse.de>
2772 PR tree-optimization/64406
2773 * tree-loop-distibution.c (pass_loop_distribution::execute):
2774 Reset the SCEV hashtable if we distributed anything.
2776 2015-01-13 Richard Biener <rguenther@suse.de>
2778 PR tree-optimization/64404
2779 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
2780 SLP types for CSEd loads.
2782 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2784 PR tree-optimization/64436
2785 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
2786 merge of two symbolic numbers for a bitwise OR to ...
2787 (perform_symbolic_merge): This. Also fix computation of the range and
2788 end of the symbolic number corresponding to the result of a bitwise OR.
2790 2015-01-13 Richard Biener <rguenther@suse.de>
2792 PR tree-optimization/64568
2793 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
2794 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
2796 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2798 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
2799 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
2801 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2803 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
2804 target-specific symbol_ref flag.
2805 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
2806 resides in rodata section.
2807 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
2808 (nds32_encode_section_info): New function.
2810 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2812 * config/nds32/nds32.md (call): Use pseudo instruction bal which
2813 clobbers TA_REGNUM if large code model is specified.
2814 (call_register): Likewise.
2815 (call_immediate): Likewise.
2816 (call_value): Likewise.
2817 (call_value_register): Likewise.
2818 (call_value_immediate): Likewise.
2820 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2822 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
2823 (TARGET_CMODEL_MEDIUM): New macro.
2824 (TARGET_CMODEL_LARGE): New macro.
2825 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
2826 code model setting in assembly code.
2828 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2830 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
2831 Remove MASK_GP_DIRECT flag.
2832 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
2833 one of the multilib default options.
2834 * config/nds32/nds32.opt (mgp-direct): Remove.
2835 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
2836 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
2838 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
2840 * config/nds32/nds32.opt (mcmodel): Add new option.
2841 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
2842 to describe code model.
2844 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
2847 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
2849 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
2851 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
2852 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
2853 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
2854 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
2855 __builtin_sh_set_fpscr.
2857 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
2859 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
2860 after a funtion name just to indicate it is a function.
2861 ([-fsanitize-undefined-trap-on-error]): Likewise.
2862 ([-fdbg-cnt=]): Likewise.
2863 ([-mmemcpy]): Likewise.
2864 ([-mflush-func]): Likewise.
2865 ([-msynci]): Likewise.
2867 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
2869 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
2872 2015-01-12 Jakub Jelinek <jakub@redhat.com>
2874 PR tree-optimization/64563
2875 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
2876 instead of != VR_VARYING.
2879 * config/i386/i386.c (ix86_expand_prologue): Add
2880 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
2882 PR tree-optimization/64454
2883 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
2884 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
2885 for signed or [0, op1 - 1] for unsigned modulo.
2886 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
2887 even if op1 does not satisfy integer_pow2p.
2890 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
2892 2015-01-12 Jeff Law <law@redhat.com>
2895 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
2896 (trunchiqi2, truncsihi2): Similarly.
2898 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
2899 rather than calling F.
2901 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2903 * tsan.c (instrument_expr): Use force_gimple_operand.
2904 Use may_be_nonaddressable_p instead of is_gimple_addressable.
2906 2015-01-12 Richard Biener <rguenther@suse.de>
2908 PR tree-optimization/64530
2909 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
2912 2015-01-12 Richard Biener <rguenther@suse.de>
2915 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
2918 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2920 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
2921 Cortex-A17 tuning parameters.
2922 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
2924 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2926 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
2927 * config/arm/arm.c (arm_macro_fusion_p): New function.
2928 (arm_macro_fusion_pair_p): Likewise.
2929 (TARGET_SCHED_MACRO_FUSION_P): Define.
2930 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
2931 (ARM_FUSE_NOTHING): Likewise.
2932 (ARM_FUSE_MOVW_MOVT): Likewise.
2933 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
2934 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
2935 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
2936 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
2937 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
2938 arm_cortex_a5_tune): Specify fuseable_ops value.
2940 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
2943 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
2944 test for PIE with copy reloc.
2945 * configure: Regenerated.
2947 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2949 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
2951 (arm_tls_descseq_addr): Likewise.
2952 (arm_gen_movmemqi): Likewise.
2953 (arm_expand_epilogue_apcs_frame): Likewise.
2954 (arm_expand_epilogue): Likewise.
2955 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
2958 2015-01-12 Martin Liska <mliska@suse.cz>
2961 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
2962 volatility for correct operands.
2964 2015-01-12 Martin Liska <mliska@suse.cz>
2966 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
2967 that a function is not leaf.
2968 (sem_function::compare_polymorphic_p): Likewise.
2970 2015-01-12 Martin Liska <mliska@suse.cz>
2972 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
2973 that a function is not leaf.
2974 (sem_function::compare_polymorphic_p): Likewise.
2976 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2978 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
2979 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
2980 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
2981 fold-const.h, tree-check.h.
2983 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
2987 * ipa-inline.c (compute_uninlined_call_time,
2988 compute_inlined_call_time): Use counts for extra precision when
2990 (big_speedup_p): Fix formating.
2991 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
2992 (relative_time_benefit): Remove.
2993 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
2994 merge guessed and read profile paths.
2995 (inline_small_functions): Count only !optimize_size functions into
2996 initial size; be more lax about sanity check when profile is used;
2997 be sure to update inlined function profile when profile is read.
2999 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3002 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
3003 cost when edge becomes direct.
3004 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
3005 is resolved or when introducing new speculation.
3007 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
3011 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
3012 '||' to fix typo issue.
3014 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
3015 accept and return NULL.
3017 2015-01-12 Martin Liska <mliska@suse.cz>
3019 * cgraph.c (cgraph_edge::remove_callee): Move function to header
3020 file for being inlined.
3021 (cgraph_set_edge_callee): Delete.
3022 (cgraph_edge::redirect_callee): Move function to header file
3024 (cgraph_edge::make_direct): Use new function.
3025 (cgraph_edge::dump_edge_flags): New function created from
3026 static dump_edge_flags function.
3027 (cgraph_node::dump): Use new function.
3028 (cgraph_edge::verify_count_and_frequency): New function created
3029 from verify_edge_count_and_frequency.
3030 (cgraph_edge::verify_corresponds_to_fndecl): New function created
3031 from verify_edge_corresponds_to_fndecl.
3032 (verify_edge_corresponds_to_fndecl): Delete.
3033 (cgraph_node::verify_node): Use new function.
3034 * cgraph.h (cgraph_edge::set_callee): New function.
3035 (cgraph_edge::dump_edge_flags): Likewise.
3036 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
3038 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
3040 * ipa-utils.c (estimate_function_body_sizes): Do not
3041 free node params when called late with early=true.
3043 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
3045 * doc/md.texi (Instruction Patterns): Rewrite text for
3047 (Example): Likewise.
3049 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
3051 * doc/invoke.texi (Option Summary): Break long lines.
3052 [(-fdiagnostics-color)]: Put long literal in @smallexample
3054 [(-fsanitize-recover)]: Likewise.
3055 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
3056 [(-ffast-math)]: Likewise.
3057 [(--param max-inline-insns-recursive)]: Likewise.
3058 [(--param max-inline-recursive-depth)]: Likewise.
3059 [(-mno-text-section-literals)]: Likewise.
3061 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3063 * doc/install.texi: Update for libgomp being renamed from "GNU
3064 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
3066 * doc/sourcebuild.texi: Likewise.
3068 2015-01-10 Anthony Green <green@moxielogic.com>
3070 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
3071 mul.x availability for moxiebox configuration.
3073 2015-01-09 Anthony Green <green@moxielogic.com>
3075 * config/moxie/moxie.md: Tabify assembly output.
3077 2015-01-09 Anthony Green <green@moxielogic.com>
3079 * config/moxie/moxie.md (CC_REG): Correct register definition.
3081 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
3083 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
3084 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
3087 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3089 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
3091 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
3092 Jakub Jelinek <jakub@redhat.com>
3095 * lto-streamer.h (lto_stream_offload_p): New declaration.
3096 * lto-streamer.c (lto_stream_offload_p): New variable.
3097 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
3098 at the same time as section_name_prefix.
3099 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
3100 if lto_stream_offload_p.
3101 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
3102 stream TREE_TARGET_OPTION if lto_stream_offload_p.
3103 (write_ts_function_decl_tree_pointers): Don't
3104 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
3105 * tree-streamer-in.c (unpack_value_fields): Don't stream
3106 TREE_TARGET_OPTION in if ACCEL_COMPILER.
3107 (lto_input_ts_function_decl_tree_pointers): Don't stream
3108 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
3109 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
3110 instead of section_name_prefix string comparisons.
3112 2015-01-09 Jakub Jelinek <jakub@redhat.com>
3114 PR rtl-optimization/64536
3115 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
3118 2015-01-09 Michael Collison <michael.collison@linaro.org>
3120 PR tree-optimization/64322
3121 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
3122 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
3124 2015-01-09 Tom de Vries <tom@codesourcery.com>
3126 PR rtl-optimization/64539
3127 * regcprop.c (kill_clobbered_values): Factor out of ...
3128 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
3129 instead of note_stores with kill_clobbered_value.
3131 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3133 * ginclude/unwind-arm-common.h: Revert previous commit.
3135 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3137 * config.gcc (arm*-*-freebsd*): New configuration.
3138 * config/arm/freebsd.h: New file.
3139 * config.host: Add extra components for arm*-*-freebsd*.
3140 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
3141 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
3143 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3145 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
3147 * config/rs6000/t-rtems: Add e6500 multilibs.
3149 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3151 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
3154 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3156 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
3157 MULTILIB_EXCEPTIONS.
3159 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3161 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
3162 MULTILIB_EXCEPTIONS.
3164 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3166 * config/arm/t-rtems-eabi: Rename to...
3167 * config/arm/t-rtems: ...this.
3168 * config/arm/rtems-eabi.h: Rename to...
3169 * config/arm/rtems.h: ...this.
3170 * config.gcc (arm*-*-rtems*): Reflect changes above.
3172 2015-01-09 Richard Biener <rguenther@suse.de>
3174 PR tree-optimization/64410
3175 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
3177 (execute_update_addresses_taken): Deal with that.
3178 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
3179 loads/stores for complex variables.
3181 2015-01-09 Martin Liska <mliska@suse.cz>
3183 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
3185 (func_checker::compare_memory_operand): New function.
3186 (func_checker::compare_operand): Split case to newly
3188 (func_checker::compare_cst_or_decl): New function.
3189 (func_checker::compare_gimple_call): Identify
3191 (func_checker::compare_gimple_assign): Likewise.
3192 * ipa-icf-gimple.h: New function.
3194 2015-01-09 Martin Liska <mliska@suse.cz>
3197 * sreal.c (sreal::dump): Change unsigned format to signed for
3199 (sreal::to_double): Replace exp2 with scalbln.
3201 2015-01-09 Martin Liska <mliska@suse.cz>
3203 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
3204 * ipa-icf.c (sem_function::equals_private): Add support for target and
3205 (sem_item_optimizer::merge_classes): Remove redundant function
3206 optimization flags comparison.
3207 * tree.h (target_opts_for_fn): New function.
3209 2015-01-09 Tom de Vries <tom@codesourcery.com>
3211 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
3213 2015-01-09 Kito Cheng <kito@0xlab.org>
3215 PR rtl-optimization/64348
3216 * lra-constraints.c (split_reg): Fix caller-save store/restore
3217 instruction generation.
3219 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
3221 PR gcov-profile/61790
3222 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
3223 long long. Fallback to int64_t if host doesn't have long long and
3224 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
3226 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3228 PR tree-optimization/63989
3229 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
3231 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
3232 (get_stridx): If we don't have a record for certain SSA_NAME,
3233 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
3234 constant offset, call get_stridx_plus_constant.
3235 (get_stridx_plus_constant): New function.
3236 (zero_length_string): Don't use get_stridx here.
3240 * dse.c (struct insn_info): Mention frame_read set also
3241 before reload for tail calls on some targets.
3242 (scan_insn): Revert 2014-12-22 change. Set frame_read
3243 also before reload for tail calls if
3244 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
3245 instead of add_non_frame_wild_read for non-const/memset
3246 tail calls after reload.
3248 2015-01-08 Jason Merrill <jason@redhat.com>
3250 * ubsan.c (do_ubsan_in_current_function): New.
3251 (pass_ubsan::gate): Use it.
3252 * ubsan.h: Declare it.
3253 * convert.c (convert_to_integer): Use it.
3255 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3258 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
3259 compare_code when it is unconditionally overwritten afterwards.
3260 Use ix86_reverse_condition instead of reverse_condition. Don't
3261 change code if *reverse_condition* returned UNKNOWN and don't
3262 swap ct/cf and negate diff in that case.
3264 2015-01-08 Mike Stump <mikestump@comcast.net>
3266 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
3267 (pass_tsan_O0::gate): Likewise.
3268 * extend.texi (Function Attributes): Add no_sanitize_thread
3271 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3273 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
3274 for registering builtins.
3275 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
3276 add -fopenmp to the argv_obstack used when invoking
3279 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
3280 add "-m32" or "-m64" to argv_obstack.
3281 (generate_host_descr_file): Likewise, when invoking host_compiler.
3282 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
3285 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3287 * config/sh/sh-mem.cc: Use constant as second operand when emitting
3290 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3293 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
3294 constant load if constant operand fits into I08.
3296 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3299 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
3300 and TREE_THIS_VOLATILE for MEM_REFs.
3301 (build5_stat): Fix up initialization of TREE_READONLY and
3302 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
3304 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3307 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
3308 of r for the second alternative of the destination operand.
3310 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
3313 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
3315 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3317 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
3319 ([-fivar-visibility], [-fvisibility]): Likewise.
3321 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3323 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
3324 the file where @code, @command, etc is more appropriate.
3326 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
3328 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
3329 of -mrecip= documentation.
3331 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3334 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
3335 correct reload handler if -m32 -mpowerpc64 is used.
3337 2015-01-06 Tom de Vries <tom@codesourcery.com>
3339 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
3341 2015-01-08 Christian Bruel <christian.bruel@st.com>
3344 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
3346 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3348 PR tree-optimization/63259
3349 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
3350 if optab exists for 16bit byteswap.
3352 2015-01-06 Jakub Jelinek <jakub@redhat.com>
3354 * opts.c (common_handle_option): Add support for
3355 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
3356 * doc/invoke.texi: Document -fno-sanitize=all,
3357 -f{,no-}sanitize-recover=all. Document that
3358 -fsanitize=float-cast-overflow is not enabled
3359 by -fsanitize=undefined. Fix up documentation
3360 of -f{,no-}sanitize-recover.
3362 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3364 * config.gcc: Add Visium support.
3365 * configure.ac: Likewise.
3366 * configure: Regenerate.
3367 * doc/extend.texi (interrupt attribute): Add Visium.
3368 * doc/invoke.texi: Document Visium options.
3369 * doc/install.texi: Document Visium target.
3370 * doc/md.texi: Document Visium constraints.
3371 * common/config/visium: New directory.
3372 * config/visium: Likewise.
3374 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3376 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
3377 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
3379 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3381 * combine.c (combine_validate_cost): Do not count the cost of a
3382 split I2 twice. Do not display it twice in the dump, either.
3384 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3386 Revert parts of r219199.
3387 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
3389 ([-Wtraditional]): Restore markup on <limits.h>.
3391 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3394 * doc/invoke.texi: Document -Wsuggest-override.
3396 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
3398 PR rtl-optimization/64287
3399 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
3400 (process_options): Disable flag_ipa_ra if profiling.
3402 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
3404 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
3406 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
3408 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
3409 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
3410 put under #if TARGET_LOOPS guard.
3412 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
3414 * config/i386/i386.c (output_387_binary_op): Use std::swap.
3416 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
3418 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
3419 * rtl.h (refers_to_regno_p): Add overload.
3421 * bt-load.c: Likewise.
3422 * combine.c: Likewise.
3423 * df-scan.c: Likewise.
3424 * sched-deps.c: Likewise.
3425 * config/s390/s390.c: Likewise.
3426 * config/m32r/m32r.c: Likewise.
3427 * config/rs6000/spe.md: Likewise.
3428 * config/rs6000/rs6000.c: Likewise.
3429 * config/pa/pa.c: Likewise.
3430 * config/stormy16/stormy16.c: Likewise.
3431 * config/cris/cris.c: Likewise.
3432 * config/arc/arc.md: Likewise.
3433 * config/arc/arc.c: Likewise.
3434 * config/sh/sh.md: Likewise.
3435 * config/sh/sh.c: Likewise.
3436 * config/frv/frv.c: Likewise.
3438 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3441 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
3442 call as cleanup of the whole body.
3443 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
3444 * tsan.c (replace_func_exit): New function.
3445 (instrument_func_exit): Moved earlier.
3446 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
3447 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
3449 (tsan_pass): Don't call instrument_func_exit.
3450 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
3451 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
3455 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
3456 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
3457 it to libubsan handler instead of EXPR. Fold comparisons earlier,
3458 if the result is integer_zerop, return NULL_TREE.
3459 * convert.c (convert_to_integer): Pass expr as ARG.
3461 PR tree-optimization/64465
3462 * tree-inline.c (redirect_all_calls): During inlining
3463 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
3464 changed the stmt to a non-throwing call.
3466 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3468 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
3469 etc markup throughout the file.
3471 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3473 Enable experimental TSAN support for Ada.
3474 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
3476 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3478 PR tree-optimization/64494
3479 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
3480 clear SSA_NAME_ANTI_RANGE_P flag.
3482 2015-01-05 Marek Polacek <polacek@redhat.com>
3484 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
3486 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3488 Update copyright years.
3490 * gcc.c (process_command): Update copyright notice dates.
3491 * gcov-dump.c: Ditto.
3493 * doc/cpp.texi: Bump @copying's copyright year.
3494 * doc/cppinternals.texi: Ditto.
3495 * doc/gcc.texi: Ditto.
3496 * doc/gccint.texi: Ditto.
3497 * doc/gcov.texi: Ditto.
3498 * doc/install.texi: Ditto.
3499 * doc/invoke.texi: Ditto.
3501 * auto-profile.c, auto-profile.h: Fix up Copyright line.
3503 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
3505 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
3507 ([-fvtable-verify], [-fvtv-debug]): Likewise.
3508 ([-Wabi]): Likewise.
3509 ([-fmessage-length]): Likewise.
3510 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
3511 ([-Wno-discarded-qualifiers]): Likewise.
3512 ([-Wnodiscarded-array-qualifiers]): Likewise.
3513 ([-Wno-virtual-move-assign]): Likewise.
3514 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
3515 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
3516 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
3517 ([-fsanitize-undefined-trap-on-error]): Likewise.
3518 ([-floop-interchange]): Likewise.
3519 ([-ftree-coalesce-inlined-vars]): Likewise.
3520 ([-fvect-cost-model]): Likewise.
3521 ([-flto]): Likewise.
3522 ([--param]): Likewise.
3523 (Spec Files): Likewise.
3524 ([-mstrict-align]): Likewise.
3525 ([-mfix-cortex-a53-835769]): Likewise.
3526 ([-march], [-mtune]): Likewise.
3527 ([-mpic-register]): Likewise.
3528 ([-munaligned-access]): Likewise.
3529 ([-msp8]): Likewise.
3530 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
3531 (AVR Built-in Macros): Likewise.
3532 ([-mpreferred-stack-boundary]): Likewise.
3533 ([-mtune-crtl]): Likewise.
3534 ([-mashf]): Likewise.
3535 ([-mmcu=]): Likewise.
3536 ([-minrt]): Likewise.
3537 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
3538 ([-mupper-regs]): Likewise.
3539 ([-matomic-model]): Likewise.
3540 ([-mdiv]): Likewise.
3541 ([-mzdcbranch]): Likewise.
3542 ([-mdisable-callt]): Likewise.
3543 ([-msoft-float]): Likewise.
3544 ([-m8byte-align]): Likewise.
3545 ([-fstack-reuse]): Likewise.
3547 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3549 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
3550 Fix markup, light copy-editing.
3551 ([-fauto-profile]): Rewrite to fix formatting and content
3554 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3556 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
3557 Copy-edit description.
3558 ([-fisolate-erroneous-paths-attribute]): Likewise.
3559 * common.opt (fisolate-erroneous-paths-dereference):
3560 Copy-edit description.
3561 (fisolate-erroneous-paths-attribute): Likewise.
3563 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3565 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
3568 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3570 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
3571 ([-fvtv-debug]): Likewise.
3572 ([-Wc++-compat]): Likewise.
3573 ([-Wc++11-compat]): Likewise.
3574 ([-Wc++14-compat]): Likewise.
3575 ([-Wno-sized-deallocation]): Likewise.
3576 ([-femit-class-debug-always]): Likewise.
3577 ([-femit-struct-debug-detailed]): Likewise.
3578 ([-fno-keep-inline-dllexport]): Likewise.
3579 ([-fira-algorithm]): Likewise.
3580 ([-fira-region]): Likewise.
3581 ([-flra-remat]): Likewise.
3582 ([-fipa-ra]): Likewise.
3583 ([-fhoist-adjacent-loads]): Likewise.
3584 ([-fisolate-erroneous-paths-dereference]): Likewise.
3585 ([-fisolate-erroneous-paths-attribute]): Likewise.
3586 ([-ftree-switch-conversion]): Likewise.
3587 ([-ftree-tail-merge]): Likewise.
3588 ([-ftree-loop-if-convert]): Likewise.
3589 ([-ftree-loop-if-convert-stores]): Likewise.
3590 ([-ftree-loop-distribution]): Likewise.
3591 ([-ftree-loop-distribute-patterns]): Likewise.
3592 ([-flto-compression-level]): Likewise.
3593 ([-flto-report]): Likewise.
3594 ([-flto-report-wpa]): Likewise.
3595 ([-fuse-linker-plugin]): Likewise.
3596 ([-mfix-cortex-a53-835769]): Likewise.
3597 ([-mno-fix-cortex-a53-835769]): Likewise.
3598 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
3599 explicit listing; add a note to the discussion indicating they
3600 exist. Reorder table to group similar options. Add missing
3601 @opindex entries. Add @need commands throughout the table to
3602 allow it to be split across multiple pages.
3603 ([-m8bit-idiv]): Fix @opindex.
3604 ([-mavx256-split-unaligned-load]): Likewise.
3605 ([-mavx256-split-unaligned-store]): Likewise.
3606 ([-mstack-protector-guard]): Likewise.
3607 ([-mcpu=]): Likewise.
3608 ([-mcpu]): Likewise.
3609 ([-mpointer-size=]): Likewise.
3611 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
3613 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
3614 instead of `m' constraint. Likewise for unnamed movb comparison
3615 patterns using reg_before_reload_operand predicate.
3616 * config/pa/predicates.md (reg_before_reload_operand): Tighten
3617 predicate to reject register index and LO_SUM DLT memory forms
3620 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3622 * doc/invoke.texi (Option Summary): Fix spelling of
3623 -fdevirtualize-at-ltrans.
3624 ([-fdevirtualize]): Fix markup.
3625 ([-fdevirtualize-speculatively]): Fix typo.
3626 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
3628 * common.opt (fdevirtualize-at-ltrans): Likewise.
3629 * ipa-devirt.c: Fix typos in comments throughout the file.
3630 (ipa_devirt): Fix typos in format strings for dump output.
3632 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3634 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
3635 discussion of defaults, light copy-editing.
3637 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3639 * tsan.c (instrument_expr): corrected previous checkin.
3641 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3643 Instrument bit field and unaligned accesses for TSAN.
3644 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
3645 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
3646 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
3647 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
3648 unaligned memory regions.
3650 2015-01-01 Anthony Green <green@moxielogic.com>
3652 * config/moxie/predicates.md (moxie_general_movsrc_operand):
3653 Restrict move source register offsets to 16 bits.
3655 Copyright (C) 2015 Free Software Foundation, Inc.
3657 Copying and distribution of this file, with or without modification,
3658 are permitted in any medium without royalty provided the copyright
3659 notice and this notice are preserved.