1 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
4 of manual swapping implementation.
5 (aarch64_expand_vec_perm_const_1): Likewise.
7 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
9 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
10 (generic_addrcost_table): Remove NAMED_PARAM.
11 (cortexa57_addrcost_table): Likewise.
12 (xgene1_addrcost_table): Likewise.
13 (generic_regmove_table): Likewise.
14 (cortexa53_regmove_table): Likewise.
15 (xgene1_regmove_table): Likewise.
16 (generic_vector_table): Likewise.
17 (cortexa57_vector_table): Likewise.
18 (xgene1_vector_table): Likewise.
19 (generic_tunings): Likewise.
20 (cortexa53_tunings): Likewise.
21 (cortexa57_tunings): Likewise.
22 (xgene1_tunings): Likewise.
24 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26 * config/arm/arm-cores.def: Add cortex-a72 and
27 cortex-a72.cortex-a53.
28 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
30 * config/arm/arm-tune.md: Regenerate.
31 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
32 "cortex-a72.cortex-a53".
33 * doc/invoke.texi (ARM Options/-mtune): Likewise.
35 2015-02-04 Nick Clifton <nickc@redhat.com>
38 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
40 (nonimmediate_di_operand): Likewise.
42 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
43 prefixes of known F5 using MSP430 MCUs.
45 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
47 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
48 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
49 instead of __builtin_sqrt.
51 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
53 * varasm.c (do_assemble_alias): Follow transparent alias
55 (default_assemble_visibility): Follow transparent alias
58 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
61 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
62 to compute size of referenced value in the constant case.
64 2015-02-03 Jakub Jelinek <jakub@redhat.com>
66 PR rtl-optimization/64756
67 * cse.c (invalidate_dest): New function.
68 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
69 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
70 invalidate and do not record it.
72 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
75 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
76 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
77 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
78 atomic_nand<mode>_soft_tcb): New insns.
79 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
80 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
81 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
82 Split into atomic_not_fetchsi_hard if operands[0] is unused.
83 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
84 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
85 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
86 atomic_not<mode>_hard if operands[0] is unused.
87 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
88 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
89 if operands[0] is unused.
90 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
91 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
92 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
93 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
95 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
96 into atomic_not<mode>_soft_tcb if operands[0] is unused.
97 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
98 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
99 if operands[0] is unused.
100 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
101 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
102 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
103 atomic_nand_fetchsi_hard if operands[0] is unused.
104 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
105 atomic_nand<mode>_hard if operands[0] is unused.
106 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
107 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
108 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
109 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
110 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
111 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
112 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
113 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
114 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
115 atomic_not<mode>_hard if operands[0] is unused.
116 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
117 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
119 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
120 into atomic_not<mode>_soft_tcb if operands[0] is unused.
121 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
122 atomic_nand<mode>_hard if operands[0] is unused.
123 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
124 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
126 2015-02-03 David Malcolm <dmalcolm@redhat.com>
129 * Makefile.in (GCC_OBJS): Add gcc-main.o.
130 * gcc-main.c: New file, containing "main" taken from gcc.c.
131 * gcc.c (do_self_spec): Free decoded_options.
132 (class driver): Move declaration to gcc.h.
133 (main): Move declaration and implementation to new file
135 (driver_get_configure_time_options): New function.
136 * gcc.h (class driver): Move this declaration here, from
138 (driver_get_configure_time_options): New declaration.
140 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
142 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
143 cross-module inlining.
144 * cgraph.h (cgraph_node): Add flag merged.
145 * ipa-icf.c (sem_function::merge): Maintain it.
147 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
149 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
152 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
155 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
156 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
157 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
158 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
160 2015-02-03 Jakub Jelinek <jakub@redhat.com>
163 * combine.c (reg_n_sets_max): New variable.
164 (can_change_dest_mode, reg_nonzero_bits_for_combine,
165 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
166 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
167 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
168 (rest_of_handle_combine): Initialize reg_n_sets_max.
170 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
172 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
173 if some always_inline was inlined, apply changes before inlining
176 2015-02-02 David Malcolm <dmalcolm@redhat.com>
179 * config/arm/arm.c (arm_option_override): Set
180 arm_selected_arch/cpu/tune to NULL on entry.
182 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
183 Andrew Pinski <pinskia@gcc.gnu.org>
184 Jakub Jelinek <jakub@gcc.gnu.org>
187 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
188 integer typing for small model. Use IN_RANGE.
190 2015-02-02 Richard Biener <rguenther@suse.de>
192 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
193 * tree-vrp.c (vrp_valueize_1): Likewise.
195 2015-02-02 Alan Modra <amodra@gmail.com>
197 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
198 than mem for toc_restore.
199 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
200 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
201 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
203 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
206 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
207 explicit default options.
209 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
212 * ipa-utils.c (ipa_merge_profiles): Add release argument.
213 * ipa-icf.c (sem_function::merge): Do not release body when merging.
214 * ipa-utils.h (ipa_merge_profiles): Update prototype.
216 2015-02-01 Jakub Jelinek <jakub@redhat.com>
219 * cfgexpand.c (deep_ter_debug_map): New variable.
220 (avoid_deep_ter_for_debug): New function.
221 (expand_debug_expr): If TERed SSA_NAME is in
222 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
223 instead of trying to expand SSA_NAME's def stmt.
224 (expand_debug_locations): When expanding debug bind
225 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
226 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
228 (pass_expand::execute): Call avoid_deep_ter_for_debug on
229 all debug bind stmts. Delete deep_ter_debug_map after
230 expand_debug_location if non-NULL and clear it.
232 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
235 * config/sh/sync.md (atomic_fetch_notsi_hard,
236 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
237 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
238 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
239 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
240 atomic_not_fetch<mode>_soft_imask): New insns.
242 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
244 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
245 (rank_for_schedule_debug): Split from ...
246 (rank_for_schedule): ... this.
247 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
248 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
250 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
252 * doc/md.texi (Machine Constraints): Alphabetize table by target.
253 * doc/extend.texi (x86 Variable Attributes): Move section to
254 correct alphabetization after renaming.
255 (x86 Type Attributes): Likewise.
256 (Target Builtins): Re-alphabetize menu.
257 (x86 Built-in Functions): Move section to correct alphabetization
259 (x86 transactional memory intrinsics): Likewise.
260 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
261 and x86 Windows Options in table and menu.
262 (x86 Options): Move section to correct alphabetization after
264 (x86 Windows Options): Likewise.
266 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
268 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
269 preferred names of the architecture and its 32- and 64-bit
271 * doc/invoke.texi: Likewise.
272 * doc/md.texi: Likewise.
274 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
277 * config/i386/predicates.md (address_no_seg_operand): Reject
278 non-CONST_INT_P operands in invalid mode.
280 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
282 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
283 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
284 * config/i386/predicates.md (address_no_seg_operand): Call
285 address_operand with VOIDmode.
286 (vsib_address_operand): Ditto.
287 (address_mpx_no_base_operand): Ditto.
288 (address_mpx_no_index_operand): Ditto.
290 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
293 * lra-constraints.c (original_subreg_reg_mode): New.
294 (simplify_operand_subreg): Try to simplify subreg of const. Use
295 original_subreg_reg_mode for it.
296 (swap_operands): Update original_subreg_reg_mode.
297 (curr_insn_transform): Set up original_subreg_reg_mode.
299 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
302 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
304 (process_alt_operands): Use it.
305 (curr_insn_transform): Check the optional reload pseudo class is
308 2015-01-30 Joseph Myers <joseph@codesourcery.com>
310 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
311 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
313 * toplev.h (init_asm_output): Update comment on use of
314 UNKNOWN_LOCATION with fatal_error.
315 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
316 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
317 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
318 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
319 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
320 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
321 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
322 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
323 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
324 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
325 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
326 fatal_error changed to pass input_location as first argument.
328 2015-01-30 Martin Liska <mliska@suse.cz>
330 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
331 in #pragma GCC diagnostic guards.
333 2015-01-30 Richard Biener <rguenther@suse.de>
335 PR tree-optimization/64829
336 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
337 not add a widening conversion pattern but hand off extra
338 widenings to callers.
339 (vect_recog_widen_mult_pattern): Handle extra widening produced
340 by vect_handle_widen_op_by_const.
341 (vect_recog_widen_shift_pattern): Likewise.
342 (vect_pattern_recog_1): Remove excess vertical space in dumping.
343 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
344 (vect_init_vector_1): Likewise.
345 (vect_get_vec_def_for_operand): Likewise.
346 (vect_finish_stmt_generation): Likewise.
347 (vectorizable_load): Likewise.
348 (vect_analyze_stmt): Likewise.
349 (vect_is_simple_use): Likewise.
351 2015-01-29 Jeff Law <law@redhat.com>
353 * combine.c (try_combine): Fix typo in comment.
355 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
358 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
359 (rs6000_stack_info): Add assert.
360 (rs6000_output_savres_externs): New function, split off from...
361 (rs6000_output_function_prologue): ... here. Do not call it for
364 2015-01-29 Jeff Law <law@redhat.com>
367 * combine.c (try_combine): If I0 is a memory load and I3 a store
368 to a related address, increase the "goodness" of doing a 4-insn
369 combination with I0-I3.
370 (make_field_assignment): Handle SUBREGs in the ior+and case.
372 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
374 PR tree-optimization/64746
375 * tree-if-conv.c (mask_exists): New function.
376 (predicate_mem_writes): Save created mask with given size for further
378 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
379 (ifcvt_repair_bool_pattern): Collect all statements that are root
380 of bool pattern and use iterative algorithm to remove multiple uses
381 of predicates, display number of required iterations.
383 2015-01-29 Richard Biener <rguenther@suse.de>
385 PR tree-optimization/64853
386 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
387 stmt will get simulated again.
388 * tree-ssa-ccp.c (valueize_op_1): Likewise.
390 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
392 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
393 return_in_pc. Remove redundant assignments.
394 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
395 (arm_expand_epilogue): Don't compare boolean with true in if condition.
397 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
399 * config/i386/i386.c (ix86_mode_after): Make static.
401 2015-01-29 Richard Biener <rguenther@suse.de>
403 PR tree-optimization/64844
404 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
405 dump cost model analysis.
406 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
407 Do not register adjusted load/store costs here.
409 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
410 Uros Bizjak <ubizjak@gmail.com>
412 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
413 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
414 using x86_use_pseudo_pic_reg.
415 * config/i386/i386.c (ix86_conditional_register_usage): Remove
416 support for fixed PIC register.
417 (ix86_use_pseudo_pic_reg): Not static any more.
419 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
422 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
423 to avoid error in cgraph node verification.
425 2015-01-29 Marek Polacek <polacek@redhat.com>
427 * doc/standards.texi: Reflect that the default for C is gnu11.
429 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
432 * reorg.c (switch_text_sections_between_p): New function.
433 (relax_delay_slots): Call it when testing if the jump insn
434 is removable. Use targetm.can_follow_jump when testing if
435 the conditional branch can follow an unconditional jump.
437 2015-01-27 Caroline Tice <cmtice@google.com>
439 Committing VTV Cywin/Ming patch for Patrick Wollgast
440 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
441 if -fvtable-verify=preinit/std is used.
442 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
443 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
444 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
445 if -fvtable-verify=preinit/std is used.
446 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
447 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
448 if -fvtable-verify=preinit/std is used.
449 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
450 * config/i386/mingw32.h (LIB_SPEC): Likewise.
451 * varasm.c (assemble_variable): Add code to properly set the comdat
452 section and name for the .vtable_map_vars section in case the
453 target is PE or COFF.
455 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
458 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
459 make sane BB profile.
460 (cgraph_node::expand_thunk): Make sane BB profile.
461 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
462 * cgraph.h (init_lowered_empty_function): Update prototype.
463 * config/i386/i386.c (make_resolver_func): Update call.
464 * predict.c (gate): Disable branch prediction pass if
465 profile is already there.
467 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
469 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
470 * opth-gen.awk: Likewise.
471 * common.opt: Mark flag_fp_contract_mode as Optimization.
473 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
475 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
476 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
478 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
481 * config/sh/predicates.md (atomic_arith_operand,
482 atomic_logical_operand): Remove.
483 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
484 (atomic_arith_operand_0): New predicate.
485 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
486 Use atomic_arith_operand_0 for input values.
487 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
488 atomic_compare_and_swap<mode>_soft_gusa,
489 atomic_compare_and_swap<mode>_soft_tcb,
490 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
491 arith_reg_operand instead of register_operand.
492 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
493 atomic_arith_operand_0 for newval input.
494 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
495 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
496 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
497 arith_reg_operand instead of register_operand.
498 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
499 fetchop_predicate_1, fetchop_constraint_1_llcs,
500 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
501 fetchop_constraint_1_imask): New code iterator attributes.
502 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
503 register_operand. Use fetchop_predicate_1.
504 (atomic_fetch_<fetchop_name>si_hard,
505 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
506 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
507 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
508 and arith_reg_operand instead of register_operand. Use
509 fetchop_predicate_1, fetchop_constraint_1_gusa.
510 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
511 and arith_reg_operand instead of register_operand. Use
512 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
514 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
515 and arith_reg_operand instead of register_operand. Use
516 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
518 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
519 register_operand. Use atomic_logical_operand_1.
520 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
521 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
522 arith_reg_operand instead of register_operand.
523 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
524 Use arith_reg_dest and arith_reg_operand instead of register_operand.
525 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
526 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
527 register_operand. Use fetchop_predicate_1.
528 (atomic_<fetchop_name>_fetchsi_hard,
529 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
530 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
531 fetchop_constraint_1_llcs.
532 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
533 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
534 fetchop_constraint_1_gusa.
535 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
536 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
537 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
538 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
539 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
540 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
541 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
542 register_operand. Use atomic_logical_operand_1.
543 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
544 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
545 arith_reg_operand instead of register_operand.
546 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
547 arith_reg_operand instead of register_operand. Use logical_operand
548 and K08. Adjust asm sequence to allow R0 usage.
549 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
550 arith_reg_operand instead of register_operand. Use logical_operand
553 2015-01-28 Jakub Jelinek <jakub@redhat.com>
556 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
557 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
558 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
559 only get_full_len HOST_WIDE_INTs from get_val () array rather than
560 all bits in *val_wide.
562 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
564 * varpool.c (tls_model_names): Fix names.
565 (varpool_node::dump): Dump tls- prefix for tls models.
567 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
568 Bernd Schmidt <bernds@codesourcery.com>
569 Nathan Sidwell <nathan@codesourcery.com>
571 * config/nvptx/mkoffload.c: New file.
572 * config/nvptx/t-nvptx: Add build rules for it.
573 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
574 (extra_programs): Add mkoffload.
575 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
577 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
579 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
582 * cfgexpand.c (reorder_operands): Skip debug gimples.
584 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
586 PR tree-optimization/64277
587 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
588 range info when possible to refine estimation.
590 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
592 PR tree-optimization/64718
593 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
594 be a 16bit unsigned integer when n->range is 16.
595 (bswap_replace): Convert src to that type if necessary for all bswap
596 sizes. Fix rotation right notation in nearby comment. Use bswap_type
597 set in pass_optimize_bswap::execute ().
599 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
601 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
602 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
603 integer and floating point variants.
604 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
606 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
608 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
609 for all vector modes.
611 2015-01-28 Jakub Jelinek <jakub@redhat.com>
614 * doc/sourcebuild.texi (comdat_group): Document.
616 2015-01-28 Terry Guo <terry.guo@arm.com>
618 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
620 2015-01-27 David Malcolm <dmalcolm@redhat.com>
622 * toplev.c (print_version): Add param "show_global_state", and
623 only print GGC and plugin information if it is true.
624 (init_asm_output): Pass in "true" for the new param when calling
626 (process_options): Likewise.
627 (toplev::main): Likewise.
628 * toplev.h (print_version): Add new param to decl.
630 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
634 * tree.c (lookup_binfo_at_offset): New function.
635 (get_binfo_at_offset): Use it.
637 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
640 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
641 on vtable being vtable.
643 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
645 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
646 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
648 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
649 -mno-hotpatch options. Change syntax of -mhotpatch= option.
650 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
652 (s390_hotpatch_trampoline_halfwords_max): Renamed.
653 (s390_hotpatch_hw_max): New name.
654 (s390_hotpatch_trampoline_halfwords): Renamed.
655 (s390_hotpatch_hw_before_label): New name.
656 (get_hotpatch_attribute): Removed.
657 (s390_hotpatch_hw_after_label): New name.
658 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
660 (s390_attribute_table): Ditto.
661 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
662 (s390_function_num_hotpatch_hw): New name.
663 Remove special handling of inline functions and hotpatching.
664 Return number of nops before and after the function label.
665 (s390_can_inline_p): Removed.
666 (s390_asm_output_function_label): Emit a configurable number of nops
667 after the function label.
668 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
669 (TARGET_CAN_INLINE_P) Removed.
670 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
672 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
673 Jiong Wang <jiong.wang@arm.com>
675 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
677 (cb<optab><mode>1): Likewise.
678 * config/aarch64/iterators.md (bcond): New define_code_attr.
680 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
682 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
685 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
687 * config/s390/s390.c (s390_register_move_cost): Increase costs for
690 2015-01-27 Richard Biener <rguenther@suse.de>
692 * tree-vrp.c (update_value_range): Intersect the range with
693 old recorded SSA name range information.
695 2015-01-27 Nick Clifton <nickc@redhat.com>
697 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
698 BC, DE and HL registers directly, not via AX.
699 When decrementing the stack pointer by a large amount, transfer SP
700 into AX and perform the subtraction there.
701 (rl78_expand_epilogue): Perform the inverse of the above
704 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
706 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
708 2015-01-27 Jakub Jelinek <jakub@redhat.com>
709 Yury Gribov <y.gribov@samsung.com>
712 * ubsan.c (ubsan_source_location): Refactor code.
713 (ubsan_type_descriptor): Update type size. Refactor code.
715 2015-01-27 Richard Biener <rguenther@suse.de>
717 PR tree-optimization/56273
718 PR tree-optimization/59124
719 PR tree-optimization/64277
720 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
721 from the first VRP pass.
723 2015-01-27 Jakub Jelinek <jakub@redhat.com>
726 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
727 handle the first argument in the same loop as all the other arguments.
729 PR rtl-optimization/61058
730 * jump.c (cleanup_barriers): Update basic block boundaries
731 if BLOCK_FOR_INSN is non-NULL on PREV.
733 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
735 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
736 bounds narrowing, already instrumented calls and calls to
737 not instrumentable functions.
739 2015-01-27 Jakub Jelinek <jakub@redhat.com>
741 PR tree-optimization/64807
742 * wide-int.cc (wi::divmod_internal): Clear
743 b_dividend[dividend_blocks_needed].
745 2015-01-26 DJ Delorie <dj@redhat.com>
747 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
748 volatile memory references.
750 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
753 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
755 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
756 shifts if it already fits into K08.
758 2015-01-26 Jakub Jelinek <jakub@redhat.com>
761 * ipa-inline.c (inline_small_functions): Print "unknown" even
762 if edge->call_stmt is non-NULL, but has builtins or unknown
766 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
767 with asterisk, skip the first character.
769 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
772 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
775 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
778 * config/i386/i386.md (*movdi_internal): Also check operand 0
779 to determine TYPE_LEA operand.
780 (*movsi_internal): Ditto.
782 2015-01-26 Jakub Jelinek <jakub@redhat.com>
784 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
785 OPTION_MASK_QUAD_MEMORY_ATOMIC.
787 2015-01-26 Renlin Li <renlin.li@arm.com>
789 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
791 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
794 2015-01-26 Richard Biener <rguenther@suse.de>
797 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
798 combining two BIT_AND_EXPR predicates.
800 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
803 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
805 2015-01-26 Terry Guo <terry.guo@arm.com>
807 * config/arm/arm.c (arm_file_start): Update the assignment of
810 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
812 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
814 config/arm/arm.md: Include the new Cortex-A57 model.
815 (generic_sched): Don't use generic_sched when tuning for
818 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
819 Uros Bizjak <ubizjak@gmail.com>
821 * config/i386/i386.c (get_builtin_code_for_version): Add
822 support for BMI and BMI2 multiversion functions.
824 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
826 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
827 (extract_bit_field): Likewise.
828 (extract_low_bits): Likewise.
829 (expand_mult): Likewise.
830 (expand_mult_highpart_adjust): Likewise.
832 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
834 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
835 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
836 * config/i386/i386.c (processor_model): Add
837 M_INTEL_COREI7_BROADWELL.
838 (arch_names_table): Add "broadwell".
840 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
849 * config/sh/sh-protos.h
850 (sh_extending_set_of_reg::can_use_as_unextended_reg,
851 sh_extending_set_of_reg::use_as_unextended_reg,
852 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
853 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
854 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
855 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
856 (sh_treg_insns): New class.
857 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
858 (scope_counter): New class.
859 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
860 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
861 sh_extending_set_of_reg::can_use_as_unextended_reg,
862 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
863 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
864 sh_split_treg_set_expr): New functions.
865 (addsubcosts): Handle treg_set_expr.
866 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
867 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
868 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
869 (sh_insn_operands_modified_between_p): Make non-static.
870 * config/sh/predicates.md (zero_extend_movu_operand): Allow
871 simple_mem_operand in addition to displacement_mem_operand.
872 (zero_extend_operand): Don't allow zero_extend_movu_operand.
873 (treg_set_expr, treg_set_expr_not_const01,
874 arith_reg_or_treg_set_expr): New predicates.
875 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
876 arith_or_int_operand instead of logical_operand. Convert to
877 insn_and_split. Try to optimize constant operand in splitter.
878 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
879 (*tstqi_t_zero): Delete.
880 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
881 (tstsi_t_and_not): Delete.
882 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
883 Convert to insn_and_split.
884 (unnamed split, tstsi_t_zero_extract_xor,
885 tstsi_t_zero_extract_subreg_xor_little,
886 tstsi_t_zero_extract_subreg_xor_big): Delete.
887 (*tstsi_t_shift_mask): New insn_and_split.
888 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
889 to recombine with surrounding insns when splitting.
890 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
891 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
892 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
893 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
894 (*cbranch_div0s: Delete.
895 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
896 Try to recombine with surrounding insns when splitting. Add operand
898 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
899 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
900 *addc_r_r_msb, *addc_2r_msb): Delete.
901 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
903 (*addc_negreg_t): New insn_and_split.
904 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
905 Try to recombine with surrounding insns when splitting.
906 Add operand order variants.
907 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
908 insn_and_split patterns.
909 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
910 surrounding insns when splitting.
911 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
912 (*rotcl): Likewise. Add zero_extract variant.
913 (*ashrsi2_31): New insn_and_split.
914 (*negc): Convert to insn_and_split. Use treg_set_expr.
915 (*zero_extend<mode>si2_disp_mem): Update comment.
916 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
918 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
919 with surrounding insns when splitting.
920 (any_treg_expr_to_reg): New insn_and_split.
921 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
922 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
923 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
924 *zero_extract_2): New single bit zero extract patterns.
925 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
926 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
927 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
928 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
930 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
931 register_operand for set source.
933 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
935 * i386.opt (prefetch_sse): New targetsave.
936 * i386.c (ix86_function_specific_save): Save prefetch_sse.
937 (ix86_function_specific_restore): Restore prefetch_sse and initialize
938 ix86_cost/ix86_tune_cost.
940 2015-01-23 David Malcolm <dmalcolm@redhat.com>
942 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
943 Support the JIT by using 0 as the language type.
945 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
948 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
949 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
950 (mark_regno_live, process_bb_lives): Pass new parameter value to
951 make_hard_regno_born.
953 2015-01-23 Jakub Jelinek <jakub@redhat.com>
955 PR rtl-optimization/63637
956 PR rtl-optimization/60663
957 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
958 if elt->cost is MAX_COST for ASM_OPERANDS.
959 (find_sets_in_insn): Fix up comment typo.
960 (cse_insn): Don't set src_volatile for all non-volatile
961 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
962 or with "memory" clobber. Set elt->cost to MAX_COST
963 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
964 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
966 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
968 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
971 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
973 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
974 libgcc/config/i386/elf-lib.h.
976 2015-01-23 Jakub Jelinek <jakub@redhat.com>
979 * gcc.c (print_configuration): Don't print a blank line at the end
981 (run_attempt): ... but here unstead.
984 * omp-low.c (scan_sharing_clauses): Don't ignore
985 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
986 on target data/update constructs.
988 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
991 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
992 (DEBUG_RELOAD): Removed define.
993 (m32c_limit_reload_class): Enable traces with if DEBUG0.
994 (m32c_function_arg): Added a type cast.
995 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
996 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
997 * config/m32c/bitops.md (andqi3_16): Likewise.
998 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
999 (push_a01_l): Likewise.
1001 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1004 * main.c (main): Construct toplev instances with init_signals=true.
1005 * toplev.c (general_init): Add param "init_signals", and use it to
1006 conditionalize the calls to signal and host_hooks.extra_signals.
1007 (toplev::toplev): Add param "init_signals".
1008 (toplev::main): When invoking general_init, pass m_init_signals
1009 to control whether signal-handlers are installed.
1010 * toplev.h (toplev::toplev): Add param "init_signals".
1011 (toplev::m_init_signals): New field.
1013 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1016 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
1017 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
1018 latter may be affected by the former (e.g. on i686).
1020 2015-01-23 Martin Liska <mliska@suse.cz>
1022 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
1023 false positive during profiledbootstrap.
1025 2015-01-23 Tom de Vries <tom@codesourcery.com>
1028 * lto-opts.c (lto_write_options): Output non-explicit conservative
1030 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
1031 (append_compiler_options): Pass -fopenacc through.
1033 2015-01-23 Tom de Vries <tom@codesourcery.com>
1036 * lto-opts.c (lto_write_options): Output non-explicit conservative
1038 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
1039 (append_compiler_options): Pass -fopenmp through.
1041 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1044 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
1047 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
1048 * diagnostic.def (DK_ICE_NOBT): New kind.
1049 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
1050 like DK_ICE, but never print backtrace.
1051 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
1052 (internal_error_no_backtrace): New function.
1053 * gcc.c (execute): Use internal_error_no_backtrace instead of
1056 2015-01-22 Jeff Law <law@redhat.com>
1059 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
1060 improve code density for small immediate to memory case.
1061 (insv): Better handle bitfield assignments when the field is
1062 being set to all ones.
1063 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
1066 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1067 Jakub Jelinek <jakub@redhat.com>
1069 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
1070 for !TARGET_LIBC_PROVIDES_SSP version and
1071 -fstack-protector-{all,strong,explicit} otherwise.
1072 * config/freebsd.h (LINK_SSP_SPEC): Handle
1073 -fstack-protector-{strong,explicit}.
1075 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
1076 H.J. Lu <hongjiu.lu@intel.com>
1079 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
1082 2015-01-22 Wei Mi <wmi@google.com>
1084 PR rtl-optimization/64557
1085 * dse.c (record_store): Call get_addr for mem_addr.
1086 (check_mem_read_rtx): Likewise.
1088 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
1090 * fold-const.c (const_binop): Add early return for non-tcc_binary.
1092 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
1094 * toplev.c (init_local_tick): Process the failure when read
1095 fails for random_seed.
1097 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
1098 'pretty_name' to avoid memory overflow.
1100 2015-01-22 Richard Biener <rguenther@suse.de>
1103 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
1104 abnormal coalescing on undefined SSA names.
1106 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
1110 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
1112 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
1114 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
1117 * fold-const.c (fold_checksum_tree): Don't include value of
1118 expr->decl_with_vis.symtab_node in the checksum.
1120 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1122 * config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
1125 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
1128 * gcc.c (insert_comments): New function.
1129 (try_generate_repro): Call it.
1130 (append_text): Removed.
1132 2015-01-22 Richard Biener <rguenther@suse.de>
1134 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
1135 with IL incompatible options. Properly honor user optimize
1138 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
1140 PR rtl-optimization/64682
1141 * combine.c (distribute_notes): When moving a death note for
1142 a register that is set in the new I2, make sure to put it
1145 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
1147 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
1150 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1153 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
1154 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
1155 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
1158 * doc/invoke.texi (-fsanitize=vptr): Document.
1160 PR rtl-optimization/62078
1161 * dse.c: Include cfgcleanup.h.
1162 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
1163 anything call purge_all_dead_edges and cleanup_cfg at the end
1166 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
1168 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
1171 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1173 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
1176 2015-01-21 David Sherwood <david.sherwood@arm.com>
1177 Tejas Belagod <Tejas.Belagod@arm.com>
1179 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
1180 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
1181 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
1184 2015-01-21 David Sherwood <david.sherwood@arm.com>
1185 Tejas Belagod <Tejas.Belagod@arm.com>
1187 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
1188 (aarch64_reverse_mask): New decls.
1189 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
1190 (insn_count): New mode_attr.
1191 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
1192 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
1193 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
1194 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
1195 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
1196 (aarch64_simd_st4): New patterns.
1197 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
1198 (aarch64_reverse_mask): New functions.
1200 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
1202 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
1204 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
1205 addressing modes for BE.
1206 (aarch64_print_operand): Add 'R' specifier.
1207 (aarch64_simd_disambiguate_copy): Delete.
1208 (aarch64_simd_emit_reg_reg_move): New function.
1209 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
1210 in define_splits for structural moves.
1211 (mov<mode>): Use less restrictive predicates.
1212 (*aarch64_mov<mode>): Simplify and only allow for LE.
1213 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
1215 2015-01-21 Alan Hayward <alan.hayward@arm.com>
1217 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
1219 2015-01-21 Richard Henderson <rth@redhat.com>
1222 * ccmp.c (used_in_cond_stmt_p): Remove.
1223 (expand_ccmp_expr): Don't use it.
1225 2015-01-21 Nick Clifton <nickc@redhat.com>
1227 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
1230 2015-01-21 Richard Biener <rguenther@suse.de>
1233 * tree-core.h (builtin_info, builtin_info_type): Turn from
1234 an object with two arrays into an array of an object with
1235 decl and two flags, implicit_p and declared_p.
1236 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
1237 set_builtin_decl, set_builtin_decl_implicit_p,
1238 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
1239 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
1240 * builtins.c (builtin_info): Adjust.
1241 * gimplify.c (gimplify_addr_expr): References to builtins
1242 that have been declared by the user makes them eligible for
1243 use by the compiler. Call set_builtin_decl_implicit_p on them.
1245 2015-01-20 Jeff Law <law@redhat.com>
1248 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
1249 allow pc-relative addresses in operand predicates or constraints.
1251 2015-01-21 Bin Cheng <bin.cheng@arm.com>
1253 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
1254 neon on aarch32 processors for stringops.
1256 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1259 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
1261 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1264 * ipa-inline.c: Include lto-streamer.h
1265 (report_inline_failed_reason): Output source file differences and
1266 flags on optimization/target node mismatch.
1267 (can_inline_edge_p): Consider caller to be the outer inline function;
1268 be less restrictive about matching opimize and optimize_size attributes.
1269 (inline_account_function_p): Break out from ...
1270 (inline_small_functions): ... here.
1271 * ipa-inline-transform.c (clone_inlined_nodes): Use
1272 inline_account_function_p.
1273 (inline_call): Use optimize attribution; use inline_account_function_p.
1274 (inline_transform): Use opt_for_fn.
1275 * ipa-inline.h (inline_account_function_p): Declare.
1277 2015-01-20 Jakub Jelinek <jakub@redhat.com>
1280 * dwarf2out.c (decl_piece_node): Don't put bitsize into
1281 mode if bitsize <= 0.
1282 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
1283 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
1284 sizes and positions.
1286 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
1288 * config/nios2/nios2.c (nios2_asm_file_end): Implement
1289 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
1291 (TARGET_ASM_FILE_END): Define.
1293 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1295 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
1296 (struct tune_params): Use the enum.
1297 * arm.c (arm_*_tune): Update.
1298 (arm_option_override): Update.
1300 2015-01-20 Richard Biener <rguenther@suse.de>
1303 * ipa-reference.c (add_static_var): Inline ...
1304 (analyze_function): ... here after splitting out from ...
1305 (is_proper_for_analysis): ... this.
1307 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
1310 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
1311 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
1312 replace the conditional with it's true branch.
1313 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
1314 (arm_lra_p): Remove.
1316 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
1318 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
1320 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1322 * config/tilegx/mul-tables.c: Move symtab.h include after
1323 coretypes.h include.
1324 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
1325 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
1326 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
1327 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
1328 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1330 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
1334 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1336 PR rtl-optimization/64081
1337 * loop-iv.c (def_pred_latch_p): New function.
1338 (latch_dominating_def): Allow specific cases with non-single
1340 (iv_get_reaching_def): Likewise.
1341 (check_complex_exit_p): New function.
1342 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1343 with exits not executing on any iteration.
1345 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1348 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
1351 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1354 * i386.c (gate): Check flag_expensive_optimizations and
1356 (ix86_option_override_internal): Drop optimize_size condition
1357 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
1358 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
1360 (ix86_avx256_split_vector_move_misalign,
1361 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
1362 * sse.md (all uses of TARGET_PREFER_AVX128): Add
1363 optimize_insn_for_speed_p check.
1365 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
1367 * config/mips/mips.h (FP_ASM_SPEC): New define.
1368 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
1371 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
1374 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
1375 nullptr for insn when reaching the first insn.
1376 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
1377 (sh_insn_operands_modified_between_p): Add nullptr check.
1378 (sh_find_extending_set_of_reg): Fix log message. Don't accept
1379 sign extending mem load if the insn contains any UNSPEC or
1382 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1384 * params.def (inline-unit-growth): Drop to 15%.
1385 * invoke.texi (inline-unit-growth): Document change.
1387 2015-01-19 Martin Liska <mliska@suse.cz>
1390 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
1391 function for second argument of OBJ_TYPE_REF.
1393 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1396 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
1397 whether function is an alias.
1399 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1401 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
1404 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
1406 PR rtl-optimization/64671
1407 * lra-remat.c (operand_to_remat): Don't consider jump and call
1410 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
1412 * config/rs6000/default64.h: Include rs6000-cpus.def.
1413 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
1414 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
1415 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
1417 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
1419 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
1420 pseudo-op to specify assembler dialect.
1422 2015-01-19 Martin Liska <mliska@suse.cz>
1425 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
1426 Handle safe potentially removed nodes during filtering.
1428 2015-01-19 Martin Liska <mliska@suse.cz>
1430 * doc/extend.texi (no_icf): Add new attribute description.
1431 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
1432 where the pass attempts to merge a function with no_icf attribute.
1434 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1437 * doc/md.texi (ARM Options): Document register constraints.
1439 2015-01-19 Jiong Wang <jiong.wang@arm.com>
1440 Andrew Pinski <apinski@cavium.com>
1443 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
1444 (ashl<mode>3): Don't expand if operands[2] is not constant.
1446 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1449 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
1450 Match xor-and-xor RTL pattern.
1452 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1454 PR rtl-optimization/64081
1455 * loop-iv.c (def_pred_latch_p): New function.
1456 (latch_dominating_def): Allow specific cases with non-single
1458 (iv_get_reaching_def): Likewise.
1459 (check_complex_exit_p): New function.
1460 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1461 with exits not executing on any iteration.
1463 2015-01-19 Jakub Jelinek <jakub@redhat.com>
1465 * common.opt (fgraphite): Fix a typo.
1467 2015-01-19 Felix Yang <felix.yang@huawei.com>
1469 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
1471 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
1472 uminp, smax_nanp, smin_nanp): New builtins.
1473 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
1474 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
1475 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
1476 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
1477 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
1478 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
1479 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
1480 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
1481 vpminnms_f32): Rewrite using builtin functions.
1483 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1486 * omp-low.c (offload_symbol_decl): Remove variable.
1487 (get_offload_symbol_decl): Remove function.
1488 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
1489 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
1490 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
1491 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
1492 BUILT_IN_GOACC_UPDATE don't pass it at all.
1494 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1496 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
1499 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1501 * ipa-chkp.c (chkp_produce_thunks): Add early param
1502 to split thunks production into two passes. Keep
1503 'always_inline' function bodies after the first pass.
1504 (pass_data_ipa_chkp_early_produce_thunks): New.
1505 (pass_ipa_chkp_early_produce_thunks): New.
1506 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
1507 chkp_produce_thunks signature.
1508 (make_pass_ipa_chkp_early_produce_thunks): New.
1509 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
1510 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
1511 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
1513 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1515 * cgraph.c (cgraph_node::dump): Dump profile flags.
1517 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
1520 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
1521 reg appear first in the parallel.
1523 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1525 * ipa-reference.c (set_reference_optimization_summary,
1526 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
1528 (ignore_module_statics): New static var.
1529 (propagate_bits): If ipa-reference is disabled, do not look into local
1531 (analyze_function): Disable analysis when ipa_reference is disabled.
1532 (generate_summary): Do not dump when reference is disabled;
1533 collect vars accessed from functions with ipa-reference disabled.
1534 (get_read_write_all_from_node): When ipa-reference is disabled, use the
1536 (gate): Enable for LTO.
1537 (ignore_edge_p): New function.
1538 (propagate): Skip functions w/o ipa-reference analysis.
1539 * optc-save-gen.awk: Handle optimize_debug correctly.
1540 * opth-gen.awk: Likewise.
1541 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
1542 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
1543 fira-share-save-slots, fira-share-spill-slots,
1544 fmodulo-sched-allow-regmoves, fpartial-inlining,
1545 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
1546 ftracer, ftree-parallelize-loops, fassociative-math,
1547 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
1549 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
1550 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
1552 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
1555 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1558 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
1560 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
1562 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
1564 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
1565 Remove duplicate option listings.
1567 2015-01-18 Felix Yang <felix.yang@huawei.com>
1569 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
1570 (autofdo_source_profile::get_callsite_total_count,
1571 function_instance::get_function_instance_by_decl,
1572 string_table::get_index, string_table::get_index_by_decl,
1573 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
1574 Fix comment typos. Reformatting and minor code rearrangement.
1576 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1578 * config/rs6000/rs6000.md (probe_stack): Delete.
1579 (probe_stack_address): New.
1581 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1583 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
1584 to test for 32-bit ABIs, not !TARGET_POWERPC64.
1586 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1588 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
1589 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
1590 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
1592 (rs6000_libcall_value): Use the new function.
1594 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
1596 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
1598 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
1600 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
1601 implement a more precise life analysis for it during backward scan.
1603 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1605 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
1607 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
1609 PR rtl-optimization/52773
1610 * calls.c (emit_library_call_value): When pushing arguments use
1611 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
1612 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
1613 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
1615 2015-01-17 Jeff Law <law@redhat.com>
1617 PR rtl-optimization/32790
1618 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
1619 not ZERO_EXTEND in SET_DESTs.
1621 2015-01-17 Alan Modra <amodra@gmail.com>
1623 * cprop.c (do_local_cprop): Revert last change.
1625 2015-01-16 DJ Delorie <dj@redhat.com>
1626 Nick Clifton <nickc@redhat.com>
1628 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
1629 (addhi3_real): Likewise. Fix [HL+0] syntax.
1630 (subqi3_real): Likewise.
1631 (subhi3_real): Likewise.
1632 (cbranchqi4_real): Likewise. Allow saddr,#imm.
1633 (cbranchhi4_real): Likewise.
1634 (cbranchhi4_real_inverted): Likewise.
1635 (cbranchsi4_real_lt): Likewise.
1636 (cbranchsi4_real_ge): Likewise.
1637 (cbranchsi4_real_ge): Likewise.
1638 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
1639 (sub<mode>3_virt): Likewise.
1640 (cbranchqi4_virt): Likewise.
1641 (cbranchhi4_virt): Likewise.
1642 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
1643 always use '[reg+imm]' even when imm is zero.
1644 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
1645 (rl78_general_operand): New.
1646 (rl78_nonimmediate_operand): New.
1647 (rl78_nonfar_operand): Use them.
1648 (rl78_nonfar_nonimm_operand): Likewise.
1649 (rl78_stack_based_mem): Fix.
1650 * config/rl78/constraints.md (Ibqi): New.
1655 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
1658 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
1660 * config/rl78/constrains (Qs8): New constraint.
1661 * config/rl78/rl78.c (rl78_flags_already_set): New function.
1662 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
1663 * config/rl78/rl78-real.md (update_Z): New attribute.
1664 Update patterns to set it.
1665 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
1666 shorter compare and branch sequence can be used.
1667 (cbranchhi4_real): Likewise.
1668 (cbranchhi4_real_inverted): Likewise.
1670 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
1671 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
1673 * config/rl78/rl78.c (rl78_get_name_encoding): New.
1674 (rl78_option_override): Allow -mes0 only if C.
1675 (characterize_address): Support subregs of symbol_refs.
1676 (rl78_addr_space_address_mode): Move. Add __near.
1677 (rl78_far_p): Likewise.
1678 (rl78_addr_space_pointer_mode): Likewise.
1679 (rl78_as_legitimate_address): Likewise.
1680 (rl78_addr_space_subset_p): Likewise.
1681 (rl78_addr_space_convert): Likewise.
1682 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
1684 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
1686 (rl78_alloc_physical_registers_op1): Change logic to prefer
1687 symbol[BC] addressing.
1688 (frodata_section): New.
1689 (rl78_asm_init_sections): Initialize it.
1690 (rl78_select_section): Put __far readonly symbols in .frodata.
1691 (rl78_make_type_far): New.
1692 (rl78_insert_attributes): Force all readonly symbols to be
1694 (rl78_asm_out_integer): New.
1695 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
1696 * config/rl78/rl78.opt (-mes0): New.
1698 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
1699 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1700 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1701 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
1702 (rl78_saddr_p): New.
1703 (rl78_output_aligned_common): New.
1704 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
1705 (rl78_handle_saddr_attribute): New.
1706 (rl78_handle_naked_attribute): New.
1707 (rl78_attribute_table): Add saddr.
1708 (rl78_print_operand_1): Don't print '!' on saddr operands.
1709 (rl78_print_operand_1): Strip encodings.
1711 (rl78_strip_name_encoding): New.
1712 (rl78_attrlist_to_encoding): New.
1713 (rl78_encode_section_info): New.
1714 (rl78_asm_init_sections): New.
1715 (rl78_select_section): New.
1716 (rl78_output_labelref): New.
1717 (rl78_output_aligned_common): New.
1718 (rl78_asm_out_integer): New.
1719 (rl78_asm_ctor_dtor): New.
1720 (rl78_asm_constructor): New.
1721 (rl78_asm_destructor): New.
1723 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
1724 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
1725 (transcode_memory_rtx): Update.
1726 (rl78_expand_epilogue): Use A_REG instead of 0.
1728 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1730 * config/arm/arm-protos.h (struct tune_params): New field
1731 sched_autopref_queue_depth.
1732 * config/arm/arm.c (sched-int.h): Include header.
1733 (arm_first_cycle_multipass_dfa_lookahead_guard,)
1734 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
1735 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
1736 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
1737 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
1738 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
1739 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
1740 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
1741 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
1742 * config/arm/t-arm (arm.o): Update.
1743 * haifa-sched.c (update_insn_after_change): Update.
1744 (rank_for_schedule): Use auto-prefetcher model, if requested.
1745 (autopref_multipass_init): New static function.
1746 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
1747 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
1748 variable for debug dumps.
1749 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
1750 (autopref_multipass_dfa_lookahead_guard): New global function that
1751 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
1752 (init_h_i_d): Update.
1753 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
1754 * sched-int.h (enum autopref_multipass_data_status): New const enum.
1755 (autopref_multipass_data_): Structure for auto-prefetcher data.
1756 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
1757 (struct _haifa_insn_data:autopref_multipass_data): New field.
1758 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
1759 (autopref_multipass_dfa_lookahead_guard): Declare.
1761 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1763 * rtlanal.c (get_base_term): Handle SCRATCH.
1765 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1767 * config/aarch64/aarch64.c
1768 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
1769 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1771 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
1772 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1774 2015-01-17 Alan Modra <amodra@gmail.com>
1776 * cprop.c (do_local_cprop): Disallow replacement of fixed
1779 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1782 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
1785 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1787 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
1788 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
1790 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1792 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
1793 * config/arm/thumb1.md: ... Here.
1795 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1797 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
1798 TImode for TARGET_32BIT.
1800 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1802 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
1803 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
1805 (rs6000_abi_word_mode): New function.
1807 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1809 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
1810 instead of UNITS_PER_WORD to describe the size of stack slots.
1812 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1814 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
1815 as rs6000_promote_function_mode. Move comment to there.
1816 (rs6000_promote_function_mode): New function.
1818 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1820 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
1821 -mpowerpc64 is active.
1823 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1826 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
1829 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1831 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
1832 introduced in revision 219724.
1834 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1835 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1838 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
1839 destination is not a GP reg.
1840 (*movdi_aarch64): Likewise.
1842 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
1845 * config/rs6000/default64.h: Revert ISA change.
1847 2015-01-16 Richard Biener <rguenther@suse.de>
1850 * tree-ssa-uninit.c: Include tree-cfg.h.
1851 (MAX_SWITCH_CASES): New define.
1852 (convert_control_dep_chain_into_preds): Handle switch statements.
1853 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
1854 (normalize_one_pred_1): Do not split bit-manipulations.
1857 2015-01-16 Richard Biener <rguenther@suse.de>
1859 PR tree-optimization/64568
1860 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
1861 complex load rewriting for TARGET_MEM_REFs.
1863 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
1865 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
1867 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
1870 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
1872 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
1873 (aarch64_lra_p): Remove.
1875 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1878 * ipa-chkp.h (chkp_instrumentable_p): New.
1879 * ipa-chkp.c: Include tree-inline.h.
1880 (chkp_instrumentable_p): New.
1881 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
1882 Fix processing of not instrumentable functions.
1883 (chkp_versioning): Use chkp_instrumentable_p. Warn about
1884 not instrumentable functions.
1885 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
1886 chkp_instrumentable_p.
1887 * tree-inline.h (copy_forbidden): New.
1888 * tree-inline.c (copy_forbidden): Not static anymore.
1890 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1892 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
1895 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1897 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
1898 type OP_OUT to OP_INOUT.
1900 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1902 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
1903 (high x) y) to y if x and y have the same base.
1905 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1907 * config/arm/cortex-a57.md: New.
1908 * config/aarch64/aarch64.md: Include it.
1909 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
1910 * config/aarch64/aarch64-tune.md: Regenerate.
1912 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
1915 * ccmp.c (expand_ccmp_next): New function.
1916 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
1917 and compare insn sequence.
1918 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
1919 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
1920 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
1921 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
1922 (*ccmp_ior): Changed to ccmp_ior<mode>.
1923 (cmp<mode>): New pattern.
1924 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
1926 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
1928 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
1930 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
1931 _mm256_bsrli_epi128): New.
1932 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
1934 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1936 * expmed.c (store_bit_field_using_insv): Improve warning message.
1937 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
1939 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1941 PR rtl-optimization/64011
1942 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
1943 there is partial overflow.
1945 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1947 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
1949 (nds32_expand_epilogue_v3pop): Likewise.
1950 * config/nds32/nds32.md (sibcall): Define this for sibling call
1952 (sibcall_register): Likewise.
1953 (sibcall_immediate): Likewise.
1954 (sibcall_value): Likewise.
1955 (sibcall_value_register): Likewise.
1956 (sibcall_value_immediate): Likewise.
1957 (sibcall_epilogue): Likewise.
1958 (epilogue): Pass false to indicate this is not a sibcall epilogue.
1959 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
1960 (nds32_expand_epilogue_v3pop): Likewise.
1962 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1964 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
1965 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
1966 (return_internal): New.
1967 (return): Define this named pattern.
1968 (simple_return): Define this named pattern.
1969 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
1970 pattern instead of unspec_volatile_func_return.
1971 (nds32_expand_epilogue_v3pop): Likewise.
1972 (nds32_can_use_return_insn): New function.
1974 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1976 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
1977 * config/nds32/nds32.md (pop25return): New.
1978 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
1979 pop25return pattern.
1981 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1983 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
1984 -mforbid-fp-as-gp, and -mex9 options.
1986 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1988 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
1989 remove -mgp-direct option.
1991 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1993 * doc/invoke.texi (--param early-inlining-insns): Update default value.
1994 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
1996 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1998 * ipa-inline.c (inline_small_functions): Work around hints
2001 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
2004 * doc/invoke.texi (Option Summary): Document new Nios II
2006 (Nios II Options): Likewise.
2007 * config/nios2/nios2.opt: Add -mgpopt= option support.
2008 Modify existing -mgpopt and -mno-gpopt options to be aliases.
2009 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
2010 * config/nios2/nios2.c (nios2_option_override): Adjust
2012 (nios2_in_small_data_p): Return true for explicit small data
2013 sections even with -G0.
2014 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
2017 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2020 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
2022 (inline_call): Fix removal of aliases.
2024 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2026 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
2027 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
2028 * opts.c (common_handle_option): Add -fsanitize=vptr.
2029 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
2030 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
2031 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
2032 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
2033 (ubsan_expand_vptr_ifn): New prototype.
2034 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
2035 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
2036 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
2037 expand_LOOP_VECTORIZED): Make argument nameless, remove
2039 (expand_UBSAN_VPTR): New function.
2040 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
2042 (UBSAN_VPTR): New internal function.
2043 * sanopt.c (tree_map_traits): Renamed to ...
2044 (sanopt_tree_map_traits): ... this.
2045 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
2046 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
2047 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
2048 (maybe_optimize_ubsan_vptr_ifn): New function.
2049 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
2050 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
2052 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
2053 internal calls like pure functions for aliasing, even when they
2054 have other side-effects that prevent making them ECF_PURE.
2055 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
2056 (ubsan_expand_vptr_ifn): New function.
2058 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
2060 PR rtl-optimization/64110
2061 * stmt.c (parse_output_constraint): Process '^' and '$'.
2062 (parse_input_constraint): Ditto.
2063 * lra-constraints.c (process_alt_operands): Process the new
2065 * ira-costs.c (record_reg_classes): Process the new constraint
2067 * genoutput.c (indep_constraints): Add '^' and '$'.
2068 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
2069 * doc/md.texi: Add description of the new constraints.
2071 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2072 Bernd Schmidt <bernds@codesourcery.com>
2073 Cesar Philippidis <cesar@codesourcery.com>
2074 James Norris <jnorris@codesourcery.com>
2075 Tom de Vries <tom@codesourcery.com>
2076 Ilmir Usmanov <i.usmanov@samsung.com>
2077 Dmitry Bocharnikov <dmitry.b@samsung.com>
2078 Evgeny Gavrin <e.gavrin@samsung.com>
2079 Jakub Jelinek <jakub@redhat.com>
2081 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
2082 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
2083 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
2085 * builtins.c: Include "gomp-constants.h".
2086 (expand_builtin_acc_on_device): New function.
2087 (expand_builtin, is_inexpensive_builtin): Handle
2088 BUILT_IN_ACC_ON_DEVICE.
2089 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
2091 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
2093 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
2094 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
2095 i386/intelmic-offload.h.
2096 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
2097 to libgomp and its dependencies.
2098 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
2099 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2100 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2101 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2102 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2103 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2104 * doc/generic.texi: Update for OpenACC changes.
2105 * doc/gimple.texi: Likewise.
2106 * doc/invoke.texi: Likewise.
2107 * doc/sourcebuild.texi: Likewise.
2108 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
2109 GF_OMP_FOR_KIND_OACC_LOOP.
2110 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
2111 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
2112 GF_OMP_TARGET_KIND_OACC_UPDATE,
2113 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2115 * gimple.c: Update comments for OpenACC changes.
2116 * gimple.def: Likewise.
2117 * gimple.h: Likewise.
2118 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
2119 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2120 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
2121 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2122 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
2124 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
2125 * gimplify.c: Include "gomp-constants.h".
2126 Update comments for OpenACC changes.
2127 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
2128 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
2129 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2130 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2131 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2132 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2133 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
2134 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2135 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2137 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
2138 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2139 OMP_CLAUSE_SET_MAP_KIND.
2140 (gimplify_oacc_cache): New function.
2141 (gimplify_omp_for): Handle OACC_LOOP.
2142 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
2144 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
2145 OACC_EXIT_DATA, OACC_UPDATE.
2146 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
2147 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
2148 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
2149 (gimplify_body): Consider flag_openacc next to flag_openmp.
2150 * lto-streamer-out.c: Include "gomp-constants.h".
2151 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
2152 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
2153 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
2154 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
2155 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
2156 (BUILT_IN_ACC_ON_DEVICE): New builtins.
2157 * omp-low.c: Include "gomp-constants.h".
2158 Update comments for OpenACC changes.
2159 (struct omp_context): Add reduction_map, gwv_below, gwv_this
2161 (extract_omp_for_data, use_pointer_for_field, install_var_field)
2162 (new_omp_context, delete_omp_context, scan_sharing_clauses)
2163 (create_omp_child_function, scan_omp_for, scan_omp_target)
2164 (check_omp_nesting_restrictions, lower_reduction_clauses)
2165 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
2166 Update for OpenACC changes.
2167 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
2168 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
2169 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
2170 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2171 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
2172 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
2174 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2175 Handle GF_OMP_FOR_KIND_OACC_LOOP.
2176 (expand_omp_target, lower_omp_target): Handle
2177 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2178 GF_OMP_TARGET_KIND_OACC_UPDATE,
2179 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
2180 GF_OMP_TARGET_KIND_OACC_DATA.
2181 (pass_expand_omp::execute, execute_lower_omp)
2182 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
2184 (offload_symbol_decl): New variable.
2185 (oacc_get_reduction_array_id, oacc_max_threads)
2186 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
2187 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
2188 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
2189 (oacc_gimple_assign, oacc_initialize_reduction_data)
2190 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
2192 (is_targetreg_ctx): Remove function.
2193 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
2194 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
2195 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2196 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
2197 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
2198 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
2199 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
2200 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
2201 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
2202 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
2203 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
2204 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
2205 * tree-core.h: Update comments for OpenACC changes.
2206 (enum omp_clause_map_kind): Remove.
2207 (struct tree_omp_clause): Change type of map_kind member from enum
2208 omp_clause_map_kind to unsigned char.
2209 * tree-inline.c: Update comments for OpenACC changes.
2210 * tree-nested.c: Likewise. Include "gomp-constants.h".
2211 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
2212 (convert_tramp_reference_stmt, convert_gimple_call): Update for
2213 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2214 OMP_CLAUSE_SET_MAP_KIND.
2215 * tree-pretty-print.c: Include "gomp-constants.h".
2216 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
2217 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
2218 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
2219 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
2220 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2221 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
2222 instead of OMP_CLAUSE_MAP_*.
2223 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
2224 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
2225 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2226 * tree-streamer-in.c: Include "gomp-constants.h".
2227 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
2228 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
2229 * tree-streamer-out.c: Include "gomp-constants.h".
2230 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
2232 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
2233 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
2234 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
2235 * tree.c (omp_clause_num_ops): Update accordingly.
2236 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
2238 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
2239 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
2240 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
2241 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
2242 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
2243 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
2244 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
2245 (OMP_CLAUSE_SET_MAP_KIND): New macro.
2246 * varpool.c (varpool_node::get_create): Consider flag_openacc next
2248 * config/i386/intelmic-offload.h: New file.
2249 * config/nvptx/offload.h: Likewise.
2251 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2253 * explow.h: Remove duplicate contents.
2254 * dojump.h: Likewise.
2256 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
2258 * arm.c (arm_xgene_tune): Add default initializer for instruction
2261 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2265 * ipa.c (symbol_table::remove_unreachable_nodes):
2266 Do not put abstract origins into boundary.
2268 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
2270 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
2271 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
2273 2015-01-15 Steve Ellcey <sellcey@mips.com>
2275 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
2276 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
2277 builtins.def, and chkp-builtins.def.
2279 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
2281 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
2284 2015-01-15 Richard Biener <rguenther@suse.de>
2286 PR tree-optimization/61743
2287 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
2288 information on PHIs for some simple cases.
2290 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2292 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
2294 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
2295 * config/arm/arm-cores.def (xgene1): New entry.
2296 * config/arm/arm-tables.opt: Regenerate.
2297 * config/arm/arm-tune.md: Regenerate.
2298 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
2300 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2302 * tree-if-conv.c: Include hash-map.h.
2303 (aggressive_if_conv): New variable.
2304 (fold_build_cond_expr): Add simplification of non-zero condition.
2305 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
2306 destination block is not always executed.
2307 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
2308 than two predecessors if AGGRESSIVE_IF_CONV is true.
2309 (if_convertible_stmt_p): Fix commentary.
2310 (all_preds_critical_p): New function.
2311 (has_pred_critical_p): New function.
2312 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
2313 BB can have more than two predecessors and all incoming edges can be
2315 (predicate_bbs): Skip predication for loop exit block, use build2_loc
2316 to compute predicate for true edge.
2317 (find_phi_replacement_condition): Delete this function.
2318 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
2319 Allow interchange PHI arguments if EXTENDED is false.
2320 Change check that block containing reduction statement candidate
2321 is predecessor of phi-block since phi may have more than two arguments.
2322 (phi_args_hash_traits): New helper structure.
2323 (struct phi_args_hash_traits): New type.
2324 (phi_args_hash_traits::hash): New function.
2325 (phi_args_hash_traits::equal_keys): New function.
2326 (gen_phi_arg_condition): New function.
2327 (predicate_scalar_phi): Add handling of phi nodes with more than two
2328 arguments, delete COND and TRUE_BB arguments, insert body of
2329 find_phi_replacement_condition to predicate ordinary phi nodes.
2330 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
2331 delete call of find_phi_replacement_condition and invoke
2332 predicate_scalar_phi with two arguments.
2333 (insert_gimplified_predicates): Add assert that non-predicated block
2334 don't have statements to insert.
2335 (ifcvt_split_critical_edges): New function.
2336 (ifcvt_split_def_stmt): Likewise.
2337 (ifcvt_walk_pattern_tree): Likewise.
2338 (stmt_is_root_of_bool_pattern): Likewise.
2339 (ifcvt_repair_bool_pattern): Likewise.
2340 (ifcvt_local_dce): Likewise.
2341 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
2342 is copy of inner or outer loop force_vectorize field, invoke
2343 ifcvt_split_critical_edges, ifcvt_local_dce and
2344 ifcvt_repair_bool_pattern for aggressive if-conversion.
2346 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
2348 * config/aarch64/aarch64.md: Include xgene1.md.
2349 * config/aarch64/xgene1.md: New file.
2351 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2353 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
2354 xgene1 (APM XGene-1) core definition.
2355 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
2356 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
2357 * doc/invoke.texi: Document -mcpu=xgene1.
2359 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2361 * dojump.h: New header file.
2362 * explow.h: Likewise.
2363 * expr.h: Remove includes.
2364 Move expmed.c prototypes to expmed.h.
2365 Move dojump.c prototypes to dojump.h.
2366 Move alias.c prototypes to alias.h.
2367 Move explow.c prototypes to explow.h.
2368 Move calls.c prototypes to calls.h.
2369 Move emit-rtl.c prototypes to emit-rtl.h.
2370 Move varasm.c prototypes to varasm.h.
2371 Move stmt.c prototypes to stmt.h.
2372 (saved_pending_stack_adjust): Move to dojump.h.
2373 (adjust_address): Move to explow.h.
2374 (adjust_address_nv): Move to emit-rtl.h.
2375 (adjust_bitfield_address): Likewise.
2376 (adjust_bitfield_address_size): Likewise.
2377 (adjust_bitfield_address_nv): Likewise.
2378 (adjust_automodify_address_nv): Likewise.
2379 * explow.c (expr_size): Move to expr.c.
2380 (int_expr_size): Likewise.
2381 (tree_expr_size): Likewise.
2382 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2383 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2384 * genemit.c (main): Generate includes statistics.h, real.h,
2385 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
2387 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
2388 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
2389 explow.h, emit-rtl.h, stmt.h.
2390 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
2391 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
2392 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
2393 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
2394 emit-rtl.h, varasm.h, stmt.h.
2395 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
2396 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
2397 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
2398 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
2399 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2400 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
2401 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
2402 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
2403 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
2404 tm.h tree.h varasm.h vec.h wide-int.h.
2405 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2406 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2407 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
2408 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
2409 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
2410 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
2411 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
2412 * loop-iv.c: Likewise.
2413 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
2414 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
2415 statistics.h stmt.h tree.h varasm.h wide-int.h.
2416 * lra-constraints.c: Likewise.
2417 * lra-eliminations.c: Likewise.
2418 * lra-lives.c: Likewise.
2419 * lra-remat.c: Likewise.
2420 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2421 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
2422 statistics.h stmt.h tree.h varasm.h wide-int.h.
2423 * hw-doloop.c: Likewise.
2424 * ira-color.c: Likewise.
2425 * ira-emit.c: Likewise.
2426 * loop-doloop.c: Likewise.
2427 * loop-invariant.c: Likewise.
2428 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2429 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
2430 statistics.h stmt.h tree.h varasm.h wide-int.h.
2431 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
2432 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
2433 statistics.h stmt.h tree.h varasm.h wide-int.h.
2434 * combine-stack-adj.c: Likewise.
2437 * ifcvt.c: Likewise.
2438 * ira-costs.c: Likewise.
2440 * lra-coalesce.c: Likewise.
2441 * lra-spills.c: Likewise.
2442 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2443 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
2444 stmt.h varasm.h wide-int.h.
2445 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2446 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2448 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
2449 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
2450 statistics.h stmt.h varasm.h wide-int.h.
2451 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
2452 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
2453 varasm.h wide-int.h.
2454 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
2455 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2456 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
2457 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
2458 statistics.h stmt.h.
2459 * config/tilepro/tilepro.c: Likewise.
2460 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
2461 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
2462 * config/pdp11/pdp11.c: Likewise.
2463 * config/xtensa/xtensa.c: Likewise.
2464 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
2465 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2467 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2468 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2469 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
2470 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2471 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2472 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
2473 * rtl-chkp.c: Likewise.
2474 * tree-chkp-opt.c: Likewise.
2475 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
2476 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2477 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
2478 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2479 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2480 statistics.h stmt.h.
2481 * tree-vect-data-refs.c: Likewise.
2482 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
2483 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2484 rtl.h statistics.h stmt.h varasm.h.
2485 * internal-fn.c: Likewise.
2486 * ipa-icf-gimple.c: Likewise.
2487 * lto-section-out.c: Likewise.
2488 * tree-data-ref.c: Likewise.
2489 * tree-nested.c: Likewise.
2490 * tree-outof-ssa.c: Likewise.
2491 * tree-predcom.c: Likewise.
2492 * tree-pretty-print.c: Likewise.
2493 * tree-scalar-evolution.c: Likewise.
2494 * tree-ssa-strlen.c: Likewise.
2495 * tree-vect-loop.c: Likewise.
2496 * tree-vect-patterns.c: Likewise.
2497 * tree-vect-slp.c: Likewise.
2498 * tree-vect-stmts.c: Likewise.
2500 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2501 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
2503 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
2504 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2505 statistics.h stmt.h varasm.h.
2506 * loop-unroll.c: Likewise.
2507 * ubsan.c: Likewise.
2508 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
2509 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
2511 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2512 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
2513 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
2514 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2515 statistics.h stmt.h.
2516 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
2517 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2518 statistics.h stmt.h varasm.h.
2519 * gimple-match-head.c: Likewise.
2520 * lto-cgraph.c: Likewise.
2521 * lto-section-in.c: Likewise.
2522 * lto-streamer-in.c: Likewise.
2523 * lto-streamer-out.c: Likewise.
2524 * tree-affine.c: Likewise.
2525 * tree-cfg.c: Likewise.
2526 * tree-cfgcleanup.c: Likewise.
2527 * tree-if-conv.c: Likewise.
2528 * tree-into-ssa.c: Likewise.
2529 * tree-ssa-alias.c: Likewise.
2530 * tree-ssa-copyrename.c: Likewise.
2531 * tree-ssa-dse.c: Likewise.
2532 * tree-ssa-forwprop.c: Likewise.
2533 * tree-ssa-live.c: Likewise.
2534 * tree-ssa-math-opts.c: Likewise.
2535 * tree-ssa-pre.c: Likewise.
2536 * tree-ssa-sccvn.c: Likewise.
2537 * tree-tailcall.c: Likewise.
2538 * tree-vect-generic.c: Likewise.
2539 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2540 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
2541 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2542 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
2543 * varasm.c: Likewise.
2544 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2545 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
2547 * init-regs.c: Likewise.
2549 * omp-low.c: Likewise.
2550 * stack-ptr-mod.c: Likewise.
2551 * tree-ssa-reassoc.c: Likewise.
2552 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2553 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
2555 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2556 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
2557 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2558 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
2559 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2560 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
2561 * tree-ssa-phiopt.c: Likewise.
2562 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2563 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2564 * config/fr30/fr30.c: Likewise.
2565 * config/frv/frv.c: Likewise.
2567 * final.c: Likewise.
2568 * optabs.c: Likewise.
2569 * passes.c: Likewise.
2570 * simplify-rtx.c: Likewise.
2572 * toplev.c: Likewise.
2573 * var-tracking.c: Likewise.
2574 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2575 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2576 * lower-subreg.c: Likewise.
2577 * postreload-gcse.c: Likewise.
2579 * reginfo.c: Likewise.
2580 * store-motion.c: Likewise.
2581 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2582 fixed-value.h hashtab.h real.h stmt.h varasm.h.
2583 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2584 fixed-value.h hashtab.h statistics.h stmt.h.
2585 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2586 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2587 * except.c: Likewise.
2588 * explow.c: Likewise.
2589 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2590 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
2592 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2593 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
2594 * tree-ssa-structalias.c: Likewise.
2595 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2596 fixed-value.h insn-config.h real.h statistics.h.
2597 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2598 fixed-value.h insn-config.h real.h statistics.h stmt.h.
2599 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2600 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2601 * cfgbuild.c: Likewise.
2602 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2603 fixed-value.h real.h rtl.h statistics.h stmt.h.
2604 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2605 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2606 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2607 fixed-value.h real.h statistics.h stmt.h.
2608 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2609 fixed-value.h real.h statistics.h stmt.h varasm.h.
2610 * cprop.c: Likewise.
2611 * modulo-sched.c: Likewise.
2612 * postreload.c: Likewise.
2613 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2614 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
2615 statistics.h stmt.h varasm.h.
2616 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
2617 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2618 rtl.h statistics.h stmt.h varasm.h.
2619 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
2620 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
2622 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2623 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
2625 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
2626 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
2628 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
2629 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2630 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2631 function.h real.h statistics.h stmt.h varasm.h.
2632 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2633 insn-config.h real.h statistics.h stmt.h.
2634 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2635 statistics.h stmt.h.
2636 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
2637 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
2638 statistics.h stmt.h varasm.h.
2639 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
2640 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
2641 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2642 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
2643 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
2644 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2645 statistics.h stmt.h varasm.h.
2646 * ipa-polymorphic-call.c: Likewise.
2647 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
2648 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2649 statistics.h stmt.h.
2650 * config/c6x/c6x.c: Likewise.
2651 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
2652 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2653 statistics.h stmt.h varasm.h.
2654 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
2655 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
2657 * ipa-split.c: Likewise.
2658 * tree-eh.c: Likewise.
2659 * tree-ssa-dce.c: Likewise.
2660 * tree-ssa-loop-niter.c: Likewise.
2661 * tree-vrp.c: Likewise.
2662 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
2663 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
2665 * config/nds32/nds32-fp-as-gp.c: Likewise.
2666 * config/nds32/nds32-intrinsic.c: Likewise.
2667 * config/nds32/nds32-isr.c: Likewise.
2668 * config/nds32/nds32-md-auxiliary.c: Likewise.
2669 * config/nds32/nds32-memory-manipulation.c: Likewise.
2670 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2671 * config/nds32/nds32-predicates.c: Likewise.
2672 * config/nds32/nds32.c: Likewise.
2673 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
2674 fixed-value.h hashtab.h real.h statistics.h.
2675 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
2676 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2677 * config/arm/arm.c: Likewise.
2678 * config/avr/avr.c: Likewise.
2679 * config/bfin/bfin.c: Likewise.
2680 * config/h8300/h8300.c: Likewise.
2681 * config/i386/i386.c: Likewise.
2682 * config/ia64/ia64.c: Likewise.
2683 * config/iq2000/iq2000.c: Likewise.
2684 * config/m32c/m32c.c: Likewise.
2685 * config/m32r/m32r.c: Likewise.
2686 * config/m68k/m68k.c: Likewise.
2687 * config/mcore/mcore.c: Likewise.
2688 * config/mep/mep.c: Likewise.
2689 * config/mips/mips.c: Likewise.
2690 * config/mn10300/mn10300.c: Likewise.
2691 * config/moxie/moxie.c: Likewise.
2692 * config/pa/pa.c: Likewise.
2693 * config/rl78/rl78.c: Likewise.
2694 * config/rx/rx.c: Likewise.
2695 * config/s390/s390.c: Likewise.
2696 * config/sh/sh.c: Likewise.
2697 * config/sparc/sparc.c: Likewise.
2698 * config/spu/spu.c: Likewise.
2699 * config/stormy16/stormy16.c: Likewise.
2700 * config/v850/v850.c: Likewise.
2701 * config/vax/vax.c: Likewise.
2702 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
2703 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2704 * config/msp430/msp430.c: Likewise.
2705 * predict.c: Likewise.
2706 * value-prof.c: Likewise.
2707 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
2708 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
2709 * config/microblaze/microblaze.c: Likewise.
2710 * config/nios2/nios2.c: Likewise.
2711 * config/rs6000/rs6000.c: Likewise.
2712 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2713 insn-config.h real.h rtl.h statistics.h stmt.h.
2714 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2715 insn-config.h real.h statistics.h stmt.h.
2716 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
2717 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2718 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
2719 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2720 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
2721 fixed-value.h real.h statistics.h stmt.h.
2722 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
2723 fixed-value.h statistics.h stmt.h.
2724 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
2727 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2729 * gengtype.c (create_user_defined_type): Workaround
2730 -Wmaybe-uninitialized false positives.
2731 * cse.c (fold_rtx): Likewise.
2732 * loop-invariant.c (gain_for_invariant): Likewise.
2734 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
2736 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
2737 set the memory attributes in all cases but clear MEM_EXPR if need be.
2739 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2741 PR tree-optimization/64434
2742 * cfgexpand.c (reorder_operands): New function.
2743 (expand_gimple_basic_block): Insert call of reorder_operands if
2746 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
2748 * config/mips/micromips.md (*swp): Remove explicit parallel.
2749 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
2750 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
2751 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
2752 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
2753 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
2754 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
2755 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
2756 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
2757 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
2758 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
2759 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
2760 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
2761 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
2762 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
2763 (mips_wrdsp): Likewise.
2764 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
2766 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
2767 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
2768 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
2769 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
2770 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
2771 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
2772 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
2773 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
2774 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
2776 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2778 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
2779 (mips_print_operand): Support 'y' to print exact log2 in decimal
2781 * config/mips/mips.h (ISA_HAS_LSA): New define.
2782 (ISA_HAS_DLSA): Likewise.
2783 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
2784 * config/mips/predicates.md (const_immlsa_operand): New predicate.
2786 2015-01-15 Martin Liska <mliska@suse.cz>
2789 * optc-save-gen.awk: Add support for array types.
2791 2015-01-15 Richard Biener <rguenther@suse.de>
2794 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
2795 for MEM_REF access functions with the same base can never partially
2798 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
2800 * common.opt: New option -fstack-protector-explicit.
2801 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
2802 (stack_protect_decl_phase): Handle stack_protect attribute for
2803 explicit stack protection requests.
2804 (expand_used_vars): Similarly.
2805 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
2806 * doc/extend.texi: Add documentation for "stack_protect" attribute.
2807 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
2809 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
2812 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
2814 (sh_extending_set_of_reg): New struct.
2815 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
2816 sh_remove_reg_dead_or_unused_notes): New Declarations.
2817 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
2818 sh_find_extending_set_of_reg, sh_split_tst_subregs,
2819 sh_extending_set_of_reg::use_as_extended_reg): New functions.
2820 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
2821 convert to insn_and_split and use new function sh_split_tst_subregs.
2823 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
2825 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
2827 (Optimization Options): Move -fuse-ld documentation to...
2828 (Link Options): ...here.
2830 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2832 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
2834 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
2835 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
2836 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
2837 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
2838 instead of ZR for the memory operand of LL/SC.
2839 (compare_and_swap_12, sync_add<mode>): Likewise.
2840 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
2841 (sync_new_<optab>_12, sync_nand_12): Likewise.
2842 (sync_old_nand_12, sync_new_nand_12): Likewise.
2843 (sync_sub<mode>, sync_old_add<mode>): Likewise.
2844 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
2845 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
2846 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
2847 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
2848 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
2849 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
2850 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
2851 * doc/md.texi (ZC): Update description.
2853 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2855 * builtins.c (expand_builtin_atomic_exchange): Remove error when
2856 memory model is CONSUME.
2857 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
2858 expand_builtin_atomic_store): Change invalid memory model errors to
2860 (expand_builtin_atomic_clear): Change invalid model errors to warnings
2861 and issue warning for CONSUME.
2863 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
2865 * lto-cgraph: Update function comments for
2866 lto_symtab_encoder_encode_*.
2868 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2870 * Makefile.in (site.exp): Do not set ENABLE_LTO.
2872 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2874 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
2875 * lto-cgraph.c (select_what_to_stream): Remove argument, use
2876 lto_stream_offload_p instead.
2877 * lto-streamer.h (select_what_to_stream): Remove argument.
2878 * passes.c (ipa_write_summaries): Likewise.
2879 * tree-pass.h (ipa_write_summaries): Likewise.
2881 2015-01-14 Richard Biener <rguenther@suse.de>
2883 PR tree-optimization/59354
2884 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
2885 groups larger than the slp group size as having gaps.
2887 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2890 * builtins.c (get_memmodel): Promote consume to acquire always.
2892 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2895 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
2898 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2901 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
2903 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
2904 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
2905 AVX512VBMI, as it implies AVX512BW.
2907 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2910 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
2911 (vec_unpacks_hi_v16sf): Ditto.
2913 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2915 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
2918 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2920 * doc/invoke.texi (mapcs): Mention deprecation.
2921 (mapcs-frame): Likewise.
2923 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2926 * config/arm/arm.c (callee_saved_reg_p): Define.
2927 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
2928 register is callee saved instead of !call_used_regs[reg].
2929 (thumb1_compute_save_reg_mask): Likewise.
2931 2015-01-14 Hale Wang <hale.wang@arm.com>
2933 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
2936 2015-01-14 Richard Biener <rguenther@suse.de>
2939 * tree-inline.c (insert_debug_decl_map): Check destination
2940 function MAY_HAVE_DEBUG_STMTS.
2941 (insert_init_debug_bind): Likewise.
2942 (insert_init_stmt): Remove redundant check.
2943 (remap_gimple_stmt): Drop debug stmts if the destination
2944 function has var-tracking assignments disabled.
2946 2015-01-14 Martin Liska <mliska@suse.cz>
2948 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
2949 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
2951 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2954 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
2955 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
2957 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2959 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
2960 level from an ARCH; do not inject the default.
2961 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
2962 MIPS_ISA_LEVEL_SPEC.
2963 (MIPS_ISA_NAN2008_SPEC): Update comment.
2964 (BASE_DRIVER_SELF_SPECS): Likewise.
2965 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
2966 MIPS_DEFAULT_ISA_LEVEL_SPEC.
2967 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
2968 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
2969 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
2971 2015-01-14 Richard Biener <rguenther@suse.de>
2973 PR tree-optimization/64493
2974 PR tree-optimization/64495
2975 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
2976 assign the proper vectorized PHI to the inner loop exit PHIs.
2978 2015-01-14 Joey Ye <joey.ye@arm.com>
2980 * config/arm/arm.c (arm_compute_save_reg_mask):
2981 Do not save lr in case of tail call.
2982 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
2984 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
2986 * tree-vrp.c (check_array_ref): Emit more warnings
2987 for warn_array_bounds >= 2.
2988 * common.opt: New option -Warray-bounds=.
2989 * doc/invoke.texi: Document -Warray-bounds=.
2991 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
2993 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
2994 (mforbid-fp-as-gp): Remove.
2996 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
2997 (nds32_symbol_load_store_p): Remove.
2998 (nds32_fp_as_gp_check_available): Clean up implementation.
2999 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
3001 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
3002 fp-as-gp and ex9 cases.
3004 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3006 * tree-profile.c (init_ic_make_global_vars): Drop workaround
3007 for bintuils bug 14342.
3008 (init_ic_make_global_vars): Likewise.
3009 (gimple_init_edge_profiler): Likewise.
3010 (gimple_gen_ic_func_profiler): Likewise.
3012 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3014 * ipa-inline.c (inline_small_functions): Swap the operands in
3017 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3020 * ipa-inline-analysis.c (node_growth_cache): Remove.
3021 (initialize_growth_caches): Do not initialize it.
3022 (free_growth_caches): Do not free it.
3023 (do_estimate_growth): Rename to ...
3024 (estimate_growth): ... this one; drop growth cache code.
3025 (growth_likely_positive): Always go the heuristics way.
3026 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
3027 (reset_edge_caches): Do not reset node growth.
3028 (heap_edge_removal_hook): Do not maintain cache.
3029 (inline_small_functions): Likewise; strenghten sanity check.
3030 (ipa_inline): Do not maintain caches.
3031 * ipa-inline.h (node_growth_cache): Remove.
3032 (do_estimate_growth): Remove to ...
3033 (estimate_growth): this one; remove inline version.
3034 (reset_node_growth_cache): Remove.
3036 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3039 * ipa-inline.c (inline_small_functions): Update callee keys after
3040 resolving speculation
3041 (inline_small_functions): Always check monotonicity of the queue.
3043 2015-01-13 Marek Polacek <polacek@redhat.com>
3046 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
3048 2015-01-13 Jakub Jelinek <jakub@redhat.com>
3050 PR rtl-optimization/64286
3051 * ree.c (combine_reaching_defs): Move part of comment earlier,
3052 remove !SCALAR_INT_MODE_P check.
3053 (add_removable_extension): Don't add vector mode
3054 extensions if all uses of the source register aren't the same
3057 2015-01-13 Renlin Li <renlin.li@arm.com>
3059 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
3060 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
3062 2015-01-13 Martin Liska <mliska@suse.cz>
3064 * ipa-icf.c (sem_function::equals_private): Call new functions
3065 cl_target_option_print_diff and cl_optimization_print_diff.
3066 * optc-save-gen.awk (cl_target_option_print_diff): New function.
3067 (cl_optimization_print_diff): Likewise.
3068 * opth-gen.awk: Likewise.
3070 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
3072 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
3073 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
3074 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
3075 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
3076 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
3077 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
3079 2015-01-13 Andrew Pinski <apinski@cavium.com>
3081 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
3082 instead of src mode.
3084 2015-01-13 Richard Biener <rguenther@suse.de>
3087 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
3090 2015-01-13 Andrew Pinski <apinski@cavium.com>
3092 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
3094 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
3096 2015-01-13 Jakub Jelinek <jakub@redhat.com>
3099 * cfgexpand.c (expand_computed_goto): Don't call
3100 convert_memory_address here.
3102 2015-01-13 Richard Biener <rguenther@suse.de>
3104 PR tree-optimization/64406
3105 * tree-loop-distibution.c (pass_loop_distribution::execute):
3106 Reset the SCEV hashtable if we distributed anything.
3108 2015-01-13 Richard Biener <rguenther@suse.de>
3110 PR tree-optimization/64404
3111 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
3112 SLP types for CSEd loads.
3114 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3116 PR tree-optimization/64436
3117 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
3118 merge of two symbolic numbers for a bitwise OR to ...
3119 (perform_symbolic_merge): This. Also fix computation of the range and
3120 end of the symbolic number corresponding to the result of a bitwise OR.
3122 2015-01-13 Richard Biener <rguenther@suse.de>
3124 PR tree-optimization/64568
3125 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
3126 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
3128 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3130 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
3131 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
3133 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3135 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
3136 target-specific symbol_ref flag.
3137 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
3138 resides in rodata section.
3139 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
3140 (nds32_encode_section_info): New function.
3142 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3144 * config/nds32/nds32.md (call): Use pseudo instruction bal which
3145 clobbers TA_REGNUM if large code model is specified.
3146 (call_register): Likewise.
3147 (call_immediate): Likewise.
3148 (call_value): Likewise.
3149 (call_value_register): Likewise.
3150 (call_value_immediate): Likewise.
3152 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3154 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
3155 (TARGET_CMODEL_MEDIUM): New macro.
3156 (TARGET_CMODEL_LARGE): New macro.
3157 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
3158 code model setting in assembly code.
3160 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3162 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
3163 Remove MASK_GP_DIRECT flag.
3164 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
3165 one of the multilib default options.
3166 * config/nds32/nds32.opt (mgp-direct): Remove.
3167 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
3168 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
3170 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3172 * config/nds32/nds32.opt (mcmodel): Add new option.
3173 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
3174 to describe code model.
3176 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
3179 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
3181 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
3183 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
3184 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
3185 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
3186 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
3187 __builtin_sh_set_fpscr.
3189 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3191 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
3192 after a funtion name just to indicate it is a function.
3193 ([-fsanitize-undefined-trap-on-error]): Likewise.
3194 ([-fdbg-cnt=]): Likewise.
3195 ([-mmemcpy]): Likewise.
3196 ([-mflush-func]): Likewise.
3197 ([-msynci]): Likewise.
3199 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3201 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
3204 2015-01-12 Jakub Jelinek <jakub@redhat.com>
3206 PR tree-optimization/64563
3207 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
3208 instead of != VR_VARYING.
3211 * config/i386/i386.c (ix86_expand_prologue): Add
3212 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
3214 PR tree-optimization/64454
3215 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
3216 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
3217 for signed or [0, op1 - 1] for unsigned modulo.
3218 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3219 even if op1 does not satisfy integer_pow2p.
3222 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
3224 2015-01-12 Jeff Law <law@redhat.com>
3227 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
3228 (trunchiqi2, truncsihi2): Similarly.
3230 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
3231 rather than calling F.
3233 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3235 * tsan.c (instrument_expr): Use force_gimple_operand.
3236 Use may_be_nonaddressable_p instead of is_gimple_addressable.
3238 2015-01-12 Richard Biener <rguenther@suse.de>
3240 PR tree-optimization/64530
3241 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
3244 2015-01-12 Richard Biener <rguenther@suse.de>
3247 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
3250 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3252 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
3253 Cortex-A17 tuning parameters.
3254 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
3256 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3258 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
3259 * config/arm/arm.c (arm_macro_fusion_p): New function.
3260 (arm_macro_fusion_pair_p): Likewise.
3261 (TARGET_SCHED_MACRO_FUSION_P): Define.
3262 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3263 (ARM_FUSE_NOTHING): Likewise.
3264 (ARM_FUSE_MOVW_MOVT): Likewise.
3265 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
3266 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
3267 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
3268 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
3269 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
3270 arm_cortex_a5_tune): Specify fuseable_ops value.
3272 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
3275 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
3276 test for PIE with copy reloc.
3277 * configure: Regenerated.
3279 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3281 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
3283 (arm_tls_descseq_addr): Likewise.
3284 (arm_gen_movmemqi): Likewise.
3285 (arm_expand_epilogue_apcs_frame): Likewise.
3286 (arm_expand_epilogue): Likewise.
3287 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
3290 2015-01-12 Martin Liska <mliska@suse.cz>
3293 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
3294 volatility for correct operands.
3296 2015-01-12 Martin Liska <mliska@suse.cz>
3298 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3299 that a function is not leaf.
3300 (sem_function::compare_polymorphic_p): Likewise.
3302 2015-01-12 Martin Liska <mliska@suse.cz>
3304 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3305 that a function is not leaf.
3306 (sem_function::compare_polymorphic_p): Likewise.
3308 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3310 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
3311 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
3312 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
3313 fold-const.h, tree-check.h.
3315 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3319 * ipa-inline.c (compute_uninlined_call_time,
3320 compute_inlined_call_time): Use counts for extra precision when
3322 (big_speedup_p): Fix formating.
3323 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
3324 (relative_time_benefit): Remove.
3325 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
3326 merge guessed and read profile paths.
3327 (inline_small_functions): Count only !optimize_size functions into
3328 initial size; be more lax about sanity check when profile is used;
3329 be sure to update inlined function profile when profile is read.
3331 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3334 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
3335 cost when edge becomes direct.
3336 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
3337 is resolved or when introducing new speculation.
3339 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
3343 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
3344 '||' to fix typo issue.
3346 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
3347 accept and return NULL.
3349 2015-01-12 Martin Liska <mliska@suse.cz>
3351 * cgraph.c (cgraph_edge::remove_callee): Move function to header
3352 file for being inlined.
3353 (cgraph_set_edge_callee): Delete.
3354 (cgraph_edge::redirect_callee): Move function to header file
3356 (cgraph_edge::make_direct): Use new function.
3357 (cgraph_edge::dump_edge_flags): New function created from
3358 static dump_edge_flags function.
3359 (cgraph_node::dump): Use new function.
3360 (cgraph_edge::verify_count_and_frequency): New function created
3361 from verify_edge_count_and_frequency.
3362 (cgraph_edge::verify_corresponds_to_fndecl): New function created
3363 from verify_edge_corresponds_to_fndecl.
3364 (verify_edge_corresponds_to_fndecl): Delete.
3365 (cgraph_node::verify_node): Use new function.
3366 * cgraph.h (cgraph_edge::set_callee): New function.
3367 (cgraph_edge::dump_edge_flags): Likewise.
3368 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
3370 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
3372 * ipa-utils.c (estimate_function_body_sizes): Do not
3373 free node params when called late with early=true.
3375 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
3377 * doc/md.texi (Instruction Patterns): Rewrite text for
3379 (Example): Likewise.
3381 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
3383 * doc/invoke.texi (Option Summary): Break long lines.
3384 [(-fdiagnostics-color)]: Put long literal in @smallexample
3386 [(-fsanitize-recover)]: Likewise.
3387 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
3388 [(-ffast-math)]: Likewise.
3389 [(--param max-inline-insns-recursive)]: Likewise.
3390 [(--param max-inline-recursive-depth)]: Likewise.
3391 [(-mno-text-section-literals)]: Likewise.
3393 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3395 * doc/install.texi: Update for libgomp being renamed from "GNU
3396 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
3398 * doc/sourcebuild.texi: Likewise.
3400 2015-01-10 Anthony Green <green@moxielogic.com>
3402 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
3403 mul.x availability for moxiebox configuration.
3405 2015-01-09 Anthony Green <green@moxielogic.com>
3407 * config/moxie/moxie.md: Tabify assembly output.
3409 2015-01-09 Anthony Green <green@moxielogic.com>
3411 * config/moxie/moxie.md (CC_REG): Correct register definition.
3413 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
3415 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
3416 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
3419 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3421 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
3423 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
3424 Jakub Jelinek <jakub@redhat.com>
3427 * lto-streamer.h (lto_stream_offload_p): New declaration.
3428 * lto-streamer.c (lto_stream_offload_p): New variable.
3429 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
3430 at the same time as section_name_prefix.
3431 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
3432 if lto_stream_offload_p.
3433 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
3434 stream TREE_TARGET_OPTION if lto_stream_offload_p.
3435 (write_ts_function_decl_tree_pointers): Don't
3436 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
3437 * tree-streamer-in.c (unpack_value_fields): Don't stream
3438 TREE_TARGET_OPTION in if ACCEL_COMPILER.
3439 (lto_input_ts_function_decl_tree_pointers): Don't stream
3440 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
3441 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
3442 instead of section_name_prefix string comparisons.
3444 2015-01-09 Jakub Jelinek <jakub@redhat.com>
3446 PR rtl-optimization/64536
3447 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
3450 2015-01-09 Michael Collison <michael.collison@linaro.org>
3452 PR tree-optimization/64322
3453 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
3454 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
3456 2015-01-09 Tom de Vries <tom@codesourcery.com>
3458 PR rtl-optimization/64539
3459 * regcprop.c (kill_clobbered_values): Factor out of ...
3460 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
3461 instead of note_stores with kill_clobbered_value.
3463 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3465 * ginclude/unwind-arm-common.h: Revert previous commit.
3467 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3469 * config.gcc (arm*-*-freebsd*): New configuration.
3470 * config/arm/freebsd.h: New file.
3471 * config.host: Add extra components for arm*-*-freebsd*.
3472 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
3473 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
3475 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3477 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
3479 * config/rs6000/t-rtems: Add e6500 multilibs.
3481 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3483 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
3486 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3488 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
3489 MULTILIB_EXCEPTIONS.
3491 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3493 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
3494 MULTILIB_EXCEPTIONS.
3496 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3498 * config/arm/t-rtems-eabi: Rename to...
3499 * config/arm/t-rtems: ...this.
3500 * config/arm/rtems-eabi.h: Rename to...
3501 * config/arm/rtems.h: ...this.
3502 * config.gcc (arm*-*-rtems*): Reflect changes above.
3504 2015-01-09 Richard Biener <rguenther@suse.de>
3506 PR tree-optimization/64410
3507 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
3509 (execute_update_addresses_taken): Deal with that.
3510 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
3511 loads/stores for complex variables.
3513 2015-01-09 Martin Liska <mliska@suse.cz>
3515 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
3517 (func_checker::compare_memory_operand): New function.
3518 (func_checker::compare_operand): Split case to newly
3520 (func_checker::compare_cst_or_decl): New function.
3521 (func_checker::compare_gimple_call): Identify
3523 (func_checker::compare_gimple_assign): Likewise.
3524 * ipa-icf-gimple.h: New function.
3526 2015-01-09 Martin Liska <mliska@suse.cz>
3529 * sreal.c (sreal::dump): Change unsigned format to signed for
3531 (sreal::to_double): Replace exp2 with scalbln.
3533 2015-01-09 Martin Liska <mliska@suse.cz>
3535 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
3536 * ipa-icf.c (sem_function::equals_private): Add support for target and
3537 (sem_item_optimizer::merge_classes): Remove redundant function
3538 optimization flags comparison.
3539 * tree.h (target_opts_for_fn): New function.
3541 2015-01-09 Tom de Vries <tom@codesourcery.com>
3543 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
3545 2015-01-09 Kito Cheng <kito@0xlab.org>
3547 PR rtl-optimization/64348
3548 * lra-constraints.c (split_reg): Fix caller-save store/restore
3549 instruction generation.
3551 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
3553 PR gcov-profile/61790
3554 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
3555 long long. Fallback to int64_t if host doesn't have long long and
3556 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
3558 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3560 PR tree-optimization/63989
3561 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
3563 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
3564 (get_stridx): If we don't have a record for certain SSA_NAME,
3565 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
3566 constant offset, call get_stridx_plus_constant.
3567 (get_stridx_plus_constant): New function.
3568 (zero_length_string): Don't use get_stridx here.
3572 * dse.c (struct insn_info): Mention frame_read set also
3573 before reload for tail calls on some targets.
3574 (scan_insn): Revert 2014-12-22 change. Set frame_read
3575 also before reload for tail calls if
3576 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
3577 instead of add_non_frame_wild_read for non-const/memset
3578 tail calls after reload.
3580 2015-01-08 Jason Merrill <jason@redhat.com>
3582 * ubsan.c (do_ubsan_in_current_function): New.
3583 (pass_ubsan::gate): Use it.
3584 * ubsan.h: Declare it.
3585 * convert.c (convert_to_integer): Use it.
3587 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3590 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
3591 compare_code when it is unconditionally overwritten afterwards.
3592 Use ix86_reverse_condition instead of reverse_condition. Don't
3593 change code if *reverse_condition* returned UNKNOWN and don't
3594 swap ct/cf and negate diff in that case.
3596 2015-01-08 Mike Stump <mikestump@comcast.net>
3598 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
3599 (pass_tsan_O0::gate): Likewise.
3600 * extend.texi (Function Attributes): Add no_sanitize_thread
3603 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3605 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
3606 for registering builtins.
3607 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
3608 add -fopenmp to the argv_obstack used when invoking
3611 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
3612 add "-m32" or "-m64" to argv_obstack.
3613 (generate_host_descr_file): Likewise, when invoking host_compiler.
3614 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
3617 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3619 * config/sh/sh-mem.cc: Use constant as second operand when emitting
3622 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3625 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
3626 constant load if constant operand fits into I08.
3628 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3631 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
3632 and TREE_THIS_VOLATILE for MEM_REFs.
3633 (build5_stat): Fix up initialization of TREE_READONLY and
3634 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
3636 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3639 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
3640 of r for the second alternative of the destination operand.
3642 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
3645 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
3647 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3649 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
3651 ([-fivar-visibility], [-fvisibility]): Likewise.
3653 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3655 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
3656 the file where @code, @command, etc is more appropriate.
3658 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
3660 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
3661 of -mrecip= documentation.
3663 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3666 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
3667 correct reload handler if -m32 -mpowerpc64 is used.
3669 2015-01-06 Tom de Vries <tom@codesourcery.com>
3671 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
3673 2015-01-08 Christian Bruel <christian.bruel@st.com>
3676 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
3678 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3680 PR tree-optimization/63259
3681 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
3682 if optab exists for 16bit byteswap.
3684 2015-01-06 Jakub Jelinek <jakub@redhat.com>
3686 * opts.c (common_handle_option): Add support for
3687 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
3688 * doc/invoke.texi: Document -fno-sanitize=all,
3689 -f{,no-}sanitize-recover=all. Document that
3690 -fsanitize=float-cast-overflow is not enabled
3691 by -fsanitize=undefined. Fix up documentation
3692 of -f{,no-}sanitize-recover.
3694 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3696 * config.gcc: Add Visium support.
3697 * configure.ac: Likewise.
3698 * configure: Regenerate.
3699 * doc/extend.texi (interrupt attribute): Add Visium.
3700 * doc/invoke.texi: Document Visium options.
3701 * doc/install.texi: Document Visium target.
3702 * doc/md.texi: Document Visium constraints.
3703 * common/config/visium: New directory.
3704 * config/visium: Likewise.
3706 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3708 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
3709 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
3711 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3713 * combine.c (combine_validate_cost): Do not count the cost of a
3714 split I2 twice. Do not display it twice in the dump, either.
3716 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3718 Revert parts of r219199.
3719 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
3721 ([-Wtraditional]): Restore markup on <limits.h>.
3723 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3726 * doc/invoke.texi: Document -Wsuggest-override.
3728 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
3730 PR rtl-optimization/64287
3731 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
3732 (process_options): Disable flag_ipa_ra if profiling.
3734 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
3736 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
3738 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
3740 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
3741 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
3742 put under #if TARGET_LOOPS guard.
3744 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
3746 * config/i386/i386.c (output_387_binary_op): Use std::swap.
3748 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
3750 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
3751 * rtl.h (refers_to_regno_p): Add overload.
3753 * bt-load.c: Likewise.
3754 * combine.c: Likewise.
3755 * df-scan.c: Likewise.
3756 * sched-deps.c: Likewise.
3757 * config/s390/s390.c: Likewise.
3758 * config/m32r/m32r.c: Likewise.
3759 * config/rs6000/spe.md: Likewise.
3760 * config/rs6000/rs6000.c: Likewise.
3761 * config/pa/pa.c: Likewise.
3762 * config/stormy16/stormy16.c: Likewise.
3763 * config/cris/cris.c: Likewise.
3764 * config/arc/arc.md: Likewise.
3765 * config/arc/arc.c: Likewise.
3766 * config/sh/sh.md: Likewise.
3767 * config/sh/sh.c: Likewise.
3768 * config/frv/frv.c: Likewise.
3770 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3773 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
3774 call as cleanup of the whole body.
3775 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
3776 * tsan.c (replace_func_exit): New function.
3777 (instrument_func_exit): Moved earlier.
3778 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
3779 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
3781 (tsan_pass): Don't call instrument_func_exit.
3782 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
3783 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
3787 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
3788 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
3789 it to libubsan handler instead of EXPR. Fold comparisons earlier,
3790 if the result is integer_zerop, return NULL_TREE.
3791 * convert.c (convert_to_integer): Pass expr as ARG.
3793 PR tree-optimization/64465
3794 * tree-inline.c (redirect_all_calls): During inlining
3795 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
3796 changed the stmt to a non-throwing call.
3798 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3800 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
3801 etc markup throughout the file.
3803 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3805 Enable experimental TSAN support for Ada.
3806 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
3808 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3810 PR tree-optimization/64494
3811 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
3812 clear SSA_NAME_ANTI_RANGE_P flag.
3814 2015-01-05 Marek Polacek <polacek@redhat.com>
3816 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
3818 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3820 Update copyright years.
3822 * gcc.c (process_command): Update copyright notice dates.
3823 * gcov-dump.c: Ditto.
3825 * doc/cpp.texi: Bump @copying's copyright year.
3826 * doc/cppinternals.texi: Ditto.
3827 * doc/gcc.texi: Ditto.
3828 * doc/gccint.texi: Ditto.
3829 * doc/gcov.texi: Ditto.
3830 * doc/install.texi: Ditto.
3831 * doc/invoke.texi: Ditto.
3833 * auto-profile.c, auto-profile.h: Fix up Copyright line.
3835 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
3837 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
3839 ([-fvtable-verify], [-fvtv-debug]): Likewise.
3840 ([-Wabi]): Likewise.
3841 ([-fmessage-length]): Likewise.
3842 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
3843 ([-Wno-discarded-qualifiers]): Likewise.
3844 ([-Wnodiscarded-array-qualifiers]): Likewise.
3845 ([-Wno-virtual-move-assign]): Likewise.
3846 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
3847 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
3848 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
3849 ([-fsanitize-undefined-trap-on-error]): Likewise.
3850 ([-floop-interchange]): Likewise.
3851 ([-ftree-coalesce-inlined-vars]): Likewise.
3852 ([-fvect-cost-model]): Likewise.
3853 ([-flto]): Likewise.
3854 ([--param]): Likewise.
3855 (Spec Files): Likewise.
3856 ([-mstrict-align]): Likewise.
3857 ([-mfix-cortex-a53-835769]): Likewise.
3858 ([-march], [-mtune]): Likewise.
3859 ([-mpic-register]): Likewise.
3860 ([-munaligned-access]): Likewise.
3861 ([-msp8]): Likewise.
3862 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
3863 (AVR Built-in Macros): Likewise.
3864 ([-mpreferred-stack-boundary]): Likewise.
3865 ([-mtune-crtl]): Likewise.
3866 ([-mashf]): Likewise.
3867 ([-mmcu=]): Likewise.
3868 ([-minrt]): Likewise.
3869 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
3870 ([-mupper-regs]): Likewise.
3871 ([-matomic-model]): Likewise.
3872 ([-mdiv]): Likewise.
3873 ([-mzdcbranch]): Likewise.
3874 ([-mdisable-callt]): Likewise.
3875 ([-msoft-float]): Likewise.
3876 ([-m8byte-align]): Likewise.
3877 ([-fstack-reuse]): Likewise.
3879 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3881 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
3882 Fix markup, light copy-editing.
3883 ([-fauto-profile]): Rewrite to fix formatting and content
3886 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3888 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
3889 Copy-edit description.
3890 ([-fisolate-erroneous-paths-attribute]): Likewise.
3891 * common.opt (fisolate-erroneous-paths-dereference):
3892 Copy-edit description.
3893 (fisolate-erroneous-paths-attribute): Likewise.
3895 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3897 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
3900 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3902 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
3903 ([-fvtv-debug]): Likewise.
3904 ([-Wc++-compat]): Likewise.
3905 ([-Wc++11-compat]): Likewise.
3906 ([-Wc++14-compat]): Likewise.
3907 ([-Wno-sized-deallocation]): Likewise.
3908 ([-femit-class-debug-always]): Likewise.
3909 ([-femit-struct-debug-detailed]): Likewise.
3910 ([-fno-keep-inline-dllexport]): Likewise.
3911 ([-fira-algorithm]): Likewise.
3912 ([-fira-region]): Likewise.
3913 ([-flra-remat]): Likewise.
3914 ([-fipa-ra]): Likewise.
3915 ([-fhoist-adjacent-loads]): Likewise.
3916 ([-fisolate-erroneous-paths-dereference]): Likewise.
3917 ([-fisolate-erroneous-paths-attribute]): Likewise.
3918 ([-ftree-switch-conversion]): Likewise.
3919 ([-ftree-tail-merge]): Likewise.
3920 ([-ftree-loop-if-convert]): Likewise.
3921 ([-ftree-loop-if-convert-stores]): Likewise.
3922 ([-ftree-loop-distribution]): Likewise.
3923 ([-ftree-loop-distribute-patterns]): Likewise.
3924 ([-flto-compression-level]): Likewise.
3925 ([-flto-report]): Likewise.
3926 ([-flto-report-wpa]): Likewise.
3927 ([-fuse-linker-plugin]): Likewise.
3928 ([-mfix-cortex-a53-835769]): Likewise.
3929 ([-mno-fix-cortex-a53-835769]): Likewise.
3930 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
3931 explicit listing; add a note to the discussion indicating they
3932 exist. Reorder table to group similar options. Add missing
3933 @opindex entries. Add @need commands throughout the table to
3934 allow it to be split across multiple pages.
3935 ([-m8bit-idiv]): Fix @opindex.
3936 ([-mavx256-split-unaligned-load]): Likewise.
3937 ([-mavx256-split-unaligned-store]): Likewise.
3938 ([-mstack-protector-guard]): Likewise.
3939 ([-mcpu=]): Likewise.
3940 ([-mcpu]): Likewise.
3941 ([-mpointer-size=]): Likewise.
3943 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
3945 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
3946 instead of `m' constraint. Likewise for unnamed movb comparison
3947 patterns using reg_before_reload_operand predicate.
3948 * config/pa/predicates.md (reg_before_reload_operand): Tighten
3949 predicate to reject register index and LO_SUM DLT memory forms
3952 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3954 * doc/invoke.texi (Option Summary): Fix spelling of
3955 -fdevirtualize-at-ltrans.
3956 ([-fdevirtualize]): Fix markup.
3957 ([-fdevirtualize-speculatively]): Fix typo.
3958 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
3960 * common.opt (fdevirtualize-at-ltrans): Likewise.
3961 * ipa-devirt.c: Fix typos in comments throughout the file.
3962 (ipa_devirt): Fix typos in format strings for dump output.
3964 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3966 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
3967 discussion of defaults, light copy-editing.
3969 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3971 * tsan.c (instrument_expr): corrected previous checkin.
3973 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3975 Instrument bit field and unaligned accesses for TSAN.
3976 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
3977 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
3978 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
3979 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
3980 unaligned memory regions.
3982 2015-01-01 Anthony Green <green@moxielogic.com>
3984 * config/moxie/predicates.md (moxie_general_movsrc_operand):
3985 Restrict move source register offsets to 16 bits.
3987 Copyright (C) 2015 Free Software Foundation, Inc.
3989 Copying and distribution of this file, with or without modification,
3990 are permitted in any medium without royalty provided the copyright
3991 notice and this notice are preserved.