re PR lto/45375 ([meta-bug] Issues with building Mozilla (i.e. Firefox) with LTO)
[gcc.git] / gcc / ChangeLog
1 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2
3 PR lto/45375
4 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
5 to set branch cost.
6
7 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
8
9 PR lto/45375
10 * i386.c (gate): Check flag_expensive_optimizations and
11 optimize_size.
12 (ix86_option_override_internal): Drop optimize_size condition
13 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
14 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
15 MASK_PREFER_AVX128.
16 (ix86_avx256_split_vector_move_misalign,
17 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
18 * sse.md (all uses of TARGET_PREFER_AVX128): Add
19 optimize_insn_for_speed_p check.
20
21 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
22
23 * config/mips/mips.h (FP_ASM_SPEC): New define.
24 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
25 instead.
26
27 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
28
29 PR target/53988
30 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
31 nullptr for insn when reaching the first insn.
32 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
33 (sh_insn_operands_modified_between_p): Add nullptr check.
34 (sh_find_extending_set_of_reg): Fix log message. Don't accept
35 sign extending mem load if the insn contains any UNSPEC or
36 UNSPEC_VOLATILE.
37
38 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39
40 * params.def (inline-unit-growth): Drop to 15%.
41 * invoke.texi (inline-unit-growth): Document change.
42
43 2015-01-19 Martin Liska <mliska@suse.cz>
44
45 PR ipa/64668
46 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
47 function for second argument of OBJ_TYPE_REF.
48
49 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
50
51 PR ipa/64218
52 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
53 whether function is an alias.
54
55 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
56
57 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
58 cases.
59
60 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
61
62 PR rtl-optimization/64671
63 * lra-remat.c (operand_to_remat): Don't consider jump and call
64 insns.
65
66 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
67
68 * config/rs6000/default64.h: Include rs6000-cpus.def.
69 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
70 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
71 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
72 and POWER8.
73 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
74 POWER8.
75 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
76 pseudo-op to specify assembler dialect.
77
78 2015-01-19 Martin Liska <mliska@suse.cz>
79
80 PR ipa/64664
81 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
82 Handle safe potentially removed nodes during filtering.
83
84 2015-01-19 Martin Liska <mliska@suse.cz>
85
86 * doc/extend.texi (no_icf): Add new attribute description.
87 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
88 where the pass attempts to merge a function with no_icf attribute.
89
90 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
91
92 PR target/64532
93 * doc/md.texi (ARM Options): Document register constraints.
94
95 2015-01-19 Jiong Wang <jiong.wang@arm.com>
96 Andrew Pinski <apinski@cavium.com>
97
98 PR target/64304
99 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
100 (ashl<mode>3): Don't expand if operands[2] is not constant.
101
102 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
103
104 PR target/64448
105 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
106 Match xor-and-xor RTL pattern.
107
108 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
109
110 PR rtl-optimization/64081
111 * loop-iv.c (def_pred_latch_p): New function.
112 (latch_dominating_def): Allow specific cases with non-single
113 definitions.
114 (iv_get_reaching_def): Likewise.
115 (check_complex_exit_p): New function.
116 (check_simple_exit): Use check_complex_exit_p to allow certain cases
117 with exits not executing on any iteration.
118
119 2015-01-19 Jakub Jelinek <jakub@redhat.com>
120
121 * common.opt (fgraphite): Fix a typo.
122
123 2015-01-19 Felix Yang <felix.yang@huawei.com>
124
125 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
126 pattern.
127 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
128 uminp, smax_nanp, smin_nanp): New builtins.
129 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
130 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
131 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
132 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
133 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
134 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
135 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
136 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
137 vpminnms_f32): Rewrite using builtin functions.
138
139 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
140
141 PR libgomp/64625
142 * omp-low.c (offload_symbol_decl): Remove variable.
143 (get_offload_symbol_decl): Remove function.
144 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
145 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
146 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
147 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
148 BUILT_IN_GOACC_UPDATE don't pass it at all.
149
150 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
151
152 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
153 callers.
154
155 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
156
157 * ipa-chkp.c (chkp_produce_thunks): Add early param
158 to split thunks production into two passes. Keep
159 'always_inline' function bodies after the first pass.
160 (pass_data_ipa_chkp_early_produce_thunks): New.
161 (pass_ipa_chkp_early_produce_thunks): New.
162 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
163 chkp_produce_thunks signature.
164 (make_pass_ipa_chkp_early_produce_thunks): New.
165 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
166 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
167 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
168
169 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
170
171 * cgraph.c (cgraph_node::dump): Dump profile flags.
172
173 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
174
175 PR target/64652
176 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
177 reg appear first in the parallel.
178
179 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
180
181 * ipa-reference.c (set_reference_optimization_summary,
182 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
183 disabled.
184 (ignore_module_statics): New static var.
185 (propagate_bits): If ipa-reference is disabled, do not look into local
186 properties.
187 (analyze_function): Disable analysis when ipa_reference is disabled.
188 (generate_summary): Do not dump when reference is disabled;
189 collect vars accessed from functions with ipa-reference disabled.
190 (get_read_write_all_from_node): When ipa-reference is disabled, use the
191 node flags.
192 (gate): Enable for LTO.
193 (ignore_edge_p): New function.
194 (propagate): Skip functions w/o ipa-reference analysis.
195 * optc-save-gen.awk: Handle optimize_debug correctly.
196 * opth-gen.awk: Likewise.
197 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
198 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
199 fira-share-save-slots, fira-share-spill-slots,
200 fmodulo-sched-allow-regmoves, fpartial-inlining,
201 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
202 ftracer, ftree-parallelize-loops, fassociative-math,
203 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
204 Optimization
205 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
206 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
207 Optimization.
208 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
209 Fix for IPA.
210
211 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
212
213 PR ipa/64378
214 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
215 flag correctly.
216 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
217
218 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
219
220 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
221 Remove duplicate option listings.
222
223 2015-01-18 Felix Yang <felix.yang@huawei.com>
224
225 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
226 (autofdo_source_profile::get_callsite_total_count,
227 function_instance::get_function_instance_by_decl,
228 string_table::get_index, string_table::get_index_by_decl,
229 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
230 Fix comment typos. Reformatting and minor code rearrangement.
231
232 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
233
234 * config/rs6000/rs6000.md (probe_stack): Delete.
235 (probe_stack_address): New.
236
237 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
238
239 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
240 to test for 32-bit ABIs, not !TARGET_POWERPC64.
241
242 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
243
244 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
245 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
246 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
247 snafu.
248 (rs6000_libcall_value): Use the new function.
249
250 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
251
252 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
253
254 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
255
256 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
257 implement a more precise life analysis for it during backward scan.
258
259 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
260
261 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
262
263 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
264
265 PR rtl-optimization/52773
266 * calls.c (emit_library_call_value): When pushing arguments use
267 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
268 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
269 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
270
271 2015-01-17 Jeff Law <law@redhat.com>
272
273 PR rtl-optimization/32790
274 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
275 not ZERO_EXTEND in SET_DESTs.
276
277 2015-01-17 Alan Modra <amodra@gmail.com>
278
279 * cprop.c (do_local_cprop): Revert last change.
280
281 2015-01-16 DJ Delorie <dj@redhat.com>
282 Nick Clifton <nickc@redhat.com>
283
284 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
285 (addhi3_real): Likewise. Fix [HL+0] syntax.
286 (subqi3_real): Likewise.
287 (subhi3_real): Likewise.
288 (cbranchqi4_real): Likewise. Allow saddr,#imm.
289 (cbranchhi4_real): Likewise.
290 (cbranchhi4_real_inverted): Likewise.
291 (cbranchsi4_real_lt): Likewise.
292 (cbranchsi4_real_ge): Likewise.
293 (cbranchsi4_real_ge): Likewise.
294 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
295 (sub<mode>3_virt): Likewise.
296 (cbranchqi4_virt): Likewise.
297 (cbranchhi4_virt): Likewise.
298 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
299 always use '[reg+imm]' even when imm is zero.
300 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
301 (rl78_general_operand): New.
302 (rl78_nonimmediate_operand): New.
303 (rl78_nonfar_operand): Use them.
304 (rl78_nonfar_nonimm_operand): Likewise.
305 (rl78_stack_based_mem): Fix.
306 * config/rl78/constraints.md (Ibqi): New.
307 (IBqi): New.
308 (Wsa): New.
309 (Wsf): New.
310 (Cs1): Fix.
311 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
312 (iorqi3): Likewise.
313 (xorqi3): Likewise.
314 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
315
316 * config/rl78/constrains (Qs8): New constraint.
317 * config/rl78/rl78.c (rl78_flags_already_set): New function.
318 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
319 * config/rl78/rl78-real.md (update_Z): New attribute.
320 Update patterns to set it.
321 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
322 shorter compare and branch sequence can be used.
323 (cbranchhi4_real): Likewise.
324 (cbranchhi4_real_inverted): Likewise.
325
326 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
327 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
328 address space.
329 * config/rl78/rl78.c (rl78_get_name_encoding): New.
330 (rl78_option_override): Allow -mes0 only if C.
331 (characterize_address): Support subregs of symbol_refs.
332 (rl78_addr_space_address_mode): Move. Add __near.
333 (rl78_far_p): Likewise.
334 (rl78_addr_space_pointer_mode): Likewise.
335 (rl78_as_legitimate_address): Likewise.
336 (rl78_addr_space_subset_p): Likewise.
337 (rl78_addr_space_convert): Likewise.
338 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
339 symbols with -mes0.
340 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
341 addressing.
342 (rl78_alloc_physical_registers_op1): Change logic to prefer
343 symbol[BC] addressing.
344 (frodata_section): New.
345 (rl78_asm_init_sections): Initialize it.
346 (rl78_select_section): Put __far readonly symbols in .frodata.
347 (rl78_make_type_far): New.
348 (rl78_insert_attributes): Force all readonly symbols to be __far when -mes0.
349 (rl78_asm_out_integer): New.
350 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
351 * config/rl78/rl78.opt (-mes0): New.
352
353 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
354 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
355 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
356 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
357 (rl78_saddr_p): New.
358 (rl78_output_aligned_common): New.
359 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
360 (rl78_handle_saddr_attribute): New.
361 (rl78_handle_naked_attribute): New.
362 (rl78_attribute_table): Add saddr.
363 (rl78_print_operand_1): Don't print '!' on saddr operands.
364 (rl78_print_operand_1): Strip encodings.
365 (rl78_sfr_p): New.
366 (rl78_strip_name_encoding): New.
367 (rl78_attrlist_to_encoding): New.
368 (rl78_encode_section_info): New.
369 (rl78_asm_init_sections): New.
370 (rl78_select_section): New.
371 (rl78_output_labelref): New.
372 (rl78_output_aligned_common): New.
373 (rl78_asm_out_integer): New.
374 (rl78_asm_ctor_dtor): New.
375 (rl78_asm_constructor): New.
376 (rl78_asm_destructor): New.
377
378 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
379 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
380 (transcode_memory_rtx): Update.
381 (rl78_expand_epilogue): Use A_REG instead of 0.
382
383 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
384
385 * config/arm/arm-protos.h (struct tune_params): New field
386 sched_autopref_queue_depth.
387 * config/arm/arm.c (sched-int.h): Include header.
388 (arm_first_cycle_multipass_dfa_lookahead_guard,)
389 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
390 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
391 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
392 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
393 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
394 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
395 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
396 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
397 * config/arm/t-arm (arm.o): Update.
398 * haifa-sched.c (update_insn_after_change): Update.
399 (rank_for_schedule): Use auto-prefetcher model, if requested.
400 (autopref_multipass_init): New static function.
401 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
402 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
403 variable for debug dumps.
404 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
405 (autopref_multipass_dfa_lookahead_guard): New global function that
406 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
407 (init_h_i_d): Update.
408 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
409 * sched-int.h (enum autopref_multipass_data_status): New const enum.
410 (autopref_multipass_data_): Structure for auto-prefetcher data.
411 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
412 (struct _haifa_insn_data:autopref_multipass_data): New field.
413 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
414 (autopref_multipass_dfa_lookahead_guard): Declare.
415
416 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
417
418 * rtlanal.c (get_base_term): Handle SCRATCH.
419
420 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
421
422 * config/aarch64/aarch64.c
423 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
424 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
425 * config/arm/arm.c
426 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
427 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
428
429 2015-01-17 Alan Modra <amodra@gmail.com>
430
431 * cprop.c (do_local_cprop): Disallow replacement of fixed
432 hard registers.
433
434 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
435
436 PR target/62066
437 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
438 early return 0.
439
440 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
441
442 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
443 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
444
445 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
446
447 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
448 * config/arm/thumb1.md: ... Here.
449
450 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
451
452 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
453 TImode for TARGET_32BIT.
454
455 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
456
457 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
458 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
459 as ...
460 (rs6000_abi_word_mode): New function.
461
462 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
463
464 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
465 instead of UNITS_PER_WORD to describe the size of stack slots.
466
467 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
468
469 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
470 as rs6000_promote_function_mode. Move comment to there.
471 (rs6000_promote_function_mode): New function.
472
473 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
474
475 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
476 -mpowerpc64 is active.
477
478 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
479
480 PR middle-end/64353
481 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
482 virtuals on start.
483
484 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
485
486 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
487 introduced in revision 219724.
488
489 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
490 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
491
492 PR target/64263
493 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
494 destination is not a GP reg.
495 (*movdi_aarch64): Likewise.
496
497 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
498
499 PR target/64623
500 * config/rs6000/default64.h: Revert ISA change.
501
502 2015-01-16 Richard Biener <rguenther@suse.de>
503
504 PR middle-end/64614
505 * tree-ssa-uninit.c: Include tree-cfg.h.
506 (MAX_SWITCH_CASES): New define.
507 (convert_control_dep_chain_into_preds): Handle switch statements.
508 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
509 (normalize_one_pred_1): Do not split bit-manipulations.
510 Record (x & CST).
511
512 2015-01-16 Richard Biener <rguenther@suse.de>
513
514 PR tree-optimization/64568
515 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
516 complex load rewriting for TARGET_MEM_REFs.
517
518 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
519
520 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
521
522 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
523
524 PR target/64149
525 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
526 variable.
527 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
528 (aarch64_lra_p): Remove.
529
530 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
531
532 PR target/64363
533 * ipa-chkp.h (chkp_instrumentable_p): New.
534 * ipa-chkp.c: Include tree-inline.h.
535 (chkp_instrumentable_p): New.
536 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
537 Fix processing of not instrumentable functions.
538 (chkp_versioning): Use chkp_instrumentable_p. Warn about
539 not instrumentable functions.
540 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
541 chkp_instrumentable_p.
542 * tree-inline.h (copy_forbidden): New.
543 * tree-inline.c (copy_forbidden): Not static anymore.
544
545 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
546
547 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
548 ptr1, ptr2 unused.
549
550 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
551
552 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
553 type OP_OUT to OP_INOUT.
554
555 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
556
557 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
558 (high x) y) to y if x and y have the same base.
559
560 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
561
562 * config/arm/cortex-a57.md: New.
563 * config/aarch64/aarch64.md: Include it.
564 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
565 * config/aarch64/aarch64-tune.md: Regenerate.
566
567 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
568
569 PR target/64015
570 * ccmp.c (expand_ccmp_next): New function.
571 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
572 and compare insn sequence.
573 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
574 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
575 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
576 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
577 (*ccmp_ior): Changed to ccmp_ior<mode>.
578 (cmp<mode>): New pattern.
579 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
580 parameters.
581 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
582
583 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
584
585 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
586 _mm256_bsrli_epi128): New.
587 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
588
589 2015-01-15 Jiong Wang <jiong.wang@arm.com>
590
591 * expmed.c (store_bit_field_using_insv): Improve warning message.
592 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
593
594 2015-01-15 Jiong Wang <jiong.wang@arm.com>
595
596 PR rtl-optimization/64011
597 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
598 there is partial overflow.
599
600 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
601
602 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
603 prototype.
604 (nds32_expand_epilogue_v3pop): Likewise.
605 * config/nds32/nds32.md (sibcall): Define this for sibling call
606 optimization.
607 (sibcall_register): Likewise.
608 (sibcall_immediate): Likewise.
609 (sibcall_value): Likewise.
610 (sibcall_value_register): Likewise.
611 (sibcall_value_immediate): Likewise.
612 (sibcall_epilogue): Likewise.
613 (epilogue): Pass false to indicate this is not a sibcall epilogue.
614 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
615 (nds32_expand_epilogue_v3pop): Likewise.
616
617 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
618
619 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
620 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
621 (return_internal): New.
622 (return): Define this named pattern.
623 (simple_return): Define this named pattern.
624 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
625 pattern instead of unspec_volatile_func_return.
626 (nds32_expand_epilogue_v3pop): Likewise.
627 (nds32_can_use_return_insn): New function.
628
629 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
630
631 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
632 * config/nds32/nds32.md (pop25return): New.
633 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
634 pop25return pattern.
635
636 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
637
638 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
639 -mforbid-fp-as-gp, and -mex9 options.
640
641 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
642
643 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
644 remove -mgp-direct option.
645
646 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
647
648 * doc/invoke.texi (--param early-inlining-insns): Update default value.
649 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
650
651 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
652
653 * ipa-inline.c (inline_small_functions): Work around hints
654 cache issue.
655
656 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
657
658 PR target/59710
659 * doc/invoke.texi (Option Summary): Document new Nios II
660 -mgpopt= syntax.
661 (Nios II Options): Likewise.
662 * config/nios2/nios2.opt: Add -mgpopt= option support.
663 Modify existing -mgpopt and -mno-gpopt options to be aliases.
664 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
665 * config/nios2/nios2.c (nios2_option_override): Adjust
666 -mgpopt defaulting.
667 (nios2_in_small_data_p): Return true for explicit small data
668 sections even with -G0.
669 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
670 option choices.
671
672 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
673
674 PR ipa/64612
675 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
676 of comdat locals.
677 (inline_call): Fix removal of aliases.
678
679 2015-01-15 Jakub Jelinek <jakub@redhat.com>
680
681 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
682 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
683 * opts.c (common_handle_option): Add -fsanitize=vptr.
684 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
685 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
686 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
687 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
688 (ubsan_expand_vptr_ifn): New prototype.
689 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
690 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
691 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
692 expand_LOOP_VECTORIZED): Make argument nameless, remove
693 ATTRIBUTE_UNUSED.
694 (expand_UBSAN_VPTR): New function.
695 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
696 in fn spec.
697 (UBSAN_VPTR): New internal function.
698 * sanopt.c (tree_map_traits): Renamed to ...
699 (sanopt_tree_map_traits): ... this.
700 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
701 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
702 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
703 (maybe_optimize_ubsan_vptr_ifn): New function.
704 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
705 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
706 -fsanitize=vptr.
707 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
708 internal calls like pure functions for aliasing, even when they
709 have other side-effects that prevent making them ECF_PURE.
710 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
711 (ubsan_expand_vptr_ifn): New function.
712
713 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
714
715 PR rtl-optimization/64110
716 * stmt.c (parse_output_constraint): Process '^' and '$'.
717 (parse_input_constraint): Ditto.
718 * lra-constraints.c (process_alt_operands): Process the new
719 constraints.
720 * ira-costs.c (record_reg_classes): Process the new constraint
721 '^'.
722 * genoutput.c (indep_constraints): Add '^' and '$'.
723 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
724 * doc/md.texi: Add description of the new constraints.
725
726 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
727 Bernd Schmidt <bernds@codesourcery.com>
728 Cesar Philippidis <cesar@codesourcery.com>
729 James Norris <jnorris@codesourcery.com>
730 Tom de Vries <tom@codesourcery.com>
731 Ilmir Usmanov <i.usmanov@samsung.com>
732 Dmitry Bocharnikov <dmitry.b@samsung.com>
733 Evgeny Gavrin <e.gavrin@samsung.com>
734 Jakub Jelinek <jakub@redhat.com>
735
736 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
737 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
738 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
739 New function types.
740 * builtins.c: Include "gomp-constants.h".
741 (expand_builtin_acc_on_device): New function.
742 (expand_builtin, is_inexpensive_builtin): Handle
743 BUILT_IN_ACC_ON_DEVICE.
744 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
745 New macros.
746 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
747 flag_openmp.
748 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
749 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
750 i386/intelmic-offload.h.
751 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
752 to libgomp and its dependencies.
753 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
754 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
755 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
756 * config/ia64/hpux.h (LIB_SPEC): Likewise.
757 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
758 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
759 * doc/generic.texi: Update for OpenACC changes.
760 * doc/gimple.texi: Likewise.
761 * doc/invoke.texi: Likewise.
762 * doc/sourcebuild.texi: Likewise.
763 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
764 GF_OMP_FOR_KIND_OACC_LOOP.
765 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
766 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
767 GF_OMP_TARGET_KIND_OACC_UPDATE,
768 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
769 Dump more data.
770 * gimple.c: Update comments for OpenACC changes.
771 * gimple.def: Likewise.
772 * gimple.h: Likewise.
773 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
774 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
775 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
776 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
777 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
778 appropriate place.
779 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
780 * gimplify.c: Include "gomp-constants.h".
781 Update comments for OpenACC changes.
782 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
783 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
784 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
785 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
786 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
787 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
788 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
789 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
790 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
791 OMP_CLAUSE_SEQ.
792 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
793 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
794 OMP_CLAUSE_SET_MAP_KIND.
795 (gimplify_oacc_cache): New function.
796 (gimplify_omp_for): Handle OACC_LOOP.
797 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
798 OACC_DATA.
799 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
800 OACC_EXIT_DATA, OACC_UPDATE.
801 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
802 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
803 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
804 (gimplify_body): Consider flag_openacc next to flag_openmp.
805 * lto-streamer-out.c: Include "gomp-constants.h".
806 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
807 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
808 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
809 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
810 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
811 (BUILT_IN_ACC_ON_DEVICE): New builtins.
812 * omp-low.c: Include "gomp-constants.h".
813 Update comments for OpenACC changes.
814 (struct omp_context): Add reduction_map, gwv_below, gwv_this
815 members.
816 (extract_omp_for_data, use_pointer_for_field, install_var_field)
817 (new_omp_context, delete_omp_context, scan_sharing_clauses)
818 (create_omp_child_function, scan_omp_for, scan_omp_target)
819 (check_omp_nesting_restrictions, lower_reduction_clauses)
820 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
821 Update for OpenACC changes.
822 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
823 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
824 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
825 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
826 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
827 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
828 OMP_CLAUSE_MAP_*.
829 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
830 Handle GF_OMP_FOR_KIND_OACC_LOOP.
831 (expand_omp_target, lower_omp_target): Handle
832 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
833 GF_OMP_TARGET_KIND_OACC_UPDATE,
834 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
835 GF_OMP_TARGET_KIND_OACC_DATA.
836 (pass_expand_omp::execute, execute_lower_omp)
837 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
838 flag_openmp.
839 (offload_symbol_decl): New variable.
840 (oacc_get_reduction_array_id, oacc_max_threads)
841 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
842 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
843 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
844 (oacc_gimple_assign, oacc_initialize_reduction_data)
845 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
846 functions.
847 (is_targetreg_ctx): Remove function.
848 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
849 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
850 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
851 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
852 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
853 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
854 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
855 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
856 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
857 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
858 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
859 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
860 * tree-core.h: Update comments for OpenACC changes.
861 (enum omp_clause_map_kind): Remove.
862 (struct tree_omp_clause): Change type of map_kind member from enum
863 omp_clause_map_kind to unsigned char.
864 * tree-inline.c: Update comments for OpenACC changes.
865 * tree-nested.c: Likewise. Include "gomp-constants.h".
866 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
867 (convert_tramp_reference_stmt, convert_gimple_call): Update for
868 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
869 OMP_CLAUSE_SET_MAP_KIND.
870 * tree-pretty-print.c: Include "gomp-constants.h".
871 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
872 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
873 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
874 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
875 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
876 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
877 instead of OMP_CLAUSE_MAP_*.
878 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
879 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
880 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
881 * tree-streamer-in.c: Include "gomp-constants.h".
882 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
883 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
884 * tree-streamer-out.c: Include "gomp-constants.h".
885 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
886 OMP_CLAUSE_MAP_*.
887 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
888 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
889 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
890 * tree.c (omp_clause_num_ops): Update accordingly.
891 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
892 Likewise.
893 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
894 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
895 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
896 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
897 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
898 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
899 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
900 (OMP_CLAUSE_SET_MAP_KIND): New macro.
901 * varpool.c (varpool_node::get_create): Consider flag_openacc next
902 to flag_openmp.
903 * config/i386/intelmic-offload.h: New file.
904 * config/nvptx/offload.h: Likewise.
905
906 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
907
908 * explow.h: Remove duplicate contents.
909 * dojump.h: Likewise.
910
911 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
912
913 * arm.c (arm_xgene_tune): Add default initializer for instruction
914 fusion.
915
916 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
917
918 PR ipa/64068
919 PR ipa/64559
920 * ipa.c (symbol_table::remove_unreachable_nodes):
921 Do not put abstract origins into boundary.
922
923 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
924
925 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
926 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
927
928 2015-01-15 Steve Ellcey <sellcey@mips.com>
929
930 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
931 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
932 builtins.def, and chkp-builtins.def.
933
934 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
935
936 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
937 ISA 2.7 (POWER8).
938
939 2015-01-15 Richard Biener <rguenther@suse.de>
940
941 PR tree-optimization/61743
942 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
943 information on PHIs for some simple cases.
944
945 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
946
947 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
948 Include xgene1.md.
949 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
950 * config/arm/arm-cores.def (xgene1): New entry.
951 * config/arm/arm-tables.opt: Regenerate.
952 * config/arm/arm-tune.md: Regenerate.
953 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
954
955 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
956
957 * tree-if-conv.c: Include hash-map.h.
958 (aggressive_if_conv): New variable.
959 (fold_build_cond_expr): Add simplification of non-zero condition.
960 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
961 destination block is not always executed.
962 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
963 than two predecessors if AGGRESSIVE_IF_CONV is true.
964 (if_convertible_stmt_p): Fix commentary.
965 (all_preds_critical_p): New function.
966 (has_pred_critical_p): New function.
967 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
968 BB can have more than two predecessors and all incoming edges can be
969 critical.
970 (predicate_bbs): Skip predication for loop exit block, use build2_loc
971 to compute predicate for true edge.
972 (find_phi_replacement_condition): Delete this function.
973 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
974 Allow interchange PHI arguments if EXTENDED is false.
975 Change check that block containing reduction statement candidate
976 is predecessor of phi-block since phi may have more than two arguments.
977 (phi_args_hash_traits): New helper structure.
978 (struct phi_args_hash_traits): New type.
979 (phi_args_hash_traits::hash): New function.
980 (phi_args_hash_traits::equal_keys): New function.
981 (gen_phi_arg_condition): New function.
982 (predicate_scalar_phi): Add handling of phi nodes with more than two
983 arguments, delete COND and TRUE_BB arguments, insert body of
984 find_phi_replacement_condition to predicate ordinary phi nodes.
985 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
986 delete call of find_phi_replacement_condition and invoke
987 predicate_scalar_phi with two arguments.
988 (insert_gimplified_predicates): Add assert that non-predicated block
989 don't have statements to insert.
990 (ifcvt_split_critical_edges): New function.
991 (ifcvt_split_def_stmt): Likewise.
992 (ifcvt_walk_pattern_tree): Likewise.
993 (stmt_is_root_of_bool_pattern): Likewise.
994 (ifcvt_repair_bool_pattern): Likewise.
995 (ifcvt_local_dce): Likewise.
996 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
997 is copy of inner or outer loop force_vectorize field, invoke
998 ifcvt_split_critical_edges, ifcvt_local_dce and
999 ifcvt_repair_bool_pattern for aggressive if-conversion.
1000
1001 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
1002
1003 * config/aarch64/aarch64.md: Include xgene1.md.
1004 * config/aarch64/xgene1.md: New file.
1005
1006 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1007
1008 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
1009 xgene1 (APM XGene-1) core definition.
1010 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
1011 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
1012 * doc/invoke.texi: Document -mcpu=xgene1.
1013
1014 2015-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1015
1016 * dojump.h: New header file.
1017 * explow.h: Likewise.
1018 * expr.h: Remove includes.
1019 Move expmed.c prototypes to expmed.h.
1020 Move dojump.c prototypes to dojump.h.
1021 Move alias.c prototypes to alias.h.
1022 Move explow.c prototypes to explow.h.
1023 Move calls.c prototypes to calls.h.
1024 Move emit-rtl.c prototypes to emit-rtl.h.
1025 Move varasm.c prototypes to varasm.h.
1026 Move stmt.c prototypes to stmt.h.
1027 (saved_pending_stack_adjust): Move to dojump.h.
1028 (adjust_address): Move to explow.h.
1029 (adjust_address_nv): Move to emit-rtl.h.
1030 (adjust_bitfield_address): Likewise.
1031 (adjust_bitfield_address_size): Likewise.
1032 (adjust_bitfield_address_nv): Likewise.
1033 (adjust_automodify_address_nv): Likewise.
1034 * explow.c (expr_size): Move to expr.c.
1035 (int_expr_size): Likewise.
1036 (tree_expr_size): Likewise.
1037 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1038 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1039 * genemit.c (main): Generate includes statistics.h, real.h, fixed-value.h,
1040 insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
1041 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h, function.h,
1042 statistics.h, real.h, fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
1043 stmt.h.
1044 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
1045 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
1046 * genemit.c (open_base_files): Generate includes flags.h, statistics.h, real.h,
1047 fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h,
1048 stmt.h.
1049 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h, hash-set.h, vec.h,
1050 machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h, flags.h, statistics.h,
1051 double-int.h, real.h, fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h,
1052 insn-config.h, expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1053 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
1054 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
1055 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
1056 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
1057 tm.h tree.h varasm.h vec.h wide-int.h.
1058 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1059 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
1060 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
1061 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
1062 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1063 explow.h expmed.h fixed-value.h flags.h inchash.h insn-config.h
1064 real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
1065 * loop-iv.c: Likewise.
1066 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1067 explow.h expmed.h fixed-value.h flags.h inchash.h real.h
1068 statistics.h stmt.h tree.h varasm.h wide-int.h.
1069 * lra-constraints.c: Likewise.
1070 * lra-eliminations.c: Likewise.
1071 * lra-lives.c: Likewise.
1072 * lra-remat.c: Likewise.
1073 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1074 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
1075 statistics.h stmt.h tree.h varasm.h wide-int.h.
1076 * hw-doloop.c: Likewise.
1077 * ira-color.c: Likewise.
1078 * ira-emit.c: Likewise.
1079 * loop-doloop.c: Likewise.
1080 * loop-invariant.c: Likewise.
1081 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1082 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
1083 statistics.h stmt.h tree.h varasm.h wide-int.h.
1084 * caller-save.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1085 explow.h expmed.h fixed-value.h inchash.h real.h statistics.h
1086 stmt.h tree.h varasm.h wide-int.h.
1087 * combine-stack-adj.c: Likewise.
1088 * cse.c: Likewise.
1089 * ddg.c: Likewise.
1090 * ifcvt.c: Likewise.
1091 * ira-costs.c: Likewise.
1092 * jump.c: Likewise.
1093 * lra-coalesce.c: Likewise.
1094 * lra-spills.c: Likewise.
1095 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1096 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
1097 stmt.h varasm.h wide-int.h.
1098 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
1099 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1100 varasm.h.
1101 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
1102 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
1103 statistics.h stmt.h varasm.h wide-int.h.
1104 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
1105 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
1106 varasm.h wide-int.h.
1107 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
1108 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1109 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
1110 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
1111 statistics.h stmt.h.
1112 * config/tilepro/tilepro.c: Likewise.
1113 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
1114 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
1115 * config/pdp11/pdp11.c: Likewise.
1116 * config/xtensa/xtensa.c: Likewise.
1117 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
1118 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
1119 varasm.h.
1120 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1121 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1122 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
1123 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1124 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1125 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
1126 * rtl-chkp.c: Likewise.
1127 * tree-chkp-opt.c: Likewise.
1128 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h explow.h
1129 expmed.h fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
1130 insn-config.h real.h statistics.h stmt.h varasm.h.
1131 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1132 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1133 statistics.h stmt.h.
1134 * tree-vect-data-refs.c: Likewise.
1135 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
1136 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1137 rtl.h statistics.h stmt.h varasm.h.
1138 * internal-fn.c: Likewise.
1139 * ipa-icf-gimple.c: Likewise.
1140 * lto-section-out.c: Likewise.
1141 * tree-data-ref.c: Likewise.
1142 * tree-nested.c: Likewise.
1143 * tree-outof-ssa.c: Likewise.
1144 * tree-predcom.c: Likewise.
1145 * tree-pretty-print.c: Likewise.
1146 * tree-scalar-evolution.c: Likewise.
1147 * tree-ssa-strlen.c: Likewise.
1148 * tree-vect-loop.c: Likewise.
1149 * tree-vect-patterns.c: Likewise.
1150 * tree-vect-slp.c: Likewise.
1151 * tree-vect-stmts.c: Likewise.
1152 * tsan.c: Likewise.
1153 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1154 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1155 stmt.h.
1156 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
1157 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1158 statistics.h stmt.h varasm.h.
1159 * loop-unroll.c: Likewise.
1160 * ubsan.c: Likewise.
1161 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
1162 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
1163 stmt.h varasm.h.
1164 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1165 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
1166 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
1167 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1168 statistics.h stmt.h.
1169 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
1170 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
1171 statistics.h stmt.h varasm.h.
1172 * gimple-match-head.c: Likewise.
1173 * lto-cgraph.c: Likewise.
1174 * lto-section-in.c: Likewise.
1175 * lto-streamer-in.c: Likewise.
1176 * lto-streamer-out.c: Likewise.
1177 * tree-affine.c: Likewise.
1178 * tree-cfg.c: Likewise.
1179 * tree-cfgcleanup.c: Likewise.
1180 * tree-if-conv.c: Likewise.
1181 * tree-into-ssa.c: Likewise.
1182 * tree-ssa-alias.c: Likewise.
1183 * tree-ssa-copyrename.c: Likewise.
1184 * tree-ssa-dse.c: Likewise.
1185 * tree-ssa-forwprop.c: Likewise.
1186 * tree-ssa-live.c: Likewise.
1187 * tree-ssa-math-opts.c: Likewise.
1188 * tree-ssa-pre.c: Likewise.
1189 * tree-ssa-sccvn.c: Likewise.
1190 * tree-tailcall.c: Likewise.
1191 * tree-vect-generic.c: Likewise.
1192 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1193 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
1194 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1195 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
1196 * varasm.c: Likewise.
1197 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1198 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
1199 varasm.h.
1200 * init-regs.c: Likewise.
1201 * ira.c: Likewise.
1202 * omp-low.c: Likewise.
1203 * stack-ptr-mod.c: Likewise.
1204 * tree-ssa-reassoc.c: Likewise.
1205 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1206 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
1207 varasm.h.
1208 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1209 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
1210 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1211 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
1212 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1213 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
1214 * tree-ssa-phiopt.c: Likewise.
1215 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1216 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1217 * config/fr30/fr30.c: Likewise.
1218 * config/frv/frv.c: Likewise.
1219 * expr.c: Likewise.
1220 * final.c: Likewise.
1221 * optabs.c: Likewise.
1222 * passes.c: Likewise.
1223 * simplify-rtx.c: Likewise.
1224 * stmt.c: Likewise.
1225 * toplev.c: Likewise.
1226 * var-tracking.c: Likewise.
1227 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1228 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1229 * lower-subreg.c: Likewise.
1230 * postreload-gcse.c: Likewise.
1231 * ree.c: Likewise.
1232 * reginfo.c: Likewise.
1233 * store-motion.c: Likewise.
1234 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1235 fixed-value.h hashtab.h real.h stmt.h varasm.h.
1236 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1237 fixed-value.h hashtab.h statistics.h stmt.h.
1238 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1239 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
1240 * except.c: Likewise.
1241 * explow.c: Likewise.
1242 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1243 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
1244 varasm.h.
1245 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1246 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
1247 * tree-ssa-structalias.c: Likewise.
1248 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1249 fixed-value.h insn-config.h real.h statistics.h.
1250 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1251 fixed-value.h insn-config.h real.h statistics.h stmt.h.
1252 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1253 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1254 * cfgbuild.c: Likewise.
1255 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1256 fixed-value.h real.h rtl.h statistics.h stmt.h.
1257 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1258 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1259 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1260 fixed-value.h real.h statistics.h stmt.h.
1261 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
1262 fixed-value.h real.h statistics.h stmt.h varasm.h.
1263 * cprop.c: Likewise.
1264 * modulo-sched.c: Likewise.
1265 * postreload.c: Likewise.
1266 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1267 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
1268 statistics.h stmt.h varasm.h.
1269 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
1270 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1271 rtl.h statistics.h stmt.h varasm.h.
1272 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
1273 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
1274 varasm.h.
1275 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
1276 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
1277 varasm.h.
1278 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
1279 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
1280 varasm.h.
1281 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
1282 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1283 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1284 function.h real.h statistics.h stmt.h varasm.h.
1285 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1286 insn-config.h real.h statistics.h stmt.h.
1287 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
1288 statistics.h stmt.h.
1289 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
1290 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
1291 statistics.h stmt.h varasm.h.
1292 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1293 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
1294 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1295 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
1296 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
1297 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
1298 statistics.h stmt.h varasm.h.
1299 * ipa-polymorphic-call.c: Likewise.
1300 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h expmed.h
1301 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
1302 stmt.h.
1303 * config/c6x/c6x.c: Likewise.
1304 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h explow.h
1305 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
1306 statistics.h stmt.h varasm.h.
1307 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1308 hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h varasm.h.
1309 * ipa-split.c: Likewise.
1310 * tree-eh.c: Likewise.
1311 * tree-ssa-dce.c: Likewise.
1312 * tree-ssa-loop-niter.c: Likewise.
1313 * tree-vrp.c: Likewise.
1314 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
1315 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
1316 stmt.h.
1317 * config/nds32/nds32-fp-as-gp.c: Likewise.
1318 * config/nds32/nds32-intrinsic.c: Likewise.
1319 * config/nds32/nds32-isr.c: Likewise.
1320 * config/nds32/nds32-md-auxiliary.c: Likewise.
1321 * config/nds32/nds32-memory-manipulation.c: Likewise.
1322 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1323 * config/nds32/nds32-predicates.c: Likewise.
1324 * config/nds32/nds32.c: Likewise.
1325 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
1326 fixed-value.h hashtab.h real.h statistics.h.
1327 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
1328 fixed-value.h hashtab.h real.h statistics.h stmt.h.
1329 * config/arm/arm.c: Likewise.
1330 * config/avr/avr.c: Likewise.
1331 * config/bfin/bfin.c: Likewise.
1332 * config/h8300/h8300.c: Likewise.
1333 * config/i386/i386.c: Likewise.
1334 * config/ia64/ia64.c: Likewise.
1335 * config/iq2000/iq2000.c: Likewise.
1336 * config/m32c/m32c.c: Likewise.
1337 * config/m32r/m32r.c: Likewise.
1338 * config/m68k/m68k.c: Likewise.
1339 * config/mcore/mcore.c: Likewise.
1340 * config/mep/mep.c: Likewise.
1341 * config/mips/mips.c: Likewise.
1342 * config/mn10300/mn10300.c: Likewise.
1343 * config/moxie/moxie.c: Likewise.
1344 * config/pa/pa.c: Likewise.
1345 * config/rl78/rl78.c: Likewise.
1346 * config/rx/rx.c: Likewise.
1347 * config/s390/s390.c: Likewise.
1348 * config/sh/sh.c: Likewise.
1349 * config/sparc/sparc.c: Likewise.
1350 * config/spu/spu.c: Likewise.
1351 * config/stormy16/stormy16.c: Likewise.
1352 * config/v850/v850.c: Likewise.
1353 * config/vax/vax.c: Likewise.
1354 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
1355 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
1356 * config/msp430/msp430.c: Likewise.
1357 * predict.c: Likewise.
1358 * value-prof.c: Likewise.
1359 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
1360 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
1361 * config/microblaze/microblaze.c: Likewise.
1362 * config/nios2/nios2.c: Likewise.
1363 * config/rs6000/rs6000.c: Likewise.
1364 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1365 insn-config.h real.h rtl.h statistics.h stmt.h.
1366 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1367 insn-config.h real.h statistics.h stmt.h.
1368 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
1369 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
1370 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
1371 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
1372 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
1373 real.h statistics.h stmt.h.
1374 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
1375 fixed-value.h statistics.h stmt.h.
1376 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
1377 stmt.h.
1378
1379 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1380
1381 * gengtype.c (create_user_defined_type): Workaround
1382 -Wmaybe-uninitialized false positives.
1383 * cse.c (fold_rtx): Likewise.
1384 * loop-invariant.c (gain_for_invariant): Likewise.
1385
1386 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
1387
1388 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
1389 set the memory attributes in all cases but clear MEM_EXPR if need be.
1390
1391 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
1392
1393 PR tree-optimization/64434
1394 * cfgexpand.c (reorder_operands): New function.
1395 (expand_gimple_basic_block): Insert call of reorder_operands if
1396 optimized is true.
1397
1398 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
1399
1400 * config/mips/micromips.md (*swp): Remove explicit parallel.
1401 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
1402 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
1403 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
1404 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
1405 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
1406 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
1407 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
1408 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
1409 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
1410 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
1411 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
1412 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
1413 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
1414 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
1415 (mips_wrdsp): Likewise.
1416 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
1417 parallel.
1418 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
1419 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
1420 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
1421 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
1422 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
1423 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
1424 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
1425 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
1426 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
1427
1428 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1429
1430 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
1431 (mips_print_operand): Support 'y' to print exact log2 in decimal
1432 of a const_int.
1433 * config/mips/mips.h (ISA_HAS_LSA): New define.
1434 (ISA_HAS_DLSA): Likewise.
1435 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
1436 * config/mips/predicates.md (const_immlsa_operand): New predicate.
1437
1438 2015-01-15 Martin Liska <mliska@suse.cz>
1439
1440 PR target/64377
1441 * optc-save-gen.awk: Add support for array types.
1442
1443 2015-01-15 Richard Biener <rguenther@suse.de>
1444
1445 PR middle-end/64365
1446 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
1447 for MEM_REF access functions with the same base can never partially
1448 overlap.
1449
1450 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1451
1452 * common.opt: New option -fstack-protector-explicit.
1453 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
1454 (stack_protect_decl_phase): Handle stack_protect attribute for
1455 explicit stack protection requests.
1456 (expand_used_vars): Similarly.
1457 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
1458 * doc/extend.texi: Add documentation for "stack_protect" attribute.
1459 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
1460
1461 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
1462
1463 PR target/53988
1464 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
1465 reg-reg copies.
1466 (sh_extending_set_of_reg): New struct.
1467 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
1468 sh_remove_reg_dead_or_unused_notes): New Declarations.
1469 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
1470 sh_find_extending_set_of_reg, sh_split_tst_subregs,
1471 sh_extending_set_of_reg::use_as_extended_reg): New functions.
1472 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
1473 convert to insn_and_split and use new function sh_split_tst_subregs.
1474
1475 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
1476
1477 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
1478 option.
1479 (Optimization Options): Move -fuse-ld documentation to...
1480 (Link Options): ...here.
1481
1482 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1483
1484 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
1485 offsets.
1486 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
1487 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
1488 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
1489 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
1490 instead of ZR for the memory operand of LL/SC.
1491 (compare_and_swap_12, sync_add<mode>): Likewise.
1492 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
1493 (sync_new_<optab>_12, sync_nand_12): Likewise.
1494 (sync_old_nand_12, sync_new_nand_12): Likewise.
1495 (sync_sub<mode>, sync_old_add<mode>): Likewise.
1496 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
1497 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
1498 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
1499 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
1500 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
1501 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
1502 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
1503 * doc/md.texi (ZC): Update description.
1504
1505 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
1506
1507 * builtins.c (expand_builtin_atomic_exchange): Remove error when
1508 memory model is CONSUME.
1509 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
1510 expand_builtin_atomic_store): Change invalid memory model errors to
1511 warnings.
1512 (expand_builtin_atomic_clear): Change invalid model errors to warnings
1513 and issue warning for CONSUME.
1514
1515 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
1516
1517 * lto-cgraph: Update function comments for
1518 lto_symtab_encoder_encode_*.
1519
1520 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1521
1522 * Makefile.in (site.exp): Do not set ENABLE_LTO.
1523
1524 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1525
1526 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
1527 * lto-cgraph.c (select_what_to_stream): Remove argument, use
1528 lto_stream_offload_p instead.
1529 * lto-streamer.h (select_what_to_stream): Remove argument.
1530 * passes.c (ipa_write_summaries): Likewise.
1531 * tree-pass.h (ipa_write_summaries): Likewise.
1532
1533 2015-01-14 Richard Biener <rguenther@suse.de>
1534
1535 PR tree-optimization/59354
1536 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
1537 groups larger than the slp group size as having gaps.
1538
1539 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
1540
1541 PR middle-end/59448
1542 * builtins.c (get_memmodel): Promote consume to acquire always.
1543
1544 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1545
1546 PR target/64386
1547 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
1548 V32HImode.
1549
1550 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1551
1552 PR target/64393
1553 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
1554 Enable AVX512BW.
1555 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
1556 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
1557 AVX512VBMI, as it implies AVX512BW.
1558
1559 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1560
1561 PR target/64387
1562 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
1563 (vec_unpacks_hi_v16sf): Ditto.
1564
1565 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1566
1567 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
1568 is not available.
1569
1570 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1571
1572 * doc/invoke.texi (mapcs): Mention deprecation.
1573 (mapcs-frame): Likewise.
1574
1575 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1576
1577 PR target/64453
1578 * config/arm/arm.c (callee_saved_reg_p): Define.
1579 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
1580 register is callee saved instead of !call_used_regs[reg].
1581 (thumb1_compute_save_reg_mask): Likewise.
1582
1583 2015-01-14 Hale Wang <hale.wang@arm.com>
1584
1585 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
1586 Cortex-M7.
1587
1588 2015-01-14 Richard Biener <rguenther@suse.de>
1589
1590 PR lto/64415
1591 * tree-inline.c (insert_debug_decl_map): Check destination
1592 function MAY_HAVE_DEBUG_STMTS.
1593 (insert_init_debug_bind): Likewise.
1594 (insert_init_stmt): Remove redundant check.
1595 (remap_gimple_stmt): Drop debug stmts if the destination
1596 function has var-tracking assignments disabled.
1597
1598 2015-01-14 Martin Liska <mliska@suse.cz>
1599
1600 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
1601 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
1602
1603 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1604
1605 PR target/64460
1606 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
1607 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
1608
1609 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
1610
1611 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
1612 level from an ARCH; do not inject the default.
1613 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
1614 MIPS_ISA_LEVEL_SPEC.
1615 (MIPS_ISA_NAN2008_SPEC): Update comment.
1616 (BASE_DRIVER_SELF_SPECS): Likewise.
1617 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
1618 MIPS_DEFAULT_ISA_LEVEL_SPEC.
1619 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
1620 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
1621 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
1622
1623 2015-01-14 Richard Biener <rguenther@suse.de>
1624
1625 PR tree-optimization/64493
1626 PR tree-optimization/64495
1627 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
1628 assign the proper vectorized PHI to the inner loop exit PHIs.
1629
1630 2015-01-14 Joey Ye <joey.ye@arm.com>
1631
1632 * config/arm/arm.c (arm_compute_save_reg_mask):
1633 Do not save lr in case of tail call.
1634 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
1635
1636 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
1637
1638 * tree-vrp.c (check_array_ref): Emit more warnings
1639 for warn_array_bounds >= 2.
1640 * common.opt: New option -Warray-bounds=.
1641 * doc/invoke.texi: Document -Warray-bounds=.
1642
1643 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
1644
1645 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
1646 (mforbid-fp-as-gp): Remove.
1647 (mex9): Remove.
1648 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
1649 (nds32_symbol_load_store_p): Remove.
1650 (nds32_fp_as_gp_check_available): Clean up implementation.
1651 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
1652 cases.
1653 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
1654 fp-as-gp and ex9 cases.
1655
1656 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1657
1658 * tree-profile.c (init_ic_make_global_vars): Drop workaround
1659 for bintuils bug 14342.
1660 (init_ic_make_global_vars): Likewise.
1661 (gimple_init_edge_profiler): Likewise.
1662 (gimple_gen_ic_func_profiler): Likewise.
1663
1664 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1665
1666 * ipa-inline.c (inline_small_functions): Swap the operands in
1667 enum.
1668
1669 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1670
1671 PR ipa/64481
1672 * ipa-inline-analysis.c (node_growth_cache): Remove.
1673 (initialize_growth_caches): Do not initialize it.
1674 (free_growth_caches): Do not free it.
1675 (do_estimate_growth): Rename to ...
1676 (estimate_growth): ... this one; drop growth cache code.
1677 (growth_likely_positive): Always go the heuristics way.
1678 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
1679 (reset_edge_caches): Do not reset node growth.
1680 (heap_edge_removal_hook): Do not maintain cache.
1681 (inline_small_functions): Likewise; strenghten sanity check.
1682 (ipa_inline): Do not maintain caches.
1683 * ipa-inline.h (node_growth_cache): Remove.
1684 (do_estimate_growth): Remove to ...
1685 (estimate_growth): this one; remove inline version.
1686 (reset_node_growth_cache): Remove.
1687
1688 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
1689
1690 PR ipa/64565
1691 * ipa-inline.c (inline_small_functions): Update callee keys after
1692 resolving speculation
1693 (inline_small_functions): Always check monotonicity of the queue.
1694
1695 2015-01-13 Marek Polacek <polacek@redhat.com>
1696
1697 PR middle-end/64391
1698 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
1699
1700 2015-01-13 Jakub Jelinek <jakub@redhat.com>
1701
1702 PR rtl-optimization/64286
1703 * ree.c (combine_reaching_defs): Move part of comment earlier,
1704 remove !SCALAR_INT_MODE_P check.
1705 (add_removable_extension): Don't add vector mode
1706 extensions if all uses of the source register aren't the same
1707 vector extensions.
1708
1709 2015-01-13 Renlin Li <renlin.li@arm.com>
1710
1711 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
1712 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
1713
1714 2015-01-13 Martin Liska <mliska@suse.cz>
1715
1716 * ipa-icf.c (sem_function::equals_private): Call new functions
1717 cl_target_option_print_diff and cl_optimization_print_diff.
1718 * optc-save-gen.awk (cl_target_option_print_diff): New function.
1719 (cl_optimization_print_diff): Likewise.
1720 * opth-gen.awk: Likewise.
1721
1722 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
1723
1724 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
1725 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
1726 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
1727 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
1728 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
1729 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
1730
1731 2015-01-13 Andrew Pinski <apinski@cavium.com>
1732
1733 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
1734 instead of src mode.
1735
1736 2015-01-13 Richard Biener <rguenther@suse.de>
1737
1738 PR lto/64373
1739 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
1740 DECL_CONTEXT.
1741
1742 2015-01-13 Andrew Pinski <apinski@cavium.com>
1743
1744 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
1745 volatile mems.
1746 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
1747
1748 2015-01-13 Jakub Jelinek <jakub@redhat.com>
1749
1750 PR middle-end/63974
1751 * cfgexpand.c (expand_computed_goto): Don't call
1752 convert_memory_address here.
1753
1754 2015-01-13 Richard Biener <rguenther@suse.de>
1755
1756 PR tree-optimization/64406
1757 * tree-loop-distibution.c (pass_loop_distribution::execute):
1758 Reset the SCEV hashtable if we distributed anything.
1759
1760 2015-01-13 Richard Biener <rguenther@suse.de>
1761
1762 PR tree-optimization/64404
1763 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
1764 SLP types for CSEd loads.
1765
1766 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1767
1768 PR tree-optimization/64436
1769 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
1770 merge of two symbolic numbers for a bitwise OR to ...
1771 (perform_symbolic_merge): This. Also fix computation of the range and
1772 end of the symbolic number corresponding to the result of a bitwise OR.
1773
1774 2015-01-13 Richard Biener <rguenther@suse.de>
1775
1776 PR tree-optimization/64568
1777 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
1778 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
1779
1780 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1781
1782 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
1783 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
1784
1785 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1786
1787 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
1788 target-specific symbol_ref flag.
1789 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
1790 resides in rodata section.
1791 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
1792 (nds32_encode_section_info): New function.
1793
1794 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1795
1796 * config/nds32/nds32.md (call): Use pseudo instruction bal which
1797 clobbers TA_REGNUM if large code model is specified.
1798 (call_register): Likewise.
1799 (call_immediate): Likewise.
1800 (call_value): Likewise.
1801 (call_value_register): Likewise.
1802 (call_value_immediate): Likewise.
1803
1804 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1805
1806 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
1807 (TARGET_CMODEL_MEDIUM): New macro.
1808 (TARGET_CMODEL_LARGE): New macro.
1809 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
1810 code model setting in assembly code.
1811
1812 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1813
1814 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
1815 Remove MASK_GP_DIRECT flag.
1816 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
1817 one of the multilib default options.
1818 * config/nds32/nds32.opt (mgp-direct): Remove.
1819 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
1820 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
1821
1822 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
1823
1824 * config/nds32/nds32.opt (mcmodel): Add new option.
1825 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
1826 to describe code model.
1827
1828 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
1829
1830 PR target/64479
1831 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
1832
1833 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
1834
1835 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
1836 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
1837 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
1838 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
1839 __builtin_sh_set_fpscr.
1840
1841 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
1842
1843 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
1844 after a funtion name just to indicate it is a function.
1845 ([-fsanitize-undefined-trap-on-error]): Likewise.
1846 ([-fdbg-cnt=]): Likewise.
1847 ([-mmemcpy]): Likewise.
1848 ([-mflush-func]): Likewise.
1849 ([-msynci]): Likewise.
1850
1851 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
1852
1853 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
1854 example.
1855
1856 2015-01-12 Jakub Jelinek <jakub@redhat.com>
1857
1858 PR tree-optimization/64563
1859 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
1860 instead of != VR_VARYING.
1861
1862 PR target/64513
1863 * config/i386/i386.c (ix86_expand_prologue): Add
1864 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
1865
1866 PR tree-optimization/64454
1867 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
1868 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
1869 for signed or [0, op1 - 1] for unsigned modulo.
1870 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
1871 even if op1 does not satisfy integer_pow2p.
1872
1873 PR other/64370
1874 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
1875
1876 2015-01-12 Jeff Law <law@redhat.com>
1877
1878 PR target/64461
1879 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
1880 (trunchiqi2, truncsihi2): Similarly.
1881
1882 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
1883 rather than calling F.
1884
1885 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
1886
1887 * tsan.c (instrument_expr): Use force_gimple_operand.
1888 Use may_be_nonaddressable_p instead of is_gimple_addressable.
1889
1890 2015-01-12 Richard Biener <rguenther@suse.de>
1891
1892 PR tree-optimization/64530
1893 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
1894 back dr1.
1895
1896 2015-01-12 Richard Biener <rguenther@suse.de>
1897
1898 PR middle-end/64357
1899 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
1900 latches properly.
1901
1902 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1903
1904 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
1905 Cortex-A17 tuning parameters.
1906 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
1907
1908 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1909
1910 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
1911 * config/arm/arm.c (arm_macro_fusion_p): New function.
1912 (arm_macro_fusion_pair_p): Likewise.
1913 (TARGET_SCHED_MACRO_FUSION_P): Define.
1914 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
1915 (ARM_FUSE_NOTHING): Likewise.
1916 (ARM_FUSE_MOVW_MOVT): Likewise.
1917 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
1918 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
1919 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
1920 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
1921 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
1922 arm_cortex_a5_tune): Specify fuseable_ops value.
1923
1924 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
1925
1926 PR bootstrap/64561
1927 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
1928 test for PIE with copy reloc.
1929 * configure: Regenerated.
1930
1931 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1932
1933 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
1934 in gen_rtx_REG.
1935 (arm_tls_descseq_addr): Likewise.
1936 (arm_gen_movmemqi): Likewise.
1937 (arm_expand_epilogue_apcs_frame): Likewise.
1938 (arm_expand_epilogue): Likewise.
1939 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
1940 in gen_rtx_REG.
1941
1942 2015-01-12 Martin Liska <mliska@suse.cz>
1943
1944 PR ipa/64550
1945 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
1946 volatility for correct operands.
1947
1948 2015-01-12 Martin Liska <mliska@suse.cz>
1949
1950 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
1951 that a function is not leaf.
1952 (sem_function::compare_polymorphic_p): Likewise.
1953
1954 2015-01-12 Martin Liska <mliska@suse.cz>
1955
1956 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
1957 that a function is not leaf.
1958 (sem_function::compare_polymorphic_p): Likewise.
1959
1960 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1961
1962 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
1963 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
1964 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
1965 fold-const.h, tree-check.h.
1966
1967 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
1968
1969 PR ipa/63967
1970 PR ipa/64425
1971 * ipa-inline.c (compute_uninlined_call_time,
1972 compute_inlined_call_time): Use counts for extra precision when
1973 needed possible.
1974 (big_speedup_p): Fix formating.
1975 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
1976 (relative_time_benefit): Remove.
1977 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
1978 merge guessed and read profile paths.
1979 (inline_small_functions): Count only !optimize_size functions into
1980 initial size; be more lax about sanity check when profile is used;
1981 be sure to update inlined function profile when profile is read.
1982
1983 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
1984
1985 PR ipa/63470
1986 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
1987 cost when edge becomes direct.
1988 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
1989 is resolved or when introducing new speculation.
1990
1991 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
1992
1993 PR ipa/64551
1994 PR ipa/64552
1995 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
1996 '||' to fix typo issue.
1997
1998 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
1999 accept and return NULL.
2000
2001 2015-01-12 Martin Liska <mliska@suse.cz>
2002
2003 * cgraph.c (cgraph_edge::remove_callee): Move function to header
2004 file for being inlined.
2005 (cgraph_set_edge_callee): Delete.
2006 (cgraph_edge::redirect_callee): Move function to header file
2007 for being inlined.
2008 (cgraph_edge::make_direct): Use new function.
2009 (cgraph_edge::dump_edge_flags): New function created from
2010 static dump_edge_flags function.
2011 (cgraph_node::dump): Use new function.
2012 (cgraph_edge::verify_count_and_frequency): New function created
2013 from verify_edge_count_and_frequency.
2014 (cgraph_edge::verify_corresponds_to_fndecl): New function created
2015 from verify_edge_corresponds_to_fndecl.
2016 (verify_edge_corresponds_to_fndecl): Delete.
2017 (cgraph_node::verify_node): Use new function.
2018 * cgraph.h (cgraph_edge::set_callee): New function.
2019 (cgraph_edge::dump_edge_flags): Likewise.
2020 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
2021
2022 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
2023
2024 * ipa-utils.c (estimate_function_body_sizes): Do not
2025 free node params when called late with early=true.
2026
2027 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
2028
2029 * doc/md.texi (Instruction Patterns): Rewrite text for
2030 clarity.
2031 (Example): Likewise.
2032
2033 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
2034
2035 * doc/invoke.texi (Option Summary): Break long lines.
2036 [(-fdiagnostics-color)]: Put long literal in @smallexample
2037 instead of inline.
2038 [(-fsanitize-recover)]: Likewise.
2039 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
2040 [(-ffast-math)]: Likewise.
2041 [(--param max-inline-insns-recursive)]: Likewise.
2042 [(--param max-inline-recursive-depth)]: Likewise.
2043 [(-mno-text-section-literals)]: Likewise.
2044
2045 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2046
2047 * doc/install.texi: Update for libgomp being renamed from "GNU
2048 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
2049 Runtime Library".
2050 * doc/sourcebuild.texi: Likewise.
2051
2052 2015-01-10 Anthony Green <green@moxielogic.com>
2053
2054 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
2055 mul.x availability for moxiebox configuration.
2056
2057 2015-01-09 Anthony Green <green@moxielogic.com>
2058
2059 * config/moxie/moxie.md: Tabify assembly output.
2060
2061 2015-01-09 Anthony Green <green@moxielogic.com>
2062
2063 * config/moxie/moxie.md (CC_REG): Correct register definition.
2064
2065 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
2066
2067 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
2068 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
2069 of log files.
2070
2071 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2072
2073 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
2074
2075 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
2076 Jakub Jelinek <jakub@redhat.com>
2077
2078 PR middle-end/64412
2079 * lto-streamer.h (lto_stream_offload_p): New declaration.
2080 * lto-streamer.c (lto_stream_offload_p): New variable.
2081 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
2082 at the same time as section_name_prefix.
2083 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
2084 if lto_stream_offload_p.
2085 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
2086 stream TREE_TARGET_OPTION if lto_stream_offload_p.
2087 (write_ts_function_decl_tree_pointers): Don't
2088 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
2089 * tree-streamer-in.c (unpack_value_fields): Don't stream
2090 TREE_TARGET_OPTION in if ACCEL_COMPILER.
2091 (lto_input_ts_function_decl_tree_pointers): Don't stream
2092 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
2093 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
2094 instead of section_name_prefix string comparisons.
2095
2096 2015-01-09 Jakub Jelinek <jakub@redhat.com>
2097
2098 PR rtl-optimization/64536
2099 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
2100 tablejumps.
2101
2102 2015-01-09 Michael Collison <michael.collison@linaro.org>
2103
2104 PR tree-optimization/64322
2105 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
2106 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
2107
2108 2015-01-09 Tom de Vries <tom@codesourcery.com>
2109
2110 PR rtl-optimization/64539
2111 * regcprop.c (kill_clobbered_values): Factor out of ...
2112 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
2113 instead of note_stores with kill_clobbered_value.
2114
2115 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2116
2117 * ginclude/unwind-arm-common.h: Revert previous commit.
2118
2119 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2120
2121 * config.gcc (arm*-*-freebsd*): New configuration.
2122 * config/arm/freebsd.h: New file.
2123 * config.host: Add extra components for arm*-*-freebsd*.
2124 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
2125 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
2126
2127 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2128
2129 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
2130 for -mcpu=e6500.
2131 * config/rs6000/t-rtems: Add e6500 multilibs.
2132
2133 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2134
2135 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
2136 MPC8540.
2137
2138 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2139
2140 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
2141 MULTILIB_EXCEPTIONS.
2142
2143 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2144
2145 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
2146 MULTILIB_EXCEPTIONS.
2147
2148 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2149
2150 * config/arm/t-rtems-eabi: Rename to...
2151 * config/arm/t-rtems: ...this.
2152 * config/arm/rtems-eabi.h: Rename to...
2153 * config/arm/rtems.h: ...this.
2154 * config.gcc (arm*-*-rtems*): Reflect changes above.
2155
2156 2015-01-09 Richard Biener <rguenther@suse.de>
2157
2158 PR tree-optimization/64410
2159 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
2160 on the LHS.
2161 (execute_update_addresses_taken): Deal with that.
2162 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
2163 loads/stores for complex variables.
2164
2165 2015-01-09 Martin Liska <mliska@suse.cz>
2166
2167 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
2168 name comparison.
2169 (func_checker::compare_memory_operand): New function.
2170 (func_checker::compare_operand): Split case to newly
2171 added functions.
2172 (func_checker::compare_cst_or_decl): New function.
2173 (func_checker::compare_gimple_call): Identify
2174 memory operands.
2175 (func_checker::compare_gimple_assign): Likewise.
2176 * ipa-icf-gimple.h: New function.
2177
2178 2015-01-09 Martin Liska <mliska@suse.cz>
2179
2180 PR ipa/64503
2181 * sreal.c (sreal::dump): Change unsigned format to signed for
2182 m_exp value.
2183 (sreal::to_double): Replace exp2 with scalbln.
2184
2185 2015-01-09 Martin Liska <mliska@suse.cz>
2186
2187 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
2188 * ipa-icf.c (sem_function::equals_private): Add support for target and
2189 (sem_item_optimizer::merge_classes): Remove redundant function
2190 optimization flags comparison.
2191 * tree.h (target_opts_for_fn): New function.
2192
2193 2015-01-09 Tom de Vries <tom@codesourcery.com>
2194
2195 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
2196
2197 2015-01-09 Kito Cheng <kito@0xlab.org>
2198
2199 PR rtl-optimization/64348
2200 * lra-constraints.c (split_reg): Fix caller-save store/restore
2201 instruction generation.
2202
2203 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
2204
2205 PR gcov-profile/61790
2206 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
2207 long long. Fallback to int64_t if host doesn't have long long and
2208 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
2209
2210 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2211
2212 PR tree-optimization/63989
2213 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
2214 from 1000 to 10000.
2215 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
2216 (get_stridx): If we don't have a record for certain SSA_NAME,
2217 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
2218 constant offset, call get_stridx_plus_constant.
2219 (get_stridx_plus_constant): New function.
2220 (zero_length_string): Don't use get_stridx here.
2221
2222 PR target/55023
2223 PR middle-end/64388
2224 * dse.c (struct insn_info): Mention frame_read set also
2225 before reload for tail calls on some targets.
2226 (scan_insn): Revert 2014-12-22 change. Set frame_read
2227 also before reload for tail calls if
2228 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
2229 instead of add_non_frame_wild_read for non-const/memset
2230 tail calls after reload.
2231
2232 2015-01-08 Jason Merrill <jason@redhat.com>
2233
2234 * ubsan.c (do_ubsan_in_current_function): New.
2235 (pass_ubsan::gate): Use it.
2236 * ubsan.h: Declare it.
2237 * convert.c (convert_to_integer): Use it.
2238
2239 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2240
2241 PR target/64338
2242 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
2243 compare_code when it is unconditionally overwritten afterwards.
2244 Use ix86_reverse_condition instead of reverse_condition. Don't
2245 change code if *reverse_condition* returned UNKNOWN and don't
2246 swap ct/cf and negate diff in that case.
2247
2248 2015-01-08 Mike Stump <mikestump@comcast.net>
2249
2250 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
2251 (pass_tsan_O0::gate): Likewise.
2252 * extend.texi (Function Attributes): Add no_sanitize_thread
2253 documentation.
2254
2255 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
2256
2257 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
2258 for registering builtins.
2259 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
2260 add -fopenmp to the argv_obstack used when invoking
2261 compile_for_target.
2262
2263 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
2264 add "-m32" or "-m64" to argv_obstack.
2265 (generate_host_descr_file): Likewise, when invoking host_compiler.
2266 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
2267 ld.
2268
2269 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2270
2271 * config/sh/sh-mem.cc: Use constant as second operand when emitting
2272 tstsi_t insns.
2273
2274 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
2275
2276 PR target/55212
2277 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
2278 constant load if constant operand fits into I08.
2279
2280 2015-01-08 Jakub Jelinek <jakub@redhat.com>
2281
2282 PR sanitizer/64336
2283 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
2284 and TREE_THIS_VOLATILE for MEM_REFs.
2285 (build5_stat): Fix up initialization of TREE_READONLY and
2286 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
2287
2288 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
2289
2290 PR target/64533
2291 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
2292 of r for the second alternative of the destination operand.
2293
2294 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
2295
2296 PR target/36557
2297 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
2298
2299 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2300
2301 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
2302 keywords.
2303 ([-fivar-visibility], [-fvisibility]): Likewise.
2304
2305 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
2306
2307 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
2308 the file where @code, @command, etc is more appropriate.
2309
2310 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
2311
2312 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
2313 of -mrecip= documentation.
2314
2315 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2316
2317 PR target/64505
2318 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
2319 correct reload handler if -m32 -mpowerpc64 is used.
2320
2321 2015-01-06 Tom de Vries <tom@codesourcery.com>
2322
2323 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
2324
2325 2015-01-08 Christian Bruel <christian.bruel@st.com>
2326
2327 PR target/64507
2328 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
2329
2330 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2331
2332 PR tree-optimization/63259
2333 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
2334 if optab exists for 16bit byteswap.
2335
2336 2015-01-06 Jakub Jelinek <jakub@redhat.com>
2337
2338 * opts.c (common_handle_option): Add support for
2339 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
2340 * doc/invoke.texi: Document -fno-sanitize=all,
2341 -f{,no-}sanitize-recover=all. Document that
2342 -fsanitize=float-cast-overflow is not enabled
2343 by -fsanitize=undefined. Fix up documentation
2344 of -f{,no-}sanitize-recover.
2345
2346 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
2347
2348 * config.gcc: Add Visium support.
2349 * configure.ac: Likewise.
2350 * configure: Regenerate.
2351 * doc/extend.texi (interrupt attribute): Add Visium.
2352 * doc/invoke.texi: Document Visium options.
2353 * doc/install.texi: Document Visium target.
2354 * doc/md.texi: Document Visium constraints.
2355 * common/config/visium: New directory.
2356 * config/visium: Likewise.
2357
2358 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2359
2360 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
2361 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
2362
2363 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
2364
2365 * combine.c (combine_validate_cost): Do not count the cost of a
2366 split I2 twice. Do not display it twice in the dump, either.
2367
2368 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2369
2370 Revert parts of r219199.
2371 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
2372 <inttypes.h>.
2373 ([-Wtraditional]): Restore markup on <limits.h>.
2374
2375 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2376
2377 PR c++/31397
2378 * doc/invoke.texi: Document -Wsuggest-override.
2379
2380 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
2381
2382 PR rtl-optimization/64287
2383 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
2384 (process_options): Disable flag_ipa_ra if profiling.
2385
2386 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
2387
2388 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
2389
2390 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
2391
2392 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
2393 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
2394 put under #if TARGET_LOOPS guard.
2395
2396 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
2397
2398 * config/i386/i386.c (output_387_binary_op): Use std::swap.
2399
2400 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
2401
2402 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
2403 * rtl.h (refers_to_regno_p): Add overload.
2404 * cse.c: Use it.
2405 * bt-load.c: Likewise.
2406 * combine.c: Likewise.
2407 * df-scan.c: Likewise.
2408 * sched-deps.c: Likewise.
2409 * config/s390/s390.c: Likewise.
2410 * config/m32r/m32r.c: Likewise.
2411 * config/rs6000/spe.md: Likewise.
2412 * config/rs6000/rs6000.c: Likewise.
2413 * config/pa/pa.c: Likewise.
2414 * config/stormy16/stormy16.c: Likewise.
2415 * config/cris/cris.c: Likewise.
2416 * config/arc/arc.md: Likewise.
2417 * config/arc/arc.c: Likewise.
2418 * config/sh/sh.md: Likewise.
2419 * config/sh/sh.c: Likewise.
2420 * config/frv/frv.c: Likewise.
2421
2422 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2423
2424 PR sanitizer/64265
2425 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
2426 call as cleanup of the whole body.
2427 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
2428 * tsan.c (replace_func_exit): New function.
2429 (instrument_func_exit): Moved earlier.
2430 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
2431 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
2432 been found.
2433 (tsan_pass): Don't call instrument_func_exit.
2434 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
2435 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
2436 inlining.
2437
2438 PR sanitizer/64344
2439 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
2440 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
2441 it to libubsan handler instead of EXPR. Fold comparisons earlier,
2442 if the result is integer_zerop, return NULL_TREE.
2443 * convert.c (convert_to_integer): Pass expr as ARG.
2444
2445 PR tree-optimization/64465
2446 * tree-inline.c (redirect_all_calls): During inlining
2447 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
2448 changed the stmt to a non-throwing call.
2449
2450 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
2451
2452 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
2453 etc markup throughout the file.
2454
2455 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2456
2457 Enable experimental TSAN support for Ada.
2458 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
2459
2460 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2461
2462 PR tree-optimization/64494
2463 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
2464 clear SSA_NAME_ANTI_RANGE_P flag.
2465
2466 2015-01-05 Marek Polacek <polacek@redhat.com>
2467
2468 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
2469
2470 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2471
2472 Update copyright years.
2473
2474 * gcc.c (process_command): Update copyright notice dates.
2475 * gcov-dump.c: Ditto.
2476 * gcov.c: Ditto.
2477 * doc/cpp.texi: Bump @copying's copyright year.
2478 * doc/cppinternals.texi: Ditto.
2479 * doc/gcc.texi: Ditto.
2480 * doc/gccint.texi: Ditto.
2481 * doc/gcov.texi: Ditto.
2482 * doc/install.texi: Ditto.
2483 * doc/invoke.texi: Ditto.
2484
2485 * auto-profile.c, auto-profile.h: Fix up Copyright line.
2486
2487 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
2488
2489 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
2490 verb tense, etc.
2491 ([-fvtable-verify], [-fvtv-debug]): Likewise.
2492 ([-Wabi]): Likewise.
2493 ([-fmessage-length]): Likewise.
2494 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
2495 ([-Wno-discarded-qualifiers]): Likewise.
2496 ([-Wnodiscarded-array-qualifiers]): Likewise.
2497 ([-Wno-virtual-move-assign]): Likewise.
2498 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
2499 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
2500 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
2501 ([-fsanitize-undefined-trap-on-error]): Likewise.
2502 ([-floop-interchange]): Likewise.
2503 ([-ftree-coalesce-inlined-vars]): Likewise.
2504 ([-fvect-cost-model]): Likewise.
2505 ([-flto]): Likewise.
2506 ([--param]): Likewise.
2507 (Spec Files): Likewise.
2508 ([-mstrict-align]): Likewise.
2509 ([-mfix-cortex-a53-835769]): Likewise.
2510 ([-march], [-mtune]): Likewise.
2511 ([-mpic-register]): Likewise.
2512 ([-munaligned-access]): Likewise.
2513 ([-msp8]): Likewise.
2514 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
2515 (AVR Built-in Macros): Likewise.
2516 ([-mpreferred-stack-boundary]): Likewise.
2517 ([-mtune-crtl]): Likewise.
2518 ([-mashf]): Likewise.
2519 ([-mmcu=]): Likewise.
2520 ([-minrt]): Likewise.
2521 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
2522 ([-mupper-regs]): Likewise.
2523 ([-matomic-model]): Likewise.
2524 ([-mdiv]): Likewise.
2525 ([-mzdcbranch]): Likewise.
2526 ([-mdisable-callt]): Likewise.
2527 ([-msoft-float]): Likewise.
2528 ([-m8byte-align]): Likewise.
2529 ([-fstack-reuse]): Likewise.
2530
2531 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2532
2533 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
2534 Fix markup, light copy-editing.
2535 ([-fauto-profile]): Rewrite to fix formatting and content
2536 problems.
2537
2538 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2539
2540 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
2541 Copy-edit description.
2542 ([-fisolate-erroneous-paths-attribute]): Likewise.
2543 * common.opt (fisolate-erroneous-paths-dereference):
2544 Copy-edit description.
2545 (fisolate-erroneous-paths-attribute): Likewise.
2546
2547 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2548
2549 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
2550 tidy grammar.
2551
2552 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
2553
2554 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
2555 ([-fvtv-debug]): Likewise.
2556 ([-Wc++-compat]): Likewise.
2557 ([-Wc++11-compat]): Likewise.
2558 ([-Wc++14-compat]): Likewise.
2559 ([-Wno-sized-deallocation]): Likewise.
2560 ([-femit-class-debug-always]): Likewise.
2561 ([-femit-struct-debug-detailed]): Likewise.
2562 ([-fno-keep-inline-dllexport]): Likewise.
2563 ([-fira-algorithm]): Likewise.
2564 ([-fira-region]): Likewise.
2565 ([-flra-remat]): Likewise.
2566 ([-fipa-ra]): Likewise.
2567 ([-fhoist-adjacent-loads]): Likewise.
2568 ([-fisolate-erroneous-paths-dereference]): Likewise.
2569 ([-fisolate-erroneous-paths-attribute]): Likewise.
2570 ([-ftree-switch-conversion]): Likewise.
2571 ([-ftree-tail-merge]): Likewise.
2572 ([-ftree-loop-if-convert]): Likewise.
2573 ([-ftree-loop-if-convert-stores]): Likewise.
2574 ([-ftree-loop-distribution]): Likewise.
2575 ([-ftree-loop-distribute-patterns]): Likewise.
2576 ([-flto-compression-level]): Likewise.
2577 ([-flto-report]): Likewise.
2578 ([-flto-report-wpa]): Likewise.
2579 ([-fuse-linker-plugin]): Likewise.
2580 ([-mfix-cortex-a53-835769]): Likewise.
2581 ([-mno-fix-cortex-a53-835769]): Likewise.
2582 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
2583 explicit listing; add a note to the discussion indicating they
2584 exist. Reorder table to group similar options. Add missing
2585 @opindex entries. Add @need commands throughout the table to
2586 allow it to be split across multiple pages.
2587 ([-m8bit-idiv]): Fix @opindex.
2588 ([-mavx256-split-unaligned-load]): Likewise.
2589 ([-mavx256-split-unaligned-store]): Likewise.
2590 ([-mstack-protector-guard]): Likewise.
2591 ([-mcpu=]): Likewise.
2592 ([-mcpu]): Likewise.
2593 ([-mpointer-size=]): Likewise.
2594
2595 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
2596
2597 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
2598 instead of `m' constraint. Likewise for unnamed movb comparison
2599 patterns using reg_before_reload_operand predicate.
2600 * config/pa/predicates.md (reg_before_reload_operand): Tighten
2601 predicate to reject register index and LO_SUM DLT memory forms
2602 after reload.
2603
2604 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
2605
2606 * doc/invoke.texi (Option Summary): Fix spelling of
2607 -fdevirtualize-at-ltrans.
2608 ([-fdevirtualize]): Fix markup.
2609 ([-fdevirtualize-speculatively]): Fix typo.
2610 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
2611 implementor-speaky.
2612 * common.opt (fdevirtualize-at-ltrans): Likewise.
2613 * ipa-devirt.c: Fix typos in comments throughout the file.
2614 (ipa_devirt): Fix typos in format strings for dump output.
2615
2616 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
2617
2618 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
2619 discussion of defaults, light copy-editing.
2620
2621 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2622
2623 * tsan.c (instrument_expr): corrected previous checkin.
2624
2625 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2626
2627 Instrument bit field and unaligned accesses for TSAN.
2628 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
2629 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
2630 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
2631 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
2632 unaligned memory regions.
2633
2634 2015-01-01 Anthony Green <green@moxielogic.com>
2635
2636 * config/moxie/predicates.md (moxie_general_movsrc_operand):
2637 Restrict move source register offsets to 16 bits.
2638 \f
2639 Copyright (C) 2015 Free Software Foundation, Inc.
2640
2641 Copying and distribution of this file, with or without modification,
2642 are permitted in any medium without royalty provided the copyright
2643 notice and this notice are preserved.