1 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
5 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
6 (DBX_CONTIN_CHAR): Define.
8 2015-02-06 Sebastian Pop <s.pop@samsung.com>
9 Brian Rzycki <b.rzycki@samsung.com>
11 PR tree-optimization/64878
12 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
13 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
14 Stop recursion at loop phi nodes after having visited a loop phi node.
16 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18 * toplev.c (process_options): Change flag_ipa_ra before creating
19 optimization_{default,current}_node.
22 * cgraphunit.c (cgraph_node::expand_thunk): If
23 restype is not is_gimple_reg_type nor the thunk_fndecl
24 returns aggregate_value_p, set restmp to a temporary variable
27 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
29 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
31 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
35 add a general secondary reload handler for SDmode, unless we have
36 both read/write support for SDmode.
38 2015-02-06 Jakub Jelinek <jakub@redhat.com>
41 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
42 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
43 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
44 1 before, push it to abstract_vec.
45 (dwarf2out_abstract_function): Adjust caller. Don't call
46 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
47 DECL_ABSTRACT_P flags for all abstract_vec elts.
49 2015-02-06 Renlin Li <renlin.li@arm.com>
51 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
53 * tree-ssa.c (execute_update_addresses_taken): Likewise.
55 2015-02-06 Jeff Law <law@redhat.com>
58 * config/h8300/h8300.c (push): New argument "in_prologue".
59 Pass "in_prologue" along to "F".
60 (h8300_push_pop): Corresponding changes.
61 (h8300_expand_prologue): Likewise.
62 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
64 2015-02-06 Jakub Jelinek <jakub@redhat.com>
66 PR rtl-optimization/64957
68 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
69 IOR rather than for AND.
71 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
74 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
75 of shift-add and (add + shift) operations. Rename local variable.
78 2015-02-05 Jeff Law <law@redhat.com>
81 * config/h8300/constraints.md (U): Correctly dectect
82 "eightbit_data" memory addresses.
83 * config/h8300/h8300.c (eightbit_constant_address_p): Also
84 handle (const (plus (symbol_ref (x)))) where x is declared
85 as an 8-bit data memory address.
86 * config/h8300/h8300.md (call, call_value): Correctly detect
90 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
91 24 to 28 bits for the H8/300.
93 2015-02-06 Alan Modra <amodra@gmail.com>
96 * config/rs6000/rs6000.c (chain_already_loaded): New function.
97 (rs6000_call_aix): Use it.
99 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
101 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
104 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
106 * config/h8300/constraints.md ("U" constraint): Use strict
107 variant of REG_OK_FOR_BASE_P after reload has started.
109 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
111 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
112 define to zero if !TARGET_NEON.
113 (TARGET_CPU_CPP_BUILTINS): Added second condition before defining
116 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
117 Trevor Saunders <tsaunders@mozilla.com>
120 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
122 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
125 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
126 when removing varpool nodes.
128 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
131 * varpool.c (varpool_node::remove): Fix order of variables.
133 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
136 * ipa-inline.c (inline_small_functions): Fix ordering issue between
137 speculation resolution and key updates.
139 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
141 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
142 about not letting any speculative edges unupdated.
144 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
147 * gcov-io.c (gcov_var): Export.
149 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
152 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
153 edges that become speculative.
155 2015-02-04 Jakub Jelinek <jakub@redhat.com>
157 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
158 or DW_LANG_Fortran08.
159 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
161 (gen_compile_unit_die): Handle "GNU Fortran2003" and
162 "GNU Fortran2008" language strings.
163 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
164 * langhooks.h (lang_GNU_Fortran): New prototype.
165 * langhooks.c (lang_GNU_Fortran): New function.
166 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
169 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
171 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
172 (RTX_OK_FOR_OLO10_P): Likewise.
174 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
176 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
178 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
181 * gimple.c: Include gimple-ssa.h.
182 (maybe_remove_unused_call_args): New function.
183 * gimple.h (maybe_remove_unused_call_args): Declare.
184 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
185 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
186 * gimple-fold.c (gimple_fold_call): Likewise.
188 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
190 PR rtl-optimization/64905
191 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
192 pointer alignment if it isn't needed.
194 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
196 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
197 cortex-a72.cortex-a53.
198 * config/aarch64/aarch64-tune.md: Regenerate.
199 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
201 2015-02-04 Nick Clifton <nickc@redhat.com>
203 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
206 2015-02-04 Jakub Jelinek <jakub@redhat.com>
208 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
209 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
210 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
212 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
213 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
214 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
215 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
216 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
217 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
218 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
219 * tree-core.h (enum built_in_function): In between
220 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
221 for builtins that use DEF_BUILTIN_CHKP macro.
223 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
226 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
227 operands for tcc_comparison exprs. Fix typos.
230 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
231 of two XORs that have an intervening AND or IOR.
234 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
235 simplification of XOR of AND to not allocate new rtx before
236 committing to a simplification.
238 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
240 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
241 manual swaps in all peepholes.
243 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
245 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
246 of manual swapping implementation.
247 (aarch64_expand_vec_perm_const_1): Likewise.
249 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
251 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
252 (generic_addrcost_table): Remove NAMED_PARAM.
253 (cortexa57_addrcost_table): Likewise.
254 (xgene1_addrcost_table): Likewise.
255 (generic_regmove_table): Likewise.
256 (cortexa53_regmove_table): Likewise.
257 (xgene1_regmove_table): Likewise.
258 (generic_vector_table): Likewise.
259 (cortexa57_vector_table): Likewise.
260 (xgene1_vector_table): Likewise.
261 (generic_tunings): Likewise.
262 (cortexa53_tunings): Likewise.
263 (cortexa57_tunings): Likewise.
264 (xgene1_tunings): Likewise.
266 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
268 * config/arm/arm-cores.def: Add cortex-a72 and
269 cortex-a72.cortex-a53.
270 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
271 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
272 * config/arm/arm-tune.md: Regenerate.
273 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
274 "cortex-a72.cortex-a53".
275 * doc/invoke.texi (ARM Options/-mtune): Likewise.
277 2015-02-04 Nick Clifton <nickc@redhat.com>
280 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
282 (nonimmediate_di_operand): Likewise.
284 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
285 prefixes of known F5 using MSP430 MCUs.
287 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
289 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
290 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
291 instead of __builtin_sqrt.
293 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
295 * varasm.c (do_assemble_alias): Follow transparent alias
297 (default_assemble_visibility): Follow transparent alias
300 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
303 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
304 to compute size of referenced value in the constant case.
306 2015-02-03 Jakub Jelinek <jakub@redhat.com>
308 PR rtl-optimization/64756
309 * cse.c (invalidate_dest): New function.
310 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
311 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
312 invalidate and do not record it.
314 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
317 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
318 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
319 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
320 atomic_nand<mode>_soft_tcb): New insns.
321 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
322 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
323 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
324 Split into atomic_not_fetchsi_hard if operands[0] is unused.
325 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
326 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
327 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
328 atomic_not<mode>_hard if operands[0] is unused.
329 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
330 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
331 if operands[0] is unused.
332 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
333 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
334 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
335 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
337 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
338 into atomic_not<mode>_soft_tcb if operands[0] is unused.
339 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
340 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
341 if operands[0] is unused.
342 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
343 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
344 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
345 atomic_nand_fetchsi_hard if operands[0] is unused.
346 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
347 atomic_nand<mode>_hard if operands[0] is unused.
348 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
349 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
350 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
351 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
352 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
353 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
354 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
355 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
356 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
357 atomic_not<mode>_hard if operands[0] is unused.
358 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
359 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
361 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
362 into atomic_not<mode>_soft_tcb if operands[0] is unused.
363 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
364 atomic_nand<mode>_hard if operands[0] is unused.
365 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
366 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
368 2015-02-03 David Malcolm <dmalcolm@redhat.com>
371 * Makefile.in (GCC_OBJS): Add gcc-main.o.
372 * gcc-main.c: New file, containing "main" taken from gcc.c.
373 * gcc.c (do_self_spec): Free decoded_options.
374 (class driver): Move declaration to gcc.h.
375 (main): Move declaration and implementation to new file
377 (driver_get_configure_time_options): New function.
378 * gcc.h (class driver): Move this declaration here, from
380 (driver_get_configure_time_options): New declaration.
382 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
384 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
385 cross-module inlining.
386 * cgraph.h (cgraph_node): Add flag merged.
387 * ipa-icf.c (sem_function::merge): Maintain it.
389 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
391 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
394 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
397 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
398 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
399 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
400 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
402 2015-02-03 Jakub Jelinek <jakub@redhat.com>
405 * combine.c (reg_n_sets_max): New variable.
406 (can_change_dest_mode, reg_nonzero_bits_for_combine,
407 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
408 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
409 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
410 (rest_of_handle_combine): Initialize reg_n_sets_max.
412 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
414 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
415 if some always_inline was inlined, apply changes before inlining
418 2015-02-02 David Malcolm <dmalcolm@redhat.com>
421 * config/arm/arm.c (arm_option_override): Set
422 arm_selected_arch/cpu/tune to NULL on entry.
424 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
425 Andrew Pinski <pinskia@gcc.gnu.org>
426 Jakub Jelinek <jakub@gcc.gnu.org>
429 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
430 integer typing for small model. Use IN_RANGE.
432 2015-02-02 Richard Biener <rguenther@suse.de>
434 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
435 * tree-vrp.c (vrp_valueize_1): Likewise.
437 2015-02-02 Alan Modra <amodra@gmail.com>
439 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
440 than mem for toc_restore.
441 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
442 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
443 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
445 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
448 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
449 explicit default options.
451 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
454 * ipa-utils.c (ipa_merge_profiles): Add release argument.
455 * ipa-icf.c (sem_function::merge): Do not release body when merging.
456 * ipa-utils.h (ipa_merge_profiles): Update prototype.
458 2015-02-01 Jakub Jelinek <jakub@redhat.com>
461 * cfgexpand.c (deep_ter_debug_map): New variable.
462 (avoid_deep_ter_for_debug): New function.
463 (expand_debug_expr): If TERed SSA_NAME is in
464 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
465 instead of trying to expand SSA_NAME's def stmt.
466 (expand_debug_locations): When expanding debug bind
467 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
468 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
470 (pass_expand::execute): Call avoid_deep_ter_for_debug on
471 all debug bind stmts. Delete deep_ter_debug_map after
472 expand_debug_location if non-NULL and clear it.
474 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
477 * config/sh/sync.md (atomic_fetch_notsi_hard,
478 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
479 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
480 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
481 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
482 atomic_not_fetch<mode>_soft_imask): New insns.
484 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
486 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
487 (rank_for_schedule_debug): Split from ...
488 (rank_for_schedule): ... this.
489 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
490 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
492 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
494 * doc/md.texi (Machine Constraints): Alphabetize table by target.
495 * doc/extend.texi (x86 Variable Attributes): Move section to
496 correct alphabetization after renaming.
497 (x86 Type Attributes): Likewise.
498 (Target Builtins): Re-alphabetize menu.
499 (x86 Built-in Functions): Move section to correct alphabetization
501 (x86 transactional memory intrinsics): Likewise.
502 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
503 and x86 Windows Options in table and menu.
504 (x86 Options): Move section to correct alphabetization after
506 (x86 Windows Options): Likewise.
508 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
510 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
511 preferred names of the architecture and its 32- and 64-bit
513 * doc/invoke.texi: Likewise.
514 * doc/md.texi: Likewise.
516 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
519 * config/i386/predicates.md (address_no_seg_operand): Reject
520 non-CONST_INT_P operands in invalid mode.
522 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
524 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
525 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
526 * config/i386/predicates.md (address_no_seg_operand): Call
527 address_operand with VOIDmode.
528 (vsib_address_operand): Ditto.
529 (address_mpx_no_base_operand): Ditto.
530 (address_mpx_no_index_operand): Ditto.
532 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
535 * lra-constraints.c (original_subreg_reg_mode): New.
536 (simplify_operand_subreg): Try to simplify subreg of const. Use
537 original_subreg_reg_mode for it.
538 (swap_operands): Update original_subreg_reg_mode.
539 (curr_insn_transform): Set up original_subreg_reg_mode.
541 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
544 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
546 (process_alt_operands): Use it.
547 (curr_insn_transform): Check the optional reload pseudo class is
550 2015-01-30 Joseph Myers <joseph@codesourcery.com>
552 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
553 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
555 * toplev.h (init_asm_output): Update comment on use of
556 UNKNOWN_LOCATION with fatal_error.
557 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
558 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
559 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
560 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
561 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
562 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
563 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
564 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
565 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
566 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
567 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
568 fatal_error changed to pass input_location as first argument.
570 2015-01-30 Martin Liska <mliska@suse.cz>
572 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
573 in #pragma GCC diagnostic guards.
575 2015-01-30 Richard Biener <rguenther@suse.de>
577 PR tree-optimization/64829
578 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
579 not add a widening conversion pattern but hand off extra
580 widenings to callers.
581 (vect_recog_widen_mult_pattern): Handle extra widening produced
582 by vect_handle_widen_op_by_const.
583 (vect_recog_widen_shift_pattern): Likewise.
584 (vect_pattern_recog_1): Remove excess vertical space in dumping.
585 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
586 (vect_init_vector_1): Likewise.
587 (vect_get_vec_def_for_operand): Likewise.
588 (vect_finish_stmt_generation): Likewise.
589 (vectorizable_load): Likewise.
590 (vect_analyze_stmt): Likewise.
591 (vect_is_simple_use): Likewise.
593 2015-01-29 Jeff Law <law@redhat.com>
595 * combine.c (try_combine): Fix typo in comment.
597 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
600 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
601 (rs6000_stack_info): Add assert.
602 (rs6000_output_savres_externs): New function, split off from...
603 (rs6000_output_function_prologue): ... here. Do not call it for
606 2015-01-29 Jeff Law <law@redhat.com>
609 * combine.c (try_combine): If I0 is a memory load and I3 a store
610 to a related address, increase the "goodness" of doing a 4-insn
611 combination with I0-I3.
612 (make_field_assignment): Handle SUBREGs in the ior+and case.
614 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
616 PR tree-optimization/64746
617 * tree-if-conv.c (mask_exists): New function.
618 (predicate_mem_writes): Save created mask with given size for further
620 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
621 (ifcvt_repair_bool_pattern): Collect all statements that are root
622 of bool pattern and use iterative algorithm to remove multiple uses
623 of predicates, display number of required iterations.
625 2015-01-29 Richard Biener <rguenther@suse.de>
627 PR tree-optimization/64853
628 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
629 stmt will get simulated again.
630 * tree-ssa-ccp.c (valueize_op_1): Likewise.
632 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
634 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
635 return_in_pc. Remove redundant assignments.
636 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
637 (arm_expand_epilogue): Don't compare boolean with true in if condition.
639 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
641 * config/i386/i386.c (ix86_mode_after): Make static.
643 2015-01-29 Richard Biener <rguenther@suse.de>
645 PR tree-optimization/64844
646 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
647 dump cost model analysis.
648 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
649 Do not register adjusted load/store costs here.
651 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
652 Uros Bizjak <ubizjak@gmail.com>
654 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
655 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
656 using x86_use_pseudo_pic_reg.
657 * config/i386/i386.c (ix86_conditional_register_usage): Remove
658 support for fixed PIC register.
659 (ix86_use_pseudo_pic_reg): Not static any more.
661 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
664 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
665 to avoid error in cgraph node verification.
667 2015-01-29 Marek Polacek <polacek@redhat.com>
669 * doc/standards.texi: Reflect that the default for C is gnu11.
671 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
674 * reorg.c (switch_text_sections_between_p): New function.
675 (relax_delay_slots): Call it when testing if the jump insn
676 is removable. Use targetm.can_follow_jump when testing if
677 the conditional branch can follow an unconditional jump.
679 2015-01-27 Caroline Tice <cmtice@google.com>
681 Committing VTV Cywin/Ming patch for Patrick Wollgast
682 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
683 if -fvtable-verify=preinit/std is used.
684 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
685 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
686 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
687 if -fvtable-verify=preinit/std is used.
688 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
689 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
690 if -fvtable-verify=preinit/std is used.
691 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
692 * config/i386/mingw32.h (LIB_SPEC): Likewise.
693 * varasm.c (assemble_variable): Add code to properly set the comdat
694 section and name for the .vtable_map_vars section in case the
695 target is PE or COFF.
697 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
700 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
701 make sane BB profile.
702 (cgraph_node::expand_thunk): Make sane BB profile.
703 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
704 * cgraph.h (init_lowered_empty_function): Update prototype.
705 * config/i386/i386.c (make_resolver_func): Update call.
706 * predict.c (gate): Disable branch prediction pass if
707 profile is already there.
709 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
711 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
712 * opth-gen.awk: Likewise.
713 * common.opt: Mark flag_fp_contract_mode as Optimization.
715 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
717 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
718 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
720 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
723 * config/sh/predicates.md (atomic_arith_operand,
724 atomic_logical_operand): Remove.
725 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
726 (atomic_arith_operand_0): New predicate.
727 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
728 Use atomic_arith_operand_0 for input values.
729 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
730 atomic_compare_and_swap<mode>_soft_gusa,
731 atomic_compare_and_swap<mode>_soft_tcb,
732 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
733 arith_reg_operand instead of register_operand.
734 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
735 atomic_arith_operand_0 for newval input.
736 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
737 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
738 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
739 arith_reg_operand instead of register_operand.
740 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
741 fetchop_predicate_1, fetchop_constraint_1_llcs,
742 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
743 fetchop_constraint_1_imask): New code iterator attributes.
744 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
745 register_operand. Use fetchop_predicate_1.
746 (atomic_fetch_<fetchop_name>si_hard,
747 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
748 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
749 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
750 and arith_reg_operand instead of register_operand. Use
751 fetchop_predicate_1, fetchop_constraint_1_gusa.
752 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
753 and arith_reg_operand instead of register_operand. Use
754 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
756 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
757 and arith_reg_operand instead of register_operand. Use
758 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
760 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
761 register_operand. Use atomic_logical_operand_1.
762 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
763 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
764 arith_reg_operand instead of register_operand.
765 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
766 Use arith_reg_dest and arith_reg_operand instead of register_operand.
767 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
768 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
769 register_operand. Use fetchop_predicate_1.
770 (atomic_<fetchop_name>_fetchsi_hard,
771 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
772 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
773 fetchop_constraint_1_llcs.
774 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
775 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
776 fetchop_constraint_1_gusa.
777 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
778 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
779 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
780 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
781 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
782 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
783 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
784 register_operand. Use atomic_logical_operand_1.
785 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
786 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
787 arith_reg_operand instead of register_operand.
788 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
789 arith_reg_operand instead of register_operand. Use logical_operand
790 and K08. Adjust asm sequence to allow R0 usage.
791 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
792 arith_reg_operand instead of register_operand. Use logical_operand
795 2015-01-28 Jakub Jelinek <jakub@redhat.com>
798 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
799 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
800 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
801 only get_full_len HOST_WIDE_INTs from get_val () array rather than
802 all bits in *val_wide.
804 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
806 * varpool.c (tls_model_names): Fix names.
807 (varpool_node::dump): Dump tls- prefix for tls models.
809 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
810 Bernd Schmidt <bernds@codesourcery.com>
811 Nathan Sidwell <nathan@codesourcery.com>
813 * config/nvptx/mkoffload.c: New file.
814 * config/nvptx/t-nvptx: Add build rules for it.
815 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
816 (extra_programs): Add mkoffload.
817 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
819 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
821 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
824 * cfgexpand.c (reorder_operands): Skip debug gimples.
826 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
828 PR tree-optimization/64277
829 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
830 range info when possible to refine estimation.
832 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
834 PR tree-optimization/64718
835 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
836 be a 16bit unsigned integer when n->range is 16.
837 (bswap_replace): Convert src to that type if necessary for all bswap
838 sizes. Fix rotation right notation in nearby comment. Use bswap_type
839 set in pass_optimize_bswap::execute ().
841 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
843 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
844 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
845 integer and floating point variants.
846 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
848 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
850 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
851 for all vector modes.
853 2015-01-28 Jakub Jelinek <jakub@redhat.com>
856 * doc/sourcebuild.texi (comdat_group): Document.
858 2015-01-28 Terry Guo <terry.guo@arm.com>
860 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
862 2015-01-27 David Malcolm <dmalcolm@redhat.com>
864 * toplev.c (print_version): Add param "show_global_state", and
865 only print GGC and plugin information if it is true.
866 (init_asm_output): Pass in "true" for the new param when calling
868 (process_options): Likewise.
869 (toplev::main): Likewise.
870 * toplev.h (print_version): Add new param to decl.
872 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
876 * tree.c (lookup_binfo_at_offset): New function.
877 (get_binfo_at_offset): Use it.
879 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
882 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
883 on vtable being vtable.
885 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
887 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
888 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
890 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
891 -mno-hotpatch options. Change syntax of -mhotpatch= option.
892 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
894 (s390_hotpatch_trampoline_halfwords_max): Renamed.
895 (s390_hotpatch_hw_max): New name.
896 (s390_hotpatch_trampoline_halfwords): Renamed.
897 (s390_hotpatch_hw_before_label): New name.
898 (get_hotpatch_attribute): Removed.
899 (s390_hotpatch_hw_after_label): New name.
900 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
902 (s390_attribute_table): Ditto.
903 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
904 (s390_function_num_hotpatch_hw): New name.
905 Remove special handling of inline functions and hotpatching.
906 Return number of nops before and after the function label.
907 (s390_can_inline_p): Removed.
908 (s390_asm_output_function_label): Emit a configurable number of nops
909 after the function label.
910 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
911 (TARGET_CAN_INLINE_P) Removed.
912 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
914 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
915 Jiong Wang <jiong.wang@arm.com>
917 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
919 (cb<optab><mode>1): Likewise.
920 * config/aarch64/iterators.md (bcond): New define_code_attr.
922 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
924 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
927 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
929 * config/s390/s390.c (s390_register_move_cost): Increase costs for
932 2015-01-27 Richard Biener <rguenther@suse.de>
934 * tree-vrp.c (update_value_range): Intersect the range with
935 old recorded SSA name range information.
937 2015-01-27 Nick Clifton <nickc@redhat.com>
939 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
940 BC, DE and HL registers directly, not via AX.
941 When decrementing the stack pointer by a large amount, transfer SP
942 into AX and perform the subtraction there.
943 (rl78_expand_epilogue): Perform the inverse of the above
946 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
948 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
950 2015-01-27 Jakub Jelinek <jakub@redhat.com>
951 Yury Gribov <y.gribov@samsung.com>
954 * ubsan.c (ubsan_source_location): Refactor code.
955 (ubsan_type_descriptor): Update type size. Refactor code.
957 2015-01-27 Richard Biener <rguenther@suse.de>
959 PR tree-optimization/56273
960 PR tree-optimization/59124
961 PR tree-optimization/64277
962 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
963 from the first VRP pass.
965 2015-01-27 Jakub Jelinek <jakub@redhat.com>
968 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
969 handle the first argument in the same loop as all the other arguments.
971 PR rtl-optimization/61058
972 * jump.c (cleanup_barriers): Update basic block boundaries
973 if BLOCK_FOR_INSN is non-NULL on PREV.
975 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
977 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
978 bounds narrowing, already instrumented calls and calls to
979 not instrumentable functions.
981 2015-01-27 Jakub Jelinek <jakub@redhat.com>
983 PR tree-optimization/64807
984 * wide-int.cc (wi::divmod_internal): Clear
985 b_dividend[dividend_blocks_needed].
987 2015-01-26 DJ Delorie <dj@redhat.com>
989 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
990 volatile memory references.
992 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
995 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
997 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
998 shifts if it already fits into K08.
1000 2015-01-26 Jakub Jelinek <jakub@redhat.com>
1003 * ipa-inline.c (inline_small_functions): Print "unknown" even
1004 if edge->call_stmt is non-NULL, but has builtins or unknown
1008 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
1009 with asterisk, skip the first character.
1011 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
1014 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
1017 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
1020 * config/i386/i386.md (*movdi_internal): Also check operand 0
1021 to determine TYPE_LEA operand.
1022 (*movsi_internal): Ditto.
1024 2015-01-26 Jakub Jelinek <jakub@redhat.com>
1026 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
1027 OPTION_MASK_QUAD_MEMORY_ATOMIC.
1029 2015-01-26 Renlin Li <renlin.li@arm.com>
1031 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
1033 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
1036 2015-01-26 Richard Biener <rguenther@suse.de>
1039 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
1040 combining two BIT_AND_EXPR predicates.
1042 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
1045 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
1047 2015-01-26 Terry Guo <terry.guo@arm.com>
1049 * config/arm/arm.c (arm_file_start): Update the assignment of
1052 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
1054 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
1056 config/arm/arm.md: Include the new Cortex-A57 model.
1057 (generic_sched): Don't use generic_sched when tuning for
1060 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
1061 Uros Bizjak <ubizjak@gmail.com>
1063 * config/i386/i386.c (get_builtin_code_for_version): Add
1064 support for BMI and BMI2 multiversion functions.
1066 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1068 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
1069 (extract_bit_field): Likewise.
1070 (extract_low_bits): Likewise.
1071 (expand_mult): Likewise.
1072 (expand_mult_highpart_adjust): Likewise.
1074 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
1076 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
1077 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
1078 * config/i386/i386.c (processor_model): Add
1079 M_INTEL_COREI7_BROADWELL.
1080 (arch_names_table): Add "broadwell".
1082 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
1091 * config/sh/sh-protos.h
1092 (sh_extending_set_of_reg::can_use_as_unextended_reg,
1093 sh_extending_set_of_reg::use_as_unextended_reg,
1094 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
1095 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
1096 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
1097 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
1098 (sh_treg_insns): New class.
1099 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
1100 (scope_counter): New class.
1101 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
1102 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
1103 sh_extending_set_of_reg::can_use_as_unextended_reg,
1104 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
1105 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
1106 sh_split_treg_set_expr): New functions.
1107 (addsubcosts): Handle treg_set_expr.
1108 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
1109 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
1110 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
1111 (sh_insn_operands_modified_between_p): Make non-static.
1112 * config/sh/predicates.md (zero_extend_movu_operand): Allow
1113 simple_mem_operand in addition to displacement_mem_operand.
1114 (zero_extend_operand): Don't allow zero_extend_movu_operand.
1115 (treg_set_expr, treg_set_expr_not_const01,
1116 arith_reg_or_treg_set_expr): New predicates.
1117 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
1118 arith_or_int_operand instead of logical_operand. Convert to
1119 insn_and_split. Try to optimize constant operand in splitter.
1120 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
1121 (*tstqi_t_zero): Delete.
1122 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
1123 (tstsi_t_and_not): Delete.
1124 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
1125 Convert to insn_and_split.
1126 (unnamed split, tstsi_t_zero_extract_xor,
1127 tstsi_t_zero_extract_subreg_xor_little,
1128 tstsi_t_zero_extract_subreg_xor_big): Delete.
1129 (*tstsi_t_shift_mask): New insn_and_split.
1130 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
1131 to recombine with surrounding insns when splitting.
1132 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
1133 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
1134 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
1135 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
1136 (*cbranch_div0s: Delete.
1137 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
1138 Try to recombine with surrounding insns when splitting. Add operand
1140 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
1141 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
1142 *addc_r_r_msb, *addc_2r_msb): Delete.
1143 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
1145 (*addc_negreg_t): New insn_and_split.
1146 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
1147 Try to recombine with surrounding insns when splitting.
1148 Add operand order variants.
1149 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
1150 insn_and_split patterns.
1151 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
1152 surrounding insns when splitting.
1153 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
1154 (*rotcl): Likewise. Add zero_extract variant.
1155 (*ashrsi2_31): New insn_and_split.
1156 (*negc): Convert to insn_and_split. Use treg_set_expr.
1157 (*zero_extend<mode>si2_disp_mem): Update comment.
1158 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
1160 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
1161 with surrounding insns when splitting.
1162 (any_treg_expr_to_reg): New insn_and_split.
1163 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
1164 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
1165 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
1166 *zero_extract_2): New single bit zero extract patterns.
1167 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
1168 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
1169 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
1170 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
1172 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
1173 register_operand for set source.
1175 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
1177 * i386.opt (prefetch_sse): New targetsave.
1178 * i386.c (ix86_function_specific_save): Save prefetch_sse.
1179 (ix86_function_specific_restore): Restore prefetch_sse and initialize
1180 ix86_cost/ix86_tune_cost.
1182 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1184 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1185 Support the JIT by using 0 as the language type.
1187 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
1190 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
1191 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
1192 (mark_regno_live, process_bb_lives): Pass new parameter value to
1193 make_hard_regno_born.
1195 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1197 PR rtl-optimization/63637
1198 PR rtl-optimization/60663
1199 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
1200 if elt->cost is MAX_COST for ASM_OPERANDS.
1201 (find_sets_in_insn): Fix up comment typo.
1202 (cse_insn): Don't set src_volatile for all non-volatile
1203 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
1204 or with "memory" clobber. Set elt->cost to MAX_COST
1205 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
1206 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
1208 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
1210 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
1213 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
1215 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
1216 libgcc/config/i386/elf-lib.h.
1218 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1221 * gcc.c (print_configuration): Don't print a blank line at the end
1223 (run_attempt): ... but here unstead.
1226 * omp-low.c (scan_sharing_clauses): Don't ignore
1227 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
1228 on target data/update constructs.
1230 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
1233 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
1234 (DEBUG_RELOAD): Removed define.
1235 (m32c_limit_reload_class): Enable traces with if DEBUG0.
1236 (m32c_function_arg): Added a type cast.
1237 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
1238 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
1239 * config/m32c/bitops.md (andqi3_16): Likewise.
1240 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
1241 (push_a01_l): Likewise.
1243 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1246 * main.c (main): Construct toplev instances with init_signals=true.
1247 * toplev.c (general_init): Add param "init_signals", and use it to
1248 conditionalize the calls to signal and host_hooks.extra_signals.
1249 (toplev::toplev): Add param "init_signals".
1250 (toplev::main): When invoking general_init, pass m_init_signals
1251 to control whether signal-handlers are installed.
1252 * toplev.h (toplev::toplev): Add param "init_signals".
1253 (toplev::m_init_signals): New field.
1255 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1258 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
1259 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
1260 latter may be affected by the former (e.g. on i686).
1262 2015-01-23 Martin Liska <mliska@suse.cz>
1264 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
1265 false positive during profiledbootstrap.
1267 2015-01-23 Tom de Vries <tom@codesourcery.com>
1270 * lto-opts.c (lto_write_options): Output non-explicit conservative
1272 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
1273 (append_compiler_options): Pass -fopenacc through.
1275 2015-01-23 Tom de Vries <tom@codesourcery.com>
1278 * lto-opts.c (lto_write_options): Output non-explicit conservative
1280 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
1281 (append_compiler_options): Pass -fopenmp through.
1283 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1286 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
1289 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
1290 * diagnostic.def (DK_ICE_NOBT): New kind.
1291 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
1292 like DK_ICE, but never print backtrace.
1293 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
1294 (internal_error_no_backtrace): New function.
1295 * gcc.c (execute): Use internal_error_no_backtrace instead of
1298 2015-01-22 Jeff Law <law@redhat.com>
1301 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
1302 improve code density for small immediate to memory case.
1303 (insv): Better handle bitfield assignments when the field is
1304 being set to all ones.
1305 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
1308 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1309 Jakub Jelinek <jakub@redhat.com>
1311 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
1312 for !TARGET_LIBC_PROVIDES_SSP version and
1313 -fstack-protector-{all,strong,explicit} otherwise.
1314 * config/freebsd.h (LINK_SSP_SPEC): Handle
1315 -fstack-protector-{strong,explicit}.
1317 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
1318 H.J. Lu <hongjiu.lu@intel.com>
1321 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
1324 2015-01-22 Wei Mi <wmi@google.com>
1326 PR rtl-optimization/64557
1327 * dse.c (record_store): Call get_addr for mem_addr.
1328 (check_mem_read_rtx): Likewise.
1330 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
1332 * fold-const.c (const_binop): Add early return for non-tcc_binary.
1334 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
1336 * toplev.c (init_local_tick): Process the failure when read
1337 fails for random_seed.
1339 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
1340 'pretty_name' to avoid memory overflow.
1342 2015-01-22 Richard Biener <rguenther@suse.de>
1345 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
1346 abnormal coalescing on undefined SSA names.
1348 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
1352 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
1354 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
1356 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
1359 * fold-const.c (fold_checksum_tree): Don't include value of
1360 expr->decl_with_vis.symtab_node in the checksum.
1362 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1364 * config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
1367 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
1370 * gcc.c (insert_comments): New function.
1371 (try_generate_repro): Call it.
1372 (append_text): Removed.
1374 2015-01-22 Richard Biener <rguenther@suse.de>
1376 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
1377 with IL incompatible options. Properly honor user optimize
1380 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
1382 PR rtl-optimization/64682
1383 * combine.c (distribute_notes): When moving a death note for
1384 a register that is set in the new I2, make sure to put it
1387 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
1389 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
1392 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1395 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
1396 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
1397 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
1400 * doc/invoke.texi (-fsanitize=vptr): Document.
1402 PR rtl-optimization/62078
1403 * dse.c: Include cfgcleanup.h.
1404 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
1405 anything call purge_all_dead_edges and cleanup_cfg at the end
1408 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
1410 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
1413 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1415 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
1418 2015-01-21 David Sherwood <david.sherwood@arm.com>
1419 Tejas Belagod <Tejas.Belagod@arm.com>
1421 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
1422 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
1423 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
1426 2015-01-21 David Sherwood <david.sherwood@arm.com>
1427 Tejas Belagod <Tejas.Belagod@arm.com>
1429 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
1430 (aarch64_reverse_mask): New decls.
1431 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
1432 (insn_count): New mode_attr.
1433 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
1434 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
1435 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
1436 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
1437 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
1438 (aarch64_simd_st4): New patterns.
1439 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
1440 (aarch64_reverse_mask): New functions.
1442 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
1444 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
1446 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
1447 addressing modes for BE.
1448 (aarch64_print_operand): Add 'R' specifier.
1449 (aarch64_simd_disambiguate_copy): Delete.
1450 (aarch64_simd_emit_reg_reg_move): New function.
1451 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
1452 in define_splits for structural moves.
1453 (mov<mode>): Use less restrictive predicates.
1454 (*aarch64_mov<mode>): Simplify and only allow for LE.
1455 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
1457 2015-01-21 Alan Hayward <alan.hayward@arm.com>
1459 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
1461 2015-01-21 Richard Henderson <rth@redhat.com>
1464 * ccmp.c (used_in_cond_stmt_p): Remove.
1465 (expand_ccmp_expr): Don't use it.
1467 2015-01-21 Nick Clifton <nickc@redhat.com>
1469 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
1472 2015-01-21 Richard Biener <rguenther@suse.de>
1475 * tree-core.h (builtin_info, builtin_info_type): Turn from
1476 an object with two arrays into an array of an object with
1477 decl and two flags, implicit_p and declared_p.
1478 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
1479 set_builtin_decl, set_builtin_decl_implicit_p,
1480 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
1481 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
1482 * builtins.c (builtin_info): Adjust.
1483 * gimplify.c (gimplify_addr_expr): References to builtins
1484 that have been declared by the user makes them eligible for
1485 use by the compiler. Call set_builtin_decl_implicit_p on them.
1487 2015-01-20 Jeff Law <law@redhat.com>
1490 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
1491 allow pc-relative addresses in operand predicates or constraints.
1493 2015-01-21 Bin Cheng <bin.cheng@arm.com>
1495 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
1496 neon on aarch32 processors for stringops.
1498 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1501 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
1503 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1506 * ipa-inline.c: Include lto-streamer.h
1507 (report_inline_failed_reason): Output source file differences and
1508 flags on optimization/target node mismatch.
1509 (can_inline_edge_p): Consider caller to be the outer inline function;
1510 be less restrictive about matching opimize and optimize_size attributes.
1511 (inline_account_function_p): Break out from ...
1512 (inline_small_functions): ... here.
1513 * ipa-inline-transform.c (clone_inlined_nodes): Use
1514 inline_account_function_p.
1515 (inline_call): Use optimize attribution; use inline_account_function_p.
1516 (inline_transform): Use opt_for_fn.
1517 * ipa-inline.h (inline_account_function_p): Declare.
1519 2015-01-20 Jakub Jelinek <jakub@redhat.com>
1522 * dwarf2out.c (decl_piece_node): Don't put bitsize into
1523 mode if bitsize <= 0.
1524 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
1525 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
1526 sizes and positions.
1528 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
1530 * config/nios2/nios2.c (nios2_asm_file_end): Implement
1531 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
1533 (TARGET_ASM_FILE_END): Define.
1535 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1537 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
1538 (struct tune_params): Use the enum.
1539 * arm.c (arm_*_tune): Update.
1540 (arm_option_override): Update.
1542 2015-01-20 Richard Biener <rguenther@suse.de>
1545 * ipa-reference.c (add_static_var): Inline ...
1546 (analyze_function): ... here after splitting out from ...
1547 (is_proper_for_analysis): ... this.
1549 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
1552 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
1553 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
1554 replace the conditional with it's true branch.
1555 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
1556 (arm_lra_p): Remove.
1558 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
1560 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
1562 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1564 * config/tilegx/mul-tables.c: Move symtab.h include after
1565 coretypes.h include.
1566 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
1567 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
1568 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
1569 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
1570 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1572 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
1576 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1578 PR rtl-optimization/64081
1579 * loop-iv.c (def_pred_latch_p): New function.
1580 (latch_dominating_def): Allow specific cases with non-single
1582 (iv_get_reaching_def): Likewise.
1583 (check_complex_exit_p): New function.
1584 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1585 with exits not executing on any iteration.
1587 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1590 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
1593 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1596 * i386.c (gate): Check flag_expensive_optimizations and
1598 (ix86_option_override_internal): Drop optimize_size condition
1599 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
1600 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
1602 (ix86_avx256_split_vector_move_misalign,
1603 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
1604 * sse.md (all uses of TARGET_PREFER_AVX128): Add
1605 optimize_insn_for_speed_p check.
1607 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
1609 * config/mips/mips.h (FP_ASM_SPEC): New define.
1610 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
1613 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
1616 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
1617 nullptr for insn when reaching the first insn.
1618 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
1619 (sh_insn_operands_modified_between_p): Add nullptr check.
1620 (sh_find_extending_set_of_reg): Fix log message. Don't accept
1621 sign extending mem load if the insn contains any UNSPEC or
1624 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1626 * params.def (inline-unit-growth): Drop to 15%.
1627 * invoke.texi (inline-unit-growth): Document change.
1629 2015-01-19 Martin Liska <mliska@suse.cz>
1632 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
1633 function for second argument of OBJ_TYPE_REF.
1635 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1638 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
1639 whether function is an alias.
1641 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1643 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
1646 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
1648 PR rtl-optimization/64671
1649 * lra-remat.c (operand_to_remat): Don't consider jump and call
1652 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
1654 * config/rs6000/default64.h: Include rs6000-cpus.def.
1655 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
1656 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
1657 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
1659 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
1661 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
1662 pseudo-op to specify assembler dialect.
1664 2015-01-19 Martin Liska <mliska@suse.cz>
1667 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
1668 Handle safe potentially removed nodes during filtering.
1670 2015-01-19 Martin Liska <mliska@suse.cz>
1672 * doc/extend.texi (no_icf): Add new attribute description.
1673 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
1674 where the pass attempts to merge a function with no_icf attribute.
1676 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1679 * doc/md.texi (ARM Options): Document register constraints.
1681 2015-01-19 Jiong Wang <jiong.wang@arm.com>
1682 Andrew Pinski <apinski@cavium.com>
1685 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
1686 (ashl<mode>3): Don't expand if operands[2] is not constant.
1688 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1691 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
1692 Match xor-and-xor RTL pattern.
1694 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1696 PR rtl-optimization/64081
1697 * loop-iv.c (def_pred_latch_p): New function.
1698 (latch_dominating_def): Allow specific cases with non-single
1700 (iv_get_reaching_def): Likewise.
1701 (check_complex_exit_p): New function.
1702 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1703 with exits not executing on any iteration.
1705 2015-01-19 Jakub Jelinek <jakub@redhat.com>
1707 * common.opt (fgraphite): Fix a typo.
1709 2015-01-19 Felix Yang <felix.yang@huawei.com>
1711 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
1713 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
1714 uminp, smax_nanp, smin_nanp): New builtins.
1715 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
1716 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
1717 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
1718 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
1719 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
1720 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
1721 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
1722 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
1723 vpminnms_f32): Rewrite using builtin functions.
1725 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1728 * omp-low.c (offload_symbol_decl): Remove variable.
1729 (get_offload_symbol_decl): Remove function.
1730 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
1731 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
1732 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
1733 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
1734 BUILT_IN_GOACC_UPDATE don't pass it at all.
1736 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1738 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
1741 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1743 * ipa-chkp.c (chkp_produce_thunks): Add early param
1744 to split thunks production into two passes. Keep
1745 'always_inline' function bodies after the first pass.
1746 (pass_data_ipa_chkp_early_produce_thunks): New.
1747 (pass_ipa_chkp_early_produce_thunks): New.
1748 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
1749 chkp_produce_thunks signature.
1750 (make_pass_ipa_chkp_early_produce_thunks): New.
1751 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
1752 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
1753 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
1755 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1757 * cgraph.c (cgraph_node::dump): Dump profile flags.
1759 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
1762 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
1763 reg appear first in the parallel.
1765 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1767 * ipa-reference.c (set_reference_optimization_summary,
1768 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
1770 (ignore_module_statics): New static var.
1771 (propagate_bits): If ipa-reference is disabled, do not look into local
1773 (analyze_function): Disable analysis when ipa_reference is disabled.
1774 (generate_summary): Do not dump when reference is disabled;
1775 collect vars accessed from functions with ipa-reference disabled.
1776 (get_read_write_all_from_node): When ipa-reference is disabled, use the
1778 (gate): Enable for LTO.
1779 (ignore_edge_p): New function.
1780 (propagate): Skip functions w/o ipa-reference analysis.
1781 * optc-save-gen.awk: Handle optimize_debug correctly.
1782 * opth-gen.awk: Likewise.
1783 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
1784 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
1785 fira-share-save-slots, fira-share-spill-slots,
1786 fmodulo-sched-allow-regmoves, fpartial-inlining,
1787 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
1788 ftracer, ftree-parallelize-loops, fassociative-math,
1789 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
1791 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
1792 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
1794 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
1797 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1800 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
1802 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
1804 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
1806 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
1807 Remove duplicate option listings.
1809 2015-01-18 Felix Yang <felix.yang@huawei.com>
1811 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
1812 (autofdo_source_profile::get_callsite_total_count,
1813 function_instance::get_function_instance_by_decl,
1814 string_table::get_index, string_table::get_index_by_decl,
1815 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
1816 Fix comment typos. Reformatting and minor code rearrangement.
1818 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1820 * config/rs6000/rs6000.md (probe_stack): Delete.
1821 (probe_stack_address): New.
1823 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1825 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
1826 to test for 32-bit ABIs, not !TARGET_POWERPC64.
1828 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1830 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
1831 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
1832 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
1834 (rs6000_libcall_value): Use the new function.
1836 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
1838 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
1840 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
1842 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
1843 implement a more precise life analysis for it during backward scan.
1845 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1847 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
1849 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
1851 PR rtl-optimization/52773
1852 * calls.c (emit_library_call_value): When pushing arguments use
1853 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
1854 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
1855 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
1857 2015-01-17 Jeff Law <law@redhat.com>
1859 PR rtl-optimization/32790
1860 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
1861 not ZERO_EXTEND in SET_DESTs.
1863 2015-01-17 Alan Modra <amodra@gmail.com>
1865 * cprop.c (do_local_cprop): Revert last change.
1867 2015-01-16 DJ Delorie <dj@redhat.com>
1868 Nick Clifton <nickc@redhat.com>
1870 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
1871 (addhi3_real): Likewise. Fix [HL+0] syntax.
1872 (subqi3_real): Likewise.
1873 (subhi3_real): Likewise.
1874 (cbranchqi4_real): Likewise. Allow saddr,#imm.
1875 (cbranchhi4_real): Likewise.
1876 (cbranchhi4_real_inverted): Likewise.
1877 (cbranchsi4_real_lt): Likewise.
1878 (cbranchsi4_real_ge): Likewise.
1879 (cbranchsi4_real_ge): Likewise.
1880 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
1881 (sub<mode>3_virt): Likewise.
1882 (cbranchqi4_virt): Likewise.
1883 (cbranchhi4_virt): Likewise.
1884 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
1885 always use '[reg+imm]' even when imm is zero.
1886 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
1887 (rl78_general_operand): New.
1888 (rl78_nonimmediate_operand): New.
1889 (rl78_nonfar_operand): Use them.
1890 (rl78_nonfar_nonimm_operand): Likewise.
1891 (rl78_stack_based_mem): Fix.
1892 * config/rl78/constraints.md (Ibqi): New.
1897 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
1900 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
1902 * config/rl78/constrains (Qs8): New constraint.
1903 * config/rl78/rl78.c (rl78_flags_already_set): New function.
1904 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
1905 * config/rl78/rl78-real.md (update_Z): New attribute.
1906 Update patterns to set it.
1907 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
1908 shorter compare and branch sequence can be used.
1909 (cbranchhi4_real): Likewise.
1910 (cbranchhi4_real_inverted): Likewise.
1912 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
1913 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
1915 * config/rl78/rl78.c (rl78_get_name_encoding): New.
1916 (rl78_option_override): Allow -mes0 only if C.
1917 (characterize_address): Support subregs of symbol_refs.
1918 (rl78_addr_space_address_mode): Move. Add __near.
1919 (rl78_far_p): Likewise.
1920 (rl78_addr_space_pointer_mode): Likewise.
1921 (rl78_as_legitimate_address): Likewise.
1922 (rl78_addr_space_subset_p): Likewise.
1923 (rl78_addr_space_convert): Likewise.
1924 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
1926 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
1928 (rl78_alloc_physical_registers_op1): Change logic to prefer
1929 symbol[BC] addressing.
1930 (frodata_section): New.
1931 (rl78_asm_init_sections): Initialize it.
1932 (rl78_select_section): Put __far readonly symbols in .frodata.
1933 (rl78_make_type_far): New.
1934 (rl78_insert_attributes): Force all readonly symbols to be
1936 (rl78_asm_out_integer): New.
1937 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
1938 * config/rl78/rl78.opt (-mes0): New.
1940 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
1941 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1942 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1943 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
1944 (rl78_saddr_p): New.
1945 (rl78_output_aligned_common): New.
1946 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
1947 (rl78_handle_saddr_attribute): New.
1948 (rl78_handle_naked_attribute): New.
1949 (rl78_attribute_table): Add saddr.
1950 (rl78_print_operand_1): Don't print '!' on saddr operands.
1951 (rl78_print_operand_1): Strip encodings.
1953 (rl78_strip_name_encoding): New.
1954 (rl78_attrlist_to_encoding): New.
1955 (rl78_encode_section_info): New.
1956 (rl78_asm_init_sections): New.
1957 (rl78_select_section): New.
1958 (rl78_output_labelref): New.
1959 (rl78_output_aligned_common): New.
1960 (rl78_asm_out_integer): New.
1961 (rl78_asm_ctor_dtor): New.
1962 (rl78_asm_constructor): New.
1963 (rl78_asm_destructor): New.
1965 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
1966 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
1967 (transcode_memory_rtx): Update.
1968 (rl78_expand_epilogue): Use A_REG instead of 0.
1970 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1972 * config/arm/arm-protos.h (struct tune_params): New field
1973 sched_autopref_queue_depth.
1974 * config/arm/arm.c (sched-int.h): Include header.
1975 (arm_first_cycle_multipass_dfa_lookahead_guard,)
1976 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
1977 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
1978 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
1979 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
1980 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
1981 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
1982 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
1983 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
1984 * config/arm/t-arm (arm.o): Update.
1985 * haifa-sched.c (update_insn_after_change): Update.
1986 (rank_for_schedule): Use auto-prefetcher model, if requested.
1987 (autopref_multipass_init): New static function.
1988 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
1989 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
1990 variable for debug dumps.
1991 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
1992 (autopref_multipass_dfa_lookahead_guard): New global function that
1993 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
1994 (init_h_i_d): Update.
1995 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
1996 * sched-int.h (enum autopref_multipass_data_status): New const enum.
1997 (autopref_multipass_data_): Structure for auto-prefetcher data.
1998 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
1999 (struct _haifa_insn_data:autopref_multipass_data): New field.
2000 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
2001 (autopref_multipass_dfa_lookahead_guard): Declare.
2003 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2005 * rtlanal.c (get_base_term): Handle SCRATCH.
2007 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2009 * config/aarch64/aarch64.c
2010 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
2011 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2013 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
2014 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2016 2015-01-17 Alan Modra <amodra@gmail.com>
2018 * cprop.c (do_local_cprop): Disallow replacement of fixed
2021 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2024 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
2027 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2029 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
2030 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
2032 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2034 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
2035 * config/arm/thumb1.md: ... Here.
2037 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2039 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
2040 TImode for TARGET_32BIT.
2042 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2044 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
2045 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
2047 (rs6000_abi_word_mode): New function.
2049 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2051 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
2052 instead of UNITS_PER_WORD to describe the size of stack slots.
2054 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2056 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
2057 as rs6000_promote_function_mode. Move comment to there.
2058 (rs6000_promote_function_mode): New function.
2060 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2062 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
2063 -mpowerpc64 is active.
2065 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
2068 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
2071 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
2073 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
2074 introduced in revision 219724.
2076 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2077 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2080 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
2081 destination is not a GP reg.
2082 (*movdi_aarch64): Likewise.
2084 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
2087 * config/rs6000/default64.h: Revert ISA change.
2089 2015-01-16 Richard Biener <rguenther@suse.de>
2092 * tree-ssa-uninit.c: Include tree-cfg.h.
2093 (MAX_SWITCH_CASES): New define.
2094 (convert_control_dep_chain_into_preds): Handle switch statements.
2095 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
2096 (normalize_one_pred_1): Do not split bit-manipulations.
2099 2015-01-16 Richard Biener <rguenther@suse.de>
2101 PR tree-optimization/64568
2102 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
2103 complex load rewriting for TARGET_MEM_REFs.
2105 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
2107 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
2109 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
2112 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
2114 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
2115 (aarch64_lra_p): Remove.
2117 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
2120 * ipa-chkp.h (chkp_instrumentable_p): New.
2121 * ipa-chkp.c: Include tree-inline.h.
2122 (chkp_instrumentable_p): New.
2123 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
2124 Fix processing of not instrumentable functions.
2125 (chkp_versioning): Use chkp_instrumentable_p. Warn about
2126 not instrumentable functions.
2127 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
2128 chkp_instrumentable_p.
2129 * tree-inline.h (copy_forbidden): New.
2130 * tree-inline.c (copy_forbidden): Not static anymore.
2132 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2134 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
2137 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
2139 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
2140 type OP_OUT to OP_INOUT.
2142 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
2144 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
2145 (high x) y) to y if x and y have the same base.
2147 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
2149 * config/arm/cortex-a57.md: New.
2150 * config/aarch64/aarch64.md: Include it.
2151 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
2152 * config/aarch64/aarch64-tune.md: Regenerate.
2154 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
2157 * ccmp.c (expand_ccmp_next): New function.
2158 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
2159 and compare insn sequence.
2160 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2161 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
2162 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
2163 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
2164 (*ccmp_ior): Changed to ccmp_ior<mode>.
2165 (cmp<mode>): New pattern.
2166 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
2168 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
2170 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
2172 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
2173 _mm256_bsrli_epi128): New.
2174 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
2176 2015-01-15 Jiong Wang <jiong.wang@arm.com>
2178 * expmed.c (store_bit_field_using_insv): Improve warning message.
2179 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
2181 2015-01-15 Jiong Wang <jiong.wang@arm.com>
2183 PR rtl-optimization/64011
2184 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
2185 there is partial overflow.
2187 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2189 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
2191 (nds32_expand_epilogue_v3pop): Likewise.
2192 * config/nds32/nds32.md (sibcall): Define this for sibling call
2194 (sibcall_register): Likewise.
2195 (sibcall_immediate): Likewise.
2196 (sibcall_value): Likewise.
2197 (sibcall_value_register): Likewise.
2198 (sibcall_value_immediate): Likewise.
2199 (sibcall_epilogue): Likewise.
2200 (epilogue): Pass false to indicate this is not a sibcall epilogue.
2201 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
2202 (nds32_expand_epilogue_v3pop): Likewise.
2204 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2206 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
2207 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
2208 (return_internal): New.
2209 (return): Define this named pattern.
2210 (simple_return): Define this named pattern.
2211 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
2212 pattern instead of unspec_volatile_func_return.
2213 (nds32_expand_epilogue_v3pop): Likewise.
2214 (nds32_can_use_return_insn): New function.
2216 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2218 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
2219 * config/nds32/nds32.md (pop25return): New.
2220 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
2221 pop25return pattern.
2223 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2225 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
2226 -mforbid-fp-as-gp, and -mex9 options.
2228 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2230 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
2231 remove -mgp-direct option.
2233 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2235 * doc/invoke.texi (--param early-inlining-insns): Update default value.
2236 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
2238 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2240 * ipa-inline.c (inline_small_functions): Work around hints
2243 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
2246 * doc/invoke.texi (Option Summary): Document new Nios II
2248 (Nios II Options): Likewise.
2249 * config/nios2/nios2.opt: Add -mgpopt= option support.
2250 Modify existing -mgpopt and -mno-gpopt options to be aliases.
2251 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
2252 * config/nios2/nios2.c (nios2_option_override): Adjust
2254 (nios2_in_small_data_p): Return true for explicit small data
2255 sections even with -G0.
2256 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
2259 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2262 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
2264 (inline_call): Fix removal of aliases.
2266 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2268 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
2269 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
2270 * opts.c (common_handle_option): Add -fsanitize=vptr.
2271 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
2272 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
2273 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
2274 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
2275 (ubsan_expand_vptr_ifn): New prototype.
2276 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
2277 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
2278 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
2279 expand_LOOP_VECTORIZED): Make argument nameless, remove
2281 (expand_UBSAN_VPTR): New function.
2282 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
2284 (UBSAN_VPTR): New internal function.
2285 * sanopt.c (tree_map_traits): Renamed to ...
2286 (sanopt_tree_map_traits): ... this.
2287 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
2288 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
2289 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
2290 (maybe_optimize_ubsan_vptr_ifn): New function.
2291 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
2292 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
2294 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
2295 internal calls like pure functions for aliasing, even when they
2296 have other side-effects that prevent making them ECF_PURE.
2297 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
2298 (ubsan_expand_vptr_ifn): New function.
2300 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
2302 PR rtl-optimization/64110
2303 * stmt.c (parse_output_constraint): Process '^' and '$'.
2304 (parse_input_constraint): Ditto.
2305 * lra-constraints.c (process_alt_operands): Process the new
2307 * ira-costs.c (record_reg_classes): Process the new constraint
2309 * genoutput.c (indep_constraints): Add '^' and '$'.
2310 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
2311 * doc/md.texi: Add description of the new constraints.
2313 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2314 Bernd Schmidt <bernds@codesourcery.com>
2315 Cesar Philippidis <cesar@codesourcery.com>
2316 James Norris <jnorris@codesourcery.com>
2317 Tom de Vries <tom@codesourcery.com>
2318 Ilmir Usmanov <i.usmanov@samsung.com>
2319 Dmitry Bocharnikov <dmitry.b@samsung.com>
2320 Evgeny Gavrin <e.gavrin@samsung.com>
2321 Jakub Jelinek <jakub@redhat.com>
2323 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
2324 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
2325 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
2327 * builtins.c: Include "gomp-constants.h".
2328 (expand_builtin_acc_on_device): New function.
2329 (expand_builtin, is_inexpensive_builtin): Handle
2330 BUILT_IN_ACC_ON_DEVICE.
2331 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
2333 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
2335 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
2336 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
2337 i386/intelmic-offload.h.
2338 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
2339 to libgomp and its dependencies.
2340 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
2341 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2342 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2343 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2344 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2345 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2346 * doc/generic.texi: Update for OpenACC changes.
2347 * doc/gimple.texi: Likewise.
2348 * doc/invoke.texi: Likewise.
2349 * doc/sourcebuild.texi: Likewise.
2350 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
2351 GF_OMP_FOR_KIND_OACC_LOOP.
2352 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
2353 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
2354 GF_OMP_TARGET_KIND_OACC_UPDATE,
2355 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2357 * gimple.c: Update comments for OpenACC changes.
2358 * gimple.def: Likewise.
2359 * gimple.h: Likewise.
2360 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
2361 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2362 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
2363 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2364 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
2366 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
2367 * gimplify.c: Include "gomp-constants.h".
2368 Update comments for OpenACC changes.
2369 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
2370 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
2371 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2372 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2373 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2374 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2375 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
2376 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2377 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2379 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
2380 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2381 OMP_CLAUSE_SET_MAP_KIND.
2382 (gimplify_oacc_cache): New function.
2383 (gimplify_omp_for): Handle OACC_LOOP.
2384 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
2386 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
2387 OACC_EXIT_DATA, OACC_UPDATE.
2388 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
2389 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
2390 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
2391 (gimplify_body): Consider flag_openacc next to flag_openmp.
2392 * lto-streamer-out.c: Include "gomp-constants.h".
2393 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
2394 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
2395 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
2396 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
2397 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
2398 (BUILT_IN_ACC_ON_DEVICE): New builtins.
2399 * omp-low.c: Include "gomp-constants.h".
2400 Update comments for OpenACC changes.
2401 (struct omp_context): Add reduction_map, gwv_below, gwv_this
2403 (extract_omp_for_data, use_pointer_for_field, install_var_field)
2404 (new_omp_context, delete_omp_context, scan_sharing_clauses)
2405 (create_omp_child_function, scan_omp_for, scan_omp_target)
2406 (check_omp_nesting_restrictions, lower_reduction_clauses)
2407 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
2408 Update for OpenACC changes.
2409 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
2410 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
2411 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
2412 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2413 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
2414 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
2416 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2417 Handle GF_OMP_FOR_KIND_OACC_LOOP.
2418 (expand_omp_target, lower_omp_target): Handle
2419 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2420 GF_OMP_TARGET_KIND_OACC_UPDATE,
2421 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
2422 GF_OMP_TARGET_KIND_OACC_DATA.
2423 (pass_expand_omp::execute, execute_lower_omp)
2424 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
2426 (offload_symbol_decl): New variable.
2427 (oacc_get_reduction_array_id, oacc_max_threads)
2428 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
2429 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
2430 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
2431 (oacc_gimple_assign, oacc_initialize_reduction_data)
2432 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
2434 (is_targetreg_ctx): Remove function.
2435 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
2436 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
2437 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2438 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
2439 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
2440 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
2441 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
2442 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
2443 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
2444 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
2445 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
2446 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
2447 * tree-core.h: Update comments for OpenACC changes.
2448 (enum omp_clause_map_kind): Remove.
2449 (struct tree_omp_clause): Change type of map_kind member from enum
2450 omp_clause_map_kind to unsigned char.
2451 * tree-inline.c: Update comments for OpenACC changes.
2452 * tree-nested.c: Likewise. Include "gomp-constants.h".
2453 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
2454 (convert_tramp_reference_stmt, convert_gimple_call): Update for
2455 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2456 OMP_CLAUSE_SET_MAP_KIND.
2457 * tree-pretty-print.c: Include "gomp-constants.h".
2458 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
2459 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
2460 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
2461 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
2462 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2463 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
2464 instead of OMP_CLAUSE_MAP_*.
2465 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
2466 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
2467 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2468 * tree-streamer-in.c: Include "gomp-constants.h".
2469 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
2470 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
2471 * tree-streamer-out.c: Include "gomp-constants.h".
2472 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
2474 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
2475 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
2476 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
2477 * tree.c (omp_clause_num_ops): Update accordingly.
2478 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
2480 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
2481 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
2482 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
2483 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
2484 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
2485 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
2486 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
2487 (OMP_CLAUSE_SET_MAP_KIND): New macro.
2488 * varpool.c (varpool_node::get_create): Consider flag_openacc next
2490 * config/i386/intelmic-offload.h: New file.
2491 * config/nvptx/offload.h: Likewise.
2493 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2495 * explow.h: Remove duplicate contents.
2496 * dojump.h: Likewise.
2498 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
2500 * arm.c (arm_xgene_tune): Add default initializer for instruction
2503 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2507 * ipa.c (symbol_table::remove_unreachable_nodes):
2508 Do not put abstract origins into boundary.
2510 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
2512 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
2513 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
2515 2015-01-15 Steve Ellcey <sellcey@mips.com>
2517 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
2518 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
2519 builtins.def, and chkp-builtins.def.
2521 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
2523 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
2526 2015-01-15 Richard Biener <rguenther@suse.de>
2528 PR tree-optimization/61743
2529 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
2530 information on PHIs for some simple cases.
2532 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2534 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
2536 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
2537 * config/arm/arm-cores.def (xgene1): New entry.
2538 * config/arm/arm-tables.opt: Regenerate.
2539 * config/arm/arm-tune.md: Regenerate.
2540 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
2542 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2544 * tree-if-conv.c: Include hash-map.h.
2545 (aggressive_if_conv): New variable.
2546 (fold_build_cond_expr): Add simplification of non-zero condition.
2547 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
2548 destination block is not always executed.
2549 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
2550 than two predecessors if AGGRESSIVE_IF_CONV is true.
2551 (if_convertible_stmt_p): Fix commentary.
2552 (all_preds_critical_p): New function.
2553 (has_pred_critical_p): New function.
2554 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
2555 BB can have more than two predecessors and all incoming edges can be
2557 (predicate_bbs): Skip predication for loop exit block, use build2_loc
2558 to compute predicate for true edge.
2559 (find_phi_replacement_condition): Delete this function.
2560 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
2561 Allow interchange PHI arguments if EXTENDED is false.
2562 Change check that block containing reduction statement candidate
2563 is predecessor of phi-block since phi may have more than two arguments.
2564 (phi_args_hash_traits): New helper structure.
2565 (struct phi_args_hash_traits): New type.
2566 (phi_args_hash_traits::hash): New function.
2567 (phi_args_hash_traits::equal_keys): New function.
2568 (gen_phi_arg_condition): New function.
2569 (predicate_scalar_phi): Add handling of phi nodes with more than two
2570 arguments, delete COND and TRUE_BB arguments, insert body of
2571 find_phi_replacement_condition to predicate ordinary phi nodes.
2572 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
2573 delete call of find_phi_replacement_condition and invoke
2574 predicate_scalar_phi with two arguments.
2575 (insert_gimplified_predicates): Add assert that non-predicated block
2576 don't have statements to insert.
2577 (ifcvt_split_critical_edges): New function.
2578 (ifcvt_split_def_stmt): Likewise.
2579 (ifcvt_walk_pattern_tree): Likewise.
2580 (stmt_is_root_of_bool_pattern): Likewise.
2581 (ifcvt_repair_bool_pattern): Likewise.
2582 (ifcvt_local_dce): Likewise.
2583 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
2584 is copy of inner or outer loop force_vectorize field, invoke
2585 ifcvt_split_critical_edges, ifcvt_local_dce and
2586 ifcvt_repair_bool_pattern for aggressive if-conversion.
2588 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
2590 * config/aarch64/aarch64.md: Include xgene1.md.
2591 * config/aarch64/xgene1.md: New file.
2593 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2595 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
2596 xgene1 (APM XGene-1) core definition.
2597 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
2598 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
2599 * doc/invoke.texi: Document -mcpu=xgene1.
2601 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2603 * dojump.h: New header file.
2604 * explow.h: Likewise.
2605 * expr.h: Remove includes.
2606 Move expmed.c prototypes to expmed.h.
2607 Move dojump.c prototypes to dojump.h.
2608 Move alias.c prototypes to alias.h.
2609 Move explow.c prototypes to explow.h.
2610 Move calls.c prototypes to calls.h.
2611 Move emit-rtl.c prototypes to emit-rtl.h.
2612 Move varasm.c prototypes to varasm.h.
2613 Move stmt.c prototypes to stmt.h.
2614 (saved_pending_stack_adjust): Move to dojump.h.
2615 (adjust_address): Move to explow.h.
2616 (adjust_address_nv): Move to emit-rtl.h.
2617 (adjust_bitfield_address): Likewise.
2618 (adjust_bitfield_address_size): Likewise.
2619 (adjust_bitfield_address_nv): Likewise.
2620 (adjust_automodify_address_nv): Likewise.
2621 * explow.c (expr_size): Move to expr.c.
2622 (int_expr_size): Likewise.
2623 (tree_expr_size): Likewise.
2624 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2625 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2626 * genemit.c (main): Generate includes statistics.h, real.h,
2627 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
2629 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
2630 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
2631 explow.h, emit-rtl.h, stmt.h.
2632 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
2633 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
2634 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
2635 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
2636 emit-rtl.h, varasm.h, stmt.h.
2637 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
2638 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
2639 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
2640 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
2641 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2642 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
2643 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
2644 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
2645 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
2646 tm.h tree.h varasm.h vec.h wide-int.h.
2647 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2648 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2649 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
2650 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
2651 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
2652 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
2653 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
2654 * loop-iv.c: Likewise.
2655 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
2656 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
2657 statistics.h stmt.h tree.h varasm.h wide-int.h.
2658 * lra-constraints.c: Likewise.
2659 * lra-eliminations.c: Likewise.
2660 * lra-lives.c: Likewise.
2661 * lra-remat.c: Likewise.
2662 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2663 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
2664 statistics.h stmt.h tree.h varasm.h wide-int.h.
2665 * hw-doloop.c: Likewise.
2666 * ira-color.c: Likewise.
2667 * ira-emit.c: Likewise.
2668 * loop-doloop.c: Likewise.
2669 * loop-invariant.c: Likewise.
2670 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2671 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
2672 statistics.h stmt.h tree.h varasm.h wide-int.h.
2673 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
2674 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
2675 statistics.h stmt.h tree.h varasm.h wide-int.h.
2676 * combine-stack-adj.c: Likewise.
2679 * ifcvt.c: Likewise.
2680 * ira-costs.c: Likewise.
2682 * lra-coalesce.c: Likewise.
2683 * lra-spills.c: Likewise.
2684 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2685 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
2686 stmt.h varasm.h wide-int.h.
2687 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2688 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2690 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
2691 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
2692 statistics.h stmt.h varasm.h wide-int.h.
2693 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
2694 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
2695 varasm.h wide-int.h.
2696 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
2697 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2698 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
2699 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
2700 statistics.h stmt.h.
2701 * config/tilepro/tilepro.c: Likewise.
2702 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
2703 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
2704 * config/pdp11/pdp11.c: Likewise.
2705 * config/xtensa/xtensa.c: Likewise.
2706 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
2707 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2709 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2710 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2711 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
2712 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2713 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2714 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
2715 * rtl-chkp.c: Likewise.
2716 * tree-chkp-opt.c: Likewise.
2717 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
2718 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2719 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
2720 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2721 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2722 statistics.h stmt.h.
2723 * tree-vect-data-refs.c: Likewise.
2724 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
2725 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2726 rtl.h statistics.h stmt.h varasm.h.
2727 * internal-fn.c: Likewise.
2728 * ipa-icf-gimple.c: Likewise.
2729 * lto-section-out.c: Likewise.
2730 * tree-data-ref.c: Likewise.
2731 * tree-nested.c: Likewise.
2732 * tree-outof-ssa.c: Likewise.
2733 * tree-predcom.c: Likewise.
2734 * tree-pretty-print.c: Likewise.
2735 * tree-scalar-evolution.c: Likewise.
2736 * tree-ssa-strlen.c: Likewise.
2737 * tree-vect-loop.c: Likewise.
2738 * tree-vect-patterns.c: Likewise.
2739 * tree-vect-slp.c: Likewise.
2740 * tree-vect-stmts.c: Likewise.
2742 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2743 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
2745 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
2746 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2747 statistics.h stmt.h varasm.h.
2748 * loop-unroll.c: Likewise.
2749 * ubsan.c: Likewise.
2750 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
2751 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
2753 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2754 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
2755 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
2756 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2757 statistics.h stmt.h.
2758 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
2759 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2760 statistics.h stmt.h varasm.h.
2761 * gimple-match-head.c: Likewise.
2762 * lto-cgraph.c: Likewise.
2763 * lto-section-in.c: Likewise.
2764 * lto-streamer-in.c: Likewise.
2765 * lto-streamer-out.c: Likewise.
2766 * tree-affine.c: Likewise.
2767 * tree-cfg.c: Likewise.
2768 * tree-cfgcleanup.c: Likewise.
2769 * tree-if-conv.c: Likewise.
2770 * tree-into-ssa.c: Likewise.
2771 * tree-ssa-alias.c: Likewise.
2772 * tree-ssa-copyrename.c: Likewise.
2773 * tree-ssa-dse.c: Likewise.
2774 * tree-ssa-forwprop.c: Likewise.
2775 * tree-ssa-live.c: Likewise.
2776 * tree-ssa-math-opts.c: Likewise.
2777 * tree-ssa-pre.c: Likewise.
2778 * tree-ssa-sccvn.c: Likewise.
2779 * tree-tailcall.c: Likewise.
2780 * tree-vect-generic.c: Likewise.
2781 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2782 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
2783 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2784 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
2785 * varasm.c: Likewise.
2786 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2787 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
2789 * init-regs.c: Likewise.
2791 * omp-low.c: Likewise.
2792 * stack-ptr-mod.c: Likewise.
2793 * tree-ssa-reassoc.c: Likewise.
2794 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2795 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
2797 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2798 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
2799 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2800 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
2801 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2802 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
2803 * tree-ssa-phiopt.c: Likewise.
2804 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2805 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2806 * config/fr30/fr30.c: Likewise.
2807 * config/frv/frv.c: Likewise.
2809 * final.c: Likewise.
2810 * optabs.c: Likewise.
2811 * passes.c: Likewise.
2812 * simplify-rtx.c: Likewise.
2814 * toplev.c: Likewise.
2815 * var-tracking.c: Likewise.
2816 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2817 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2818 * lower-subreg.c: Likewise.
2819 * postreload-gcse.c: Likewise.
2821 * reginfo.c: Likewise.
2822 * store-motion.c: Likewise.
2823 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2824 fixed-value.h hashtab.h real.h stmt.h varasm.h.
2825 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2826 fixed-value.h hashtab.h statistics.h stmt.h.
2827 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2828 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2829 * except.c: Likewise.
2830 * explow.c: Likewise.
2831 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2832 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
2834 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2835 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
2836 * tree-ssa-structalias.c: Likewise.
2837 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2838 fixed-value.h insn-config.h real.h statistics.h.
2839 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2840 fixed-value.h insn-config.h real.h statistics.h stmt.h.
2841 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2842 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2843 * cfgbuild.c: Likewise.
2844 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2845 fixed-value.h real.h rtl.h statistics.h stmt.h.
2846 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2847 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2848 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2849 fixed-value.h real.h statistics.h stmt.h.
2850 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2851 fixed-value.h real.h statistics.h stmt.h varasm.h.
2852 * cprop.c: Likewise.
2853 * modulo-sched.c: Likewise.
2854 * postreload.c: Likewise.
2855 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2856 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
2857 statistics.h stmt.h varasm.h.
2858 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
2859 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2860 rtl.h statistics.h stmt.h varasm.h.
2861 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
2862 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
2864 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2865 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
2867 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
2868 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
2870 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
2871 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2872 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2873 function.h real.h statistics.h stmt.h varasm.h.
2874 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2875 insn-config.h real.h statistics.h stmt.h.
2876 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2877 statistics.h stmt.h.
2878 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
2879 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
2880 statistics.h stmt.h varasm.h.
2881 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
2882 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
2883 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2884 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
2885 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
2886 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2887 statistics.h stmt.h varasm.h.
2888 * ipa-polymorphic-call.c: Likewise.
2889 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
2890 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2891 statistics.h stmt.h.
2892 * config/c6x/c6x.c: Likewise.
2893 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
2894 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2895 statistics.h stmt.h varasm.h.
2896 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
2897 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
2899 * ipa-split.c: Likewise.
2900 * tree-eh.c: Likewise.
2901 * tree-ssa-dce.c: Likewise.
2902 * tree-ssa-loop-niter.c: Likewise.
2903 * tree-vrp.c: Likewise.
2904 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
2905 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
2907 * config/nds32/nds32-fp-as-gp.c: Likewise.
2908 * config/nds32/nds32-intrinsic.c: Likewise.
2909 * config/nds32/nds32-isr.c: Likewise.
2910 * config/nds32/nds32-md-auxiliary.c: Likewise.
2911 * config/nds32/nds32-memory-manipulation.c: Likewise.
2912 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2913 * config/nds32/nds32-predicates.c: Likewise.
2914 * config/nds32/nds32.c: Likewise.
2915 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
2916 fixed-value.h hashtab.h real.h statistics.h.
2917 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
2918 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2919 * config/arm/arm.c: Likewise.
2920 * config/avr/avr.c: Likewise.
2921 * config/bfin/bfin.c: Likewise.
2922 * config/h8300/h8300.c: Likewise.
2923 * config/i386/i386.c: Likewise.
2924 * config/ia64/ia64.c: Likewise.
2925 * config/iq2000/iq2000.c: Likewise.
2926 * config/m32c/m32c.c: Likewise.
2927 * config/m32r/m32r.c: Likewise.
2928 * config/m68k/m68k.c: Likewise.
2929 * config/mcore/mcore.c: Likewise.
2930 * config/mep/mep.c: Likewise.
2931 * config/mips/mips.c: Likewise.
2932 * config/mn10300/mn10300.c: Likewise.
2933 * config/moxie/moxie.c: Likewise.
2934 * config/pa/pa.c: Likewise.
2935 * config/rl78/rl78.c: Likewise.
2936 * config/rx/rx.c: Likewise.
2937 * config/s390/s390.c: Likewise.
2938 * config/sh/sh.c: Likewise.
2939 * config/sparc/sparc.c: Likewise.
2940 * config/spu/spu.c: Likewise.
2941 * config/stormy16/stormy16.c: Likewise.
2942 * config/v850/v850.c: Likewise.
2943 * config/vax/vax.c: Likewise.
2944 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
2945 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2946 * config/msp430/msp430.c: Likewise.
2947 * predict.c: Likewise.
2948 * value-prof.c: Likewise.
2949 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
2950 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
2951 * config/microblaze/microblaze.c: Likewise.
2952 * config/nios2/nios2.c: Likewise.
2953 * config/rs6000/rs6000.c: Likewise.
2954 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2955 insn-config.h real.h rtl.h statistics.h stmt.h.
2956 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2957 insn-config.h real.h statistics.h stmt.h.
2958 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
2959 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2960 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
2961 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2962 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
2963 fixed-value.h real.h statistics.h stmt.h.
2964 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
2965 fixed-value.h statistics.h stmt.h.
2966 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
2969 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2971 * gengtype.c (create_user_defined_type): Workaround
2972 -Wmaybe-uninitialized false positives.
2973 * cse.c (fold_rtx): Likewise.
2974 * loop-invariant.c (gain_for_invariant): Likewise.
2976 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
2978 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
2979 set the memory attributes in all cases but clear MEM_EXPR if need be.
2981 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2983 PR tree-optimization/64434
2984 * cfgexpand.c (reorder_operands): New function.
2985 (expand_gimple_basic_block): Insert call of reorder_operands if
2988 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
2990 * config/mips/micromips.md (*swp): Remove explicit parallel.
2991 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
2992 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
2993 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
2994 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
2995 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
2996 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
2997 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
2998 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
2999 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
3000 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
3001 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
3002 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
3003 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
3004 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
3005 (mips_wrdsp): Likewise.
3006 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
3008 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
3009 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
3010 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
3011 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
3012 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
3013 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
3014 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
3015 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
3016 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
3018 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3020 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
3021 (mips_print_operand): Support 'y' to print exact log2 in decimal
3023 * config/mips/mips.h (ISA_HAS_LSA): New define.
3024 (ISA_HAS_DLSA): Likewise.
3025 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
3026 * config/mips/predicates.md (const_immlsa_operand): New predicate.
3028 2015-01-15 Martin Liska <mliska@suse.cz>
3031 * optc-save-gen.awk: Add support for array types.
3033 2015-01-15 Richard Biener <rguenther@suse.de>
3036 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
3037 for MEM_REF access functions with the same base can never partially
3040 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
3042 * common.opt: New option -fstack-protector-explicit.
3043 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
3044 (stack_protect_decl_phase): Handle stack_protect attribute for
3045 explicit stack protection requests.
3046 (expand_used_vars): Similarly.
3047 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
3048 * doc/extend.texi: Add documentation for "stack_protect" attribute.
3049 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
3051 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
3054 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
3056 (sh_extending_set_of_reg): New struct.
3057 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
3058 sh_remove_reg_dead_or_unused_notes): New Declarations.
3059 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
3060 sh_find_extending_set_of_reg, sh_split_tst_subregs,
3061 sh_extending_set_of_reg::use_as_extended_reg): New functions.
3062 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
3063 convert to insn_and_split and use new function sh_split_tst_subregs.
3065 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
3067 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
3069 (Optimization Options): Move -fuse-ld documentation to...
3070 (Link Options): ...here.
3072 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3074 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
3076 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
3077 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
3078 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
3079 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
3080 instead of ZR for the memory operand of LL/SC.
3081 (compare_and_swap_12, sync_add<mode>): Likewise.
3082 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
3083 (sync_new_<optab>_12, sync_nand_12): Likewise.
3084 (sync_old_nand_12, sync_new_nand_12): Likewise.
3085 (sync_sub<mode>, sync_old_add<mode>): Likewise.
3086 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
3087 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
3088 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
3089 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
3090 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
3091 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
3092 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
3093 * doc/md.texi (ZC): Update description.
3095 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
3097 * builtins.c (expand_builtin_atomic_exchange): Remove error when
3098 memory model is CONSUME.
3099 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
3100 expand_builtin_atomic_store): Change invalid memory model errors to
3102 (expand_builtin_atomic_clear): Change invalid model errors to warnings
3103 and issue warning for CONSUME.
3105 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
3107 * lto-cgraph: Update function comments for
3108 lto_symtab_encoder_encode_*.
3110 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
3112 * Makefile.in (site.exp): Do not set ENABLE_LTO.
3114 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
3116 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
3117 * lto-cgraph.c (select_what_to_stream): Remove argument, use
3118 lto_stream_offload_p instead.
3119 * lto-streamer.h (select_what_to_stream): Remove argument.
3120 * passes.c (ipa_write_summaries): Likewise.
3121 * tree-pass.h (ipa_write_summaries): Likewise.
3123 2015-01-14 Richard Biener <rguenther@suse.de>
3125 PR tree-optimization/59354
3126 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
3127 groups larger than the slp group size as having gaps.
3129 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
3132 * builtins.c (get_memmodel): Promote consume to acquire always.
3134 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3137 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
3140 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3143 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
3145 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
3146 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
3147 AVX512VBMI, as it implies AVX512BW.
3149 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3152 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
3153 (vec_unpacks_hi_v16sf): Ditto.
3155 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3157 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
3160 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3162 * doc/invoke.texi (mapcs): Mention deprecation.
3163 (mapcs-frame): Likewise.
3165 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3168 * config/arm/arm.c (callee_saved_reg_p): Define.
3169 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
3170 register is callee saved instead of !call_used_regs[reg].
3171 (thumb1_compute_save_reg_mask): Likewise.
3173 2015-01-14 Hale Wang <hale.wang@arm.com>
3175 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
3178 2015-01-14 Richard Biener <rguenther@suse.de>
3181 * tree-inline.c (insert_debug_decl_map): Check destination
3182 function MAY_HAVE_DEBUG_STMTS.
3183 (insert_init_debug_bind): Likewise.
3184 (insert_init_stmt): Remove redundant check.
3185 (remap_gimple_stmt): Drop debug stmts if the destination
3186 function has var-tracking assignments disabled.
3188 2015-01-14 Martin Liska <mliska@suse.cz>
3190 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
3191 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
3193 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3196 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
3197 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
3199 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3201 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
3202 level from an ARCH; do not inject the default.
3203 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
3204 MIPS_ISA_LEVEL_SPEC.
3205 (MIPS_ISA_NAN2008_SPEC): Update comment.
3206 (BASE_DRIVER_SELF_SPECS): Likewise.
3207 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
3208 MIPS_DEFAULT_ISA_LEVEL_SPEC.
3209 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
3210 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
3211 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
3213 2015-01-14 Richard Biener <rguenther@suse.de>
3215 PR tree-optimization/64493
3216 PR tree-optimization/64495
3217 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
3218 assign the proper vectorized PHI to the inner loop exit PHIs.
3220 2015-01-14 Joey Ye <joey.ye@arm.com>
3222 * config/arm/arm.c (arm_compute_save_reg_mask):
3223 Do not save lr in case of tail call.
3224 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
3226 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
3228 * tree-vrp.c (check_array_ref): Emit more warnings
3229 for warn_array_bounds >= 2.
3230 * common.opt: New option -Warray-bounds=.
3231 * doc/invoke.texi: Document -Warray-bounds=.
3233 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
3235 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
3236 (mforbid-fp-as-gp): Remove.
3238 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
3239 (nds32_symbol_load_store_p): Remove.
3240 (nds32_fp_as_gp_check_available): Clean up implementation.
3241 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
3243 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
3244 fp-as-gp and ex9 cases.
3246 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3248 * tree-profile.c (init_ic_make_global_vars): Drop workaround
3249 for bintuils bug 14342.
3250 (init_ic_make_global_vars): Likewise.
3251 (gimple_init_edge_profiler): Likewise.
3252 (gimple_gen_ic_func_profiler): Likewise.
3254 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3256 * ipa-inline.c (inline_small_functions): Swap the operands in
3259 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3262 * ipa-inline-analysis.c (node_growth_cache): Remove.
3263 (initialize_growth_caches): Do not initialize it.
3264 (free_growth_caches): Do not free it.
3265 (do_estimate_growth): Rename to ...
3266 (estimate_growth): ... this one; drop growth cache code.
3267 (growth_likely_positive): Always go the heuristics way.
3268 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
3269 (reset_edge_caches): Do not reset node growth.
3270 (heap_edge_removal_hook): Do not maintain cache.
3271 (inline_small_functions): Likewise; strenghten sanity check.
3272 (ipa_inline): Do not maintain caches.
3273 * ipa-inline.h (node_growth_cache): Remove.
3274 (do_estimate_growth): Remove to ...
3275 (estimate_growth): this one; remove inline version.
3276 (reset_node_growth_cache): Remove.
3278 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3281 * ipa-inline.c (inline_small_functions): Update callee keys after
3282 resolving speculation
3283 (inline_small_functions): Always check monotonicity of the queue.
3285 2015-01-13 Marek Polacek <polacek@redhat.com>
3288 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
3290 2015-01-13 Jakub Jelinek <jakub@redhat.com>
3292 PR rtl-optimization/64286
3293 * ree.c (combine_reaching_defs): Move part of comment earlier,
3294 remove !SCALAR_INT_MODE_P check.
3295 (add_removable_extension): Don't add vector mode
3296 extensions if all uses of the source register aren't the same
3299 2015-01-13 Renlin Li <renlin.li@arm.com>
3301 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
3302 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
3304 2015-01-13 Martin Liska <mliska@suse.cz>
3306 * ipa-icf.c (sem_function::equals_private): Call new functions
3307 cl_target_option_print_diff and cl_optimization_print_diff.
3308 * optc-save-gen.awk (cl_target_option_print_diff): New function.
3309 (cl_optimization_print_diff): Likewise.
3310 * opth-gen.awk: Likewise.
3312 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
3314 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
3315 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
3316 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
3317 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
3318 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
3319 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
3321 2015-01-13 Andrew Pinski <apinski@cavium.com>
3323 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
3324 instead of src mode.
3326 2015-01-13 Richard Biener <rguenther@suse.de>
3329 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
3332 2015-01-13 Andrew Pinski <apinski@cavium.com>
3334 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
3336 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
3338 2015-01-13 Jakub Jelinek <jakub@redhat.com>
3341 * cfgexpand.c (expand_computed_goto): Don't call
3342 convert_memory_address here.
3344 2015-01-13 Richard Biener <rguenther@suse.de>
3346 PR tree-optimization/64406
3347 * tree-loop-distibution.c (pass_loop_distribution::execute):
3348 Reset the SCEV hashtable if we distributed anything.
3350 2015-01-13 Richard Biener <rguenther@suse.de>
3352 PR tree-optimization/64404
3353 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
3354 SLP types for CSEd loads.
3356 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3358 PR tree-optimization/64436
3359 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
3360 merge of two symbolic numbers for a bitwise OR to ...
3361 (perform_symbolic_merge): This. Also fix computation of the range and
3362 end of the symbolic number corresponding to the result of a bitwise OR.
3364 2015-01-13 Richard Biener <rguenther@suse.de>
3366 PR tree-optimization/64568
3367 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
3368 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
3370 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3372 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
3373 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
3375 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3377 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
3378 target-specific symbol_ref flag.
3379 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
3380 resides in rodata section.
3381 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
3382 (nds32_encode_section_info): New function.
3384 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3386 * config/nds32/nds32.md (call): Use pseudo instruction bal which
3387 clobbers TA_REGNUM if large code model is specified.
3388 (call_register): Likewise.
3389 (call_immediate): Likewise.
3390 (call_value): Likewise.
3391 (call_value_register): Likewise.
3392 (call_value_immediate): Likewise.
3394 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3396 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
3397 (TARGET_CMODEL_MEDIUM): New macro.
3398 (TARGET_CMODEL_LARGE): New macro.
3399 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
3400 code model setting in assembly code.
3402 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3404 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
3405 Remove MASK_GP_DIRECT flag.
3406 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
3407 one of the multilib default options.
3408 * config/nds32/nds32.opt (mgp-direct): Remove.
3409 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
3410 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
3412 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3414 * config/nds32/nds32.opt (mcmodel): Add new option.
3415 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
3416 to describe code model.
3418 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
3421 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
3423 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
3425 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
3426 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
3427 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
3428 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
3429 __builtin_sh_set_fpscr.
3431 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3433 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
3434 after a funtion name just to indicate it is a function.
3435 ([-fsanitize-undefined-trap-on-error]): Likewise.
3436 ([-fdbg-cnt=]): Likewise.
3437 ([-mmemcpy]): Likewise.
3438 ([-mflush-func]): Likewise.
3439 ([-msynci]): Likewise.
3441 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3443 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
3446 2015-01-12 Jakub Jelinek <jakub@redhat.com>
3448 PR tree-optimization/64563
3449 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
3450 instead of != VR_VARYING.
3453 * config/i386/i386.c (ix86_expand_prologue): Add
3454 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
3456 PR tree-optimization/64454
3457 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
3458 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
3459 for signed or [0, op1 - 1] for unsigned modulo.
3460 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3461 even if op1 does not satisfy integer_pow2p.
3464 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
3466 2015-01-12 Jeff Law <law@redhat.com>
3469 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
3470 (trunchiqi2, truncsihi2): Similarly.
3472 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
3473 rather than calling F.
3475 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3477 * tsan.c (instrument_expr): Use force_gimple_operand.
3478 Use may_be_nonaddressable_p instead of is_gimple_addressable.
3480 2015-01-12 Richard Biener <rguenther@suse.de>
3482 PR tree-optimization/64530
3483 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
3486 2015-01-12 Richard Biener <rguenther@suse.de>
3489 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
3492 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3494 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
3495 Cortex-A17 tuning parameters.
3496 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
3498 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3500 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
3501 * config/arm/arm.c (arm_macro_fusion_p): New function.
3502 (arm_macro_fusion_pair_p): Likewise.
3503 (TARGET_SCHED_MACRO_FUSION_P): Define.
3504 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3505 (ARM_FUSE_NOTHING): Likewise.
3506 (ARM_FUSE_MOVW_MOVT): Likewise.
3507 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
3508 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
3509 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
3510 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
3511 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
3512 arm_cortex_a5_tune): Specify fuseable_ops value.
3514 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
3517 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
3518 test for PIE with copy reloc.
3519 * configure: Regenerated.
3521 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3523 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
3525 (arm_tls_descseq_addr): Likewise.
3526 (arm_gen_movmemqi): Likewise.
3527 (arm_expand_epilogue_apcs_frame): Likewise.
3528 (arm_expand_epilogue): Likewise.
3529 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
3532 2015-01-12 Martin Liska <mliska@suse.cz>
3535 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
3536 volatility for correct operands.
3538 2015-01-12 Martin Liska <mliska@suse.cz>
3540 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3541 that a function is not leaf.
3542 (sem_function::compare_polymorphic_p): Likewise.
3544 2015-01-12 Martin Liska <mliska@suse.cz>
3546 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3547 that a function is not leaf.
3548 (sem_function::compare_polymorphic_p): Likewise.
3550 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3552 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
3553 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
3554 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
3555 fold-const.h, tree-check.h.
3557 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3561 * ipa-inline.c (compute_uninlined_call_time,
3562 compute_inlined_call_time): Use counts for extra precision when
3564 (big_speedup_p): Fix formating.
3565 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
3566 (relative_time_benefit): Remove.
3567 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
3568 merge guessed and read profile paths.
3569 (inline_small_functions): Count only !optimize_size functions into
3570 initial size; be more lax about sanity check when profile is used;
3571 be sure to update inlined function profile when profile is read.
3573 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3576 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
3577 cost when edge becomes direct.
3578 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
3579 is resolved or when introducing new speculation.
3581 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
3585 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
3586 '||' to fix typo issue.
3588 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
3589 accept and return NULL.
3591 2015-01-12 Martin Liska <mliska@suse.cz>
3593 * cgraph.c (cgraph_edge::remove_callee): Move function to header
3594 file for being inlined.
3595 (cgraph_set_edge_callee): Delete.
3596 (cgraph_edge::redirect_callee): Move function to header file
3598 (cgraph_edge::make_direct): Use new function.
3599 (cgraph_edge::dump_edge_flags): New function created from
3600 static dump_edge_flags function.
3601 (cgraph_node::dump): Use new function.
3602 (cgraph_edge::verify_count_and_frequency): New function created
3603 from verify_edge_count_and_frequency.
3604 (cgraph_edge::verify_corresponds_to_fndecl): New function created
3605 from verify_edge_corresponds_to_fndecl.
3606 (verify_edge_corresponds_to_fndecl): Delete.
3607 (cgraph_node::verify_node): Use new function.
3608 * cgraph.h (cgraph_edge::set_callee): New function.
3609 (cgraph_edge::dump_edge_flags): Likewise.
3610 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
3612 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
3614 * ipa-utils.c (estimate_function_body_sizes): Do not
3615 free node params when called late with early=true.
3617 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
3619 * doc/md.texi (Instruction Patterns): Rewrite text for
3621 (Example): Likewise.
3623 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
3625 * doc/invoke.texi (Option Summary): Break long lines.
3626 [(-fdiagnostics-color)]: Put long literal in @smallexample
3628 [(-fsanitize-recover)]: Likewise.
3629 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
3630 [(-ffast-math)]: Likewise.
3631 [(--param max-inline-insns-recursive)]: Likewise.
3632 [(--param max-inline-recursive-depth)]: Likewise.
3633 [(-mno-text-section-literals)]: Likewise.
3635 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3637 * doc/install.texi: Update for libgomp being renamed from "GNU
3638 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
3640 * doc/sourcebuild.texi: Likewise.
3642 2015-01-10 Anthony Green <green@moxielogic.com>
3644 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
3645 mul.x availability for moxiebox configuration.
3647 2015-01-09 Anthony Green <green@moxielogic.com>
3649 * config/moxie/moxie.md: Tabify assembly output.
3651 2015-01-09 Anthony Green <green@moxielogic.com>
3653 * config/moxie/moxie.md (CC_REG): Correct register definition.
3655 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
3657 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
3658 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
3661 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3663 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
3665 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
3666 Jakub Jelinek <jakub@redhat.com>
3669 * lto-streamer.h (lto_stream_offload_p): New declaration.
3670 * lto-streamer.c (lto_stream_offload_p): New variable.
3671 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
3672 at the same time as section_name_prefix.
3673 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
3674 if lto_stream_offload_p.
3675 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
3676 stream TREE_TARGET_OPTION if lto_stream_offload_p.
3677 (write_ts_function_decl_tree_pointers): Don't
3678 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
3679 * tree-streamer-in.c (unpack_value_fields): Don't stream
3680 TREE_TARGET_OPTION in if ACCEL_COMPILER.
3681 (lto_input_ts_function_decl_tree_pointers): Don't stream
3682 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
3683 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
3684 instead of section_name_prefix string comparisons.
3686 2015-01-09 Jakub Jelinek <jakub@redhat.com>
3688 PR rtl-optimization/64536
3689 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
3692 2015-01-09 Michael Collison <michael.collison@linaro.org>
3694 PR tree-optimization/64322
3695 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
3696 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
3698 2015-01-09 Tom de Vries <tom@codesourcery.com>
3700 PR rtl-optimization/64539
3701 * regcprop.c (kill_clobbered_values): Factor out of ...
3702 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
3703 instead of note_stores with kill_clobbered_value.
3705 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3707 * ginclude/unwind-arm-common.h: Revert previous commit.
3709 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3711 * config.gcc (arm*-*-freebsd*): New configuration.
3712 * config/arm/freebsd.h: New file.
3713 * config.host: Add extra components for arm*-*-freebsd*.
3714 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
3715 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
3717 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3719 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
3721 * config/rs6000/t-rtems: Add e6500 multilibs.
3723 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3725 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
3728 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3730 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
3731 MULTILIB_EXCEPTIONS.
3733 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3735 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
3736 MULTILIB_EXCEPTIONS.
3738 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3740 * config/arm/t-rtems-eabi: Rename to...
3741 * config/arm/t-rtems: ...this.
3742 * config/arm/rtems-eabi.h: Rename to...
3743 * config/arm/rtems.h: ...this.
3744 * config.gcc (arm*-*-rtems*): Reflect changes above.
3746 2015-01-09 Richard Biener <rguenther@suse.de>
3748 PR tree-optimization/64410
3749 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
3751 (execute_update_addresses_taken): Deal with that.
3752 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
3753 loads/stores for complex variables.
3755 2015-01-09 Martin Liska <mliska@suse.cz>
3757 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
3759 (func_checker::compare_memory_operand): New function.
3760 (func_checker::compare_operand): Split case to newly
3762 (func_checker::compare_cst_or_decl): New function.
3763 (func_checker::compare_gimple_call): Identify
3765 (func_checker::compare_gimple_assign): Likewise.
3766 * ipa-icf-gimple.h: New function.
3768 2015-01-09 Martin Liska <mliska@suse.cz>
3771 * sreal.c (sreal::dump): Change unsigned format to signed for
3773 (sreal::to_double): Replace exp2 with scalbln.
3775 2015-01-09 Martin Liska <mliska@suse.cz>
3777 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
3778 * ipa-icf.c (sem_function::equals_private): Add support for target and
3779 (sem_item_optimizer::merge_classes): Remove redundant function
3780 optimization flags comparison.
3781 * tree.h (target_opts_for_fn): New function.
3783 2015-01-09 Tom de Vries <tom@codesourcery.com>
3785 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
3787 2015-01-09 Kito Cheng <kito@0xlab.org>
3789 PR rtl-optimization/64348
3790 * lra-constraints.c (split_reg): Fix caller-save store/restore
3791 instruction generation.
3793 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
3795 PR gcov-profile/61790
3796 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
3797 long long. Fallback to int64_t if host doesn't have long long and
3798 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
3800 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3802 PR tree-optimization/63989
3803 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
3805 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
3806 (get_stridx): If we don't have a record for certain SSA_NAME,
3807 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
3808 constant offset, call get_stridx_plus_constant.
3809 (get_stridx_plus_constant): New function.
3810 (zero_length_string): Don't use get_stridx here.
3814 * dse.c (struct insn_info): Mention frame_read set also
3815 before reload for tail calls on some targets.
3816 (scan_insn): Revert 2014-12-22 change. Set frame_read
3817 also before reload for tail calls if
3818 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
3819 instead of add_non_frame_wild_read for non-const/memset
3820 tail calls after reload.
3822 2015-01-08 Jason Merrill <jason@redhat.com>
3824 * ubsan.c (do_ubsan_in_current_function): New.
3825 (pass_ubsan::gate): Use it.
3826 * ubsan.h: Declare it.
3827 * convert.c (convert_to_integer): Use it.
3829 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3832 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
3833 compare_code when it is unconditionally overwritten afterwards.
3834 Use ix86_reverse_condition instead of reverse_condition. Don't
3835 change code if *reverse_condition* returned UNKNOWN and don't
3836 swap ct/cf and negate diff in that case.
3838 2015-01-08 Mike Stump <mikestump@comcast.net>
3840 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
3841 (pass_tsan_O0::gate): Likewise.
3842 * extend.texi (Function Attributes): Add no_sanitize_thread
3845 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3847 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
3848 for registering builtins.
3849 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
3850 add -fopenmp to the argv_obstack used when invoking
3853 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
3854 add "-m32" or "-m64" to argv_obstack.
3855 (generate_host_descr_file): Likewise, when invoking host_compiler.
3856 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
3859 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3861 * config/sh/sh-mem.cc: Use constant as second operand when emitting
3864 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3867 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
3868 constant load if constant operand fits into I08.
3870 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3873 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
3874 and TREE_THIS_VOLATILE for MEM_REFs.
3875 (build5_stat): Fix up initialization of TREE_READONLY and
3876 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
3878 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3881 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
3882 of r for the second alternative of the destination operand.
3884 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
3887 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
3889 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3891 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
3893 ([-fivar-visibility], [-fvisibility]): Likewise.
3895 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3897 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
3898 the file where @code, @command, etc is more appropriate.
3900 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
3902 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
3903 of -mrecip= documentation.
3905 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3908 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
3909 correct reload handler if -m32 -mpowerpc64 is used.
3911 2015-01-06 Tom de Vries <tom@codesourcery.com>
3913 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
3915 2015-01-08 Christian Bruel <christian.bruel@st.com>
3918 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
3920 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3922 PR tree-optimization/63259
3923 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
3924 if optab exists for 16bit byteswap.
3926 2015-01-06 Jakub Jelinek <jakub@redhat.com>
3928 * opts.c (common_handle_option): Add support for
3929 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
3930 * doc/invoke.texi: Document -fno-sanitize=all,
3931 -f{,no-}sanitize-recover=all. Document that
3932 -fsanitize=float-cast-overflow is not enabled
3933 by -fsanitize=undefined. Fix up documentation
3934 of -f{,no-}sanitize-recover.
3936 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3938 * config.gcc: Add Visium support.
3939 * configure.ac: Likewise.
3940 * configure: Regenerate.
3941 * doc/extend.texi (interrupt attribute): Add Visium.
3942 * doc/invoke.texi: Document Visium options.
3943 * doc/install.texi: Document Visium target.
3944 * doc/md.texi: Document Visium constraints.
3945 * common/config/visium: New directory.
3946 * config/visium: Likewise.
3948 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3950 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
3951 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
3953 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3955 * combine.c (combine_validate_cost): Do not count the cost of a
3956 split I2 twice. Do not display it twice in the dump, either.
3958 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3960 Revert parts of r219199.
3961 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
3963 ([-Wtraditional]): Restore markup on <limits.h>.
3965 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3968 * doc/invoke.texi: Document -Wsuggest-override.
3970 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
3972 PR rtl-optimization/64287
3973 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
3974 (process_options): Disable flag_ipa_ra if profiling.
3976 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
3978 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
3980 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
3982 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
3983 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
3984 put under #if TARGET_LOOPS guard.
3986 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
3988 * config/i386/i386.c (output_387_binary_op): Use std::swap.
3990 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
3992 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
3993 * rtl.h (refers_to_regno_p): Add overload.
3995 * bt-load.c: Likewise.
3996 * combine.c: Likewise.
3997 * df-scan.c: Likewise.
3998 * sched-deps.c: Likewise.
3999 * config/s390/s390.c: Likewise.
4000 * config/m32r/m32r.c: Likewise.
4001 * config/rs6000/spe.md: Likewise.
4002 * config/rs6000/rs6000.c: Likewise.
4003 * config/pa/pa.c: Likewise.
4004 * config/stormy16/stormy16.c: Likewise.
4005 * config/cris/cris.c: Likewise.
4006 * config/arc/arc.md: Likewise.
4007 * config/arc/arc.c: Likewise.
4008 * config/sh/sh.md: Likewise.
4009 * config/sh/sh.c: Likewise.
4010 * config/frv/frv.c: Likewise.
4012 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4015 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
4016 call as cleanup of the whole body.
4017 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
4018 * tsan.c (replace_func_exit): New function.
4019 (instrument_func_exit): Moved earlier.
4020 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
4021 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
4023 (tsan_pass): Don't call instrument_func_exit.
4024 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
4025 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
4029 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
4030 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
4031 it to libubsan handler instead of EXPR. Fold comparisons earlier,
4032 if the result is integer_zerop, return NULL_TREE.
4033 * convert.c (convert_to_integer): Pass expr as ARG.
4035 PR tree-optimization/64465
4036 * tree-inline.c (redirect_all_calls): During inlining
4037 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
4038 changed the stmt to a non-throwing call.
4040 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
4042 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
4043 etc markup throughout the file.
4045 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4047 Enable experimental TSAN support for Ada.
4048 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
4050 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4052 PR tree-optimization/64494
4053 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
4054 clear SSA_NAME_ANTI_RANGE_P flag.
4056 2015-01-05 Marek Polacek <polacek@redhat.com>
4058 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
4060 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4062 Update copyright years.
4064 * gcc.c (process_command): Update copyright notice dates.
4065 * gcov-dump.c: Ditto.
4067 * doc/cpp.texi: Bump @copying's copyright year.
4068 * doc/cppinternals.texi: Ditto.
4069 * doc/gcc.texi: Ditto.
4070 * doc/gccint.texi: Ditto.
4071 * doc/gcov.texi: Ditto.
4072 * doc/install.texi: Ditto.
4073 * doc/invoke.texi: Ditto.
4075 * auto-profile.c, auto-profile.h: Fix up Copyright line.
4077 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
4079 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
4081 ([-fvtable-verify], [-fvtv-debug]): Likewise.
4082 ([-Wabi]): Likewise.
4083 ([-fmessage-length]): Likewise.
4084 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
4085 ([-Wno-discarded-qualifiers]): Likewise.
4086 ([-Wnodiscarded-array-qualifiers]): Likewise.
4087 ([-Wno-virtual-move-assign]): Likewise.
4088 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
4089 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
4090 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
4091 ([-fsanitize-undefined-trap-on-error]): Likewise.
4092 ([-floop-interchange]): Likewise.
4093 ([-ftree-coalesce-inlined-vars]): Likewise.
4094 ([-fvect-cost-model]): Likewise.
4095 ([-flto]): Likewise.
4096 ([--param]): Likewise.
4097 (Spec Files): Likewise.
4098 ([-mstrict-align]): Likewise.
4099 ([-mfix-cortex-a53-835769]): Likewise.
4100 ([-march], [-mtune]): Likewise.
4101 ([-mpic-register]): Likewise.
4102 ([-munaligned-access]): Likewise.
4103 ([-msp8]): Likewise.
4104 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
4105 (AVR Built-in Macros): Likewise.
4106 ([-mpreferred-stack-boundary]): Likewise.
4107 ([-mtune-crtl]): Likewise.
4108 ([-mashf]): Likewise.
4109 ([-mmcu=]): Likewise.
4110 ([-minrt]): Likewise.
4111 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
4112 ([-mupper-regs]): Likewise.
4113 ([-matomic-model]): Likewise.
4114 ([-mdiv]): Likewise.
4115 ([-mzdcbranch]): Likewise.
4116 ([-mdisable-callt]): Likewise.
4117 ([-msoft-float]): Likewise.
4118 ([-m8byte-align]): Likewise.
4119 ([-fstack-reuse]): Likewise.
4121 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4123 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
4124 Fix markup, light copy-editing.
4125 ([-fauto-profile]): Rewrite to fix formatting and content
4128 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4130 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
4131 Copy-edit description.
4132 ([-fisolate-erroneous-paths-attribute]): Likewise.
4133 * common.opt (fisolate-erroneous-paths-dereference):
4134 Copy-edit description.
4135 (fisolate-erroneous-paths-attribute): Likewise.
4137 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4139 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
4142 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4144 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
4145 ([-fvtv-debug]): Likewise.
4146 ([-Wc++-compat]): Likewise.
4147 ([-Wc++11-compat]): Likewise.
4148 ([-Wc++14-compat]): Likewise.
4149 ([-Wno-sized-deallocation]): Likewise.
4150 ([-femit-class-debug-always]): Likewise.
4151 ([-femit-struct-debug-detailed]): Likewise.
4152 ([-fno-keep-inline-dllexport]): Likewise.
4153 ([-fira-algorithm]): Likewise.
4154 ([-fira-region]): Likewise.
4155 ([-flra-remat]): Likewise.
4156 ([-fipa-ra]): Likewise.
4157 ([-fhoist-adjacent-loads]): Likewise.
4158 ([-fisolate-erroneous-paths-dereference]): Likewise.
4159 ([-fisolate-erroneous-paths-attribute]): Likewise.
4160 ([-ftree-switch-conversion]): Likewise.
4161 ([-ftree-tail-merge]): Likewise.
4162 ([-ftree-loop-if-convert]): Likewise.
4163 ([-ftree-loop-if-convert-stores]): Likewise.
4164 ([-ftree-loop-distribution]): Likewise.
4165 ([-ftree-loop-distribute-patterns]): Likewise.
4166 ([-flto-compression-level]): Likewise.
4167 ([-flto-report]): Likewise.
4168 ([-flto-report-wpa]): Likewise.
4169 ([-fuse-linker-plugin]): Likewise.
4170 ([-mfix-cortex-a53-835769]): Likewise.
4171 ([-mno-fix-cortex-a53-835769]): Likewise.
4172 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
4173 explicit listing; add a note to the discussion indicating they
4174 exist. Reorder table to group similar options. Add missing
4175 @opindex entries. Add @need commands throughout the table to
4176 allow it to be split across multiple pages.
4177 ([-m8bit-idiv]): Fix @opindex.
4178 ([-mavx256-split-unaligned-load]): Likewise.
4179 ([-mavx256-split-unaligned-store]): Likewise.
4180 ([-mstack-protector-guard]): Likewise.
4181 ([-mcpu=]): Likewise.
4182 ([-mcpu]): Likewise.
4183 ([-mpointer-size=]): Likewise.
4185 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
4187 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
4188 instead of `m' constraint. Likewise for unnamed movb comparison
4189 patterns using reg_before_reload_operand predicate.
4190 * config/pa/predicates.md (reg_before_reload_operand): Tighten
4191 predicate to reject register index and LO_SUM DLT memory forms
4194 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
4196 * doc/invoke.texi (Option Summary): Fix spelling of
4197 -fdevirtualize-at-ltrans.
4198 ([-fdevirtualize]): Fix markup.
4199 ([-fdevirtualize-speculatively]): Fix typo.
4200 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
4202 * common.opt (fdevirtualize-at-ltrans): Likewise.
4203 * ipa-devirt.c: Fix typos in comments throughout the file.
4204 (ipa_devirt): Fix typos in format strings for dump output.
4206 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
4208 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
4209 discussion of defaults, light copy-editing.
4211 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4213 * tsan.c (instrument_expr): corrected previous checkin.
4215 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4217 Instrument bit field and unaligned accesses for TSAN.
4218 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
4219 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
4220 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
4221 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
4222 unaligned memory regions.
4224 2015-01-01 Anthony Green <green@moxielogic.com>
4226 * config/moxie/predicates.md (moxie_general_movsrc_operand):
4227 Restrict move source register offsets to 16 bits.
4229 Copyright (C) 2015 Free Software Foundation, Inc.
4231 Copying and distribution of this file, with or without modification,
4232 are permitted in any medium without royalty provided the copyright
4233 notice and this notice are preserved.