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