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