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