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