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