1 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-reference.c (set_reference_optimization_summary,
4 ipa_reference_get_not_written_global): Do nothing if ipa-reference is disabled.
5 (ignore_module_statics): New static var.
6 (propagate_bits): If ipa-reference is disabled, do not look into local properties.
7 (analyze_function): Disable analysis when ipa_reference is disabled.
8 (generate_summary): Do not dump when reference is disabled;
9 collect vars accessed from functions with ipa-reference disabled.
10 (get_read_write_all_from_node): When ipa-reference is disabled, use the
12 (gate): Enable for LTO.
13 (ignore_edge_p): New function.
14 (propagate): Skip functions w/o ipa-reference analysis.
15 * optc-save-gen.awk: Handle optimize_debug correctly.
16 * opth-gen.awk: Likewise.
17 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
18 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
19 fira-share-save-slots, fira-share-spill-slots,
20 fmodulo-sched-allow-regmoves, fpartial-inlining,
21 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
22 ftracer, ftree-parallelize-loops, fassociative-math,
23 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
25 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
26 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
28 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
31 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
34 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
36 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
40 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
41 Remove duplicate option listings.
43 2015-01-18 Felix Yang <felix.yang@huawei.com>
45 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
46 (autofdo_source_profile::get_callsite_total_count,
47 function_instance::get_function_instance_by_decl,
48 string_table::get_index, string_table::get_index_by_decl,
49 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
50 Fix comment typos. Reformatting and minor code rearrangement.
52 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
54 * config/rs6000/rs6000.md (probe_stack): Delete.
55 (probe_stack_address): New.
57 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
59 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
60 to test for 32-bit ABIs, not !TARGET_POWERPC64.
62 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
64 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
65 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
66 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
68 (rs6000_libcall_value): Use the new function.
70 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
72 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
74 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
76 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
77 implement a more precise life analysis for it during backward scan.
79 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
81 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
83 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
85 PR rtl-optimization/52773
86 * calls.c (emit_library_call_value): When pushing arguments use
87 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
88 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
89 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
91 2015-01-17 Jeff Law <law@redhat.com>
93 PR rtl-optimization/32790
94 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
95 not ZERO_EXTEND in SET_DESTs.
97 2015-01-17 Alan Modra <amodra@gmail.com>
99 * cprop.c (do_local_cprop): Revert last change.
101 2015-01-16 DJ Delorie <dj@redhat.com>
102 Nick Clifton <nickc@redhat.com>
104 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
105 (addhi3_real): Likewise. Fix [HL+0] syntax.
106 (subqi3_real): Likewise.
107 (subhi3_real): Likewise.
108 (cbranchqi4_real): Likewise. Allow saddr,#imm.
109 (cbranchhi4_real): Likewise.
110 (cbranchhi4_real_inverted): Likewise.
111 (cbranchsi4_real_lt): Likewise.
112 (cbranchsi4_real_ge): Likewise.
113 (cbranchsi4_real_ge): Likewise.
114 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
115 (sub<mode>3_virt): Likewise.
116 (cbranchqi4_virt): Likewise.
117 (cbranchhi4_virt): Likewise.
118 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
119 always use '[reg+imm]' even when imm is zero.
120 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
121 (rl78_general_operand): New.
122 (rl78_nonimmediate_operand): New.
123 (rl78_nonfar_operand): Use them.
124 (rl78_nonfar_nonimm_operand): Likewise.
125 (rl78_stack_based_mem): Fix.
126 * config/rl78/constraints.md (Ibqi): New.
131 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
134 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
136 * config/rl78/constrains (Qs8): New constraint.
137 * config/rl78/rl78.c (rl78_flags_already_set): New function.
138 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
139 * config/rl78/rl78-real.md (update_Z): New attribute.
140 Update patterns to set it.
141 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
142 shorter compare and branch sequence can be used.
143 (cbranchhi4_real): Likewise.
144 (cbranchhi4_real_inverted): Likewise.
146 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
147 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
149 * config/rl78/rl78.c (rl78_get_name_encoding): New.
150 (rl78_option_override): Allow -mes0 only if C.
151 (characterize_address): Support subregs of symbol_refs.
152 (rl78_addr_space_address_mode): Move. Add __near.
153 (rl78_far_p): Likewise.
154 (rl78_addr_space_pointer_mode): Likewise.
155 (rl78_as_legitimate_address): Likewise.
156 (rl78_addr_space_subset_p): Likewise.
157 (rl78_addr_space_convert): Likewise.
158 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
160 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
162 (rl78_alloc_physical_registers_op1): Change logic to prefer
163 symbol[BC] addressing.
164 (frodata_section): New.
165 (rl78_asm_init_sections): Initialize it.
166 (rl78_select_section): Put __far readonly symbols in .frodata.
167 (rl78_make_type_far): New.
168 (rl78_insert_attributes): Force all readonly symbols to be __far when -mes0.
169 (rl78_asm_out_integer): New.
170 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
171 * config/rl78/rl78.opt (-mes0): New.
173 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
174 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
175 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
176 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
178 (rl78_output_aligned_common): New.
179 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
180 (rl78_handle_saddr_attribute): New.
181 (rl78_handle_naked_attribute): New.
182 (rl78_attribute_table): Add saddr.
183 (rl78_print_operand_1): Don't print '!' on saddr operands.
184 (rl78_print_operand_1): Strip encodings.
186 (rl78_strip_name_encoding): New.
187 (rl78_attrlist_to_encoding): New.
188 (rl78_encode_section_info): New.
189 (rl78_asm_init_sections): New.
190 (rl78_select_section): New.
191 (rl78_output_labelref): New.
192 (rl78_output_aligned_common): New.
193 (rl78_asm_out_integer): New.
194 (rl78_asm_ctor_dtor): New.
195 (rl78_asm_constructor): New.
196 (rl78_asm_destructor): New.
198 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
199 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
200 (transcode_memory_rtx): Update.
201 (rl78_expand_epilogue): Use A_REG instead of 0.
203 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
205 * config/arm/arm-protos.h (struct tune_params): New field
206 sched_autopref_queue_depth.
207 * config/arm/arm.c (sched-int.h): Include header.
208 (arm_first_cycle_multipass_dfa_lookahead_guard,)
209 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
210 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
211 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
212 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
213 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
214 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
215 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
216 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
217 * config/arm/t-arm (arm.o): Update.
218 * haifa-sched.c (update_insn_after_change): Update.
219 (rank_for_schedule): Use auto-prefetcher model, if requested.
220 (autopref_multipass_init): New static function.
221 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
222 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
223 variable for debug dumps.
224 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
225 (autopref_multipass_dfa_lookahead_guard): New global function that
226 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
227 (init_h_i_d): Update.
228 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
229 * sched-int.h (enum autopref_multipass_data_status): New const enum.
230 (autopref_multipass_data_): Structure for auto-prefetcher data.
231 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
232 (struct _haifa_insn_data:autopref_multipass_data): New field.
233 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
234 (autopref_multipass_dfa_lookahead_guard): Declare.
236 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
238 * rtlanal.c (get_base_term): Handle SCRATCH.
240 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
242 * config/aarch64/aarch64.c
243 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
244 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
246 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
247 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
249 2015-01-17 Alan Modra <amodra@gmail.com>
251 * cprop.c (do_local_cprop): Disallow replacement of fixed
254 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
257 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
260 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
262 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
263 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
265 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
267 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
268 * config/arm/thumb1.md: ... Here.
270 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
272 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
273 TImode for TARGET_32BIT.
275 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
277 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
278 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
280 (rs6000_abi_word_mode): New function.
282 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
284 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
285 instead of UNITS_PER_WORD to describe the size of stack slots.
287 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
289 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
290 as rs6000_promote_function_mode. Move comment to there.
291 (rs6000_promote_function_mode): New function.
293 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
295 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
296 -mpowerpc64 is active.
298 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
301 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
304 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
306 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
307 introduced in revision 219724.
309 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
310 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
313 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
314 destination is not a GP reg.
315 (*movdi_aarch64): Likewise.
317 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
320 * config/rs6000/default64.h: Revert ISA change.
322 2015-01-16 Richard Biener <rguenther@suse.de>
325 * tree-ssa-uninit.c: Include tree-cfg.h.
326 (MAX_SWITCH_CASES): New define.
327 (convert_control_dep_chain_into_preds): Handle switch statements.
328 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
329 (normalize_one_pred_1): Do not split bit-manipulations.
332 2015-01-16 Richard Biener <rguenther@suse.de>
334 PR tree-optimization/64568
335 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
336 complex load rewriting for TARGET_MEM_REFs.
338 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
340 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
342 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
345 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
347 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
348 (aarch64_lra_p): Remove.
350 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
353 * ipa-chkp.h (chkp_instrumentable_p): New.
354 * ipa-chkp.c: Include tree-inline.h.
355 (chkp_instrumentable_p): New.
356 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
357 Fix processing of not instrumentable functions.
358 (chkp_versioning): Use chkp_instrumentable_p. Warn about
359 not instrumentable functions.
360 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
361 chkp_instrumentable_p.
362 * tree-inline.h (copy_forbidden): New.
363 * tree-inline.c (copy_forbidden): Not static anymore.
365 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
367 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
370 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
372 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
373 type OP_OUT to OP_INOUT.
375 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
377 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
378 (high x) y) to y if x and y have the same base.
380 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
382 * config/arm/cortex-a57.md: New.
383 * config/aarch64/aarch64.md: Include it.
384 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
385 * config/aarch64/aarch64-tune.md: Regenerate.
387 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
390 * ccmp.c (expand_ccmp_next): New function.
391 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
392 and compare insn sequence.
393 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
394 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
395 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
396 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
397 (*ccmp_ior): Changed to ccmp_ior<mode>.
398 (cmp<mode>): New pattern.
399 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
401 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
403 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
405 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
406 _mm256_bsrli_epi128): New.
407 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
409 2015-01-15 Jiong Wang <jiong.wang@arm.com>
411 * expmed.c (store_bit_field_using_insv): Improve warning message.
412 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
414 2015-01-15 Jiong Wang <jiong.wang@arm.com>
416 PR rtl-optimization/64011
417 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
418 there is partial overflow.
420 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
422 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
424 (nds32_expand_epilogue_v3pop): Likewise.
425 * config/nds32/nds32.md (sibcall): Define this for sibling call
427 (sibcall_register): Likewise.
428 (sibcall_immediate): Likewise.
429 (sibcall_value): Likewise.
430 (sibcall_value_register): Likewise.
431 (sibcall_value_immediate): Likewise.
432 (sibcall_epilogue): Likewise.
433 (epilogue): Pass false to indicate this is not a sibcall epilogue.
434 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
435 (nds32_expand_epilogue_v3pop): Likewise.
437 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
439 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
440 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
441 (return_internal): New.
442 (return): Define this named pattern.
443 (simple_return): Define this named pattern.
444 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
445 pattern instead of unspec_volatile_func_return.
446 (nds32_expand_epilogue_v3pop): Likewise.
447 (nds32_can_use_return_insn): New function.
449 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
451 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
452 * config/nds32/nds32.md (pop25return): New.
453 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
456 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
458 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
459 -mforbid-fp-as-gp, and -mex9 options.
461 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
463 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
464 remove -mgp-direct option.
466 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
468 * doc/invoke.texi (--param early-inlining-insns): Update default value.
469 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
471 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
473 * ipa-inline.c (inline_small_functions): Work around hints
476 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
479 * doc/invoke.texi (Option Summary): Document new Nios II
481 (Nios II Options): Likewise.
482 * config/nios2/nios2.opt: Add -mgpopt= option support.
483 Modify existing -mgpopt and -mno-gpopt options to be aliases.
484 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
485 * config/nios2/nios2.c (nios2_option_override): Adjust
487 (nios2_in_small_data_p): Return true for explicit small data
488 sections even with -G0.
489 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
492 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
495 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
497 (inline_call): Fix removal of aliases.
499 2015-01-15 Jakub Jelinek <jakub@redhat.com>
501 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
502 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
503 * opts.c (common_handle_option): Add -fsanitize=vptr.
504 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
505 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
506 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
507 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
508 (ubsan_expand_vptr_ifn): New prototype.
509 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
510 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
511 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
512 expand_LOOP_VECTORIZED): Make argument nameless, remove
514 (expand_UBSAN_VPTR): New function.
515 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
517 (UBSAN_VPTR): New internal function.
518 * sanopt.c (tree_map_traits): Renamed to ...
519 (sanopt_tree_map_traits): ... this.
520 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
521 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
522 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
523 (maybe_optimize_ubsan_vptr_ifn): New function.
524 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
525 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
527 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
528 internal calls like pure functions for aliasing, even when they
529 have other side-effects that prevent making them ECF_PURE.
530 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
531 (ubsan_expand_vptr_ifn): New function.
533 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
535 PR rtl-optimization/64110
536 * stmt.c (parse_output_constraint): Process '^' and '$'.
537 (parse_input_constraint): Ditto.
538 * lra-constraints.c (process_alt_operands): Process the new
540 * ira-costs.c (record_reg_classes): Process the new constraint
542 * genoutput.c (indep_constraints): Add '^' and '$'.
543 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
544 * doc/md.texi: Add description of the new constraints.
546 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
547 Bernd Schmidt <bernds@codesourcery.com>
548 Cesar Philippidis <cesar@codesourcery.com>
549 James Norris <jnorris@codesourcery.com>
550 Tom de Vries <tom@codesourcery.com>
551 Ilmir Usmanov <i.usmanov@samsung.com>
552 Dmitry Bocharnikov <dmitry.b@samsung.com>
553 Evgeny Gavrin <e.gavrin@samsung.com>
554 Jakub Jelinek <jakub@redhat.com>
556 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
557 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
558 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
560 * builtins.c: Include "gomp-constants.h".
561 (expand_builtin_acc_on_device): New function.
562 (expand_builtin, is_inexpensive_builtin): Handle
563 BUILT_IN_ACC_ON_DEVICE.
564 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
566 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
568 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
569 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
570 i386/intelmic-offload.h.
571 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
572 to libgomp and its dependencies.
573 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
574 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
575 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
576 * config/ia64/hpux.h (LIB_SPEC): Likewise.
577 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
578 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
579 * doc/generic.texi: Update for OpenACC changes.
580 * doc/gimple.texi: Likewise.
581 * doc/invoke.texi: Likewise.
582 * doc/sourcebuild.texi: Likewise.
583 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
584 GF_OMP_FOR_KIND_OACC_LOOP.
585 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
586 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
587 GF_OMP_TARGET_KIND_OACC_UPDATE,
588 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
590 * gimple.c: Update comments for OpenACC changes.
591 * gimple.def: Likewise.
592 * gimple.h: Likewise.
593 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
594 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
595 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
596 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
597 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
599 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
600 * gimplify.c: Include "gomp-constants.h".
601 Update comments for OpenACC changes.
602 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
603 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
604 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
605 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
606 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
607 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
608 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
609 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
610 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
612 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
613 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
614 OMP_CLAUSE_SET_MAP_KIND.
615 (gimplify_oacc_cache): New function.
616 (gimplify_omp_for): Handle OACC_LOOP.
617 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
619 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
620 OACC_EXIT_DATA, OACC_UPDATE.
621 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
622 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
623 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
624 (gimplify_body): Consider flag_openacc next to flag_openmp.
625 * lto-streamer-out.c: Include "gomp-constants.h".
626 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
627 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
628 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
629 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
630 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
631 (BUILT_IN_ACC_ON_DEVICE): New builtins.
632 * omp-low.c: Include "gomp-constants.h".
633 Update comments for OpenACC changes.
634 (struct omp_context): Add reduction_map, gwv_below, gwv_this
636 (extract_omp_for_data, use_pointer_for_field, install_var_field)
637 (new_omp_context, delete_omp_context, scan_sharing_clauses)
638 (create_omp_child_function, scan_omp_for, scan_omp_target)
639 (check_omp_nesting_restrictions, lower_reduction_clauses)
640 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
641 Update for OpenACC changes.
642 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
643 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
644 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
645 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
646 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
647 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
649 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
650 Handle GF_OMP_FOR_KIND_OACC_LOOP.
651 (expand_omp_target, lower_omp_target): Handle
652 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
653 GF_OMP_TARGET_KIND_OACC_UPDATE,
654 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
655 GF_OMP_TARGET_KIND_OACC_DATA.
656 (pass_expand_omp::execute, execute_lower_omp)
657 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
659 (offload_symbol_decl): New variable.
660 (oacc_get_reduction_array_id, oacc_max_threads)
661 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
662 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
663 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
664 (oacc_gimple_assign, oacc_initialize_reduction_data)
665 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
667 (is_targetreg_ctx): Remove function.
668 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
669 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
670 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
671 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
672 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
673 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
674 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
675 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
676 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
677 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
678 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
679 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
680 * tree-core.h: Update comments for OpenACC changes.
681 (enum omp_clause_map_kind): Remove.
682 (struct tree_omp_clause): Change type of map_kind member from enum
683 omp_clause_map_kind to unsigned char.
684 * tree-inline.c: Update comments for OpenACC changes.
685 * tree-nested.c: Likewise. Include "gomp-constants.h".
686 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
687 (convert_tramp_reference_stmt, convert_gimple_call): Update for
688 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
689 OMP_CLAUSE_SET_MAP_KIND.
690 * tree-pretty-print.c: Include "gomp-constants.h".
691 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
692 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
693 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
694 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
695 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
696 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
697 instead of OMP_CLAUSE_MAP_*.
698 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
699 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
700 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
701 * tree-streamer-in.c: Include "gomp-constants.h".
702 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
703 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
704 * tree-streamer-out.c: Include "gomp-constants.h".
705 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
707 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
708 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
709 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
710 * tree.c (omp_clause_num_ops): Update accordingly.
711 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
713 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
714 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
715 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
716 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
717 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
718 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
719 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
720 (OMP_CLAUSE_SET_MAP_KIND): New macro.
721 * varpool.c (varpool_node::get_create): Consider flag_openacc next
723 * config/i386/intelmic-offload.h: New file.
724 * config/nvptx/offload.h: Likewise.
726 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
728 * explow.h: Remove duplicate contents.
729 * dojump.h: Likewise.
731 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
733 * arm.c (arm_xgene_tune): Add default initializer for instruction
736 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
740 * ipa.c (symbol_table::remove_unreachable_nodes):
741 Do not put abstract origins into boundary.
743 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
745 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
746 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
748 2015-01-15 Steve Ellcey <sellcey@mips.com>
750 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
751 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
752 builtins.def, and chkp-builtins.def.
754 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
756 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
759 2015-01-15 Richard Biener <rguenther@suse.de>
761 PR tree-optimization/61743
762 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
763 information on PHIs for some simple cases.
765 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
767 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
769 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
770 * config/arm/arm-cores.def (xgene1): New entry.
771 * config/arm/arm-tables.opt: Regenerate.
772 * config/arm/arm-tune.md: Regenerate.
773 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
775 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
777 * tree-if-conv.c: Include hash-map.h.
778 (aggressive_if_conv): New variable.
779 (fold_build_cond_expr): Add simplification of non-zero condition.
780 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
781 destination block is not always executed.
782 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
783 than two predecessors if AGGRESSIVE_IF_CONV is true.
784 (if_convertible_stmt_p): Fix commentary.
785 (all_preds_critical_p): New function.
786 (has_pred_critical_p): New function.
787 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
788 BB can have more than two predecessors and all incoming edges can be
790 (predicate_bbs): Skip predication for loop exit block, use build2_loc
791 to compute predicate for true edge.
792 (find_phi_replacement_condition): Delete this function.
793 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
794 Allow interchange PHI arguments if EXTENDED is false.
795 Change check that block containing reduction statement candidate
796 is predecessor of phi-block since phi may have more than two arguments.
797 (phi_args_hash_traits): New helper structure.
798 (struct phi_args_hash_traits): New type.
799 (phi_args_hash_traits::hash): New function.
800 (phi_args_hash_traits::equal_keys): New function.
801 (gen_phi_arg_condition): New function.
802 (predicate_scalar_phi): Add handling of phi nodes with more than two
803 arguments, delete COND and TRUE_BB arguments, insert body of
804 find_phi_replacement_condition to predicate ordinary phi nodes.
805 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
806 delete call of find_phi_replacement_condition and invoke
807 predicate_scalar_phi with two arguments.
808 (insert_gimplified_predicates): Add assert that non-predicated block
809 don't have statements to insert.
810 (ifcvt_split_critical_edges): New function.
811 (ifcvt_split_def_stmt): Likewise.
812 (ifcvt_walk_pattern_tree): Likewise.
813 (stmt_is_root_of_bool_pattern): Likewise.
814 (ifcvt_repair_bool_pattern): Likewise.
815 (ifcvt_local_dce): Likewise.
816 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
817 is copy of inner or outer loop force_vectorize field, invoke
818 ifcvt_split_critical_edges, ifcvt_local_dce and
819 ifcvt_repair_bool_pattern for aggressive if-conversion.
821 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
823 * config/aarch64/aarch64.md: Include xgene1.md.
824 * config/aarch64/xgene1.md: New file.
826 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
828 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
829 xgene1 (APM XGene-1) core definition.
830 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
831 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
832 * doc/invoke.texi: Document -mcpu=xgene1.
834 2015-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
836 * dojump.h: New header file.
837 * explow.h: Likewise.
838 * expr.h: Remove includes.
839 Move expmed.c prototypes to expmed.h.
840 Move dojump.c prototypes to dojump.h.
841 Move alias.c prototypes to alias.h.
842 Move explow.c prototypes to explow.h.
843 Move calls.c prototypes to calls.h.
844 Move emit-rtl.c prototypes to emit-rtl.h.
845 Move varasm.c prototypes to varasm.h.
846 Move stmt.c prototypes to stmt.h.
847 (saved_pending_stack_adjust): Move to dojump.h.
848 (adjust_address): Move to explow.h.
849 (adjust_address_nv): Move to emit-rtl.h.
850 (adjust_bitfield_address): Likewise.
851 (adjust_bitfield_address_size): Likewise.
852 (adjust_bitfield_address_nv): Likewise.
853 (adjust_automodify_address_nv): Likewise.
854 * explow.c (expr_size): Move to expr.c.
855 (int_expr_size): Likewise.
856 (tree_expr_size): Likewise.
857 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
858 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
859 * genemit.c (main): Generate includes statistics.h, real.h, fixed-value.h,
860 insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
861 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h, function.h,
862 statistics.h, real.h, fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
864 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
865 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
866 * genemit.c (open_base_files): Generate includes flags.h, statistics.h, real.h,
867 fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h,
869 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h, hash-set.h, vec.h,
870 machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
871 double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
872 insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
873 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
874 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
875 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
876 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
877 tm.h tree.h varasm.h vec.h wide-int.h.
878 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
879 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
880 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
881 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
882 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
883 explow.h expmed.h fixed-value.h flags.h inchash.h insn-config.h
884 real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
885 * loop-iv.c: Likewise.
886 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
887 explow.h expmed.h fixed-value.h flags.h inchash.h real.h
888 statistics.h stmt.h tree.h varasm.h wide-int.h.
889 * lra-constraints.c: Likewise.
890 * lra-eliminations.c: Likewise.
891 * lra-lives.c: Likewise.
892 * lra-remat.c: Likewise.
893 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
894 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
895 statistics.h stmt.h tree.h varasm.h wide-int.h.
896 * hw-doloop.c: Likewise.
897 * ira-color.c: Likewise.
898 * ira-emit.c: Likewise.
899 * loop-doloop.c: Likewise.
900 * loop-invariant.c: Likewise.
901 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
902 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
903 statistics.h stmt.h tree.h varasm.h wide-int.h.
904 * caller-save.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
905 explow.h expmed.h fixed-value.h inchash.h real.h statistics.h
906 stmt.h tree.h varasm.h wide-int.h.
907 * combine-stack-adj.c: Likewise.
911 * ira-costs.c: Likewise.
913 * lra-coalesce.c: Likewise.
914 * lra-spills.c: Likewise.
915 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
916 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
917 stmt.h varasm.h wide-int.h.
918 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
919 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
921 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
922 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
923 statistics.h stmt.h varasm.h wide-int.h.
924 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
925 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
927 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
928 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
929 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
930 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
932 * config/tilepro/tilepro.c: Likewise.
933 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
934 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
935 * config/pdp11/pdp11.c: Likewise.
936 * config/xtensa/xtensa.c: Likewise.
937 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
938 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
940 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
941 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
942 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
943 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
944 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
945 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
946 * rtl-chkp.c: Likewise.
947 * tree-chkp-opt.c: Likewise.
948 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h explow.h
949 expmed.h fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
950 insn-config.h real.h statistics.h stmt.h varasm.h.
951 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
952 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
954 * tree-vect-data-refs.c: Likewise.
955 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
956 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
957 rtl.h statistics.h stmt.h varasm.h.
958 * internal-fn.c: Likewise.
959 * ipa-icf-gimple.c: Likewise.
960 * lto-section-out.c: Likewise.
961 * tree-data-ref.c: Likewise.
962 * tree-nested.c: Likewise.
963 * tree-outof-ssa.c: Likewise.
964 * tree-predcom.c: Likewise.
965 * tree-pretty-print.c: Likewise.
966 * tree-scalar-evolution.c: Likewise.
967 * tree-ssa-strlen.c: Likewise.
968 * tree-vect-loop.c: Likewise.
969 * tree-vect-patterns.c: Likewise.
970 * tree-vect-slp.c: Likewise.
971 * tree-vect-stmts.c: Likewise.
973 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
974 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
976 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
977 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
978 statistics.h stmt.h varasm.h.
979 * loop-unroll.c: Likewise.
981 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
982 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
984 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
985 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
986 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
987 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
989 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
990 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
991 statistics.h stmt.h varasm.h.
992 * gimple-match-head.c: Likewise.
993 * lto-cgraph.c: Likewise.
994 * lto-section-in.c: Likewise.
995 * lto-streamer-in.c: Likewise.
996 * lto-streamer-out.c: Likewise.
997 * tree-affine.c: Likewise.
998 * tree-cfg.c: Likewise.
999 * tree-cfgcleanup.c: Likewise.
1000 * tree-if-conv.c: Likewise.
1001 * tree-into-ssa.c: Likewise.
1002 * tree-ssa-alias.c: Likewise.
1003 * tree-ssa-copyrename.c: Likewise.
1004 * tree-ssa-dse.c: Likewise.
1005 * tree-ssa-forwprop.c: Likewise.
1006 * tree-ssa-live.c: Likewise.
1007 * tree-ssa-math-opts.c: Likewise.
1008 * tree-ssa-pre.c: Likewise.
1009 * tree-ssa-sccvn.c: Likewise.
1010 * tree-tailcall.c: Likewise.
1011 * tree-vect-generic.c: Likewise.
1012 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1013 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
1014 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1015 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
1016 * varasm.c: Likewise.
1017 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1018 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
1020 * init-regs.c: Likewise.
1022 * omp-low.c: Likewise.
1023 * stack-ptr-mod.c: Likewise.
1024 * tree-ssa-reassoc.c: Likewise.
1025 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1026 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
1028 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1029 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
1030 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1031 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
1032 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1033 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
1034 * tree-ssa-phiopt.c: Likewise.
1035 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1036 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1037 * config/fr30/fr30.c: Likewise.
1038 * config/frv/frv.c: Likewise.
1040 * final.c: Likewise.
1041 * optabs.c: Likewise.
1042 * passes.c: Likewise.
1043 * simplify-rtx.c: Likewise.
1045 * toplev.c: Likewise.
1046 * var-tracking.c: Likewise.
1047 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1048 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1049 * lower-subreg.c: Likewise.
1050 * postreload-gcse.c: Likewise.
1052 * reginfo.c: Likewise.
1053 * store-motion.c: Likewise.
1054 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1055 fixed-value.h hashtab.h real.h stmt.h varasm.h.
1056 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1057 fixed-value.h hashtab.h statistics.h stmt.h.
1058 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1059 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1060 * except.c: Likewise.
1061 * explow.c: Likewise.
1062 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1063 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
1065 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1066 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
1067 * tree-ssa-structalias.c: Likewise.
1068 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1069 fixed-value.h insn-config.h real.h statistics.h.
1070 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1071 fixed-value.h insn-config.h real.h statistics.h stmt.h.
1072 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1073 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1074 * cfgbuild.c: Likewise.
1075 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1076 fixed-value.h real.h rtl.h statistics.h stmt.h.
1077 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1078 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1079 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1080 fixed-value.h real.h statistics.h stmt.h.
1081 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1082 fixed-value.h real.h statistics.h stmt.h varasm.h.
1083 * cprop.c: Likewise.
1084 * modulo-sched.c: Likewise.
1085 * postreload.c: Likewise.
1086 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1087 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
1088 statistics.h stmt.h varasm.h.
1089 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
1090 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1091 rtl.h statistics.h stmt.h varasm.h.
1092 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
1093 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
1095 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1096 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
1098 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
1099 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
1101 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
1102 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1103 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1104 function.h real.h statistics.h stmt.h varasm.h.
1105 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1106 insn-config.h real.h statistics.h stmt.h.
1107 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1108 statistics.h stmt.h.
1109 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
1110 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
1111 statistics.h stmt.h varasm.h.
1112 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1113 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
1114 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1115 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
1116 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
1117 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1118 statistics.h stmt.h varasm.h.
1119 * ipa-polymorphic-call.c: Likewise.
1120 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h expmed.h
1121 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1123 * config/c6x/c6x.c: Likewise.
1124 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h explow.h
1125 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1126 statistics.h stmt.h varasm.h.
1127 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1128 hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h varasm.h.
1129 * ipa-split.c: Likewise.
1130 * tree-eh.c: Likewise.
1131 * tree-ssa-dce.c: Likewise.
1132 * tree-ssa-loop-niter.c: Likewise.
1133 * tree-vrp.c: Likewise.
1134 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
1135 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
1137 * config/nds32/nds32-fp-as-gp.c: Likewise.
1138 * config/nds32/nds32-intrinsic.c: Likewise.
1139 * config/nds32/nds32-isr.c: Likewise.
1140 * config/nds32/nds32-md-auxiliary.c: Likewise.
1141 * config/nds32/nds32-memory-manipulation.c: Likewise.
1142 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1143 * config/nds32/nds32-predicates.c: Likewise.
1144 * config/nds32/nds32.c: Likewise.
1145 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
1146 fixed-value.h hashtab.h real.h statistics.h.
1147 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
1148 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1149 * config/arm/arm.c: Likewise.
1150 * config/avr/avr.c: Likewise.
1151 * config/bfin/bfin.c: Likewise.
1152 * config/h8300/h8300.c: Likewise.
1153 * config/i386/i386.c: Likewise.
1154 * config/ia64/ia64.c: Likewise.
1155 * config/iq2000/iq2000.c: Likewise.
1156 * config/m32c/m32c.c: Likewise.
1157 * config/m32r/m32r.c: Likewise.
1158 * config/m68k/m68k.c: Likewise.
1159 * config/mcore/mcore.c: Likewise.
1160 * config/mep/mep.c: Likewise.
1161 * config/mips/mips.c: Likewise.
1162 * config/mn10300/mn10300.c: Likewise.
1163 * config/moxie/moxie.c: Likewise.
1164 * config/pa/pa.c: Likewise.
1165 * config/rl78/rl78.c: Likewise.
1166 * config/rx/rx.c: Likewise.
1167 * config/s390/s390.c: Likewise.
1168 * config/sh/sh.c: Likewise.
1169 * config/sparc/sparc.c: Likewise.
1170 * config/spu/spu.c: Likewise.
1171 * config/stormy16/stormy16.c: Likewise.
1172 * config/v850/v850.c: Likewise.
1173 * config/vax/vax.c: Likewise.
1174 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
1175 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1176 * config/msp430/msp430.c: Likewise.
1177 * predict.c: Likewise.
1178 * value-prof.c: Likewise.
1179 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
1180 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
1181 * config/microblaze/microblaze.c: Likewise.
1182 * config/nios2/nios2.c: Likewise.
1183 * config/rs6000/rs6000.c: Likewise.
1184 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1185 insn-config.h real.h rtl.h statistics.h stmt.h.
1186 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1187 insn-config.h real.h statistics.h stmt.h.
1188 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
1189 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1190 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
1191 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1192 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1193 real.h statistics.h stmt.h.
1194 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
1195 fixed-value.h statistics.h stmt.h.
1196 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
1199 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1201 * gengtype.c (create_user_defined_type): Workaround
1202 -Wmaybe-uninitialized false positives.
1203 * cse.c (fold_rtx): Likewise.
1204 * loop-invariant.c (gain_for_invariant): Likewise.
1206 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
1208 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
1209 set the memory attributes in all cases but clear MEM_EXPR if need be.
1211 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
1213 PR tree-optimization/64434
1214 * cfgexpand.c (reorder_operands): New function.
1215 (expand_gimple_basic_block): Insert call of reorder_operands if
1218 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
1220 * config/mips/micromips.md (*swp): Remove explicit parallel.
1221 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
1222 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
1223 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
1224 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
1225 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
1226 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
1227 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
1228 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
1229 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
1230 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
1231 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
1232 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
1233 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
1234 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
1235 (mips_wrdsp): Likewise.
1236 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
1238 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
1239 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
1240 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
1241 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
1242 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
1243 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
1244 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
1245 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
1246 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
1248 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1250 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
1251 (mips_print_operand): Support 'y' to print exact log2 in decimal
1253 * config/mips/mips.h (ISA_HAS_LSA): New define.
1254 (ISA_HAS_DLSA): Likewise.
1255 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
1256 * config/mips/predicates.md (const_immlsa_operand): New predicate.
1258 2015-01-15 Martin Liska <mliska@suse.cz>
1261 * optc-save-gen.awk: Add support for array types.
1263 2015-01-15 Richard Biener <rguenther@suse.de>
1266 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
1267 for MEM_REF access functions with the same base can never partially
1270 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1272 * common.opt: New option -fstack-protector-explicit.
1273 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
1274 (stack_protect_decl_phase): Handle stack_protect attribute for
1275 explicit stack protection requests.
1276 (expand_used_vars): Similarly.
1277 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
1278 * doc/extend.texi: Add documentation for "stack_protect" attribute.
1279 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
1281 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
1284 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
1286 (sh_extending_set_of_reg): New struct.
1287 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
1288 sh_remove_reg_dead_or_unused_notes): New Declarations.
1289 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
1290 sh_find_extending_set_of_reg, sh_split_tst_subregs,
1291 sh_extending_set_of_reg::use_as_extended_reg): New functions.
1292 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
1293 convert to insn_and_split and use new function sh_split_tst_subregs.
1295 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
1297 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
1299 (Optimization Options): Move -fuse-ld documentation to...
1300 (Link Options): ...here.
1302 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1304 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
1306 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
1307 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
1308 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
1309 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
1310 instead of ZR for the memory operand of LL/SC.
1311 (compare_and_swap_12, sync_add<mode>): Likewise.
1312 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
1313 (sync_new_<optab>_12, sync_nand_12): Likewise.
1314 (sync_old_nand_12, sync_new_nand_12): Likewise.
1315 (sync_sub<mode>, sync_old_add<mode>): Likewise.
1316 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
1317 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
1318 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
1319 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
1320 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
1321 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
1322 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
1323 * doc/md.texi (ZC): Update description.
1325 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
1327 * builtins.c (expand_builtin_atomic_exchange): Remove error when
1328 memory model is CONSUME.
1329 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
1330 expand_builtin_atomic_store): Change invalid memory model errors to
1332 (expand_builtin_atomic_clear): Change invalid model errors to warnings
1333 and issue warning for CONSUME.
1335 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
1337 * lto-cgraph: Update function comments for
1338 lto_symtab_encoder_encode_*.
1340 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1342 * Makefile.in (site.exp): Do not set ENABLE_LTO.
1344 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1346 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
1347 * lto-cgraph.c (select_what_to_stream): Remove argument, use
1348 lto_stream_offload_p instead.
1349 * lto-streamer.h (select_what_to_stream): Remove argument.
1350 * passes.c (ipa_write_summaries): Likewise.
1351 * tree-pass.h (ipa_write_summaries): Likewise.
1353 2015-01-14 Richard Biener <rguenther@suse.de>
1355 PR tree-optimization/59354
1356 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
1357 groups larger than the slp group size as having gaps.
1359 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
1362 * builtins.c (get_memmodel): Promote consume to acquire always.
1364 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1367 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
1370 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1373 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
1375 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
1376 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
1377 AVX512VBMI, as it implies AVX512BW.
1379 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1382 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
1383 (vec_unpacks_hi_v16sf): Ditto.
1385 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1387 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
1390 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1392 * doc/invoke.texi (mapcs): Mention deprecation.
1393 (mapcs-frame): Likewise.
1395 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1398 * config/arm/arm.c (callee_saved_reg_p): Define.
1399 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
1400 register is callee saved instead of !call_used_regs[reg].
1401 (thumb1_compute_save_reg_mask): Likewise.
1403 2015-01-14 Hale Wang <hale.wang@arm.com>
1405 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
1408 2015-01-14 Richard Biener <rguenther@suse.de>
1411 * tree-inline.c (insert_debug_decl_map): Check destination
1412 function MAY_HAVE_DEBUG_STMTS.
1413 (insert_init_debug_bind): Likewise.
1414 (insert_init_stmt): Remove redundant check.
1415 (remap_gimple_stmt): Drop debug stmts if the destination
1416 function has var-tracking assignments disabled.
1418 2015-01-14 Martin Liska <mliska@suse.cz>
1420 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
1421 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
1423 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1426 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
1427 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
1429 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1431 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
1432 level from an ARCH; do not inject the default.
1433 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
1434 MIPS_ISA_LEVEL_SPEC.
1435 (MIPS_ISA_NAN2008_SPEC): Update comment.
1436 (BASE_DRIVER_SELF_SPECS): Likewise.
1437 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
1438 MIPS_DEFAULT_ISA_LEVEL_SPEC.
1439 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
1440 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
1441 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
1443 2015-01-14 Richard Biener <rguenther@suse.de>
1445 PR tree-optimization/64493
1446 PR tree-optimization/64495
1447 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
1448 assign the proper vectorized PHI to the inner loop exit PHIs.
1450 2015-01-14 Joey Ye <joey.ye@arm.com>
1452 * config/arm/arm.c (arm_compute_save_reg_mask):
1453 Do not save lr in case of tail call.
1454 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
1456 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
1458 * tree-vrp.c (check_array_ref): Emit more warnings
1459 for warn_array_bounds >= 2.
1460 * common.opt: New option -Warray-bounds=.
1461 * doc/invoke.texi: Document -Warray-bounds=.
1463 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
1465 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
1466 (mforbid-fp-as-gp): Remove.
1468 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
1469 (nds32_symbol_load_store_p): Remove.
1470 (nds32_fp_as_gp_check_available): Clean up implementation.
1471 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
1473 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
1474 fp-as-gp and ex9 cases.
1476 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1478 * tree-profile.c (init_ic_make_global_vars): Drop workaround
1479 for bintuils bug 14342.
1480 (init_ic_make_global_vars): Likewise.
1481 (gimple_init_edge_profiler): Likewise.
1482 (gimple_gen_ic_func_profiler): Likewise.
1484 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1486 * ipa-inline.c (inline_small_functions): Swap the operands in
1489 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1492 * ipa-inline-analysis.c (node_growth_cache): Remove.
1493 (initialize_growth_caches): Do not initialize it.
1494 (free_growth_caches): Do not free it.
1495 (do_estimate_growth): Rename to ...
1496 (estimate_growth): ... this one; drop growth cache code.
1497 (growth_likely_positive): Always go the heuristics way.
1498 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
1499 (reset_edge_caches): Do not reset node growth.
1500 (heap_edge_removal_hook): Do not maintain cache.
1501 (inline_small_functions): Likewise; strenghten sanity check.
1502 (ipa_inline): Do not maintain caches.
1503 * ipa-inline.h (node_growth_cache): Remove.
1504 (do_estimate_growth): Remove to ...
1505 (estimate_growth): this one; remove inline version.
1506 (reset_node_growth_cache): Remove.
1508 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1511 * ipa-inline.c (inline_small_functions): Update callee keys after
1512 resolving speculation
1513 (inline_small_functions): Always check monotonicity of the queue.
1515 2015-01-13 Marek Polacek <polacek@redhat.com>
1518 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
1520 2015-01-13 Jakub Jelinek <jakub@redhat.com>
1522 PR rtl-optimization/64286
1523 * ree.c (combine_reaching_defs): Move part of comment earlier,
1524 remove !SCALAR_INT_MODE_P check.
1525 (add_removable_extension): Don't add vector mode
1526 extensions if all uses of the source register aren't the same
1529 2015-01-13 Renlin Li <renlin.li@arm.com>
1531 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
1532 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
1534 2015-01-13 Martin Liska <mliska@suse.cz>
1536 * ipa-icf.c (sem_function::equals_private): Call new functions
1537 cl_target_option_print_diff and cl_optimization_print_diff.
1538 * optc-save-gen.awk (cl_target_option_print_diff): New function.
1539 (cl_optimization_print_diff): Likewise.
1540 * opth-gen.awk: Likewise.
1542 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
1544 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
1545 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
1546 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
1547 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
1548 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
1549 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
1551 2015-01-13 Andrew Pinski <apinski@cavium.com>
1553 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
1554 instead of src mode.
1556 2015-01-13 Richard Biener <rguenther@suse.de>
1559 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
1562 2015-01-13 Andrew Pinski <apinski@cavium.com>
1564 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
1566 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
1568 2015-01-13 Jakub Jelinek <jakub@redhat.com>
1571 * cfgexpand.c (expand_computed_goto): Don't call
1572 convert_memory_address here.
1574 2015-01-13 Richard Biener <rguenther@suse.de>
1576 PR tree-optimization/64406
1577 * tree-loop-distibution.c (pass_loop_distribution::execute):
1578 Reset the SCEV hashtable if we distributed anything.
1580 2015-01-13 Richard Biener <rguenther@suse.de>
1582 PR tree-optimization/64404
1583 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
1584 SLP types for CSEd loads.
1586 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1588 PR tree-optimization/64436
1589 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
1590 merge of two symbolic numbers for a bitwise OR to ...
1591 (perform_symbolic_merge): This. Also fix computation of the range and
1592 end of the symbolic number corresponding to the result of a bitwise OR.
1594 2015-01-13 Richard Biener <rguenther@suse.de>
1596 PR tree-optimization/64568
1597 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
1598 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
1600 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1602 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
1603 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
1605 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1607 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
1608 target-specific symbol_ref flag.
1609 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
1610 resides in rodata section.
1611 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
1612 (nds32_encode_section_info): New function.
1614 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1616 * config/nds32/nds32.md (call): Use pseudo instruction bal which
1617 clobbers TA_REGNUM if large code model is specified.
1618 (call_register): Likewise.
1619 (call_immediate): Likewise.
1620 (call_value): Likewise.
1621 (call_value_register): Likewise.
1622 (call_value_immediate): Likewise.
1624 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1626 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
1627 (TARGET_CMODEL_MEDIUM): New macro.
1628 (TARGET_CMODEL_LARGE): New macro.
1629 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
1630 code model setting in assembly code.
1632 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1634 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
1635 Remove MASK_GP_DIRECT flag.
1636 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
1637 one of the multilib default options.
1638 * config/nds32/nds32.opt (mgp-direct): Remove.
1639 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
1640 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
1642 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1644 * config/nds32/nds32.opt (mcmodel): Add new option.
1645 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
1646 to describe code model.
1648 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
1651 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
1653 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
1655 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
1656 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
1657 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
1658 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
1659 __builtin_sh_set_fpscr.
1661 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
1663 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
1664 after a funtion name just to indicate it is a function.
1665 ([-fsanitize-undefined-trap-on-error]): Likewise.
1666 ([-fdbg-cnt=]): Likewise.
1667 ([-mmemcpy]): Likewise.
1668 ([-mflush-func]): Likewise.
1669 ([-msynci]): Likewise.
1671 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
1673 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
1676 2015-01-12 Jakub Jelinek <jakub@redhat.com>
1678 PR tree-optimization/64563
1679 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
1680 instead of != VR_VARYING.
1683 * config/i386/i386.c (ix86_expand_prologue): Add
1684 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
1686 PR tree-optimization/64454
1687 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
1688 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
1689 for signed or [0, op1 - 1] for unsigned modulo.
1690 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
1691 even if op1 does not satisfy integer_pow2p.
1694 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
1696 2015-01-12 Jeff Law <law@redhat.com>
1699 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
1700 (trunchiqi2, truncsihi2): Similarly.
1702 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
1703 rather than calling F.
1705 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
1707 * tsan.c (instrument_expr): Use force_gimple_operand.
1708 Use may_be_nonaddressable_p instead of is_gimple_addressable.
1710 2015-01-12 Richard Biener <rguenther@suse.de>
1712 PR tree-optimization/64530
1713 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
1716 2015-01-12 Richard Biener <rguenther@suse.de>
1719 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
1722 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1724 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
1725 Cortex-A17 tuning parameters.
1726 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
1728 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1730 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
1731 * config/arm/arm.c (arm_macro_fusion_p): New function.
1732 (arm_macro_fusion_pair_p): Likewise.
1733 (TARGET_SCHED_MACRO_FUSION_P): Define.
1734 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
1735 (ARM_FUSE_NOTHING): Likewise.
1736 (ARM_FUSE_MOVW_MOVT): Likewise.
1737 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
1738 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
1739 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
1740 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
1741 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
1742 arm_cortex_a5_tune): Specify fuseable_ops value.
1744 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
1747 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
1748 test for PIE with copy reloc.
1749 * configure: Regenerated.
1751 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1753 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
1755 (arm_tls_descseq_addr): Likewise.
1756 (arm_gen_movmemqi): Likewise.
1757 (arm_expand_epilogue_apcs_frame): Likewise.
1758 (arm_expand_epilogue): Likewise.
1759 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
1762 2015-01-12 Martin Liska <mliska@suse.cz>
1765 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
1766 volatility for correct operands.
1768 2015-01-12 Martin Liska <mliska@suse.cz>
1770 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
1771 that a function is not leaf.
1772 (sem_function::compare_polymorphic_p): Likewise.
1774 2015-01-12 Martin Liska <mliska@suse.cz>
1776 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
1777 that a function is not leaf.
1778 (sem_function::compare_polymorphic_p): Likewise.
1780 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1782 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
1783 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
1784 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
1785 fold-const.h, tree-check.h.
1787 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
1791 * ipa-inline.c (compute_uninlined_call_time,
1792 compute_inlined_call_time): Use counts for extra precision when
1794 (big_speedup_p): Fix formating.
1795 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
1796 (relative_time_benefit): Remove.
1797 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
1798 merge guessed and read profile paths.
1799 (inline_small_functions): Count only !optimize_size functions into
1800 initial size; be more lax about sanity check when profile is used;
1801 be sure to update inlined function profile when profile is read.
1803 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
1806 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
1807 cost when edge becomes direct.
1808 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
1809 is resolved or when introducing new speculation.
1811 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
1815 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
1816 '||' to fix typo issue.
1818 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
1819 accept and return NULL.
1821 2015-01-12 Martin Liska <mliska@suse.cz>
1823 * cgraph.c (cgraph_edge::remove_callee): Move function to header
1824 file for being inlined.
1825 (cgraph_set_edge_callee): Delete.
1826 (cgraph_edge::redirect_callee): Move function to header file
1828 (cgraph_edge::make_direct): Use new function.
1829 (cgraph_edge::dump_edge_flags): New function created from
1830 static dump_edge_flags function.
1831 (cgraph_node::dump): Use new function.
1832 (cgraph_edge::verify_count_and_frequency): New function created
1833 from verify_edge_count_and_frequency.
1834 (cgraph_edge::verify_corresponds_to_fndecl): New function created
1835 from verify_edge_corresponds_to_fndecl.
1836 (verify_edge_corresponds_to_fndecl): Delete.
1837 (cgraph_node::verify_node): Use new function.
1838 * cgraph.h (cgraph_edge::set_callee): New function.
1839 (cgraph_edge::dump_edge_flags): Likewise.
1840 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
1842 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
1844 * ipa-utils.c (estimate_function_body_sizes): Do not
1845 free node params when called late with early=true.
1847 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
1849 * doc/md.texi (Instruction Patterns): Rewrite text for
1851 (Example): Likewise.
1853 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
1855 * doc/invoke.texi (Option Summary): Break long lines.
1856 [(-fdiagnostics-color)]: Put long literal in @smallexample
1858 [(-fsanitize-recover)]: Likewise.
1859 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
1860 [(-ffast-math)]: Likewise.
1861 [(--param max-inline-insns-recursive)]: Likewise.
1862 [(--param max-inline-recursive-depth)]: Likewise.
1863 [(-mno-text-section-literals)]: Likewise.
1865 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
1867 * doc/install.texi: Update for libgomp being renamed from "GNU
1868 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
1870 * doc/sourcebuild.texi: Likewise.
1872 2015-01-10 Anthony Green <green@moxielogic.com>
1874 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
1875 mul.x availability for moxiebox configuration.
1877 2015-01-09 Anthony Green <green@moxielogic.com>
1879 * config/moxie/moxie.md: Tabify assembly output.
1881 2015-01-09 Anthony Green <green@moxielogic.com>
1883 * config/moxie/moxie.md (CC_REG): Correct register definition.
1885 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
1887 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
1888 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
1891 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
1893 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
1895 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
1896 Jakub Jelinek <jakub@redhat.com>
1899 * lto-streamer.h (lto_stream_offload_p): New declaration.
1900 * lto-streamer.c (lto_stream_offload_p): New variable.
1901 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
1902 at the same time as section_name_prefix.
1903 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
1904 if lto_stream_offload_p.
1905 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
1906 stream TREE_TARGET_OPTION if lto_stream_offload_p.
1907 (write_ts_function_decl_tree_pointers): Don't
1908 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
1909 * tree-streamer-in.c (unpack_value_fields): Don't stream
1910 TREE_TARGET_OPTION in if ACCEL_COMPILER.
1911 (lto_input_ts_function_decl_tree_pointers): Don't stream
1912 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
1913 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
1914 instead of section_name_prefix string comparisons.
1916 2015-01-09 Jakub Jelinek <jakub@redhat.com>
1918 PR rtl-optimization/64536
1919 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
1922 2015-01-09 Michael Collison <michael.collison@linaro.org>
1924 * genattrtab.c (write_header): Include hash-set.h, machmode.h,
1925 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1926 fold-const.h, wide-int.h, and inchash.h when generating
1928 * genautomata.c (main) : Include hash-set.h, macInclude hash-set.h, machmode.h,
1929 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1930 fold-const.h, wide-int.h, and inchash.h when generating
1932 * genemit.c (main): Include hash-set.h, machmode.h,
1933 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1934 fold-const.h, wide-int.h, and inchash.h when generating
1936 * gengtype.c (open_base_files): Include hash-set.h, machmode.h,
1937 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1938 fold-const.h, wide-int.h, and inchash.h when generating
1940 * genopinit.c (main): Include hash-set.h, machmode.h,
1941 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1942 fold-const.h, wide-int.h, and inchash.h when generating
1944 * genoutput.c (output_prologue): Include hash-set.h, machmode.h,
1945 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1946 fold-const.h, wide-int.h, and inchash.h when generating
1948 * genpeep.c (main): Include hash-set.h, machmode.h,
1949 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1950 fold-const.h, wide-int.h, and inchash.h when generating
1952 * genpreds.c (write_insn_preds_c): Include hash-set.h, machmode.h,
1953 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1954 fold-const.h, wide-int.h, and inchash.h when generating
1956 * optc-save-gen-awk: Include hash-set.h, machmode.h,
1957 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1958 fold-const.h, wide-int.h, and inchash.h when generating
1960 * opth-gen.awk: Change include guard from GCC_C_COMMON_H to GCC_C_COMMON_C
1961 when generating options.h.
1962 * alias.c: Include hash-set.h, machmode.h,
1963 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1964 fold-const.h, wide-int.h, and inchash.h due to
1965 flattening of tree.h.
1968 * auto-inc-dec.c: Ditto.
1969 * auto-profile.c: Ditto
1970 * bb-reorder.c: Ditto.
1971 * bt-load.c: Include symtab.h due to flattening of tree.h.
1972 * builtins.c: Include hash-set.h, machmode.h,
1973 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1974 fold-const.h, wide-int.h, and inchash.h due to
1975 flattening of tree.h.
1976 * calls.c: Include hash-set.h, machmode.h,
1977 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1978 fold-const.h, wide-int.h, and inchash.h due to
1979 flattening of tree.h.
1981 * cfgbuild.c: Include hash-set.h, machmode.h,
1982 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1983 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1985 * cfgcleanup.c: Ditto.
1986 * cfgexpand.c: Ditto.
1987 * cfghooks.c: Ditto.
1988 * cfgloop.c: Include symtab.h, fold-const.h, and
1989 inchash.h due to flattening of tree.h.
1990 * cfgloopmanip.c: Ditto.
1991 * cfgrtl.c: Include hash-set.h, machmode.h,
1992 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1993 fold-const.h, wide-int.h, and inchash.h due to
1994 flattening of tree.h.
1995 * cgraphbuild.c: Ditto.
1997 * cgraphclones.c: Ditto.
1998 * cgraphunit.c: Ditto.
1999 * cilk-common.c: Ditto.
2001 * combine-stack-adj.c: Include symbol.h due to flattening of tree.h.
2002 * config/aarch64/aarch64-builtins.c: Include hash-set.h, machmode.h,
2003 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2004 fold-const.h, wide-int.h, and inchash.h due to
2005 flattening of tree.h.
2006 * config/aarch64/aarch64.c: Ditto.
2007 * config/alpha/alpha.c: Ditto.
2008 * config/arc/arc.c: Ditto.
2009 * config/arm/aarch-common.c: Ditto.
2010 * config/arm/arm-builtins.c: Ditto.
2011 * config/arm/arm.c: Ditto.
2012 * config/arm/arm-c.c: Ditto.
2013 * config/avr/avr.c: Ditto.
2014 * config/avr/avr-c.c: Ditto.
2015 * config/avr/avr-log.c: Ditto.
2016 * config/bfin/bfin.c: Ditto.
2017 * config/c6x/c6x.c: Ditto.
2018 * config/cr16/cr16.c: Ditto.
2019 * config/cris/cris.c: Ditto.
2020 * config/darwin.c: Ditto.
2021 * config/darwin-c.c: Ditto.
2022 * config/default-c.c: Ditto.
2023 * config/epiphany/epiphany.c: Ditto.
2024 * config/fr30/fr30.c: Ditto.
2025 * config/frv/frv.c: Ditto.
2026 * config/glibc-c.c: Ditto.
2027 * config/h8300/h8300.c: Ditto.
2028 * config/i386/i386.c: Ditto.
2029 * config/i386/i386-c.c: Ditto.
2030 * config/i386/msformat.c: Ditto.
2031 * config/i386/winnt.c: Ditto.
2032 * config/i386/winnt-cxx.c: Ditto.
2033 * config/i386/winnt-stubs.c: Ditto.
2034 * config/ia64/ia64.c: Ditto.
2035 * config/ia64/ia64-c.c: Ditto.
2036 * config/iq2000/iq2000.c: Ditto.
2037 * config/lm32/lm32.c: Include symtab.h, fold-const.h,
2038 wide-int.h, and inchash.h due to flattening of tree.h.
2039 * config/m32c/m32c.c: Include hash-set.h, machmode.h,
2040 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2041 fold-const.h, wide-int.h, and inchash.h due to
2042 flattening of tree.h.
2043 * config/m32c/m32c-pragma.c: Ditto.
2044 * config/m32c/m32cr.c: Ditto.
2045 * config/m68/m68k.c: Ditto.
2046 * config/mcore/mcore.c: Ditto.
2047 * config/mep/mep.c: Ditto.
2048 * config/mep/mep-pragma.c: Ditto.
2049 * config/microblaze/microblaze.c: Ditto.
2050 * config/microblaze/microblaze-c.c: Ditto.
2051 * config/mips/mips.c: Ditto.
2052 * config/mmix/mmix.c: Include symtab.h, fold-const.h,
2053 wide-int.h, and inchash.h due to flattening of tree.h.
2054 * config/mn10300/mn10300.c: Include hash-set.h, machmode.h,
2055 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2056 fold-const.h, wide-int.h, and inchash.h due to
2057 flattening of tree.h.
2058 * config/moxie/moxie.c: Ditto.
2059 * config/msp430/msp430.c: Ditto.
2060 * config/msp430/msp430-c.c: Ditto.
2061 * config/nds32/nds32.c: Ditto.
2062 * config/nds32/nds32-cost.c: Ditto.
2063 * config/nds32/nds32-fp-as-gp.c: Ditto.
2064 * config/nds32/nds32-intrinsic.c: Ditto.
2065 * config/nds32/nds32-isr.c: Ditto.
2066 * config/nds32/nds32-md-auxillary.c: Ditto.
2067 * config/nds32/nds32-memory-manipulationx.c: Ditto.
2068 * config/nds32/nds32-pipelines-auxillary.c: Ditto.
2069 * config/nds32/nds32-predicates.c: Ditto.
2070 * config/nios2/nios2.c: Ditto.
2071 * config/nvptx/nvptx.c: Ditto.
2072 * config/pa/pa.c: Ditto.
2073 * config/pdp11/pdp11x.c: Include symtab.h, fold-const.h,
2074 wide-int.h, and inchash.h due to flattening of tree.h.
2075 * config/rl78/rl78.c: Include hash-set.h, machmode.h,
2076 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2077 fold-const.h, wide-int.h, and inchash.h due to
2078 flattening of tree.h.
2079 * config/rl78/rl78-cx.c: Ditto.
2080 * config/rs6000/rs6000.c: Ditto.
2081 * config/rs6000/rs6000-c.c: Ditto.
2082 * config/rx/rx.c: Ditto.
2083 * config/s390/s390.c: Ditto.
2084 * config/sh/sh.c: Ditto.
2085 * config/sh/sc.c: Ditto.
2086 * config/sh/sh-mem.cc: Ditto.
2087 * config/sh/sh_treg_combine.cc: Include symtab.h, inchash.h and tree.h
2088 due to flattening of tree.h.
2089 Remove include of tree-core.h.
2090 * config/sol2.c: Include hash-set.h, machmode.h,
2091 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2092 fold-const.h, wide-int.h, and inchash.h due to
2093 flattening of tree.h.
2094 * config/sol2-c.c: Ditto.
2095 * config/sol2-cxx.c: Ditto.
2096 * config/sol2-stubs.c: Ditto.
2097 * config/sparc/sparc.c: Ditto.
2098 * config/sparc/sparc-cx.c: Ditto.
2099 * config/spu/spu.c: Ditto.
2100 * config/spu/spu-c.c: Ditto
2101 * config/storym16/stormy16.c: Ditto.
2102 * config/tilegx/tilegx.c: Include symtab.h, fold-const.h,
2103 wide-int.h, and inchash.h due to flattening of tree.h.
2104 * config/tilepro/gen-mul-tables.cc: Include symtab.h in generated file.
2105 * config/tilegx/tilegx-c.c: Include hash-set.h, machmode.h,
2106 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2107 fold-const.h, wide-int.h, and inchash.h due to
2108 flattening of tree.h.
2109 * config/tilepro/tilepro.c: Include symtab.h, fold-const.h,
2110 wide-int.h, and inchash.h due to flattening of tree.h.
2111 * config/tilepro/tilepro-c.c: Include hash-set.h, machmode.h,
2112 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2113 fold-const.h, wide-int.h, and inchash.h due to
2114 flattening of tree.h.
2115 * config/v850/v850.c: Ditto.
2116 * config/v850/v850-c.c: Ditto.
2117 * config/vax/vax.c: Ditto.
2118 * config/vms/vms.c: Ditto.
2119 * config/vms/vms-c.c: Ditto.
2120 * config/vxworks.c: Ditto.
2121 * config/winnt-c.c: Ditto.
2122 * config/xtensa/xtensa.c: Include symtab.h, fold-const.h,
2123 wide-int.h, and inchash.h due to flattening of tree.h.
2124 * convert.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2125 input.h, alias.h, symtab.h, options.h, fold-const.h,
2126 wide-int.h, and inchash.h due to flattening of tree.h.
2127 * coverage.c: Ditto.
2128 * cppbuiltin.c: Ditto.
2130 * cse.c: Add include of symtab.h due to flattening of tree.h.
2131 * cselib.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2132 input.h, alias.h, symtab.h, options.h, fold-const.h,
2133 wide-int.h, and inchash.h due to flattening of tree.h.
2134 * data-streamer.c: Ditto.
2135 * data-streamer-in.c: Ditto.
2136 * data-streamer-out.c: Ditto.
2139 * ddg.c: Add include of symtab.h due to flattening of tree.h.
2140 * debug.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2141 input.h, alias.h, symtab.h, options.h, fold-const.h,
2142 wide-int.h, and inchash.h due to flattening of tree.h.
2145 * dojump.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2146 input.h, alias.h, symtab.h, options.h, fold-const.h,
2147 wide-int.h, inchash.h and real.h due to flattening of tree.h.
2148 * double-int.c: Ditto.
2150 * dumpfile.c: Ditto.
2151 * dwarf2asm.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2152 input.h, alias.h, symtab.h, fold-const.h,
2153 wide-int.h, inchash.h and real.h due to flattening of tree.h.
2154 * dwarf2cfi.c: Ditto.
2155 * dwarf2out.c: Ditto.
2156 * emit-rtl.c: Ditto.
2159 * expmed.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2160 input.h, alias.h, symtab.h, fold-const.h,
2161 wide-int.h, and inchash.h due to flattening of tree.h.
2164 * fixed-value.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2165 input.h, alias.h, symtab.h, fold-const.h,
2166 wide-int.h, inchash.h and fixed-value.h due to flattening of tree.h.
2167 * fold-const.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2168 input.h, alias.h, symtab.h, fold-const.h,
2169 wide-int.h, and inchash.h due to flattening of tree.h.
2170 Relocate inline function convert_to_ptrofftype_loc from tree.h.
2171 Relocate inline function fold_build_pointer_plus_loc from tree.h.
2172 Relocate inline function fold_build_pointer_plus_hwi_loc from tree.h.
2173 * fold-const.h: Relocate macro convert_to_ptrofftype from tree.h.
2174 Relocate macro fold_build_pointer_plus to relocate from tree.h.h.
2175 Relocate macro fold_build_pointer_plus_hwi from tree.h.
2176 Add prototype for convert_to_ptrofftype_loc relocated from tree.h.
2177 Add prototype for fold_build_pointer_plus_loc relocated from tree.h.
2178 Add prototype for fold_build_pointer_plus_hwi_loc relocated from tree.h.
2179 * function.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2180 input.h, alias.h, symtab.h, fold-const.h,
2181 wide-int.h, and inchash.h due to flattening of tree.h.
2182 * gcc-plugin.h: Include statistics.h, double-int.h, real.h, fixed-value.h,
2183 alias.h, flags.h, and symtab.h due to flattening of tree.h
2185 * generic-match-head.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2186 input.h, alias.h, symtab.h, options.h, fold-const.h,
2187 wide-int.h, and inchash.h due to flattening of tree.h.
2188 * ggc-page.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2189 input.h, alias.h, symtab.h, fold-const.h,
2190 wide-int.h, and inchash.h due to flattening of tree.h.
2191 * gimple-builder.c: Ditto.
2193 * gimple-expr.c: Ditto.
2194 * gimple-fold.c: Ditto.
2195 * gimple-iterator.c: Ditto.
2196 * gimple-low.c: Ditto.
2197 * gimple-match-head.c: Ditto.
2198 * gimple-pretty-print.c: Ditto.
2199 * generic-ssa-isolate-paths.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2200 input.h, alias.h, symtab.h, options.h, fold-const.h,
2201 wide-int.h, and inchash.h due to flattening of tree.h.
2202 * gimple-ssa-strength-reduction.c: Ditto.
2203 * gimple-streamer-in.c: Ditto.
2204 * gimple-streamer-out.c: Ditto.
2205 * gimple-walk.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2206 input.h, alias.h, symtab.h, fold-const.h,
2207 wide-int.h, and inchash.h due to flattening of tree.h.
2208 * gimplify.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2209 input.h, alias.h, symtab.h, options.h, fold-const.h,
2210 wide-int.h, and inchash.h due to flattening of tree.h.
2211 * gimplify-me.c: Ditto.
2212 * graphite-blocking.c: Ditto.
2213 * graphite.c: Ditto.
2214 * graphite-dependencies.c: Ditto.
2215 * graphite-interchange.c: Ditto.
2216 * graphite-isl-ast-to-gimple.c: Ditto.
2217 * graphite-optimize-isl.c: Ditto.
2218 * graphite-poly.c: Ditto.
2219 * graphite-scop-detection.c: Ditto.
2220 * graphite-sese-to-poly.c: Ditto.
2221 * hw-doloop.c: Include symtab.h due to flattening of tree.h.
2223 * init-regs.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2224 input.h, alias.h, symtab.h, fold-const.h,
2225 wide-int.h, and inchash.h due to flattening of tree.h.
2226 * internal-fc.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2227 input.h, alias.h, symtab.h,options.h, fold-const.h,
2228 wide-int.h, and inchash.h due to flattening of tree.h.
2230 * ipa-chkp.c: Ditto.
2231 * ipa-comdats.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2232 input.h, alias.h, symtab.h, fold-const.h,
2233 wide-int.h, and inchash.h due to flattening of tree.h.
2234 * ipa-cp.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2235 input.h, alias.h, symtab.h,options.h, fold-const.h,
2236 wide-int.h, and inchash.h due to flattening of tree.h.
2237 * ipa-devirt.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2238 input.h, alias.h, symtab.h, fold-const.h,
2239 wide-int.h, and inchash.h due to flattening of tree.h.
2240 * ipa-icf.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2241 input.h, alias.h, symtab.h,options.h, fold-const.h,
2242 wide-int.h, and inchash.h due to flattening of tree.h.
2243 * ipa-icf-gimple.c: Ditto.
2244 * ipa-inline-analysis.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2245 input.h, alias.h, symtab.h, fold-const.h,
2246 wide-int.h, and inchash.h due to flattening of tree.h.
2247 * ipa-inline.c: Ditto.
2248 * ipa-inline-transform.c: Ditto.
2249 * ipa-polymorhpic-call.c: Ditto.
2250 * ipa-profile.c: Ditto.
2251 * ipa-prop.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2252 input.h, alias.h, symtab.h, options.h, fold-const.h,
2253 wide-int.h, and inchash.h due to flattening of tree.h.
2254 * ipa-pure-const.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2255 input.h, alias.h, symtab.h, fold-const.h,
2256 wide-int.h, and inchash.h due to flattening of tree.h.
2257 * ipa-ref.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2258 input.h, alias.h, symtab.h, options.h, fold-const.h,
2259 wide-int.h, and inchash.h due to flattening of tree.h.
2260 * ipa-reference.c: Ditto.
2261 * ipa-split.c: Ditto.
2262 * ipa-utils.c: Ditto.
2263 * ipa-visbility.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2264 input.h, alias.h, symtab.h, fold-const.h,
2265 wide-int.h, and inchash.h due to flattening of tree.h.
2267 * ira-color.c: Include hash-set.h due to flattening of tree.h.
2268 * ira-costs.c: Ditto.
2269 * ira-emit.c: Ditto.
2270 * jump.c: Include symtab.h due to flattening of tree.h.
2271 * langhooks.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2272 input.h, alias.h, symtab.h, fold-const.h,
2273 wide-int.h, and inchash.h due to flattening of tree.h.
2274 * loop-doloop.c: Include symtab.h due to flattening of tree.h.
2275 * loop-init.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2276 input.h, alias.h, symtab.h, fold-const.h,
2277 wide-int.h, and inchash.h due to flattening of tree.h.
2278 * loop-invariant.c: Include symtab.h due to flattening of tree.h.
2280 * loop-unroll.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2281 input.h, alias.h, symtab.h, fold-const.h,
2282 wide-int.h, and inchash.h due to flattening of tree.h.
2283 * lower-subreg.c: Ditto.
2284 * lra-assigns.c: Include symtab.h due to flattening of tree.h.
2285 * lra.c: Include symtab.h, fold-const.h, wide-int.h and inchash.h
2286 due to flattening of tree.h.
2287 * lra-coalesce.c: Include symtab.h due to flattening of tree.h.
2288 * lra-constraints.c: Ditto.
2289 * lra-eliminations.c: Ditto.
2290 * lra-livesc: Ditto.
2291 * lra-remat.c: Ditto.
2292 * lra-spills.c: Ditto.
2293 * lto-cgraph.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2294 input.h, alias.h, symtab.h, fold-const.h,
2295 wide-int.h, and inchash.h due to flattening of tree.h.
2296 * lto-compress.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2297 input.h, alias.h, symtab.h, options, fold-const.h,
2298 wide-int.h, and inchash.h due to flattening of tree.h.
2299 * lto-opts.c: Ditto.
2300 * lto-section-in.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2301 input.h, alias.h, symtab.h, fold-const.h,
2302 wide-int.h, and inchash.h due to flattening of tree.h.
2303 * lto-section-out.c: Ditto.
2304 * lto-streamer.c: Ditto.
2305 * lto-streamer-in.c: Ditto.
2306 * lto-streamer-out.c: Ditto.
2307 * modulo-sched.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2308 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
2309 inchash.h due to flattening of tree.h.
2310 * omega.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2311 input.h, alias.h, symtab.h, options, fold-const.h,
2312 wide-int.h, and inchash.h due to flattening of tree.h.
2313 * omega-low.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2314 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
2315 inchash.h due to flattening of tree.h.
2317 * opts-global.c: Ditto.
2319 * plugin.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2320 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2321 inchash.h due to flattening of tree.h.
2322 * postreload.c: Include symtab.h due to flattening of tree.h.
2323 * postreload-gcse.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2324 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
2325 inchash.h due to flattening of tree.h.
2327 * print-rtl.c: Ditto.
2328 * print-tree.c: Ditto.
2329 * profile.c: Include symtab.h, fold-const.h
2330 and inchash.h due to flattening of tree.h.
2331 * real.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2332 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
2333 inchash.h due to flattening of tree.h.
2334 * realmpfr.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2335 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2336 inchash.h due to flattening of tree.h.
2337 * recog.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2338 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
2339 inchash.h due to flattening of tree.h.
2342 * reg-stack.c: Ditto.
2343 * reload1.c: Include symtab.h, fold-const.h, wide-int.h
2344 and inchash.h due to flattening of tree.h.
2345 * reload.c: Include symtab.h due to flattening of tree.h.
2347 * rtlanal.c: Include symtab.h, fold-const.h, wide-int.h
2348 and inchash.h due to flattening of tree.h.
2349 * rtl-chkp.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2350 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
2351 inchash.h due to flattening of tree.h.
2352 * rtlhooks.c: Include symtab.h due to flattening of tree.h.
2353 * sanopt.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2354 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2355 inchash.h due to flattening of tree.h.
2356 * sched-deps.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2357 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2358 inchash.h due to flattening of tree.h.
2359 * sched-vis.c: Ditto.
2361 * sel-sched.c: Include symtab.h, fold-const.h, wide-int.h
2362 and inchash.h due to flattening of tree.h.
2363 * sel-sched-ir.c: Ditto.
2364 * sese.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2365 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2366 inchash.h due to flattening of tree.h.
2367 * shrink-wrap.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2368 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2369 inchash.h due to flattening of tree.h.
2370 * simplify-rtx.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2371 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2372 inchash.h due to flattening of tree.h.
2373 * stack-ptr-mod.c: Ditto.
2375 * store-motion.c: Ditto.
2376 * store-layout.c: Ditto.
2377 * stringpool.c: Ditto.
2379 * target-globals.c: Ditto.
2380 * targhooks.c: Ditto.
2383 * trans-mem.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2384 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2385 inchash.h due to flattening of tree.h.
2386 * tree-affine.c: Ditto.
2387 * tree-browser.c: Ditto.
2388 * tree.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2389 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2390 inchash.h due to flattening of tree.h.
2391 * tree-call-cdce.c: Include symtab.h, alias.h, double-int.h,
2392 fold-const.h, wide-int.h, inchash.h and real.h due to
2393 flattening of tree.h.
2394 * tree-cfg.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2395 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
2396 inchash.h due to flattening of tree.h.
2397 * tree-cfgcleanup.c: Ditto.
2398 * tree-chkp.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2399 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2400 inchash.h due to flattening of tree.h.
2401 * tree-chkp-opt.c: Ditto.
2402 * tree-chrec.c: Ditto.
2403 * tree-chkp-opt.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2404 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h and
2405 real.h due to flattening of tree.h.
2406 * tree-core.h: Flatten header file by removing all #include statements.
2407 * tree-data-ref.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2408 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2409 inchash.h due to flattening of tree.h.
2410 * tree-dfa.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2411 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h and
2412 real.h due to flattening of tree.h.
2413 * tree-diagnostic.c: Ditto.
2414 * tree-dump.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2415 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h, real.h and
2416 fixed-value.h due to flattening of tree.h.
2417 * tree-dfa.c: Ditto.
2418 * tree-eh.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2419 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h and
2420 real.h due to flattening of tree.h.
2421 * tree-emutls.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2422 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2423 inchash.h due to flattening of tree.h.
2424 * tree.h: Flatten header files by removing all includes except tree-core.h.
2425 Remove inline function convert_to_ptrofftype_loc to relocate to fold-const.c.
2426 Remove macro convert_to_ptrofftype to relocate to fold-const.h.
2427 Remove inline function fold_build_pointer_plus_loc to relocate to fold-const.c.
2428 Remove macro fold_build_pointer_plus to relocate to fold-const.h.
2429 Remove inline function fold_build_pointer_plus_hwi_loc to relocate to fold-const.c.
2430 Remove macro fold_build_pointer_plus_hwi to relocate to fold-const.h.
2431 * tree-if-conv.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2432 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h, real.h and
2433 fixed-value.h due to flattening of tree.h.
2434 * tree-inline.c: Ditto.
2435 * tree-into-ssa.c: Ditto.
2436 * tree-iterator.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2437 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2438 inchash.h due to flattening of tree.h.
2439 * tree-loop-distribution.c: Ditto.
2440 * tree-nested.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2441 input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
2442 due to flattening of tree.h.
2443 * tree-nrv.c: Ditto.
2444 * tree-object-size.c: Ditto.
2445 * tree-outof-ssa.c: Ditto.
2446 * tree-parloops.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2447 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h, and
2448 inchash.h due to flattening of tree.h.
2449 * tree-phinodes.c: Ditto.
2450 * tree-predcom.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2451 input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
2452 due to flattening of tree.h.
2453 * tree-pretty-print.c: Ditto.
2454 * tree-profile.c: double-int.h, input.h, alias.h, symtab.h,
2455 fold-const.h, wide-int.h and inchash.h due to flattening of tree.h.
2456 * tree-scalar-evolution.c: Include hash-set.h, machmode.h, vec.h,
2457 double-int.h, input.h, alias.h, symtab.h, options.h, fold-const.h,
2458 wide-int.h and inchash.h due to flattening of tree.h.
2459 * tree-sra.c: Include vec.h, double-int.h,
2460 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, and
2461 inchash.h due to flattening of tree.h.
2462 * tree-ssa-alias.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2463 input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
2464 due to flattening of tree.h.
2465 * tree-ssa.c: Ditto.
2466 * tree-ssa-ccp.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2467 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h
2468 and real.h due to flattening of tree.h.
2469 * tree-ssa-coalesce.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2470 input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
2471 due to flattening of tree.h.
2472 * tree-ssa-copy.c: Ditto.
2473 * tree-ssa-copyrename.c: Ditto.
2474 * tree-ssa-dce.c: Ditto.
2475 * tree-ssa-dom.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2476 input.h, alias.h, symtab.h, fold-const.h, wide-int.h, inchash.h
2477 and real.h due to flattening of tree.h.
2478 * tree-ssa-dse.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2479 input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
2480 due to flattening of tree.h.
2481 * tree-ssa-forwprop.c: Ditto.
2482 * tree-ssa-ifcombine.c: Ditto.
2483 * tree-ssa-live.c: Ditto.
2484 * tree-ssa-loop.c: Ditto.
2485 * tree-ssa-loop-ch.c: Ditto.
2486 * tree-ssa-loop-im.c: Ditto.
2487 * tree-ssa-loop-ivcanon.c: Ditto.
2488 * tree-ssa-loop-ivopts.c: Ditto.
2489 * tree-ssa-loop-manip.c: Ditto.
2490 * tree-ssa-loop-niter.c: Ditto.
2491 * tree-ssa-loop-prefetch.c: Ditto.
2492 * tree-ssa-loop-unswitch.c: Ditto.
2493 * tree-ssa-loop-math-opts.c: Ditto.
2494 * tree-ssanames.c: Ditto.
2495 * tree-ssa-operands.c: Ditto.
2496 * tree-ssa-phiopt.c: Ditto.
2497 * tree-ssa-phiprop.c: Ditto.
2498 * tree-ssa-pre.c: Ditto.
2499 * tree-ssa-propagate.c: Ditto.
2500 * tree-ssa-reassoc.c: Ditto.
2501 * tree-ssa-sccvn.c: Ditto.
2502 * tree-ssa-sink.c: Ditto.
2503 * tree-ssa-strlen.c: Include hash-set.h, machmode.h, vec.h,
2504 double-int.h, input.h, alias.h, symtab.h, options.h, fold-const.h,
2505 wide-int.h and inchash.h due to flattening of tree.h.
2506 * tree-ssa-structalias.c: double-int.h, input.h, alias.h, symtab.h,
2507 fold-const.h, wide-int.h and inchash.h due to flattening of tree.h.
2508 * tree-ssa-tail-merge.c: Include hash-set.h, machmode.h, vec.h,
2509 double-int.h, input.h, alias.h, symtab.h, fold-const.h,
2510 wide-int.h and inchash.h due to flattening of tree.h.
2511 * tree-ssa-ter.c: Ditto.
2512 * tree-ssa-threadedge.c: Ditto.
2513 * tree-ssa-threadupdate.c: Include hash-set.h, machmode.h, vec.h,
2514 double-int.h, input.h, alias.h, symtab.h, options.h, fold-const.h,
2515 wide-int.h and inchash.h due to flattening of tree.h.
2516 * tree-ssa-uncprop.c: Include hash-set.h, machmode.h, vec.h,
2517 double-int.h, input.h, alias.h, symtab.h, fold-const.h,
2518 wide-int.h and inchash.h due to flattening of tree.h.
2519 * tree-ssa-uninit.c: Ditto.
2520 * tree-stdarg.c: Include vec.h, double-int.h, input.h, alias.h,
2521 symtab.h, fold-const.h, wide-int.h and inchash.h due to flattening
2523 * tree-streamer.c: Include vec.h, double-int.h, input.h, alias.h,
2524 symtab.h, options.h, fold-const.h, wide-int.h and
2525 inchash.h due to flattening of tree.h.
2526 * tree-streamer-in.c: Include hash-set.h, machmode.h, vec.h,
2527 double-int.h, input.h, alias.h, symtab.h, options.h, fold-const.h,
2528 wide-int.h, inchash.h, real.h and fixed-value.h due to flattening
2530 * tree-streamer-out.c: Dittoo.
2531 * tree-switch-conversion.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2532 input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
2533 due to flattening of tree.h.
2534 * tree-tailcall.c: Ditto.
2535 * tree-vect-data-refs.c: Ditto.
2536 * tree-vect-generic.c: Include hash-set.h, machmode.h, vec.h, double-int.h, input.h,
2537 alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
2538 due to flattening of tree.h.
2539 * tree-vect-loop.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2540 input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
2541 due to flattening of tree.h.
2542 * tree-vect-loop-manip.c: Ditto.
2543 * tree-vectorizer.c: Ditto.
2544 * tree-vect-patterns.c: Ditto.
2545 * tree-vect-slp.c: Ditto.
2546 * tree-vect-stmts.c: Ditto.
2547 * tree-vrp.c: Ditto.
2548 * tsan.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2549 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
2550 due to flattening of tree.h.
2552 * value-prof.c.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2553 input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
2554 due to flattening of tree.h.
2557 * var-tracking.c: Ditto.
2558 * vmsdbgout.c: Ditto.
2559 * vtable-verify.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
2560 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
2561 due to flattening of tree.h.
2562 * wide-int.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
2563 input.h, alias.h, symtab.h, fold-const.h, wide-int.h and inchash.h
2564 due to flattening of tree.h.
2565 * xcoffout.c: Ditto.
2567 2015-01-09 Tom de Vries <tom@codesourcery.com>
2569 PR rtl-optimization/64539
2570 * regcprop.c (kill_clobbered_values): Factor out of ...
2571 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
2572 instead of note_stores with kill_clobbered_value.
2574 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2576 * ginclude/unwind-arm-common.h: Revert previous commit.
2578 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2580 * config.gcc (arm*-*-freebsd*): New configuration.
2581 * config/arm/freebsd.h: New file.
2582 * config.host: Add extra components for arm*-*-freebsd*.
2583 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
2584 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
2586 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2588 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
2590 * config/rs6000/t-rtems: Add e6500 multilibs.
2592 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2594 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
2597 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2599 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
2600 MULTILIB_EXCEPTIONS.
2602 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2604 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
2605 MULTILIB_EXCEPTIONS.
2607 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2609 * config/arm/t-rtems-eabi: Rename to...
2610 * config/arm/t-rtems: ...this.
2611 * config/arm/rtems-eabi.h: Rename to...
2612 * config/arm/rtems.h: ...this.
2613 * config.gcc (arm*-*-rtems*): Reflect changes above.
2615 2015-01-09 Richard Biener <rguenther@suse.de>
2617 PR tree-optimization/64410
2618 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
2620 (execute_update_addresses_taken): Deal with that.
2621 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
2622 loads/stores for complex variables.
2624 2015-01-09 Martin Liska <mliska@suse.cz>
2626 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
2628 (func_checker::compare_memory_operand): New function.
2629 (func_checker::compare_operand): Split case to newly
2631 (func_checker::compare_cst_or_decl): New function.
2632 (func_checker::compare_gimple_call): Identify
2634 (func_checker::compare_gimple_assign): Likewise.
2635 * ipa-icf-gimple.h: New function.
2637 2015-01-09 Martin Liska <mliska@suse.cz>
2640 * sreal.c (sreal::dump): Change unsigned format to signed for
2642 (sreal::to_double): Replace exp2 with scalbln.
2644 2015-01-09 Martin Liska <mliska@suse.cz>
2646 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
2647 * ipa-icf.c (sem_function::equals_private): Add support for target and
2648 (sem_item_optimizer::merge_classes): Remove redundant function
2649 optimization flags comparison.
2650 * tree.h (target_opts_for_fn): New function.
2652 2015-01-09 Tom de Vries <tom@codesourcery.com>
2654 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
2656 2015-01-09 Kito Cheng <kito@0xlab.org>
2658 PR rtl-optimization/64348
2659 * lra-constraints.c (split_reg): Fix caller-save store/restore
2660 instruction generation.
2662 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
2664 PR gcov-profile/61790
2665 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
2666 long long. Fallback to int64_t if host doesn't have long long and
2667 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
2669 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2671 PR tree-optimization/63989
2672 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
2674 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
2675 (get_stridx): If we don't have a record for certain SSA_NAME,
2676 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
2677 constant offset, call get_stridx_plus_constant.
2678 (get_stridx_plus_constant): New function.
2679 (zero_length_string): Don't use get_stridx here.
2683 * dse.c (struct insn_info): Mention frame_read set also
2684 before reload for tail calls on some targets.
2685 (scan_insn): Revert 2014-12-22 change. Set frame_read
2686 also before reload for tail calls if
2687 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
2688 instead of add_non_frame_wild_read for non-const/memset
2689 tail calls after reload.
2691 2015-01-08 Jason Merrill <jason@redhat.com>
2693 * ubsan.c (do_ubsan_in_current_function): New.
2694 (pass_ubsan::gate): Use it.
2695 * ubsan.h: Declare it.
2696 * convert.c (convert_to_integer): Use it.
2698 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2701 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
2702 compare_code when it is unconditionally overwritten afterwards.
2703 Use ix86_reverse_condition instead of reverse_condition. Don't
2704 change code if *reverse_condition* returned UNKNOWN and don't
2705 swap ct/cf and negate diff in that case.
2707 2015-01-08 Mike Stump <mikestump@comcast.net>
2709 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
2710 (pass_tsan_O0::gate): Likewise.
2711 * extend.texi (Function Attributes): Add no_sanitize_thread
2714 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
2716 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
2717 for registering builtins.
2718 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
2719 add -fopenmp to the argv_obstack used when invoking
2722 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
2723 add "-m32" or "-m64" to argv_obstack.
2724 (generate_host_descr_file): Likewise, when invoking host_compiler.
2725 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
2728 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2730 * config/sh/sh-mem.cc: Use constant as second operand when emitting
2733 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2736 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
2737 constant load if constant operand fits into I08.
2739 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2742 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
2743 and TREE_THIS_VOLATILE for MEM_REFs.
2744 (build5_stat): Fix up initialization of TREE_READONLY and
2745 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
2747 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
2750 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
2751 of r for the second alternative of the destination operand.
2753 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
2756 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
2758 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2760 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
2762 ([-fivar-visibility], [-fvisibility]): Likewise.
2764 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2766 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
2767 the file where @code, @command, etc is more appropriate.
2769 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
2771 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
2772 of -mrecip= documentation.
2774 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2777 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
2778 correct reload handler if -m32 -mpowerpc64 is used.
2780 2015-01-06 Tom de Vries <tom@codesourcery.com>
2782 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
2784 2015-01-08 Christian Bruel <christian.bruel@st.com>
2787 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
2789 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2791 PR tree-optimization/63259
2792 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
2793 if optab exists for 16bit byteswap.
2795 2015-01-06 Jakub Jelinek <jakub@redhat.com>
2797 * opts.c (common_handle_option): Add support for
2798 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
2799 * doc/invoke.texi: Document -fno-sanitize=all,
2800 -f{,no-}sanitize-recover=all. Document that
2801 -fsanitize=float-cast-overflow is not enabled
2802 by -fsanitize=undefined. Fix up documentation
2803 of -f{,no-}sanitize-recover.
2805 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
2807 * config.gcc: Add Visium support.
2808 * configure.ac: Likewise.
2809 * configure: Regenerate.
2810 * doc/extend.texi (interrupt attribute): Add Visium.
2811 * doc/invoke.texi: Document Visium options.
2812 * doc/install.texi: Document Visium target.
2813 * doc/md.texi: Document Visium constraints.
2814 * common/config/visium: New directory.
2815 * config/visium: Likewise.
2817 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2819 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
2820 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
2822 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2824 * combine.c (combine_validate_cost): Do not count the cost of a
2825 split I2 twice. Do not display it twice in the dump, either.
2827 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2829 Revert parts of r219199.
2830 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
2832 ([-Wtraditional]): Restore markup on <limits.h>.
2834 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2837 * doc/invoke.texi: Document -Wsuggest-override.
2839 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
2841 PR rtl-optimization/64287
2842 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
2843 (process_options): Disable flag_ipa_ra if profiling.
2845 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
2847 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
2849 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
2851 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
2852 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
2853 put under #if TARGET_LOOPS guard.
2855 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
2857 * config/i386/i386.c (output_387_binary_op): Use std::swap.
2859 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
2861 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
2862 * rtl.h (refers_to_regno_p): Add overload.
2864 * bt-load.c: Likewise.
2865 * combine.c: Likewise.
2866 * df-scan.c: Likewise.
2867 * sched-deps.c: Likewise.
2868 * config/s390/s390.c: Likewise.
2869 * config/m32r/m32r.c: Likewise.
2870 * config/rs6000/spe.md: Likewise.
2871 * config/rs6000/rs6000.c: Likewise.
2872 * config/pa/pa.c: Likewise.
2873 * config/stormy16/stormy16.c: Likewise.
2874 * config/cris/cris.c: Likewise.
2875 * config/arc/arc.md: Likewise.
2876 * config/arc/arc.c: Likewise.
2877 * config/sh/sh.md: Likewise.
2878 * config/sh/sh.c: Likewise.
2879 * config/frv/frv.c: Likewise.
2881 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2884 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
2885 call as cleanup of the whole body.
2886 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
2887 * tsan.c (replace_func_exit): New function.
2888 (instrument_func_exit): Moved earlier.
2889 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
2890 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
2892 (tsan_pass): Don't call instrument_func_exit.
2893 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
2894 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
2898 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
2899 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
2900 it to libubsan handler instead of EXPR. Fold comparisons earlier,
2901 if the result is integer_zerop, return NULL_TREE.
2902 * convert.c (convert_to_integer): Pass expr as ARG.
2904 PR tree-optimization/64465
2905 * tree-inline.c (redirect_all_calls): During inlining
2906 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
2907 changed the stmt to a non-throwing call.
2909 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2911 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
2912 etc markup throughout the file.
2914 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2916 Enable experimental TSAN support for Ada.
2917 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
2919 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2921 PR tree-optimization/64494
2922 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
2923 clear SSA_NAME_ANTI_RANGE_P flag.
2925 2015-01-05 Marek Polacek <polacek@redhat.com>
2927 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
2929 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2931 Update copyright years.
2933 * gcc.c (process_command): Update copyright notice dates.
2934 * gcov-dump.c: Ditto.
2936 * doc/cpp.texi: Bump @copying's copyright year.
2937 * doc/cppinternals.texi: Ditto.
2938 * doc/gcc.texi: Ditto.
2939 * doc/gccint.texi: Ditto.
2940 * doc/gcov.texi: Ditto.
2941 * doc/install.texi: Ditto.
2942 * doc/invoke.texi: Ditto.
2944 * auto-profile.c, auto-profile.h: Fix up Copyright line.
2946 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
2948 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
2950 ([-fvtable-verify], [-fvtv-debug]): Likewise.
2951 ([-Wabi]): Likewise.
2952 ([-fmessage-length]): Likewise.
2953 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
2954 ([-Wno-discarded-qualifiers]): Likewise.
2955 ([-Wnodiscarded-array-qualifiers]): Likewise.
2956 ([-Wno-virtual-move-assign]): Likewise.
2957 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
2958 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
2959 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
2960 ([-fsanitize-undefined-trap-on-error]): Likewise.
2961 ([-floop-interchange]): Likewise.
2962 ([-ftree-coalesce-inlined-vars]): Likewise.
2963 ([-fvect-cost-model]): Likewise.
2964 ([-flto]): Likewise.
2965 ([--param]): Likewise.
2966 (Spec Files): Likewise.
2967 ([-mstrict-align]): Likewise.
2968 ([-mfix-cortex-a53-835769]): Likewise.
2969 ([-march], [-mtune]): Likewise.
2970 ([-mpic-register]): Likewise.
2971 ([-munaligned-access]): Likewise.
2972 ([-msp8]): Likewise.
2973 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
2974 (AVR Built-in Macros): Likewise.
2975 ([-mpreferred-stack-boundary]): Likewise.
2976 ([-mtune-crtl]): Likewise.
2977 ([-mashf]): Likewise.
2978 ([-mmcu=]): Likewise.
2979 ([-minrt]): Likewise.
2980 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
2981 ([-mupper-regs]): Likewise.
2982 ([-matomic-model]): Likewise.
2983 ([-mdiv]): Likewise.
2984 ([-mzdcbranch]): Likewise.
2985 ([-mdisable-callt]): Likewise.
2986 ([-msoft-float]): Likewise.
2987 ([-m8byte-align]): Likewise.
2988 ([-fstack-reuse]): Likewise.
2990 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2992 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
2993 Fix markup, light copy-editing.
2994 ([-fauto-profile]): Rewrite to fix formatting and content
2997 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2999 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
3000 Copy-edit description.
3001 ([-fisolate-erroneous-paths-attribute]): Likewise.
3002 * common.opt (fisolate-erroneous-paths-dereference):
3003 Copy-edit description.
3004 (fisolate-erroneous-paths-attribute): Likewise.
3006 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3008 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
3011 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3013 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
3014 ([-fvtv-debug]): Likewise.
3015 ([-Wc++-compat]): Likewise.
3016 ([-Wc++11-compat]): Likewise.
3017 ([-Wc++14-compat]): Likewise.
3018 ([-Wno-sized-deallocation]): Likewise.
3019 ([-femit-class-debug-always]): Likewise.
3020 ([-femit-struct-debug-detailed]): Likewise.
3021 ([-fno-keep-inline-dllexport]): Likewise.
3022 ([-fira-algorithm]): Likewise.
3023 ([-fira-region]): Likewise.
3024 ([-flra-remat]): Likewise.
3025 ([-fipa-ra]): Likewise.
3026 ([-fhoist-adjacent-loads]): Likewise.
3027 ([-fisolate-erroneous-paths-dereference]): Likewise.
3028 ([-fisolate-erroneous-paths-attribute]): Likewise.
3029 ([-ftree-switch-conversion]): Likewise.
3030 ([-ftree-tail-merge]): Likewise.
3031 ([-ftree-loop-if-convert]): Likewise.
3032 ([-ftree-loop-if-convert-stores]): Likewise.
3033 ([-ftree-loop-distribution]): Likewise.
3034 ([-ftree-loop-distribute-patterns]): Likewise.
3035 ([-flto-compression-level]): Likewise.
3036 ([-flto-report]): Likewise.
3037 ([-flto-report-wpa]): Likewise.
3038 ([-fuse-linker-plugin]): Likewise.
3039 ([-mfix-cortex-a53-835769]): Likewise.
3040 ([-mno-fix-cortex-a53-835769]): Likewise.
3041 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
3042 explicit listing; add a note to the discussion indicating they
3043 exist. Reorder table to group similar options. Add missing
3044 @opindex entries. Add @need commands throughout the table to
3045 allow it to be split across multiple pages.
3046 ([-m8bit-idiv]): Fix @opindex.
3047 ([-mavx256-split-unaligned-load]): Likewise.
3048 ([-mavx256-split-unaligned-store]): Likewise.
3049 ([-mstack-protector-guard]): Likewise.
3050 ([-mcpu=]): Likewise.
3051 ([-mcpu]): Likewise.
3052 ([-mpointer-size=]): Likewise.
3054 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
3056 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
3057 instead of `m' constraint. Likewise for unnamed movb comparison
3058 patterns using reg_before_reload_operand predicate.
3059 * config/pa/predicates.md (reg_before_reload_operand): Tighten
3060 predicate to reject register index and LO_SUM DLT memory forms
3063 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3065 * doc/invoke.texi (Option Summary): Fix spelling of
3066 -fdevirtualize-at-ltrans.
3067 ([-fdevirtualize]): Fix markup.
3068 ([-fdevirtualize-speculatively]): Fix typo.
3069 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
3071 * common.opt (fdevirtualize-at-ltrans): Likewise.
3072 * ipa-devirt.c: Fix typos in comments throughout the file.
3073 (ipa_devirt): Fix typos in format strings for dump output.
3075 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3077 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
3078 discussion of defaults, light copy-editing.
3080 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3082 * tsan.c (instrument_expr): corrected previous checkin.
3084 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3086 Instrument bit field and unaligned accesses for TSAN.
3087 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
3088 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
3089 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
3090 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
3091 unaligned memory regions.
3093 2015-01-01 Anthony Green <green@moxielogic.com>
3095 * config/moxie/predicates.md (moxie_general_movsrc_operand):
3096 Restrict move source register offsets to 16 bits.
3098 Copyright (C) 2015 Free Software Foundation, Inc.
3100 Copying and distribution of this file, with or without modification,
3101 are permitted in any medium without royalty provided the copyright
3102 notice and this notice are preserved.