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