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