1 2013-12-02 Sriraman Tallam <tmsriram@google.com>
4 * config/i386/i386.opt (ix86_arch_string): Mark this variable
5 for saving in cl_target_option.
6 (ix86_tune_string): Ditto.
9 (ix86_asm_dialect): Ditto.
10 (ix86_branch_cost): Ditto.
11 (ix86_dump_tunes): Ditto.
12 (ix86_force_align_arg_pointer): Ditto.
13 (ix86_force_drap): Ditto.
14 (ix86_incoming_stack_boundary_arg): Ditto.
16 (ix86_preferred_stack_boundary_arg): Ditto.
17 (ix86_recip_name): Ditto.
18 (ix86_regparm): Ditto.
19 (ix86_section_threshold): Ditto.
20 (ix86_sse2avx): Ditto.
21 (ix86_stack_protector_guard): Ditto.
22 (ix86_stringop_alg): Ditto.
23 (ix86_tls_dialect): Ditto.
24 (ix86_tune_ctrl_string): Ditto.
25 (ix86_tune_memcpy_strategy): Ditto.
26 (ix86_tune_memset_strategy): Ditto.
27 (ix86_tune_no_default): Ditto.
28 (ix86_veclibabi_type): Ditto.
30 (function_specific_save): Save the above variables
31 in gcc_options to cl_target_option.
32 (function_specific_restore): Do the reverse done in
33 function_specific_save.
34 (ix86_valid_target_attribute_tree): Change ix86_arch_string
35 and ix86_tune_string to use the opts structure.
36 (ix86_option_override_internal):Change
37 ix86_incoming_stack_boundary_arg to
38 opts->x_ix86_incoming_stack_boundary_arg
40 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
42 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
43 in #ifndef IN_LIBGCC2 / #endif.
45 2013-12-02 Jakub Jelinek <jakub@redhat.com>
47 PR tree-optimization/59358
48 * tree-vrp.c (union_ranges): To check for the partially
49 overlapping ranges or adjacent ranges, also compare *vr0max
52 2013-12-02 Sterling Augustine <saugustine@google.com>
54 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
55 when there isn't a skeleton die.
57 2013-12-02 Marek Polacek <polacek@redhat.com>
60 * doc/invoke.texi: Document -fsanitize=return.
62 2013-12-02 Tobias Burnus <burnus@net-b.de>
63 Manuel López-Ibáñez <manu@gcc.gnu.org>
66 * doc/invoke.texi: Add missing @opindex.
67 (-fsanitize=): Use @gcctabopt instead of @itemize.
69 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
71 Fix C++0x memory model for unaligned fields in packed, aligned(4)
72 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
73 targets like arm-none-eabi.
74 * expr.c (expand_assignment): Handle normal fields like bit regions.
76 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
79 * function.c (invoke_set_current_function_hook): Call
80 targetm.set_current_function after setting this_fn_optabs.
82 2013-12-02 Richard Biener <rguenther@suse.de>
84 PR tree-optimization/59139
85 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
87 (get_val_for): Use gcc_checking_asserts.
89 2013-12-02 Richard Biener <rguenther@suse.de>
92 * tree-ssa-operands.c (opf_implicit): Remove.
93 (opf_address_taken): New flag.
94 (get_expr_operands): Remove early out, pass down
95 opf_address_taken for ADDR_EXPRs, add a use operand only
96 for non-opf_address_taken bases.
97 (get_indirect_ref_operands): Rename to ...
98 (get_mem_ref_operands): ... this.
99 (get_asm_expr_operands): Rename to ...
100 (get_asm_stmt_operands): ... this.
102 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
104 * ipa-inline.c (check_callers): Add missed pointer de-reference.
106 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
108 PR tree-optimization/59356
109 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
110 offset computation using the precision of the index type.
112 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
115 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
116 when rclass is GENERAL_REGS.
118 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
120 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
121 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
123 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
125 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
128 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
130 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
132 2013-11-30 Paulo Matos <pmatos@broadcom.com>
133 Eric Botcazou <ebotcazou@adacore.com>
135 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
136 as applied to nonzero_sign_valid when last_set_mode has less precision
139 2013-11-30 Tobias Burnus <burnus@net-b.de>
142 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
143 environment variable and link to a list with flags.
144 (-fsanitize=thread): Ditto and update link.
146 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
148 PR rtl-optimization/59340
149 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
152 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
154 * lra.c (lra): Set lra_in_progress before check_rtl call.
155 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
156 adding clobber regs when LRA is running.
158 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
161 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
163 2013-11-29 Richard Biener <rguenther@suse.de>
166 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
167 free_stmt_operands, update_stmt_operands): Add struct function
169 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
170 function argument from fini_ssa_operands, verify_ssa_operands,
171 free_stmt_operands and update_stmt_operands everywhere.
172 * tree-ssanames.h (release_ssa_name_fn): New.
173 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
174 * tree-ssanames.c (release_ssa_name): Rename to ...
175 (release_ssa_name_fn): ... this and add struct function argument.
176 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
177 (update_stmt_fn): New function.
178 * tree-cfg.c (move_block_to_fn): Adjust.
179 * tree-if-conv.c (free_bb_predicate): Likewise.
180 * tree-ssa.c (verify_ssa): Likewise.
181 (delete_tree_ssa): Likewise.
182 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
183 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
184 update_stmt_fn instead of update_stmt.
186 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
188 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
191 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
193 * config/arm/arm.md (store_minmaxsi): Use only when
194 optimize_function_for_size_p.
196 2013-11-29 Jakub Jelinek <jakub@redhat.com>
197 Yury Gribov <y.gribov@samsung.com>
200 * config/gnu-user.h: Removed old code for setting up sanitizer
202 * gcc.c: Using libsanitizer spec instead of explicit libs.
204 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
207 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
208 * cgraph.h (varpool_node): Add need_bounds_init field.
209 * lto-cgraph.c (lto_output_varpool_node): Output
210 need_bounds_init value.
211 (input_varpool_node): Read need_bounds_init value.
212 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
215 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
216 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
217 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
218 (gen_type_die_with_usage): Skip pointer bounds.
219 (dwarf2out_global_decl): Likewise.
222 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
223 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
224 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
225 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
226 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
227 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
228 (gimple_call_with_bounds_p): New.
229 (gimple_call_set_with_bounds): New.
230 (gimple_call_num_nobnd_args): Remove.
231 (gimple_call_nobnd_arg): Remove.
232 * tree.h (CALL_WITH_BOUNDS_P): New.
233 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
236 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
237 * common.opt (fcheck-pointer-bounds): Move to ...
238 * c-family/c.opt: ... here.
239 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
240 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
241 * langhooks.h (lang_hooks): Remove chkp_supported field.
242 * toplev.c (process_options): Remove chkp_supported check.
245 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
246 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
247 * tree.h (POINTER_BOUNDS_P): New.
248 (BOUNDED_TYPE_P): New.
250 (pointer_bounds_type_node): New.
251 * tree.c (build_common_tree_nodes): Initialize
252 pointer_bounds_type_node.
253 * gimple.h (gimple_call_get_nobnd_arg_index): New.
254 (gimple_call_num_nobnd_args): New.
255 (gimple_call_nobnd_arg): New.
256 (gimple_return_retbnd): New.
257 (gimple_return_set_retbnd): New
258 * gimple.c (gimple_build_return): Increase number of ops
259 for return statement.
260 (gimple_call_get_nobnd_arg_index): New.
261 * gimple-pretty-print.c (dump_gimple_return): Print second op.
264 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
265 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
266 with "chkp ctor" and "bnd_legacy" attributes.
267 * gimplify.c (gimplify_init_constructor): Avoid infinite
268 loop during gimplification of bounds initializer.
271 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
272 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
273 (handle_bnd_legacy): New.
274 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
275 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
279 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
280 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
281 (BT_FN_PTR_CONST_PTR): New.
282 (BT_FN_CONST_PTR_CONST_PTR): New.
283 (BT_FN_PTR_CONST_PTR_SIZE): New.
284 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
285 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
286 (BT_FN_VOID_CONST_PTR_SIZE): New.
287 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
288 * chkp-builtins.def: New.
289 * builtins.def: include chkp-builtins.def.
290 (DEF_CHKP_BUILTIN): New.
291 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
292 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
293 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
294 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
295 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
296 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
297 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
298 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
299 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
300 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
301 * common.opt (fcheck-pointer-bounds): New.
302 * toplev.c (process_options): Check Pointer Bounds Checker is
304 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
307 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
308 * target.def (builtin_chkp_function): New.
309 (chkp_bound_type): New.
310 (chkp_bound_mode): New.
311 (fn_abi_va_list_bounds_size): New.
312 (load_bounds_for_arg): New.
313 (store_bounds_for_arg): New.
314 * targhooks.h (default_load_bounds_for_arg): New.
315 (default_store_bounds_for_arg): New.
316 (default_fn_abi_va_list_bounds_size): New.
317 (default_chkp_bound_type): New.
318 (default_chkp_bound_mode): New.
319 (default_builtin_chkp_function): New.
320 * targhooks.c (default_load_bounds_for_arg): New.
321 (default_store_bounds_for_arg): New.
322 (default_fn_abi_va_list_bounds_size): New.
323 (default_chkp_bound_type): New.
324 (default_chkp_bound_mode); New.
325 (default_builtin_chkp_function): New.
326 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
327 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
328 (TARGET_STORE_BOUNDS_FOR_ARG): New.
329 (TARGET_BUILTIN_CHKP_FUNCTION): New.
330 (TARGET_CHKP_BOUND_TYPE): New.
331 (TARGET_CHKP_BOUND_MODE): New.
332 * doc/tm.texi: Regenerated.
333 * langhooks.h (lang_hooks): Add chkp_supported field.
334 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
335 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
338 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
339 * config/i386/constraints.md (B): New.
342 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
343 * config/i386/i386-modes.def (BND32): New.
345 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
346 * config/i386/i386.c (isa_opts): Add mmpx.
347 (regclass_map): Add bound registers.
348 (dbx_register_map): Likewise.
349 (dbx64_register_map): Likewise.
350 (svr4_dbx_register_map): Likewise.
352 (ix86_option_override_internal): Support MPX ISA.
353 (ix86_conditional_register_usage): Support bound registers.
354 (print_reg): Likewise.
355 (ix86_code_end): Add MPX bnd prefix.
356 (output_set_got): Likewise.
357 (ix86_output_call_insn): Likewise.
358 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
359 (ix86_print_operand_punct_valid_p): Likewise.
360 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
362 (ix86_class_likely_spilled_p): Add bound regs support.
363 (ix86_hard_regno_mode_ok): Likewise.
364 (x86_order_regs_for_local_alloc): Likewise.
365 (ix86_bnd_prefixed_insn_p): New.
366 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
367 (FIXED_REGISTERS): Add bound registers.
368 (CALL_USED_REGISTERS): Likewise.
369 (REG_ALLOC_ORDER): Likewise.
370 (HARD_REGNO_NREGS): Likewise.
372 (VALID_BND_REG_MODE): New.
373 (FIRST_BND_REG): New.
375 (reg_class): Add BND_REGS.
376 (REG_CLASS_NAMES): Likewise.
377 (REG_CLASS_CONTENTS): Likewise.
379 (ANY_BND_REG_P): New.
381 (HI_REGISTER_NAMES): Add bound registers.
382 * config/i386/i386.md (UNSPEC_BNDMK): New.
383 (UNSPEC_BNDMK_ADDR): New.
384 (UNSPEC_BNDSTX): New.
385 (UNSPEC_BNDLDX): New.
386 (UNSPEC_BNDLDX_ADDR): New.
390 (UNSPEC_MPX_FENCE): New.
393 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
394 (length_immediate): Likewise.
395 (prefix_0f): Likewise.
397 (prefix_rep): Check for bnd prefix.
399 (length): Use length_nobnd if specified.
404 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
407 (simple_return_internal): Likewise.
408 (simple_return_pop_internal): Likewise.
409 (*indirect_jump): Add MPX bnd prefix.
410 (*tablejump_1): Likewise.
411 (simple_return_internal_long): Likewise.
412 (simple_return_indirect_internal): Likewise.
416 (*mov<mode>_internal_mpx): New.
417 (<mode>_<bndcheck>): New.
418 (*<mode>_<bndcheck>): New.
423 * config/i386/predicates.md (lea_address_operand): Rename to...
424 (address_no_seg_operand): ... this.
425 (address_mpx_no_base_operand): New.
426 (address_mpx_no_index_operand): New.
427 (bnd_mem_operator): New.
428 * config/i386/i386.opt (mmpx): New.
429 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
430 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
433 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
434 * mode-classes.def (MODE_POINTER_BOUNDS): New.
435 * tree.def (POINTER_BOUNDS_TYPE): New.
436 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
437 (POINTER_BOUNDS_MODE): New.
438 (make_pointer_bounds_mode): New.
439 * machmode.h (POINTER_BOUNDS_MODE_P): New.
440 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
441 (layout_type): Support POINTER_BOUNDS_TYPE.
442 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
443 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
444 (type_contains_placeholder_1): Likewise.
445 * tree.h (POINTER_BOUNDS_TYPE_P): New.
446 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
447 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
449 2013-11-29 Richard Biener <rguenther@suse.de>
452 * tree-cfg.c (verify_expr): Restrict bounds verification of
453 BIT_FIELD_REF arguments to non-aggregate typed base objects.
455 2013-11-29 Richard Biener <rguenther@suse.de>
457 PR tree-optimization/59334
458 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
461 2013-11-29 Jakub Jelinek <jakub@redhat.com>
462 Richard Biener <rguenther@suse.de>
465 * omp-low.c (simd_clone_create): Return NULL if for definition
466 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
467 before calling cgraph_function_versioning.
468 (expand_simd_clones): Look for "omp declare simd" attribute first.
469 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
470 Punt if node->global.inlined_to.
471 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
472 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
473 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
475 2013-11-29 Jakub Jelinek <jakub@redhat.com>
478 * tree-core.h (enum omp_clause_schedule_kind): Add
479 OMP_CLAUSE_SCHEDULE_LAST.
480 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
481 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
482 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
483 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
484 * lto-streamer-out.c (lto_is_streamable): Allow streaming
486 (DFS_write_tree_body): Handle OMP_CLAUSE.
487 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New
489 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
490 (write_ts_omp_clause_tree_pointers): New function.
491 (streamer_write_tree_body): Call it for OMP_CLAUSE.
492 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
493 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New
495 (unpack_value_fields): Call it for OMP_CLAUSE.
496 (streamer_alloc_tree): Handle OMP_CLAUSE.
497 (lto_input_ts_omp_clause_tree_pointers): New function.
498 (streamer_read_tree_body): Call it for OMP_CLAUSE.
500 2013-11-29 Joseph Myers <joseph@codesourcery.com>
502 * doc/implement-c.texi: Document C11 implementation-defined
503 behavior. Refer to -ffp-contract=fast for contraction behavior.
504 * doc/invoke.texi (-std=c99, std=c11): Update description of
506 (-std=gnu99): Don't mention as future default.
507 (-std=gnu11): Mention as intended future default.
508 * doc/standards.texi: Update descriptions of C99 and C11 support.
509 Limit statement about C99 facilities for freestanding
510 implementations to some platforms only.
512 2013-11-28 Jakub Jelinek <jakub@redhat.com>
515 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit
518 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
521 * ira.h (ira_setup_eliminable_regset): Remove parameter.
522 * ira.c (ira_setup_eliminable_regset): Ditto. Add
523 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
524 Don't call lra_init_elimination.
525 (ira): Call ira_setup_eliminable_regset without arguments.
526 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
527 from ira_setup_eliminable_regset call.
528 * gcse.c (calculate_bb_reg_pressure): Ditto.
529 * haifa-sched.c (sched_init): Ditto.
530 * lra.h (lra_init_elimination): Remove the prototype.
531 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
532 used_insn_alternative upper.
533 (lra_eliminate_regs_1): Add one more parameter.
534 (lra-eliminate): Ditto.
535 * lra.c (lra_invalidate_insn_data): Set sp_offset.
536 (setup_sp_offset): New.
537 (lra_process_new_insns): Call setup_sp_offset.
538 (lra): Add argument to lra_eliminate calls.
539 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
540 (get_equiv_with_elimination): New.
541 (process_addr_reg): Call get_equiv_with_elimination instead of
542 get_equiv_substitution.
543 (equiv_address_substitution): Ditto.
544 (loc_equivalence_change_p): Ditto.
545 (loc_equivalence_callback, lra_constraints): Ditto.
546 (curr_insn_transform): Ditto. Print the sp offset
547 (process_alt_operands): Prevent stack pointer reloads.
548 (lra_constraints): Remove one argument from lra_eliminate call.
549 Move it up. Mark used hard regs bfore it. Use
550 get_equiv_with_elimination instead of get_equiv_substitution.
551 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
552 assert for param values combination. Use sp offset. Add argument
553 to lra_eliminate_regs_1 calls.
554 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
555 (curr_sp_change): New static var.
556 (mark_not_eliminable): Add parameter. Update curr_sp_change.
557 Don't prevent elimination to sp if we can calculate its change.
558 Pass the argument to mark_not_eliminable calls.
559 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
560 argument to lra_eliminate_regs_1 call.
561 (update_reg_eliminate): Move calculation of hard regs for spill
562 lower. Switch off lra_in_progress temporarily to generate regs
563 involved into elimination.
564 (lra_init_elimination): Rename to init_elimination. Make it
565 static. Set up insn sp offset, check the offsets at the end of
567 (process_insn_for_elimination): Add parameter. Pass its value to
568 eliminate_regs_in_insn.
569 (lra_eliminate): : Add parameter. Pass its value to
570 process_insn_for_elimination. Add assert for param values
571 combination. Call init_elimination. Don't update offsets in
572 equivalence substitutions.
573 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
574 for created stack slot.
575 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
578 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
580 * config/arm/iterators.md (vrint_conds): New int attribute.
581 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
582 (smax<mode>3): Likewise.
583 (smin<mode>3): Likewise.
585 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
587 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
588 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
589 * tree-ssanames.h (set_range_info): Add range_type argument.
590 (duplicate_ssa_name_range_info): Likewise.
591 * tree-ssanames.c (set_range_info): Take the range type as argument
592 and store it in SSA_NAME_ANTI_RANGE_P.
593 (duplicate_ssa_name_range_info): Likewise.
594 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
595 (set_nonzero_bits): Update call to set_range_info.
596 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
597 * tree-ssa-copy.c (fini_copy_prop): Likewise.
598 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
599 (vrp_finalize): Likewise, passing anti-ranges directly.
601 2013-11-28 Richard Biener <rguenther@suse.de>
603 PR tree-optimization/59330
604 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
605 and fix delayed marking of free calls not necessary.
607 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
609 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
611 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
613 2013-11-28 Terry Guo <terry.guo@arm.com>
615 * config/arm/arm.c (v7m_extra_costs): New table.
616 (arm_v7m_tune): Use it.
618 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
620 * config/sol2.h (TIME_LIBRARY): Define.
622 2013-11-28 Richard Biener <rguenther@suse.de>
625 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
626 CONST_DECLs in function context are not indexable.
628 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
630 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
631 not optimized for size.
633 2013-11-28 Jakub Jelinek <jakub@redhat.com>
635 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
637 (expand_stack_vars): For -fsanitize=address, use (and set initially)
638 data->asan_base as base for vars and update asan_alignb.
639 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
640 Pass them to asan_emit_stack_protection.
641 * asan.c (asan_detect_stack_use_after_return): New variable.
642 (asan_emit_stack_protection): Add pbase and alignb arguments.
643 Implement use after return sanitization.
644 * asan.h (asan_emit_stack_protection): Adjust prototype.
645 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
647 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
649 * common.opt: Introduced a new option -fsimd-cost-model.
650 * doc/invoke.texi: Introduced a new openmp-simd warning and
651 a new -fsimd-cost-model option.
652 * tree-vectorizer.h (unlimited_cost_model): Interface updated
653 to rely on the particular loop info.
654 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
655 (vect_peeling_hash_choose_best_peeling): Ditto.
656 (vect_enhance_data_refs_alignment): Ditto.
657 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
658 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
659 plus added openmp-simd warining.
661 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
663 PR rtl-optimization/59311
664 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
665 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
667 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
669 * var-tracking.c (track_expr_p): Do not track declarations for parts
670 of tracked parameters.
671 (add_stores): Do not track values for tracked parameters passed in
673 (vt_get_decl_and_offset): Handle PARALLEL.
674 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
676 2013-11-27 Jeff Law <law@redhat.com>
678 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
679 clobber the loop structure thread_block was unsuccessful. If
680 thread_block was unsuccessful, cleanup appropriately.
682 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
684 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
685 (score_char_to_class): Likewise.
687 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
689 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with the
692 2013-11-27 Richard Biener <rguenther@suse.de>
695 * cgraphbuild.c (build_cgraph_edges): Do not build edges
697 (rebuild_cgraph_edges): Likewise.
698 * ipa-inline-analysis.c (estimate_function_body_sizes):
700 * tree-inline.c (estimate_num_insns): Estimate size of internal
702 (gimple_expand_calls_inline): Do not try inline-expanding
704 * lto-streamer-in.c (input_cfg): Stream loop safelen,
705 force_vect and simduid.
706 (input_struct_function_base): Stream has_force_vect_loops
707 and has_simduid_loops.
708 (input_function): Adjust.
709 * lto-streamer-out.c (output_cfg): Stream loop safelen,
710 force_vect and simduid.
711 (output_struct_function_base): Stream has_force_vect_loops
712 and has_simduid_loops.
714 2013-11-27 Kai Tietz <ktietz@redhat.com>
716 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
719 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
721 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
722 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
724 2013-11-27 Marek Polacek <polacek@redhat.com>
727 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
728 instead of walk_gimple_op.
729 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
731 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
732 Jakub Jelinek <jakub@redhat.com>
734 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
735 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
736 (struct cgraph_node): Add simdclone and simd_clones fields.
737 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
738 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
739 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
740 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
741 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
742 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
743 * doc/tm.texi: Regenerated.
744 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
745 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
746 attribute is present.
747 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
748 (simd_clone_vector_of_formal_parm_types): New function.
749 (simd_clone_struct_alloc, simd_clone_struct_copy,
750 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
751 simd_clone_compute_base_data_type, simd_clone_mangle,
752 simd_clone_create, simd_clone_adjust_return_type,
753 create_tmp_simd_array, simd_clone_adjust_argument_types,
754 simd_clone_init_simd_arrays): New functions.
755 (struct modify_stmt_info): New type.
756 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
757 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
759 (pass_data_omp_simd_clone): New variable.
760 (pass_omp_simd_clone): New class.
761 (make_pass_omp_simd_clone): New function.
762 * passes.def (pass_omp_simd_clone): New.
763 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
764 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
766 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
767 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
768 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
769 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
770 * tree-vect-data-refs.c: Include cgraph.h.
771 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
772 and find_data_references_in_bb, if find_data_references_in_stmt
773 fails, still allow calls to #pragma omp declare simd functions
774 in #pragma omp simd loops unless they contain data references among
775 the call arguments or in lhs.
776 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
778 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
780 * tree-vectorizer.h (enum stmt_vec_info_type): Add
781 call_simd_clone_vec_info_type.
782 (struct _stmt_vec_info): Add simd_clone_fndecl field.
783 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
784 * tree-vect-stmts.c: Include tree-ssa-loop.h,
785 tree-scalar-evolution.h and cgraph.h.
786 (vectorizable_call): Handle calls without lhs. Assert
787 !stmt_can_throw_internal instead of failing for it. Don't update
789 (struct simd_call_arg_info): New.
790 (vectorizable_simd_clone_call): New function.
791 (vect_transform_stmt): Call it.
792 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
794 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
795 if cgraph_function_with_gimple_body_p is true.
797 2013-11-27 Tom de Vries <tom@codesourcery.com>
798 Marc Glisse <marc.glisse@inria.fr>
801 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
803 * gimple-fold.c (gimple_fold_indirect_ref): Same.
804 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
807 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
810 * expr.c (emit_group_store): Don't write past the end of the structure.
811 (store_bit_field): Fix formatting.
813 2013-11-27 Richard Biener <rguenther@suse.de>
815 PR tree-optimization/59288
816 * tree-vect-loop.c (get_initial_def_for_induction): Do not
817 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
819 2013-11-27 Marek Polacek <polacek@redhat.com>
821 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
822 for a decl, recreate that decl. Save into the hash table VAR_DECLs
823 rather than ADDR_EXPRs.
825 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
827 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
829 2013-11-26 David Malcolm <dmalcolm@redhat.com>
831 * gengtype.c (struct seen_tag): New.
832 (already_seen_tag): New.
833 (mark_tag_as_seen): New.
834 (walk_subclasses): Support having multiple subclasses using the
835 same tag by tracking which tags have already been seen, and using
836 this to avoid adding duplicate cases to the "switch" statement.
837 The call to already_seen_tag introduces an O(N^2) when running
838 gengtype on N, the number of tags, due to the repeated linear
839 search, but currently max(N) is relatively small (the number of
840 GSS codes, which is 26).
841 (walk_type): Pass in a seen_tag for use by the walk_subclasses
844 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
845 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
846 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
847 GIMPLE_OMP_RETURN happens to share the data layout of
848 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
849 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
850 underlying GSS value from GSS_OMP_PARALLEL to
851 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
852 not directly related; they merely share in-memory layout.
853 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
854 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
856 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
858 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
860 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
861 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
863 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
865 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
868 * gimple.h (gimple_statement_resx): New subclass of
869 gimple_statement_eh_ctrl, with the invariant that
870 stmt->code == GIMPLE_RESX.
871 (gimple_statement_eh_dispatch): New subclass of
872 gimple_statement_eh_ctrl, with the invariant that
873 stmt->code == GIMPLE_EH_DISPATH.
875 (gimple_statement_omp_parallel): The existing class expressed
876 a layout (GSS_OMP_PARALLEL), but the codes with that layout
877 are not all related, so it makes more sense for this class to
878 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
879 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
880 rename the existing gimple_statement_omp_parallel class to...
881 (gimple_statement_omp_parallel_layout): ...this, expressing
882 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
883 (gimple_statement_omp_taskreg): New subclass of
884 gimple_statement_omp_parallel_layout, expressing the invariant
885 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
886 as used by the various gimple_omp_taskreg_ accessors.
887 (gimple_statement_omp_parallel): Reintroduce this class, this time
888 as a subclass of gimple_statement_omp_taskreg to express the
889 invariant stmt->code == GIMPLE_OMP_PARALLEL.
890 (gimple_statement_omp_target) New class, subclassing
891 gimple_statement_omp_parallel_layout, to express the invariant
892 stmt->code == GIMPLE_OMP_TARGET.
893 (gimple_statement_omp_task): Update to inherit from
894 gimple_statement_omp_taskreg rather than
895 gimple_statement_omp_parallel.
897 (gimple_statement_omp_single): Rename to...
898 (gimple_statement_omp_single_layout): ...this, expressing the
899 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
900 (gimple_statement_omp_single): ...and reintroduce this name as
901 a subclass of gimple_statement_omp_single_layout, expressing
902 the invariant that code == GIMPLE_OMP_SINGLE.
903 (gimple_statement_omp_teams): New class, subclassing
904 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
906 (gimple_statement_omp_atomic_store): Rename to...
907 (gimple_statement_omp_atomic_store_layout): ...this, expressing
908 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
909 (gimple_statement_omp_atomic_store): ...and reintroduce this
910 name as a subclass of gimple_statement_omp_atomic_store_layout
911 with code == GIMPLE_OMP_ATOMIC_STORE.
912 (gimple_statement_omp_return): New class, subclassing
913 gimple_statement_omp_atomic_store_layout for the code
916 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
917 (is_a_helper <gimple_statement_resx>::test): New.
918 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
919 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
920 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
921 (is_a_helper <gimple_statement_omp_return>::test): New.
922 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
923 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
924 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
926 (is_a_helper <gimple_statement_omp_target>::test): New.
927 (is_a_helper <gimple_statement_omp_single>::test): Only check
928 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
929 (is_a_helper <gimple_statement_omp_teams>::test): New.
931 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
932 (is_a_helper <const gimple_statement_resx>::test): New.
933 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
934 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
935 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
936 (is_a_helper <const gimple_statement_omp_return>::test): New.
937 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
938 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
939 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
941 (is_a_helper <const gimple_statement_omp_target>::test): New.
942 (is_a_helper <const gimple_statement_omp_single>::test): Only
943 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
944 (is_a_helper <const gimple_statement_omp_teams>::test): New.
946 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
947 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
948 gimple_statement_omp_atomic_store with downcasts to
949 gimple_statement_omp_return, thus requiring that the code be
951 (gimple_resx_region, gimple_resx_set_region): Replace bogus
952 downcasts to gimple_statement_eh_ctrl with downcasts to
953 gimple_statement_resx, thus requiring that the code be
955 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
956 Replace bogus downcasts to const gimple_statement_eh_ctrl with
957 downcasts to gimple_statement_eh_dispatch, thus requiring that
958 the code be GIMPLE_EH_DISPATCH.
959 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
960 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
961 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
962 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
963 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
964 gimple_statement_omp_parallel with downcasts to
965 gimple_statement_omp_taskreg, thus requiring that the code be
966 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
967 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
968 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
969 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
970 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
971 gimple_omp_target_set_data_arg): Replace bogus downcasts to
972 gimple_statement_omp_parallel with downcasts to
973 gimple_statement_omp_target, thus requiring that the code be
975 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
976 gimple_omp_teams_set_clauses): Replace bogus downcasts to
977 gimple_statement_omp_single with downcasts to
978 gimple_statement_omp_teams, thus requiring that the code be
981 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
982 gimple_statement_resx.
983 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
984 gimple_statement_eh_dispatch.
986 2013-11-26 Jakub Jelinek <jakub@redhat.com>
988 PR tree-optimization/59014
989 * tree-vrp.c (register_edge_assert_for_1): Don't look
990 through conversions from non-integral types or through
991 narrowing conversions.
994 * config/i386/i386.c (device_alg): Fix up formatting.
995 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
996 similarly to count && count < epilogue_size_needed. Fix up
998 * builtins.c (determine_block_size): Fix comment typo.
1001 * ubsan.c (ubsan_source_location): Don't add any location
1002 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
1003 (ubsan_create_data): Strip block info from LOC.
1006 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1007 if there isn't optab handler for the corresponding vector PLUS_EXPR.
1009 PR rtl-optimization/59166
1010 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1011 DF_REF_LOC in validate_change call.
1012 (split_live_ranges_for_shrink_wrap): Likewise.
1015 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1016 of references to constant size types in simd loops, defer emitting
1017 initializer for the new_var, emit it later on only if not using
1021 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1022 for the inner loop if collapse_bb is non-NULL.
1023 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1025 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
1027 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1028 a constant immediate before force_reg.
1030 2013-11-26 Richard Biener <rguenther@suse.de>
1032 PR tree-optimization/59245
1033 * tree-vrp.c (set_value_range): Assert that we don't have
1034 overflowed constants (but our infinities).
1035 (set_value_range_to_value): Drop all overflow flags.
1036 (vrp_visit_phi_node): Likewise.
1037 (vrp_visit_assignment_or_call): Use set_value_range_to_value
1038 to set a constant range.
1040 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1043 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1044 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1045 for zero_extend case.
1047 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
1050 * configure.ac (install_gold_as_default): New. Set to yes for
1051 --disable-ld or --enable-gold=default.
1052 (gcc_cv_ld_gold_srcdir): New.
1053 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
1055 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1056 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1057 * configure: Regenerated.
1059 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1060 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1061 (original) [collect-ld && -fuse-ld=bfd]: Set to
1062 $ORIGINAL_LD_BFD_FOR_TARGET.
1063 (original) [collect-ld && -fuse-ld=gold]: Set to
1064 $ORIGINAL_LD_GOLD_FOR_TARGET.
1065 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1066 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1068 2013-11-26 Terry Guo <terry.guo@arm.com>
1070 * config/arm/arm.c (require_pic_register): Handle high pic base
1071 register for thumb-1.
1072 (arm_load_pic_register): Also initialize high pic base register.
1073 * doc/invoke.texi: Update documentation for option -mpic-register.
1075 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
1079 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1080 Prefix function names with 'sh_'. Make them non-static.
1081 * config/sh/sh-protos.h (sh_disp_addr_displacement,
1082 sh_max_mov_insn_displacement): Add declarations.
1083 * config/sh/constraints.md (Q): Reject QImode.
1084 (Sdd): Use match_code "mem".
1085 (Snd): Fix erroneous matching of non-memory operands.
1086 * config/sh/predicates.md (short_displacement_mem_operand): New
1088 (general_movsrc_operand): Disallow PC relative QImode loads.
1089 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1090 (*movqi, *movhi): Merge both insns into...
1091 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
1092 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
1093 on the operand types.
1095 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1097 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1098 Remove unused variable save_config.
1099 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1102 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1104 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1105 using other intrinsics.
1106 (vtbx3_<psu>8): Likewise.
1108 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1110 * config/aarch64/aarch64-builtins.c
1111 (aarch64_types_bsl_p_qualifiers): New.
1112 (aarch64_types_bsl_s_qualifiers): Likewise.
1113 (aarch64_types_bsl_u_qualifiers): Likewise.
1114 (TYPES_BSL_P): Likewise.
1115 (TYPES_BSL_S): Likewise.
1116 (TYPES_BSL_U): Likewise.
1117 (BUILTIN_VALLDIF): Likewise.
1118 (BUILTIN_VDQQH): Likewise.
1119 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1120 * config/aarch64/aarch64-simd.md
1121 (aarch64_simd_bsl<mode>_internal): Handle more modes.
1122 (aarch64_simd_bsl<mode>): Likewise.
1123 * config/aarch64/arm_neon.h
1124 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1125 * config/aarch64/iterators.md (VALLDIF): New.
1126 (Vbtype): Handle more modes.
1128 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1130 * config/aarch64/aarch64-builtins.c
1131 (aarch64_type_qualifiers): Add qualifier_poly.
1132 (aarch64_build_scalar_type): Also build Poly types.
1133 (aarch64_build_vector_type): Likewise.
1134 (aarch64_build_type): Likewise.
1135 (aarch64_build_signed_type): New.
1136 (aarch64_build_unsigned_type): Likewise.
1137 (aarch64_build_poly_type): Likewise.
1138 (aarch64_init_simd_builtins): Also handle Poly types.
1140 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1142 * config/aarch64/aarch64-builtins.c
1143 (VAR1): Use new naming scheme for aarch64_builtins.
1144 (aarch64_builtin_vectorized_function): Use new
1145 aarch64_builtins names.
1147 2013-11-26 Richard Biener <rguenther@suse.de>
1149 PR tree-optimization/59287
1150 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1151 Remove no longer necessary special-casing of union accesses.
1153 2013-11-26 Richard Biener <rguenther@suse.de>
1155 * pretty-print.c (output_buffer::~output_buffer): Really
1158 2013-11-25 Jeff Law <law@redhat.com>
1160 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1161 invalidate loop information.
1163 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1165 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1167 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1171 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1173 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1174 previously visited basic blocks before recursing instead of only one
1177 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1179 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1180 * config/aarch64/aarch64-cores.def (cortex-a53):
1181 Use cortexa53 tuning struct.
1183 2013-11-25 Andrew Macleod <amacleod@redhat.com>
1186 * fold-const.c: Include hash-table.h.
1188 2013-11-25 Marek Polacek <polacek@redhat.com>
1191 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1193 2013-11-25 Richard Biener <rguenther@suse.de>
1195 * tree-dfa.c: Remove unused convert.h include.
1197 2013-11-25 Terry Guo <terry.guo@arm.com>
1199 * doc/invoke.texi (-mslow-flash-data): Document new option.
1200 * config/arm/arm.opt (mslow-flash-data): New option.
1201 * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
1203 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1205 (arm_disable_literal_pool): Declare it.
1206 * config/arm/arm.c (arm_disable_literal_pool): New variable.
1207 (arm_option_override): Handle new option.
1208 (thumb2_legitimate_address_p): Don't allow symbol references when
1209 literal pools are disabled.
1210 (arm_max_const_double_inline_cost): New function.
1211 * config/arm/arm.md (types.md): Include it before ...
1212 (use_literal_pool): New attribute.
1213 (enabled): Use new attribute.
1214 (split pattern): Replace symbol+offset with MOVW/MOVT.
1216 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1219 Revert previous commit.
1221 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1223 * jump.c (reset_insn_reg_label_operand_notes): New function,
1225 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
1226 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1228 (delete_dead_jumptables): ... here. Handle cfglayout mode.
1229 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1230 expensive CFG cleanup is called for.
1231 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1232 (cfg_layout_finalize): Delete dead jump tables before re-building
1234 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1235 basic blocks, not before.
1236 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1238 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1239 insns chain of a scheduling extended basic block, they cannot appear
1240 there in cfglayout mode.
1242 2013-11-24 Tobias Burnus <burnus@net-b.de>
1244 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1246 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1248 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1251 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
1253 * graphite-sese-to-poly.c: Don't include extra "expr.h".
1255 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1257 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1259 2013-11-23 David Edelson <dje.gcc@gmail.com>
1260 Andrew Dixie <andrewd@gentrack.com>
1263 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1264 (COLLECT_SHARED_FINI_FUNC): Define.
1266 * collect2.c (aix_shared_initname): Declare.
1267 (aix_shared_fininame): Declare.
1268 (symkind): Add SYM_AIXI and SYM_AIXD.
1269 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1270 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1271 (aixlazy_flag): Parse.
1272 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1273 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1275 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
1277 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1278 (rs6000_xcoff_select_section): Place decls with stricter alignment
1279 into named sections.
1280 (rs6000_xcoff_unique_section): Allow unique sections for
1281 uninitialized data with strict alignment.
1283 2013-11-23 Jakub Jelinek <jakub@redhat.com>
1285 PR tree-optimization/59154
1286 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1287 rhs1 of a cast and new_op is invariant, fold_convert it.
1288 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1289 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1291 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
1294 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1295 Declare as MULTI_ARG_1_SF instruction.
1296 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1297 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1298 from *xop_vmfrcz_<mode>.
1299 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1300 to merge scalar result with __A.
1301 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1304 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1306 * gimplify.h (recalculate_side_effects): Delete.
1307 * gimplify.c (recalculate_side_effects): Make static and add comment.
1309 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1311 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1312 for the destination of a define_peephole2. Likewise register_operand
1313 rather than arith_reg_operand. Remove constraints from
1316 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1318 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1320 (mn10300_store_multiple_operation_p): Declare.
1321 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1323 (mn10300_store_multiple_operation_p): ...this and remove mode
1325 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1328 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1330 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1331 (pop_multiple_operation): Delete.
1332 (analyze_push_multiple_operation): Declare.
1333 (analyze_pop_multiple_operation): Declare.
1334 * config/bfin/bfin.c (push_multiple_operation): Rename to...
1335 (analyze_push_multiple_operation): ...this and remove mode argument.
1336 (pop_multiple_operation): Rename to...
1337 (analyze_pop_multiple_operation): ...this and remove mode argument.
1338 * config/bfin/predicates.md (push_multiple_operation): Define.
1339 (pop_multiple_operation): Likewise.
1341 2013-11-23 Alan Modra <amodra@gmail.com>
1343 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1345 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1348 * common.opt (static-liblsan): Add.
1349 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1351 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
1352 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1354 * opts.c (common_handle_option): Handle -fsanitize=leak.
1355 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1356 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1357 (LIBUBSAN_EARLY_SPEC): Remove.
1358 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1359 (SANITIZER_SPEC): Add -fsanitize=leak handling.
1360 (sanitize_spec_function): Handle %sanitize(leak).
1361 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1363 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
1364 Jakub Jelinek <jakub@redhat.com>
1366 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1367 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1368 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
1369 (ipa_modify_formal_parameters): Adjust caller. Remove
1370 synth_parm_prefix argument. Use operator enum instead of bit fields.
1371 Add assert for properly handling vector of references. Handle
1372 creating brand new parameters.
1373 (ipa_modify_call_arguments): Use operator enum instead of bit
1375 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
1377 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1379 (ipa_dump_param_adjustments): Rename reduction to new_decl.
1380 Use operator enum instead of bit fields.
1381 * ipa-prop.h (enum ipa_parm_op): New.
1382 (struct ipa_parm_adjustment): New field op. Rename reduction
1383 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1385 (ipa_modify_formal_parameters): Remove last argument.
1386 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1387 ipa_get_adjustment_candidate): New prototypes.
1388 * tree-sra.c (turn_representatives_into_adjustments): Use operator
1389 enum. Set arg_prefix.
1390 (get_adjustment_for_base): Use operator enum.
1391 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1393 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1394 (ipa_sra_modify_function_body): Same. No longer static.
1395 (sra_ipa_reset_debug_stmts): Use operator enum.
1396 (modify_function): Do not pass prefix argument.
1398 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1400 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1401 (ubsan_pass): Ignore clobber stmts.
1403 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1404 * opts.c (common_handle_option): Add -fsanitize=return.
1405 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1406 or it into SANITIZE_UNDEFINED.
1408 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1409 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1410 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1411 Don't instrument accesses to VAR_DECLs which are known to fit
1412 into their bounds and the vars are known to have shadow bytes
1413 indicating allowed access.
1414 (asan_dynamic_init_call): New function.
1415 (asan_add_global): If vnode->dynamically_initialized,
1416 set __has_dynamic_init to 1 instead of 0.
1417 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1418 * asan.h (asan_dynamic_init_call): New prototype.
1419 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1421 2013-11-22 Martin Jambor <mjambor@suse.cz>
1423 PR rtl-optimization/10474
1424 * ira.c (interesting_dest_for_shprep_1): New function.
1425 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1426 also check parallels.
1428 2013-11-22 Jeff Law <law@redhat.com>
1430 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1431 NULL for RHS, which we used to invalidate equivalences.
1432 (record_temporary_equivalences_from_phis): New bitmap arguments
1433 and a boolean indicating if we have passed a backedge. If we
1434 have passed a backedge, then set the appropriate bit in the
1435 bitmaps for the SRC & DEST of PHIs creating equivalences.
1436 (invalidate_equivalences, dummy_simplify): New functions.
1437 (cond_arg_set_in_b): Remove.
1438 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1439 arguments and a boolean indicating if we have passed a backedge.
1440 If we have passed a backedge, then perform invalidations as needed.
1441 (thread_around_empty_blocks): If we have seen a backedge, then
1442 use the dummy simplify routine.
1443 (thread_through_normal_block): Likewise. Pass bitmaps and
1444 backedge status to children. Do not pessimize so much when
1445 traversing backedges in the CFG.
1446 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1447 If we have seen a backedge, then use the dummy simplify routine.
1448 Do not pessimize so much when traversing backedges.
1450 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
1452 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1453 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1455 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
1457 * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
1458 PTA_PCLMUL and PTA_RDRND for Silvermont.
1459 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1462 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1464 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1466 * hooks.h (hook_uint_mode_0): Add Prototype.
1467 * hooks.c (hook_uint_mode_0): New default function.
1468 * target.def (atomic_align_for_mode): New target hook.
1469 * tree.c (build_atomic_base): Add alignment override parameter.
1470 (build_common_tree_nodes): Use atomic alignment override.
1471 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1472 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1474 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1476 * gimple.h: Remove all includes.
1477 (recalculate_side_effects): Move prototype to gimplify.h.
1478 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1479 * gengtype.c (open_base_files): Add gimple.h include list.
1480 * gimplify.h (recalculate_side_effects): Relocate prototype here.
1481 * gimple.c: Adjust include list.
1482 (recalculate_side_effects): Move to gimplify.c.
1483 * gimplify.c: Adjust include list.
1484 (recalculate_side_effects): Relocate from gimple.c.
1485 * alias.c: Add required include files removed from gimple.h.
1487 * builtins.c: Likewise.
1488 * calls.c: Likewise.
1489 * cfgexpand.c: Likewise.
1490 * cfgloop.c: Likewise.
1491 * cfgloopmanip.c: Likewise.
1492 * cgraphbuild.c: Likewise.
1493 * cgraph.c: Likewise.
1494 * cgraphclones.c: Likewise.
1495 * cgraphunit.c: Likewise.
1496 * cilk-common.c: Likewise.
1497 * data-streamer.c: Likewise.
1498 * data-streamer-in.c: Likewise.
1499 * data-streamer-out.c: Likewise.
1501 * dwarf2out.c: Likewise.
1502 * emit-rtl.c: Likewise.
1503 * except.c: Likewise.
1505 * fold-const.c: Likewise.
1506 * function.c: Likewise.
1507 * gimple-builder.c: Likewise.
1508 * gimple-expr.c: Likewise.
1509 * gimple-fold.c: Likewise.
1510 * gimple-iterator.c: Likewise.
1511 * gimple-low.c: Likewise.
1512 * gimple-pretty-print.c: Likewise.
1513 * gimple-ssa-isolate-paths.c: Likewise.
1514 * gimple-ssa-strength-reduction.c: Likewise.
1515 * gimple-streamer-in.c: Likewise.
1516 * gimple-streamer-out.c: Likewise.
1517 * gimple-walk.c: Likewise.
1518 * gimplify-me.c: Likewise.
1519 * graphite-blocking.c: Likewise.
1520 * graphite.c: Likewise.
1521 * graphite-clast-to-gimple.c: Likewise.
1522 * graphite-dependences.c: Likewise.
1523 * graphite-interchange.c: Likewise.
1524 * graphite-optimize-isl.c: Likewise.
1525 * graphite-poly.c: Likewise.
1526 * graphite-scop-detection.c: Likewise.
1527 * graphite-sese-to-poly.c: Likewise.
1528 * internal-fn.c: Likewise.
1530 * ipa-cp.c: Likewise.
1531 * ipa-devirt.c: Likewise.
1532 * ipa-inline-analysis.c: Likewise.
1533 * ipa-inline.c: Likewise.
1534 * ipa-profile.c: Likewise.
1535 * ipa-prop.c: Likewise.
1536 * ipa-pure-const.c: Likewise.
1537 * ipa-reference.c: Likewise.
1538 * ipa-split.c: Likewise.
1539 * ipa-utils.c: Likewise.
1540 * langhooks.c: Likewise.
1541 * lto-cgraph.c: Likewise.
1542 * lto-compress.c: Likewise.
1543 * lto-opts.c: Likewise.
1544 * lto-section-in.c: Likewise.
1545 * lto-section-out.c: Likewise.
1546 * lto-streamer.c: Likewise.
1547 * lto-streamer-in.c: Likewise.
1548 * lto-streamer-out.c: Likewise.
1549 * omp-low.c: Likewise.
1550 * opts-global.c: Likewise.
1551 * passes.c: Likewise.
1552 * predict.c: Likewise.
1553 * profile.c: Likewise.
1556 * stor-layout.c: Likewise.
1557 * symtab.c: Likewise.
1558 * targhooks.c: Likewise.
1559 * toplev.c: Likewise.
1560 * tracer.c: Likewise.
1561 * trans-mem.c: Likewise.
1562 * tree-affine.c: Likewise.
1564 * tree-call-cdce.c: Likewise.
1565 * tree-cfg.c: Likewise.
1566 * tree-cfgcleanup.c: Likewise.
1567 * tree-chrec.c: Likewise.
1568 * tree-complex.c: Likewise.
1569 * tree-data-ref.c: Likewise.
1570 * tree-dfa.c: Likewise.
1571 * tree-eh.c: Likewise.
1572 * tree-emutls.c: Likewise.
1573 * tree-if-conv.c: Likewise.
1574 * tree-inline.c: Likewise.
1575 * tree-into-ssa.c: Likewise.
1576 * tree-loop-distribution.c: Likewise.
1577 * tree-nested.c: Likewise.
1578 * tree-nrv.c: Likewise.
1579 * tree-object-size.c: Likewise.
1580 * tree-outof-ssa.c: Likewise.
1581 * tree-parloops.c: Likewise.
1582 * tree-phinodes.c: Likewise.
1583 * tree-predcom.c: Likewise.
1584 * tree-pretty-print.c: Likewise.
1585 * tree-profile.c: Likewise.
1586 * tree-scalar-evolution.c: Likewise.
1587 * tree-sra.c: Likewise.
1588 * tree-ssa-address.c: Likewise.
1589 * tree-ssa-alias.c: Likewise.
1590 * tree-ssa.c: Likewise.
1591 * tree-ssa-ccp.c: Likewise.
1592 * tree-ssa-coalesce.c: Likewise.
1593 * tree-ssa-copy.c: Likewise.
1594 * tree-ssa-copyrename.c: Likewise.
1595 * tree-ssa-dce.c: Likewise.
1596 * tree-ssa-dom.c: Likewise.
1597 * tree-ssa-dse.c: Likewise.
1598 * tree-ssa-forwprop.c: Likewise.
1599 * tree-ssa-ifcombine.c: Likewise.
1600 * tree-ssa-live.c: Likewise.
1601 * tree-ssa-loop.c: Likewise.
1602 * tree-ssa-loop-ch.c: Likewise.
1603 * tree-ssa-loop-im.c: Likewise.
1604 * tree-ssa-loop-ivcanon.c: Likewise.
1605 * tree-ssa-loop-ivopts.c: Likewise.
1606 * tree-ssa-loop-manip.c: Likewise.
1607 * tree-ssa-loop-niter.c: Likewise.
1608 * tree-ssa-loop-prefetch.c: Likewise.
1609 * tree-ssa-loop-unswitch.c: Likewise.
1610 * tree-ssa-math-opts.c: Likewise.
1611 * tree-ssanames.c: Likewise.
1612 * tree-ssa-operands.c: Likewise.
1613 * tree-ssa-phiopt.c: Likewise.
1614 * tree-ssa-phiprop.c: Likewise.
1615 * tree-ssa-pre.c: Likewise.
1616 * tree-ssa-propagate.c: Likewise.
1617 * tree-ssa-reassoc.c: Likewise.
1618 * tree-ssa-sccvn.c: Likewise.
1619 * tree-ssa-sink.c: Likewise.
1620 * tree-ssa-strlen.c: Likewise.
1621 * tree-ssa-structalias.c: Likewise.
1622 * tree-ssa-tail-merge.c: Likewise.
1623 * tree-ssa-ter.c: Likewise.
1624 * tree-ssa-threadedge.c: Likewise.
1625 * tree-ssa-threadupdate.c: Likewise.
1626 * tree-ssa-uncprop.c: Likewise.
1627 * tree-ssa-uninit.c: Likewise.
1628 * tree-stdarg.c: Likewise.
1629 * tree-streamer.c: Likewise.
1630 * tree-streamer-in.c: Likewise.
1631 * tree-streamer-out.c: Likewise.
1632 * tree-switch-conversion.c: Likewise.
1633 * tree-tailcall.c: Likewise.
1634 * tree-vect-data-refs.c: Likewise.
1635 * tree-vect-generic.c: Likewise.
1636 * tree-vect-loop.c: Likewise.
1637 * tree-vect-loop-manip.c: Likewise.
1638 * tree-vectorizer.c: Likewise.
1639 * tree-vect-patterns.c: Likewise.
1640 * tree-vect-slp.c: Likewise.
1641 * tree-vect-stmts.c: Likewise.
1642 * tree-vrp.c: Likewise.
1644 * ubsan.c: Likewise.
1645 * value-prof.c: Likewise.
1646 * varpool.c: Likewise.
1647 * var-tracking.c: Likewise.
1648 * vtable-verify.c: Likewise.
1649 * config/darwin.c: Likewise.
1650 * config/aarch64/aarch64-builtins.c: Likewise.
1651 * config/aarch64/aarch64.c: Likewise.
1652 * config/alpha/alpha.c: Likewise.
1653 * config/i386/i386.c: Likewise.
1654 * config/i386/winnt.c: Likewise.
1655 * config/ia64/ia64.c: Likewise.
1656 * config/m32c/m32c.c: Likewise.
1657 * config/mep/mep.c: Likewise.
1658 * config/mips/mips.c: Likewise.
1659 * config/rs6000/rs6000.c: Likewise.
1660 * config/s390/s390.c: Likewise.
1661 * config/sh/sh.c: Likewise.
1662 * config/sparc/sparc.c: Likewise.
1663 * config/spu/spu.c: Likewise.
1664 * config/stormy16/stormy16.c: Likewise.
1665 * config/tilegx/tilegx.c: Likewise.
1666 * config/tilepro/tilepro.c: Likewise.
1667 * config/xtensa/xtensa.c: Likewise.
1669 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
1672 * arm.md (negdi_extendsidi): Fix invalid split.
1674 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
1676 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1677 (vmov_n_f64): Likewise.
1678 (vmov_n_p8): Likewise.
1679 (vmov_n_p16): Likewise.
1680 (vmov_n_s8): Likewise.
1681 (vmov_n_s16): Likewise.
1682 (vmov_n_s32): Likewise.
1683 (vmov_n_s64): Likewise.
1684 (vmov_n_u8): Likewise.
1685 (vmov_n_u16): Likewise.
1686 (vmov_n_u32): Likewise.
1687 (vmov_n_u64): Likewise.
1688 (vmovq_n_f32): Likewise.
1689 (vmovq_n_f64): Likewise.
1690 (vmovq_n_p8): Likewise.
1691 (vmovq_n_p16): Likewise.
1692 (vmovq_n_s8): Likewise.
1693 (vmovq_n_s16): Likewise.
1694 (vmovq_n_s32): Likewise.
1695 (vmovq_n_s64): Likewise.
1696 (vmovq_n_u8): Likewise.
1697 (vmovq_n_u16): Likewise.
1698 (vmovq_n_u32): Likewise.
1699 (vmovq_n_u64): Likewise.
1701 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1703 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1704 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1705 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1706 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1707 and also change to float UNSPEC.
1708 (reduc_maxmin_uns>_<mode>): Remove V2DI.
1709 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1710 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1711 result access for big-endian.
1712 (__LANE0): New macro used to fix up lane access of 'across-lanes'
1713 intrinsics for big-endian.
1714 * config/aarch64/iterators.md (VDQV): Add V2DI.
1716 (vp): New mode attribute.
1718 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1720 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1721 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1724 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1726 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1727 for big-endian element order.
1728 (aarch64_simd_vec_setv2di): Likewise.
1729 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1730 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1731 (vec_extract): Expand using aarch64_get_lane.
1732 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1734 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1736 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1737 and stores to be ABI compliant.
1739 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1741 * input.h (input_line): Remove.
1742 (input_filename): Likewise.
1743 (in_system_header): Likewise.
1744 * tree.h (EXPR_LOC_OR_HERE): Remove.
1745 * config/bfin/bfin.c (output_file_start): Remove use of
1746 input_filename macro.
1747 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1748 * gimplify.c (internal_get_tmp_var): Likewise.
1749 EXPR_LOC_OR_HERE macro.
1750 (shortcut_cond_expr): Likewise.
1751 * tree-diagnostic.c (diagnostic_report_current_function): Remove
1752 use of input_filename macro.
1753 * tree.c (get_file_function_name): Likewise.
1755 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
1757 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1759 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1761 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1762 (same sized) elements even if the type of the CONSTRUCTOR has
1763 vector mode and target is a REG.
1765 2013-11-22 Richard Biener <rguenther@suse.de>
1768 2013-11-21 Richard Biener <rguenther@suse.de>
1770 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1771 nb_iterations_upper_bound by one.
1773 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
1775 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1778 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1779 core-avx-i, core-avx2 and slm.
1781 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
1783 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1785 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
1787 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1788 (stzx_24_<mode>): Likewise mra_operand.
1790 2013-11-22 Jeff Law <law@redhat.com>
1792 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1793 (thread_block_1): Do not cancel jump threads which go from
1794 inside a loop, through the header, then back inside the loop.
1795 (bb_ends_with_multiway_branch): New function.
1796 (thread_through_all_blocks): Handle threading cases which start
1797 in a loop through the loop header to a point in the loop.
1799 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1800 jump thread path properly.
1802 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
1804 * vec.h (auto_vec): New class.
1805 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1806 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1807 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1808 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1809 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1810 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1811 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1812 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1813 appropriate instead of vec for local variables.
1815 2013-11-21 Teresa Johnson <tejohnson@google.com>
1818 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1819 not understood by old_insns_match_p.
1821 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
1823 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1824 little endian change.
1825 (vec_pack_sfix_trunc_v2df): Likewise.
1826 (vec_pack_ufix_trunc_v2df): Likewise.
1827 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1828 double checking of endianness.
1830 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1832 * tree-vect-generic.c (optimize_vector_constructor): New function.
1833 (expand_vector_operations_1): Call it.
1835 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
1837 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1838 ix86_zero_extend_to_Pmode where appropriate.
1839 (ix86_expand_builtin): Ditto.
1841 2013-11-21 Cary Coutant <ccoutant@google.com>
1843 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1844 (add_linkage_name): Don't add linkage name for -g1.
1845 (decls_for_scope): Process subblocks for -g1.
1846 (dwarf2out_source_line): Output line tables for -g1.
1847 (dwarf2out_finish): Likewise.
1848 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1849 unused scopes for -g1.
1850 * opts.c (common_handle_option): Handle -g same as -g2.
1851 * doc/invoke.texi: Update description for -g1.
1853 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
1855 * doc/extend.texi: Document htm builtins.
1857 2013-11-21 Jeff Law <law@redhat.com>
1859 PR tree-optimization/59221
1860 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1861 temporary equivalences when threading through joiner blocks.
1863 2013-11-21 Joseph Myers <joseph@codesourcery.com>
1865 PR rtl-optimization/55950
1866 * real.c (real_sqrt): Remove function.
1867 * real.h (real_sqrt): Remove prototype.
1868 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1869 SQRT using real_sqrt.
1871 2013-11-21 Richard Biener <rguenther@suse.de>
1873 PR tree-optimization/59058
1874 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1875 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1876 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1877 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1878 (NITERS_KNOWN_P): Fold into ...
1879 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1880 (LOOP_VINFO_PEELING_FOR_NITER): Add.
1881 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1882 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1883 (vect_do_peeling_for_alignment): Re-use precomputed niter
1884 instead of re-emitting it.
1885 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1886 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1887 * tree-vect-loop.c (vect_get_loop_niters): Use
1888 number_of_latch_executions.
1889 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1890 (vect_analyze_loop_form): Simplify.
1891 (vect_analyze_loop_operations): Move epilogue peeling code ...
1892 (vect_analyze_loop_2): ... here and adjust it to compute
1893 LOOP_VINFO_PEELING_FOR_NITER.
1894 (vect_estimate_min_profitable_iters): Use
1895 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1896 (vect_build_loop_niters): Emit on the preheader.
1897 (vect_generate_tmps_on_preheader): Likewise.
1898 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1899 of recomputing it. Adjust.
1901 2013-11-21 Richard Biener <rguenther@suse.de>
1903 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1904 LOC_LINE): Remove wrappers and fix all users.
1905 (struct _loop_vec_info): Remove loop_line_number member.
1906 (LOOP_VINFO_LOC): Remove.
1907 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1908 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1911 2013-11-21 Richard Biener <rguenther@suse.de>
1913 * tree-ssa-forwprop.c (simplify_vce): New function.
1914 (ssa_forward_propagate_and_combine): Call it.
1916 2013-11-21 Richard Biener <rguenther@suse.de>
1918 * tree-vect-loop-manip.c (vect_build_loop_niters,
1919 vect_generate_tmps_on_preheader): Move ...
1920 * tree-vect-loop.c (vect_build_loop_niters,
1921 vect_generate_tmps_on_preheader): ... here and simplify.
1922 (vect_transform_loop): Call them here and pass down results
1924 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1925 Get niter variables from caller.
1926 (vect_do_peeling_for_alignment): Likewise.
1927 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1928 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1931 2013-11-21 Richard Biener <rguenther@suse.de>
1933 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1934 nb_iterations_upper_bound by one.
1936 2013-11-21 Richard Biener <rguenther@suse.de>
1938 PR tree-optimization/59058
1939 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1940 (build_size_arg_loc): Apply niter adjustment here.
1941 (generate_memset_builtin): Adjust.
1942 (generate_memcpy_builtin): Likewise.
1943 (classify_partition): Do not use number_of_exit_cond_executions
1944 but record whether niter needs to be adjusted.
1946 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
1948 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1951 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
1954 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1955 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1956 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1957 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1958 sh_optimize_sett_clrt pass.o to extra_objs.
1960 2013-11-20 David Malcolm <dmalcolm@redhat.com>
1962 * cfg.c (dump_edge_info): Remove redundant comment.
1963 * cfgcleanup.c (outgoing_edges_match): Reword reference to
1964 EXIT_BLOCK_PTR in comment.
1965 (try_optimize_cfg): Likewise.
1966 * cfgrtl.c (last_bb_in_partition): Likewise.
1967 * cgraph.c (cgraph_node_cannot_return): Likewise.
1968 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1969 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1970 * ipa-split.c (consider_split): Likewise.
1971 * profile.c (find_spanning_tree): Likewise.
1972 * sched-int.h (common_sched_info_def.add_block): Likewise.
1973 * dominance.c (calc_dfs_tree_nonrec): Reword references in
1974 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1975 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1976 in comments to now removed ENTRY_BLOCK_PTR macro.
1977 (tree_forwarder_block_p): Reword reference in comment to
1979 * tree-inline.c (copy_cfg_body): Reword references in comments to
1980 now removed ENTRY_BLOCK_PTR macro.
1981 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1982 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
1983 a comma to the comment to clarify the meaning.
1985 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
1987 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1989 (free_gimplify_stack): Add prototype.
1990 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1991 (struct gimplify_ctx): Relocate here.
1992 (gimplify_ctxp): Make static.
1993 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
1994 list of struct gimplify_ctx.
1995 (push_gimplify_context): Add default parameters and allocate a struct
1997 (pop_gimplify_context): Free a struct back to the pool.
1998 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1999 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2000 use a local 'struct gimplify_ctx'.
2001 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2002 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2004 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2005 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2006 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2007 lower_omp_teams, execute_lower_omp): Likewise.
2008 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2009 * tree-inline.c (optimize_inline_calls): Likewise.
2011 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2013 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2014 (vsx_extract_<mode>): Likewise.
2015 (*vsx_extract_<mode>_one_le): New LE variant on
2016 *vsx_extract_<mode>_zero.
2017 (vsx_extract_v4sf): Adjust for little endian.
2019 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
2021 PR rtl-optimization/59133
2022 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
2024 (lra_create_new_reg_with_unique_value): Pass new argument value.
2025 (lra_emit_add, lra_emit_move): Ditto.
2026 * lra-constraints.c (in_class_p): Add check for move for a new insn.
2027 (change_class): Rename to lra_change_class. Move to lra-int.h.
2028 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2030 (process_addr_reg, process_addr): Ditto.
2031 (curr_insn_transform): Ditto. Add check on old pseudo for
2033 * lra-int.h (lra_get_regno_hard_regno): Move below.
2034 (lra_change_class): Renamed change_class from lra.c.
2036 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2038 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2039 the children of a NULL pointer.
2041 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2043 * lra.c (lra): Set lra_in_progress before check_rtl call.
2044 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2045 adding clobber regs when LRA is running.
2047 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2049 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2050 restriction for ISA_MIPS32R2.
2051 (ISA_HAS_LXC1_SXC1): New macro.
2052 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2053 (ISA_HAS_NMADD4_NMSUB4): Likewise.
2054 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2055 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2056 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2057 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2058 (*<ANYF:storex>_<P:mode>): Likewise.
2060 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2062 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2063 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2064 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2065 * config/mips/mips.md (recip_condition): Remove mode attribute.
2066 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2068 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2070 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2073 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2074 Make sure neg2_ovf is set before being used.
2076 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
2078 * plugin.def: Add comment about register_callback and
2079 invoke_plugin_callbacks_full.
2081 * plugin.c (register_callback, invoke_plugin_callbacks_full):
2082 Handle PLUGIN_INCLUDE_FILE event.
2084 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2086 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2087 allow subregs of TDmode in FPRs of smaller size in little-endian.
2088 (rs6000_split_multireg_move): When splitting an access to TDmode
2089 in FPRs, do not use simplify_gen_subreg.
2091 2013-11-20 Joseph Myers <joseph@codesourcery.com>
2094 * real.c: Remove comment about decimal string conversion and
2096 (real_from_string): Use MPFR to convert nonzero decimal constant
2099 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2101 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2102 endianness of the D registers for the legacy encodings.
2104 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
2106 PR rtl-optimization/54300
2107 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2108 outputs in a single-set are killed from the value chains.
2110 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2112 * cgraph.h (varpool_node): Add need_bounds_init field.
2113 * lto-cgraph.c (lto_output_varpool_node): Output
2114 need_bounds_init value.
2115 (input_varpool_node): Read need_bounds_init value.
2116 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2118 2013-11-20 Jan Hubicka <jh@suse.cz>
2120 * opts.c (finish_options): Imply -ffat-lto-objects with
2121 -fno-use-linker-plugin.
2122 * common.opt (fuse-linker-plugin): Add var.
2124 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2126 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2127 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2128 (gen_type_die_with_usage): Skip pointer bounds.
2129 (dwarf2out_global_decl): Likewise.
2131 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2133 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2136 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
2139 * config/i386/i386.c (ix86_option_override_internal): Add missed
2140 argument prefix for 'ix86_fpmath'.
2141 * config/i386/ssemath.h: Add missed definition of
2142 TARGET_FPMATH_DEFAULT_P macros.
2144 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2145 Mike Stump <mikestump@comcast.net>
2146 Richard Sandiford <rdsandiford@googlemail.com>
2148 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2149 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2150 tree_fits_shwi_p or tree_fits_uhwi_p.
2151 * builtins.c (fold_builtin_powi): Likewise.
2152 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2154 * dbxout.c (dbxout_symbol): Likewise.
2155 * expr.c (expand_expr_real_1): Likewise.
2156 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2157 (fold_binary_loc): Likewise.
2158 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2159 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2160 * omp-low.c (lower_omp_for_lastprivate): Likewise.
2161 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2162 * stor-layout.c (compute_record_mode): Likewise.
2163 * tree-cfg.c (verify_expr): Likewise.
2164 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2165 * tree-pretty-print.c (dump_array_domain): Likewise.
2166 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2167 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2168 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2169 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2170 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2171 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2172 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2173 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2174 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2175 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2176 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2177 (create_variable_info_for_1): Likewise.
2178 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2179 (vect_verify_datarefs_alignment): Likewise.
2180 (vect_analyze_data_ref_accesses): Likewise.
2181 (vect_prune_runtime_alias_test_list): Likewise.
2182 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2184 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2186 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2187 overflow. Use tree_to_shwi.
2189 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2191 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2192 HOST_WIDE_INTs when folding (x >> c) << c.
2194 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2195 Dominik Vogt <vogt@linux.vnet.ibm.com>
2197 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2198 int comparisons with an out of range condition code.
2199 (s390_optimize_nonescaping_tx): Skip empty BBs.
2200 Generate the new tbegin RTX when removing the FPR clobbers (with
2202 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
2203 result before doing the retry calculations.
2204 (s390_init_builtins): Make tbegin "returns_twice" and tabort
2206 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2207 the TDB setting part of an tbegin.
2208 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2209 ("tx_assist"): Set unused argument to an immediate zero instead of
2210 loading zero into a GPR and pass it as argument.
2211 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2212 Remove inline and related attributes.
2213 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2214 (__TM_is_illegal, __TM_is_footprint_exceeded)
2215 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2217 2013-11-20 Richard Biener <rguenther@suse.de>
2220 * lto-opts.c (lto_write_options): Write defaults only if
2221 they were not explicitely specified. Also write
2222 -ffp-contract default.
2223 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2225 (run_gcc): Pass through -ffp-contract.
2227 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2229 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2231 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2233 * gcc/config/aarch64/aarch64-builtins.c
2234 (aarch64_simd_itype): Remove.
2235 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2236 (VAR1): Use qualifiers.
2237 (aarch64_build_scalar_type): New.
2238 (aarch64_build_vector_type): Likewise.
2239 (aarch64_build_type): Likewise.
2240 (aarch64_init_simd_builtins): Refactor, remove special cases,
2241 consolidate main loop.
2242 (aarch64_simd_expand_args): Likewise.
2244 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2247 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2249 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
2251 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2253 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2255 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2256 to "vec<>" instances.
2257 (build_pretty_printer): Register the vec<>* prettyprinter.
2259 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2261 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2262 (GdbSubprinter.handles_type): New.
2263 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2264 (GdbSubprinterRegex): New subclass of GdbSubprinter.
2265 (GdbPrettyPrinters.add_printer): Remove in favor of...
2266 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2267 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2268 (GdbPrettyPrinters.__call__): Update search for subprinter
2269 to use handles_type method.
2270 (build_pretty_printer): Update registration of subprinters to
2271 use the new API above, supporting multiple spelling of each type,
2272 and allowing for future regex-based subprinters.
2274 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2276 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2277 V16QI vector splat case for little endian.
2279 2013-11-19 Jeff Law <law@redhat.com>
2281 * tree-ssa-threadedge.c (thread_across_edge): After threading
2282 through a joiner, allow threading a normal block requiring duplication.
2284 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2285 jump threading requests that would muck up the loop structures.
2287 * tree-ssa-threadupdate.c: Fix trailing whitespace.
2288 * tree-ssa-threadupdate.h: Likewise.
2290 2013-11-19 Mike Stump <mikestump@comcast.net>
2292 * gdbinit.in: Add pmz to print out mpz values.
2294 2013-11-20 Jan Hubicka <jh@suse.cz>
2296 * common.opt (ffat-lto-objects): Disable by default.
2297 * doc/invoke.texi (fat-lto-objects): Update documentation.
2298 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2300 2013-11-19 Martin Jambor <mjambor@suse.cz>
2302 PR rtl-optimization/59099
2303 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2305 (ira): Move init_reg_equiv and call to
2306 split_live_ranges_for_shrink_wrap up, remove analyses around call
2307 to find_moveable_pseudos.
2309 2013-11-20 Alan Modra <amodra@gmail.com>
2311 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2312 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2313 to strict alignment on older processors when little-endian.
2314 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2317 2013-11-19 Teresa Johnson <tejohnson@google.com>
2319 * common/config/i386/i386-common.c: Enable
2320 -freorder-blocks-and-partition at -O2 and up for x86.
2321 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2322 * opts.c (finish_options): Only warn if
2323 -freorder-blocks-and-partition was set on command line.
2325 2013-11-19 Sriraman Tallam <tmsriram@google.com>
2327 * final.c (final_scan_insn): Emit a label for the split
2328 cold function part. Label name is formed by suffixing
2329 the original function name with "cold".
2331 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2333 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2334 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2335 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2336 (EXIT_BLOCK_PTR_FOR_FN): ...this.
2337 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2339 (EXIT_BLOCK_PTR): Likewise.
2340 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2341 (FOR_ALL_BB_FN): Update for renaming of
2342 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2344 * cfg.c (init_flow): Likewise.
2345 (check_bb_profile): Likewise.
2346 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2347 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2348 * cfghooks.c (account_profile_record): Likewise.
2349 * cfgloop.c (init_loops_structure): Likewise.
2350 * cgraphbuild.c (record_eh_tables): Likewise.
2351 (compute_call_stmt_bb_frequency): Likewise.
2352 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2353 * lto-streamer-in.c (input_cfg): Likewise.
2354 * predict.c (maybe_hot_frequency_p): Likewise.
2355 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2356 * tree-inline.c (initialize_cfun): Likewise.
2357 (copy_cfg_body): Likewise.
2358 (copy_body): Likewise.
2359 (tree_function_versioning): Likewise.
2361 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2362 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2363 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2364 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2365 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2366 (connect_traces): Likewise.
2367 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2368 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2369 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2371 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2373 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2374 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2375 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2376 (rotate_loop): Likewise.
2377 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2378 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2380 (alloc_aux_for_edges): Likewise.
2381 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2382 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2384 (compact_blocks): Likewise.
2385 (clear_edges): Likewise.
2386 * cfganal.c (single_pred_before_succ_order): Remove usage of
2387 ENTRY_BLOCK_PTR macro.
2388 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2389 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2390 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2391 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2392 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2394 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2395 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2397 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2398 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2399 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2400 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2401 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2402 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2404 (print_edge_list): Likewise.
2405 (create_edge_list): Likewise.
2406 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2407 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2409 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2411 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2412 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2413 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2414 (try_optimize_cfg): Likewise.
2415 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2416 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2417 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2418 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2419 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2420 (try_forward_edges): Likewise.
2421 (try_simplify_condjump): Likewise.
2422 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2423 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2424 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2425 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2427 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2428 (expand_gimple_tailcall): Likewise.
2429 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2430 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2431 (tidy_fallthru_edges): Likewise.
2432 (verify_flow_info): Likewise.
2433 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2434 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2435 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2436 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2437 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2438 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2439 (get_loop_body_in_dom_order): Likewise.
2440 (get_loop_body): Likewise.
2441 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2442 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2443 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2445 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2446 (fix_bb_placement): Likewise.
2447 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2448 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2449 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2450 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2452 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2453 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2454 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2455 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2457 (fixup_fallthru_exit_predecessor): Remove uses of macros:
2458 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2459 (fixup_reorder_chain): Likewise.
2460 (relink_block_chain): Likewise.
2461 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2462 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2463 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2464 (force_one_exit_fallthru): Likewise.
2465 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2467 (rtl_verify_edges): Likewise.
2468 (commit_edge_insertions): Likewise.
2469 (commit_one_edge_insertion): Likewise.
2470 (rtl_split_edge): Likewise.
2471 (force_nonfallthru_and_redirect): Likewise.
2472 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2473 (skip_insns_after_block): Likewise.
2474 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2476 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2477 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2479 (contains_no_active_insn_p): Likewise.
2480 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2481 (entry_of_function): Likewise.
2482 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2483 (fixup_new_cold_bb): Likewise.
2484 (patch_jump_insn): Likewise.
2485 (try_redirect_by_replacing_jump): Likewise.
2486 (block_label): Likewise.
2487 (could_fall_through): Likewise.
2488 (can_fallthru): Likewise.
2489 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2490 ENTRY_BLOCK_PTR macro.
2491 (rebuild_cgraph_edges): Likewise.
2492 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2493 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2494 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2495 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2496 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2497 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2498 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2499 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2501 (reg_nonzero_bits_for_combine): Likewise.
2502 (set_nonzero_bits_and_sign_copies): Likewise.
2503 (combine_instructions): Likewise.
2504 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2506 (bypass_conditional_jumps): Likewise.
2507 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2508 (find_implicit_sets): Likewise.
2509 (cprop_jump): Likewise.
2510 * cse.c (cse_cc_succs): Likewise.
2511 (cse_find_path): Likewise.
2512 * df-problems.c (df_lr_confluence_0): Likewise.
2513 * df-scan.c (df_entry_block_defs_collect): Remove usage of
2514 ENTRY_BLOCK_PTR macro.
2515 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2516 * dominance.c (iterate_fix_dominators): Remove usage of
2517 ENTRY_BLOCK_PTR macro.
2518 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2519 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2520 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2522 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2524 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2526 * domwalk.c (cmp_bb_postorder): Likewise.
2527 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2528 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2530 (sjlj_emit_function_enter): Likewise.
2531 * final.c (compute_alignments): Likewise.
2532 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2533 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2534 (reposition_prologue_and_epilogue_notes): Remove usage of
2535 EXIT_BLOCK_PTR macro.
2536 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2538 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2539 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2540 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2541 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2542 (compute_code_hoist_vbeinout): Likewise.
2543 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2544 (pre_expr_reaches_here_p_work): Likewise.
2545 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2546 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2548 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2549 ENTRY_BLOCK_PTR macro.
2550 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2552 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2553 ENTRY_BLOCK_PTR macro.
2554 * graphite-scop-detection.c (build_scops): Likewise.
2555 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2556 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2557 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2559 (unlink_bb_notes): Likewise.
2560 (create_check_block_twin): Likewise.
2561 (init_before_recovery): Likewise.
2562 (sched_extend_bb): Likewise.
2563 (priority): Likewise.
2564 * hw-doloop.c (reorder_loops): Likewise.
2565 (discover_loop): Likewise.
2566 * ifcvt.c (dead_or_predicable): Remove uses of macros:
2567 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2568 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2569 (block_has_only_trap): Likewise.
2570 (cond_exec_find_if_block): Likewise.
2571 (merge_if_block): Likewise.
2572 * ipa-inline-analysis.c (param_change_prob): Remove usage of
2573 ENTRY_BLOCK_PTR macro.
2574 (record_modified): Likewise.
2575 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2576 EXIT_BLOCK_PTR macro.
2577 (local_pure_const): Likewise.
2578 * ipa-split.c (split_function): Remove uses of macros:
2579 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2580 (find_split_points): Likewise.
2581 (consider_split): Likewise.
2582 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2583 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2584 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2585 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2586 * ira-emit.c (entered_from_non_parent_p): Remove usage of
2587 ENTRY_BLOCK_PTR macro.
2588 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2589 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2590 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2591 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2592 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2594 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2596 (compute_farthest): Likewise.
2597 (compute_available): Likewise.
2598 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2599 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2601 (compute_earliest): Likewise.
2602 (compute_antinout_edge): Likewise.
2603 * loop-iv.c (simplify_using_initial_values): Remove usage of
2604 ENTRY_BLOCK_PTR macro.
2605 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2607 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2609 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2611 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2612 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2613 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2615 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2617 * lto-streamer-out.c (output_cfg): Likewise.
2618 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2620 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2621 * mode-switching.c (optimize_mode_switching): Likewise.
2622 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2623 * modulo-sched.c (rest_of_handle_sms): Likewise.
2624 (canon_loop): Likewise.
2625 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2626 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2627 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2628 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2630 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2631 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2632 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2633 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2634 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2635 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2636 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2637 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2638 (gimple_predict_edge): Likewise.
2639 (probably_never_executed): Likewise.
2640 * profile.c (find_spanning_tree): Remove uses of macros:
2641 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2642 (branch_prob): Likewise.
2643 (compute_branch_probabilities): Likewise.
2644 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2645 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2646 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2647 (set_bb_counts): Likewise.
2648 (correct_negative_edge_counts): Likewise.
2649 (get_exec_counts): Likewise.
2650 (instrument_values): Likewise.
2651 (instrument_edges): Likewise.
2652 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2654 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2655 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2656 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2657 (reg_to_stack): Likewise.
2658 * regs.h (REG_N_SETS): Likewise.
2659 * reload.c (find_dummy_reload): Likewise.
2660 (combine_reloads): Likewise.
2661 (push_reload): Likewise.
2662 * reload1.c (has_nonexceptional_receiver): Remove usage of
2663 EXIT_BLOCK_PTR macro.
2664 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2666 (find_basic_block): Likewise.
2667 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2668 (schedule_ebbs): Likewise.
2669 * sched-int.h (sel_sched_p): Likewise.
2670 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2672 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2673 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2675 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2676 (extend_rgns): Likewise.
2677 (find_single_block_region): Likewise.
2678 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2679 ENTRY_BLOCK_PTR macro.
2680 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2681 (sel_create_recovery_block): Likewise.
2682 (bb_ends_ebb_p): Likewise.
2683 (sel_bb_end): Likewise.
2684 (sel_bb_head): Likewise.
2685 (free_lv_sets): Likewise.
2686 (init_lv_sets): Likewise.
2687 (tidy_control_flow): Likewise.
2688 (maybe_tidy_empty_bb): Likewise.
2689 * sel-sched-ir.h (_succ_iter_cond): Likewise.
2690 (_succ_iter_start): Likewise.
2691 (sel_bb_empty_or_nop_p): Likewise.
2692 (get_loop_exit_edges_unique_dests): Likewise.
2693 (inner_loop_header_p): Likewise.
2694 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2695 (find_block_for_bookkeeping): Likewise.
2696 * store-motion.c (remove_reachable_equiv_notes): Likewise.
2697 (insert_store): Likewise.
2698 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2699 ENTRY_BLOCK_PTR macro.
2700 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2701 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2702 (gate_tm_init): Likewise.
2703 (tm_region_init): Likewise.
2704 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2705 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2706 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2707 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2709 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2710 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2712 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2714 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2716 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2718 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2719 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2720 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2721 (build_gimple_cfg): Likewise.
2722 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2723 (gimple_can_merge_blocks_p): Likewise.
2724 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2725 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2726 * tree-complex.c (update_parameter_components): Remove usage of
2727 ENTRY_BLOCK_PTR macro.
2728 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2729 EXIT_BLOCK_PTR macro.
2730 * tree-inline.c (tree_function_versioning): Remove uses of macros:
2731 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2732 (delete_unreachable_blocks_update_callgraph): Likewise.
2733 (initialize_cfun): Likewise.
2734 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2735 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2736 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2737 * tree-into-ssa.c (update_ssa): Likewise.
2738 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2739 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2740 (rewrite_into_ssa): Likewise.
2741 (rewrite_debug_stmt_uses): Likewise.
2742 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2743 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2744 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2745 ENTRY_BLOCK_PTR macro.
2746 * tree-scalar-evolution.h (block_before_loop): Likewise.
2747 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2748 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2750 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2752 (propagate_dereference_distances): Remove uses of macros:
2753 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2754 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2756 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2757 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2758 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2759 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2760 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2761 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2762 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2763 (mark_control_dependent_edges_necessary): Remove uses of macros:
2764 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2765 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2766 ENTRY_BLOCK_PTR macro.
2767 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2768 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2769 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2770 (calculate_live_on_exit): Likewise.
2771 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2772 (loe_visit_block): Likewise.
2773 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2774 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2775 (live_on_entry): Likewise.
2776 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2777 EXIT_BLOCK_PTR macro.
2778 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2779 ENTRY_BLOCK_PTR macro.
2780 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2781 (bound_difference): Likewise.
2782 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2783 of EXIT_BLOCK_PTR macro.
2784 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2785 of ENTRY_BLOCK_PTR macro.
2786 * tree-ssa-math-opts.c (register_division_in): Likewise.
2787 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2788 * tree-ssa-pre.c (compute_avail): Likewise.
2789 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2790 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2791 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2792 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2793 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2795 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2796 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2797 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2798 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2799 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2800 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2801 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2802 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2803 (find_pdom): Likewise.
2804 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2805 * tree-stdarg.c (reachable_at_most_once): Likewise.
2806 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2807 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2808 (eliminate_tail_call): Likewise.
2809 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2811 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2812 * var-tracking.c (vt_initialize): Remove uses of macros:
2813 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2814 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2815 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2816 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2818 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2820 * config/bfin/bfin.c (hwloop_optimize): Likewise.
2821 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2822 of EXIT_BLOCK_PTR macro.
2823 * config/arm/arm.c (require_pic_register): Remove usage of
2824 ENTRY_BLOCK_PTR macro.
2825 (arm_r3_live_at_start_p): Likewise.
2826 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2827 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2828 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2829 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2830 ENTRY_BLOCK_PTR macro.
2831 * config/i386/i386.c (ix86_count_insn): Likewise.
2832 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2833 (ix86_pad_short_function): Likewise.
2834 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2835 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2836 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2837 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2838 (ix86_expand_epilogue): Likewise.
2839 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2840 (ia64_expand_prologue): Likewise.
2842 2013-11-19 Catherine Moore <clm@codesourcery.com>
2844 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2845 * config/mips/mips.opt (mfix-rm7000): New option.
2846 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2847 * config/mips/mips.c (mips_reorg_process_insns): Disable
2848 noreorder for TARGET_FIX_RM7000.
2850 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
2852 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2854 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2856 * config/arm/arm.c (arm_new_rtx_costs):
2857 Handle narrow mode add-shifts properly.
2858 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2859 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2862 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
2864 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2866 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2868 * config/rs6000/vector.md ("mov<mode>"): Do not call
2869 rs6000_emit_le_vsx_move to move into or out of GPRs.
2870 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2871 source and destination are not GPR hard regs.
2873 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2875 * basic-block.h (n_edges_for_function): Rename macro to...
2876 (n_edges_for_fn): ...this.
2877 (n_edges): Eliminate macro as work towards making uses of
2880 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2881 to "n_edges_for_fn".
2883 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2884 (clear_edges): Likewise.
2885 (free_edge): Likewise.
2886 * cfghooks.c (dump_flow_info): Likewise.
2887 * cprop.c (is_too_expensive): Likewise.
2888 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2889 * gcse.c (is_too_expensive): Likewise.
2890 (prune_insertions_deletions): Likewise.
2891 * mcf.c (create_fixup_graph): Likewise.
2892 * sched-rgn.c (haifa_find_rgns): Likewise.
2893 * tree-cfg.c (gimple_dump_cfg): Likewise.
2894 * var-tracking.c (variable_tracking_main_1): Likewise.
2896 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2898 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2901 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2903 * config/aarch64/aarch64.md
2904 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2906 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2908 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2910 2013-11-19 Joseph Myers <joseph@codesourcery.com>
2912 * varasm.c (align_variable): Give error instead of warning for
2913 unsupported alignment.
2914 (assemble_noswitch_variable): Likewise.
2916 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2918 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2921 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
2923 * loop-doloop.c (doloop_optimize_loops): Remove unused
2924 loop iterator argument from FOR_EACH_LOOP.
2926 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2928 Convert gimple types from a union to C++ inheritance.
2929 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2930 * coretypes.h (union gimple_statement_d): Remove declaration.
2931 (gimple): Convert from being a "union gimple_statement_d *"
2932 to a "struct gimple_statement_base *".
2933 (const_gimple): Likewise (with "const").
2934 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2935 (ggc_alloc_cleared_gimple_statement_stat): ...this.
2936 * gimple-pretty-print.c (debug): Change parameter from a
2937 "gimple_statement_d &" to a "gimple_statement_base &".
2938 (debug): Change parameter from a "gimple_statement_d *" to
2939 a "gimple_statement_base *".
2940 * gimple-pretty-print.h (debug): Update declarations as above.
2941 * gimple.c (gimple_alloc_stat): Update for renaming of
2942 ggc_alloc_cleared_gimple_statement_d_stat to
2943 ggc_alloc_cleared_gimple_statement_stat.
2944 * gimple.h: Include "is-a.h" for use by is_a_helper
2945 specializations in followup autogenerated patch.
2946 (struct gimple statement_base): Make this type usable as a base
2947 class by adding "desc", "tag" and "variable_size" to GTY, thus
2948 using opting-in to gengtype's support for simple inheritance.
2949 (gimple_statement_with_ops_base): Convert to a subclass of
2950 gimple_statement_base, dropping initial "gsbase" field. Note that
2951 this type is abstract, with no GSS_ value, and thus no GTY tag value.
2952 (gimple_statement_with_ops): Convert to a subclass of
2953 gimple_statement_with_ops_base, dropping initial "opbase" field.
2954 Add tag value to GTY marking. Update marking of op field to
2955 reflect how num_ops field is accessed via inheritance.
2956 (gimple_statement_with_memory_ops_base): Convert to a subclass of
2957 gimple_statement_with_ops_base, dropping initial "opbase" field.
2958 Add tag value to GTY marking.
2959 (gimple_statement_with_memory_ops): Convert to a subclass of
2960 public gimple_statement_with_memory_ops_base, dropping initial
2961 "membase" field. Add tag value to GTY marking. Update marking
2962 of op field to reflect how num_ops field is accessed via inheritance.
2963 (gimple_statement_call): Analogous changes that also update the
2964 marking of the "u" union.
2965 (gimple_statement_omp): Convert to a subclass of
2966 gimple_statement_base, dropping initial "gsbase" field, adding
2967 tag value to GTY marking.
2968 (gimple_statement_bind): Likewise.
2969 (gimple_statement_catch): Likewise.
2970 (gimple_statement_eh_filter): Likewise.
2971 (gimple_statement_eh_else): Likewise.
2972 (gimple_statement_eh_mnt): Likewise.
2973 (gimple_statement_phi): Likewise.
2974 (gimple_statement_eh_ctrl): Likewise.
2975 (gimple_statement_try): Likewise.
2976 (gimple_statement_wce): Likewise.
2977 (gimple_statement_asm): Convert to a subclass of
2978 gimple_statement_with_memory_ops_base, dropping initial
2979 "membase" field, adding tag value to GTY marking, and updating
2980 marking of op field.
2981 (gimple_statement_omp_critical): Convert to a subclass of
2982 gimple_statement_omp, dropping initial "omp" field, adding tag
2983 value to GTY marking.
2984 (gimple_statement_omp_for): Likewise.
2985 (gimple_statement_omp_parallel): Likewise.
2986 (gimple_statement_omp_task): Convert to a subclass of
2987 gimple_statement_omp_parallel, dropping initial "par" field,
2988 adding tag value to GTY marking.
2989 (gimple_statement_omp_sections): Convert to a subclass of
2990 gimple_statement_omp, dropping initial "omp" field, adding
2991 tag value to GTY marking.
2992 (gimple_statement_omp_continue): Convert to a subclass of
2993 gimple_statement_base, dropping initial "gsbase" field, adding
2994 tag value to GTY marking.
2995 (gimple_statement_omp_single): Convert to a subclass of
2996 gimple_statement_omp, dropping initial "omp" field, adding
2997 tag value to GTY marking.
2998 (gimple_statement_omp_atomic_load): Convert to a subclass of
2999 gimple_statement_base, dropping initial "gsbase" field, adding
3000 tag value to GTY marking.
3001 (gimple_statement_omp_atomic_store): Convert to a subclass of
3002 gimple_statement_base, dropping initial "gsbase" field, adding
3003 tag value to GTY marking.
3004 (gimple_statement_transaction): Convert to a subclass of
3005 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3006 field, adding tag value to GTY marking.
3007 (union gimple_statement_d): Remove.
3008 * system.h (CONST_CAST_GIMPLE): Update to use
3009 "struct gimple_statement_base *" rather than
3010 "union gimple_statement_d *".
3011 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3012 gimple_statement_d to gimple_statement_base.
3014 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3015 (gimple_set_use_ops): Port from union to usage of as_a.
3016 (gimple_set_vuse): Likewise.
3017 (gimple_set_vdef): Likewise.
3018 (gimple_call_internal_fn): Port from union to a static_cast,
3019 given that the type has already been asserted.
3020 (gimple_omp_body_ptr): Port from unchecked union usage to
3022 (gimple_omp_set_body): Likewise.
3024 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3025 gimple types to a true class hierarchy.
3026 (update_call_edge_frequencies): Likewise.
3027 (gsi_insert_seq_nodes_before): Likewise.
3028 (gsi_insert_seq_nodes_after): Likewise.
3029 (gsi_split_seq_after): Likewise.
3030 (gsi_set_stmt): Likewise.
3031 (gsi_split_seq_before): Likewise.
3032 (gsi_remove): Likewise.
3033 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3034 (gsi_next): Likewise.
3035 (gsi_prev): Likewise.
3036 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3037 * gimple-ssa.h (gimple_vuse_op): Likewise.
3038 (gimple_vdef_op): Likewise.
3039 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3040 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3041 * gimple.c (gimple_set_code): Likewise.
3042 (gimple_alloc_stat): Likewise.
3043 (gimple_set_subcode): Likewise.
3044 (gimple_build_call_internal_1): Likewise.
3045 (gimple_check_failed): Likewise.
3046 (gimple_call_flags): Likewise.
3047 (gimple_set_bb): Likewise.
3048 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3049 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3050 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3051 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3052 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3053 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3054 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3055 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3056 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3057 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3058 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3059 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3060 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3061 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3062 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3063 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3064 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3065 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3066 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3067 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3068 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3069 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3070 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3071 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3072 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3073 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3075 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3077 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3079 (is_a_helper <const gimple_statement_omp_atomic_store>
3080 (const_gimple)): Likewise.
3081 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3083 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3085 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3087 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3089 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3091 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3093 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3095 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3096 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3098 (gimple_seq_last): Update for conversion of gimple types to a true
3100 (gimple_seq_set_last): Likewise.
3101 (gimple_code): Likewise.
3102 (gimple_bb): Likewise.
3103 (gimple_block): Likewise.
3104 (gimple_set_block): Likewise.
3105 (gimple_location): Likewise.
3106 (gimple_location_ptr): Likewise.
3107 (gimple_set_location): Likewise.
3108 (gimple_no_warning_p): Likewise.
3109 (gimple_set_no_warning): Likewise.
3110 (gimple_set_visited): Likewise.
3111 (gimple_visited_p): Likewise.
3112 (gimple_set_plf): Likewise.
3113 (gimple_plf): Likewise.
3114 (gimple_set_uid): Likewise.
3115 (gimple_uid): Likewise.
3116 (gimple_init_singleton): Likewise.
3117 (gimple_modified_p): Likewise.
3118 (gimple_set_modified): Likewise.
3119 (gimple_expr_code): Likewise.
3120 (gimple_has_volatile_ops): Likewise.
3121 (gimple_set_has_volatile_ops): Likewise.
3122 (gimple_omp_subcode): Likewise.
3123 (gimple_omp_set_subcode): Likewise.
3124 (gimple_omp_return_set_nowait): Likewise.
3125 (gimple_omp_section_set_last): Likewise.
3126 (gimple_omp_parallel_set_combined_p): Likewise.
3127 (gimple_omp_atomic_set_need_value): Likewise.
3128 (gimple_omp_atomic_set_seq_cst): Likewise.
3129 (gimple_num_ops): Likewise.
3130 (gimple_set_num_ops): Likewise.
3131 (gimple_assign_nontemporal_move_p): Likewise.
3132 (gimple_assign_set_nontemporal_move): Likewise.
3133 (gimple_assign_rhs_code): Likewise.
3134 (gimple_assign_set_rhs_code): Likewise.
3135 (gimple_call_internal_p): Likewise.
3136 (gimple_call_with_bounds_p): Likewise.
3137 (gimple_call_set_with_bounds): Likewise.
3138 (gimple_call_set_tail): Likewise.
3139 (gimple_call_tail_p): Likewise.
3140 (gimple_call_set_return_slot_opt): Likewise.
3141 (gimple_call_return_slot_opt_p): Likewise.
3142 (gimple_call_set_from_thunk): Likewise.
3143 (gimple_call_from_thunk_p): Likewise.
3144 (gimple_call_set_va_arg_pack): Likewise.
3145 (gimple_call_va_arg_pack_p): Likewise.
3146 (gimple_call_set_nothrow): Likewise.
3147 (gimple_call_set_alloca_for_var): Likewise.
3148 (gimple_call_alloca_for_var_p): Likewise.
3149 (gimple_call_copy_flags): Likewise.
3150 (gimple_cond_code): Likewise.
3151 (gimple_cond_set_code): Likewise.
3152 (gimple_cond_make_false): Likewise.
3153 (gimple_cond_make_true): Likewise.
3154 (gimple_asm_volatile_p): Likewise.
3155 (gimple_asm_set_volatile): Likewise.
3156 (gimple_asm_set_input): Likewise.
3157 (gimple_asm_input_p): Likewise.
3158 (gimple_try_kind): Likewise.
3159 (gimple_try_set_kind): Likewise.
3160 (gimple_try_catch_is_cleanup): Likewise.
3161 (gimple_try_set_catch_is_cleanup): Likewise.
3162 (gimple_wce_cleanup_eh_only): Likewise.
3163 (gimple_wce_set_cleanup_eh_only): Likewise.
3164 (gimple_debug_bind_p): Likewise.
3165 (gimple_debug_source_bind_p): Likewise.
3166 (gimple_omp_for_set_kind): Likewise.
3167 (gimple_omp_for_set_combined_p): Likewise.
3168 (gimple_omp_for_set_combined_into_p): Likewise.
3169 (gimple_omp_target_set_kind): Likewise.
3170 (gimple_transaction_subcode): Likewise.
3171 (gimple_transaction_set_subcode): Likewise.
3172 (gimple_predict_predictor): Likewise.
3173 (gimple_predict_set_predictor): Likewise.
3174 (gimple_predict_outcome): Likewise.
3175 (gimple_predict_set_outcome): Likewise.
3176 (gimple_transaction_set_label): Likewise.
3177 (gimple_transaction_set_body): Likewise.
3178 (gimple_transaction_label_ptr): Likewise.
3179 (gimple_transaction_label): Likewise.
3180 (gimple_transaction_body_ptr): Likewise.
3181 (gimple_omp_continue_set_control_use): Likewise.
3182 (gimple_omp_continue_control_use_ptr): Likewise.
3183 (gimple_omp_continue_control_use): Likewise.
3184 (gimple_omp_continue_set_control_def): Likewise.
3185 (gimple_omp_continue_control_def_ptr): Likewise.
3186 (gimple_omp_continue_control_def): Likewise.
3187 (gimple_omp_atomic_load_rhs_ptr): Likewise.
3188 (gimple_omp_atomic_load_rhs): Likewise.
3189 (gimple_omp_atomic_load_set_rhs): Likewise.
3190 (gimple_omp_atomic_load_lhs_ptr): Likewise.
3191 (gimple_omp_atomic_load_lhs): Likewise.
3192 (gimple_omp_atomic_load_set_lhs): Likewise.
3193 (gimple_omp_atomic_store_val_ptr): Likewise.
3194 (gimple_omp_atomic_store_val): Likewise.
3195 (gimple_omp_atomic_store_set_val): Likewise.
3196 (gimple_omp_for_cond): Likewise.
3197 (gimple_omp_for_set_cond): Likewise.
3198 (gimple_omp_sections_set_control): Likewise.
3199 (gimple_omp_sections_control_ptr): Likewise.
3200 (gimple_omp_sections_control): Likewise.
3201 (gimple_omp_sections_set_clauses): Likewise.
3202 (gimple_omp_sections_clauses_ptr): Likewise.
3203 (gimple_omp_sections_clauses): Likewise.
3204 (gimple_omp_teams_set_clauses): Likewise.
3205 (gimple_omp_teams_clauses_ptr): Likewise.
3206 (gimple_omp_teams_clauses): Likewise.
3207 (gimple_omp_target_set_data_arg): Likewise.
3208 (gimple_omp_target_data_arg_ptr): Likewise.
3209 (gimple_omp_target_data_arg): Likewise.
3210 (gimple_omp_target_set_child_fn): Likewise.
3211 (gimple_omp_target_child_fn_ptr): Likewise.
3212 (gimple_omp_target_child_fn): Likewise.
3213 (gimple_omp_target_set_clauses): Likewise.
3214 (gimple_omp_target_clauses_ptr): Likewise.
3215 (gimple_omp_target_clauses): Likewise.
3216 (gimple_omp_single_set_clauses): Likewise.
3217 (gimple_omp_single_clauses_ptr): Likewise.
3218 (gimple_omp_single_clauses): Likewise.
3219 (gimple_omp_task_set_arg_align): Likewise.
3220 (gimple_omp_task_arg_align_ptr): Likewise.
3221 (gimple_omp_task_arg_align): Likewise.
3222 (gimple_omp_task_set_arg_size): Likewise.
3223 (gimple_omp_task_arg_size_ptr): Likewise.
3224 (gimple_omp_task_arg_size): Likewise.
3225 (gimple_omp_task_set_copy_fn): Likewise.
3226 (gimple_omp_task_copy_fn_ptr): Likewise.
3227 (gimple_omp_task_copy_fn): Likewise.
3228 (gimple_omp_task_set_data_arg): Likewise.
3229 (gimple_omp_task_data_arg_ptr): Likewise.
3230 (gimple_omp_task_data_arg): Likewise.
3231 (gimple_omp_task_set_child_fn): Likewise.
3232 (gimple_omp_task_child_fn_ptr): Likewise.
3233 (gimple_omp_task_child_fn): Likewise.
3234 (gimple_omp_task_set_clauses): Likewise.
3235 (gimple_omp_task_clauses_ptr): Likewise.
3236 (gimple_omp_task_clauses): Likewise.
3237 (gimple_omp_parallel_set_data_arg): Likewise.
3238 (gimple_omp_parallel_data_arg_ptr): Likewise.
3239 (gimple_omp_parallel_data_arg): Likewise.
3240 (gimple_omp_parallel_set_child_fn): Likewise.
3241 (gimple_omp_parallel_child_fn_ptr): Likewise.
3242 (gimple_omp_parallel_child_fn): Likewise.
3243 (gimple_omp_parallel_set_clauses): Likewise.
3244 (gimple_omp_parallel_clauses_ptr): Likewise.
3245 (gimple_omp_parallel_clauses): Likewise.
3246 (gimple_omp_for_set_pre_body): Likewise.
3247 (gimple_omp_for_pre_body_ptr): Likewise.
3248 (gimple_omp_for_set_incr): Likewise.
3249 (gimple_omp_for_incr_ptr): Likewise.
3250 (gimple_omp_for_incr): Likewise.
3251 (gimple_omp_for_set_final): Likewise.
3252 (gimple_omp_for_final_ptr): Likewise.
3253 (gimple_omp_for_final): Likewise.
3254 (gimple_omp_for_set_initial): Likewise.
3255 (gimple_omp_for_initial_ptr): Likewise.
3256 (gimple_omp_for_initial): Likewise.
3257 (gimple_omp_for_set_index): Likewise.
3258 (gimple_omp_for_index_ptr): Likewise.
3259 (gimple_omp_for_index): Likewise.
3260 (gimple_omp_for_collapse): Likewise.
3261 (gimple_omp_for_set_clauses): Likewise.
3262 (gimple_omp_for_clauses_ptr): Likewise.
3263 (gimple_omp_for_clauses): Likewise.
3264 (gimple_omp_critical_set_name): Likewise.
3265 (gimple_omp_critical_name_ptr): Likewise.
3266 (gimple_omp_critical_name): Likewise.
3267 (gimple_eh_dispatch_set_region): Likewise.
3268 (gimple_eh_dispatch_region): Likewise.
3269 (gimple_resx_set_region): Likewise.
3270 (gimple_resx_region): Likewise.
3271 (gimple_phi_set_arg): Likewise.
3272 (gimple_phi_arg): Likewise.
3273 (gimple_phi_set_result): Likewise.
3274 (gimple_phi_result_ptr): Likewise.
3275 (gimple_phi_result): Likewise.
3276 (gimple_phi_num_args): Likewise.
3277 (gimple_phi_capacity): Likewise.
3278 (gimple_wce_set_cleanup): Likewise.
3279 (gimple_wce_cleanup_ptr): Likewise.
3280 (gimple_try_set_cleanup): Likewise.
3281 (gimple_try_set_eval): Likewise.
3282 (gimple_try_cleanup_ptr): Likewise.
3283 (gimple_try_eval_ptr): Likewise.
3284 (gimple_eh_else_set_e_body): Likewise.
3285 (gimple_eh_else_set_n_body): Likewise.
3286 (gimple_eh_else_e_body_ptr): Likewise.
3287 (gimple_eh_else_n_body_ptr): Likewise.
3288 (gimple_eh_must_not_throw_set_fndecl): Likewise.
3289 (gimple_eh_must_not_throw_fndecl): Likewise.
3290 (gimple_eh_filter_set_failure): Likewise.
3291 (gimple_eh_filter_set_types): Likewise.
3292 (gimple_eh_filter_failure_ptr): Likewise.
3293 (gimple_eh_filter_types_ptr): Likewise.
3294 (gimple_eh_filter_types): Likewise.
3295 (gimple_catch_set_handler): Likewise.
3296 (gimple_catch_set_types): Likewise.
3297 (gimple_catch_handler_ptr): Likewise.
3298 (gimple_catch_types_ptr): Likewise.
3299 (gimple_catch_types): Likewise.
3300 (gimple_asm_string): Likewise.
3301 (gimple_asm_set_label_op): Likewise.
3302 (gimple_asm_label_op): Likewise.
3303 (gimple_asm_set_clobber_op): Likewise.
3304 (gimple_asm_clobber_op): Likewise.
3305 (gimple_asm_set_output_op): Likewise.
3306 (gimple_asm_output_op_ptr): Likewise.
3307 (gimple_asm_output_op): Likewise.
3308 (gimple_asm_set_input_op): Likewise.
3309 (gimple_asm_input_op_ptr): Likewise.
3310 (gimple_asm_input_op): Likewise.
3311 (gimple_asm_nlabels): Likewise.
3312 (gimple_asm_nclobbers): Likewise.
3313 (gimple_asm_noutputs): Likewise.
3314 (gimple_asm_ninputs): Likewise.
3315 (gimple_bind_set_block): Likewise.
3316 (gimple_bind_block): Likewise.
3317 (gimple_bind_add_seq): Likewise.
3318 (gimple_bind_add_stmt): Likewise.
3319 (gimple_bind_set_body): Likewise.
3320 (gimple_bind_body_ptr): Likewise.
3321 (gimple_bind_append_vars): Likewise.
3322 (gimple_bind_set_vars): Likewise.
3323 (gimple_bind_vars): Likewise.
3324 (gimple_call_clobber_set): Likewise.
3325 (gimple_call_use_set): Likewise.
3326 (gimple_call_set_internal_fn): Likewise.
3327 (gimple_call_set_fntype): Likewise.
3328 (gimple_call_fntype): Likewise.
3329 (gimple_omp_return_lhs_ptr): Likewise.
3330 (gimple_omp_return_lhs): Likewise.
3331 (gimple_omp_return_set_lhs): Likewise.
3332 (gimple_omp_taskreg_set_data_arg): Likewise.
3333 (gimple_omp_taskreg_data_arg_ptr): Likewise.
3334 (gimple_omp_taskreg_data_arg): Likewise.
3335 (gimple_omp_taskreg_set_child_fn): Likewise.
3336 (gimple_omp_taskreg_child_fn_ptr): Likewise.
3337 (gimple_omp_taskreg_child_fn): Likewise.
3338 (gimple_omp_taskreg_set_clauses): Likewise.
3339 (gimple_omp_taskreg_clauses_ptr): Likewise.
3340 (gimple_omp_taskreg_clauses): Likewise.
3341 (gimple_vuse): Likewise.
3342 (gimple_vdef): Likewise.
3343 (gimple_vuse_ptr): Likewise.
3344 (gimple_vdef_ptr): Likewise.
3345 * tree-inline.c (copy_debug_stmt): Likewise.
3346 * tree-phinodes.c (make_phi_node): Likewise.
3348 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3349 (is_a_helper <gimple_statement_with_ops>::test): New.
3350 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3351 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3353 * gimple-streamer-in.c (input_gimple_stmt): Port from union
3354 access to use of as_a.
3355 * gimple.c (gimple_build_asm_1): Likewise.
3356 (gimple_build_try): Likewise. Also, return a specific subclass
3357 rather than just gimple.
3358 (gimple_build_resx): Port from union access to use of as_a.
3359 (gimple_build_eh_dispatch): Likewise.
3360 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
3361 now that gengtype no longer provides a typed allocator function.
3362 (gimple_copy): Likewise.
3363 * gimple.h (gimple_build_try): Return a specific subclass rather
3365 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3366 with subclass access by making use of new return type of
3368 * tree-phinodes.c: (allocate_phi_node): Return a
3369 "gimple_statement_phi *" rather than just a gimple.
3370 (resize_phi_node): Likewise.
3371 (make_phi_node): Replace union access with subclass access by
3372 making use of new return type of allocate_phi_node.
3373 (reserve_phi_args_for_new_edge): Replace union access with as_a.
3374 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3376 (remove_phi_args): Update for change to remove_phi_arg_num.
3378 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3379 code field to reflect inheritance, rather than embedding of
3380 the base gimple type.
3382 2013-11-19 Richard Biener <rguenther@suse.de>
3384 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3385 and destructor and make fel_next a member function.
3386 (fel_next): Transform into ...
3387 (loop_iterator::next): ... this.
3388 (fel_init): Transform into ...
3389 (loop_iterator::loop_iterator): ... this.
3390 (loop_iterator::~loop_iterator): New.
3391 (FOR_EACH_LOOP): Remove loop-iterator argument.
3392 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3393 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3394 graphite-clast-to-gimple.c, graphite-scop-detection.c,
3395 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3396 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3397 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3398 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3399 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3400 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3401 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3402 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3403 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3404 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
3405 FOR_EACH_LOOP_BREAK with break.
3407 2013-11-19 Richard Biener <rguenther@suse.de>
3409 PR tree-optimization/59164
3410 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3412 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3413 whether we can create an epilogue loop to reflect thecases where
3416 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
3418 * graphite-sese-to-poly.c: Include expr.h.
3420 2013-11-19 Richard Biener <rguenther@suse.de>
3423 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3424 loads into stmts that may clobber it.
3426 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
3428 * cgraphunit.c (symtab_terminator): New variable.
3429 (queued_nodes): Renamed from first. Use symtab_terminator as
3431 (analyze_functions): Adjust accordingly.
3432 (cgraph_process_new_functions): Return void.
3433 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3435 2013-11-19 Marek Polacek <polacek@redhat.com>
3437 * opts.c (common_handle_option): Add -fsanitize=null option.
3438 Turn off -fdelete-null-pointer-checks option when doing the
3439 NULL pointer checking.
3440 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3441 * tree-pass.h (make_pass_ubsan): Declare.
3442 (make_pass_sanopt): Declare.
3443 * timevar.def (TV_TREE_UBSAN): New timevar.
3444 * passes.def: Add pass_sanopt and pass_ubsan.
3445 * ubsan.h (ubsan_null_ckind): New enum.
3446 (ubsan_mismatch_data): New struct.
3447 (ubsan_expand_null_ifn): Declare.
3448 (ubsan_create_data): Adjust declaration.
3449 (ubsan_type_descriptor): Likewise.
3450 * asan.c: Include "ubsan.h".
3451 (pass_data_sanopt): New pass.
3452 (execute_sanopt): New function.
3453 (gate_sanopt): Likewise.
3454 (make_pass_sanopt): Likewise.
3455 (class pass_sanopt): New class.
3456 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3457 gimple-iterator.h and cfgloop.h.
3458 (PROB_VERY_UNLIKELY): Define.
3459 (tree_type_map_hash): New function.
3460 (ubsan_type_descriptor): Add new parameter.
3461 Improve type name generation.
3462 (ubsan_create_data): Add new parameter. Add pointer data into
3464 (ubsan_expand_null_ifn): New function.
3465 (instrument_member_call): Likewise.
3466 (instrument_mem_ref): Likewise.
3467 (instrument_null): Likewise.
3468 (ubsan_pass): Likewise.
3469 (gate_ubsan): Likewise.
3470 (make_pass_ubsan): Likewise.
3471 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3472 (class pass_ubsan): New class.
3473 (pass_data_ubsan): New pass.
3474 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3475 * internal-fn.c (expand_UBSAN_NULL): New function.
3476 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3477 even when !flag_toplevel_reorder.
3478 * internal-fn.def (UBSAN_NULL): New.
3480 2013-11-19 Jan Hubicka <jh@suse.cz>
3482 * cgraph.c (cgraph_create_indirect_edge): Use
3483 get_polymorphic_call_info.
3484 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3485 maybe_in_construction and maybe_derived_type.
3486 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3487 (ipa_dummy_polymorphic_call_context): New global var.
3488 (possible_polymorphic_call_targets): Add context paramter.
3489 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3490 (possible_polymorphic_call_target_p): Likewise.
3491 (get_polymorphic_call_info): New function.
3492 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3493 (add_type_duplicate): Remove forgotten debug output.
3494 (method_class_type): Add sanity check.
3495 (maybe_record_node): Add FINALP parameter.
3496 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3497 by info by get_binfo_at_offset.
3498 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3499 parameters; pass them to record-binfo.
3500 (polymorphic_call_target_d): Add context and FINAL.
3501 (polymorphic_call_target_hasher::hash): Hash context.
3502 (polymorphic_call_target_hasher::equal): Compare context.
3503 (free_polymorphic_call_targets_hash):
3504 (get_class_context): New function.
3505 (contains_type_p): New function.
3506 (get_polymorphic_call_info): New function.
3507 (walk_bases): New function.
3508 (possible_polymorphic_call_targets): Add context parameter; honnor it.
3509 (dump_possible_polymorphic_call_targets): Dump context.
3510 (possible_polymorphic_call_target_p): Add context.
3511 (update_type_inheritance_graph): Update comment.s
3512 (ipa_set_jf_known_type): Assert that compoentn type is known.
3513 (ipa_note_param_call): Do not tamper with offsets.
3514 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3516 (update_indirect_edges_after_inlining): Likewise.
3517 (ipa_write_indirect_edge_info): Stream new fields.
3518 (ipa_read_indirect_edge_info): Stream in new fields.
3520 2013-11-19 Jan Hubicka <jh@suse.cz>
3522 * tree-pretty-print.c (dump_generic_node): Print class type of
3525 2013-11-19 Joey Ye <joey.ye@arm.com>
3527 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3528 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3530 * config/arm/arm.c (arm_option_override): By default disable
3531 -marm-pic-data-is-text-relative.
3532 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3533 (arm_assemble_integer): Likewise.
3534 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3535 New macro to initialize -marm-pic-data-is-text-relative.
3537 2013-11-19 Bin Cheng <bin.cheng@arm.com>
3539 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3540 (address_cost_data): New field.
3541 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3542 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
3544 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3546 * config/aarch64/aarch64.md: Remove v8type from all insns.
3548 2013-11-19 Richard Biener <rguenther@suse.de>
3550 PR tree-optimization/57517
3551 * tree-predcom.c (combinable_refs_p): Verify the combination
3552 is always executed when the refs are.
3554 2013-11-19 Jeff Law <law@redhat.com>
3556 * tree-ssa-threadupdate.c: Include ssa-iterators.h
3557 (copy_phi_arg_into_existing_phi): New function.
3558 (any_remaining_duplicated_blocks): Likewise.
3559 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3560 blocks on a jump threading path.
3562 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
3563 thread through a joiner which has the latch edge.
3565 2013-11-19 Jan Hubicka <jh@suse.cz>
3567 * md.texi (setmem): Document new parameter.
3568 * optabs.c (maybe_gen_insn): Support 9 operands.
3569 * builtins.c (determine_block_size): Add probable_max_size;
3570 support anti-ranges.
3571 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3573 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3574 emit_block_move, clear_storage_hints, set_storage_via_setmem):
3576 * expr.h (emit_block_move_hints, clear_storage_hints,
3577 set_storage_via_setmem): Update prototype.
3578 * i386.md (setmem, movmem patterns): Add 9th operand.
3579 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3580 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3581 argument; pass it to decide_alg.
3583 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3585 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3586 (n_basic_blocks_for_fn): ...this.
3588 (n_basic_blocks): Eliminate macro as work towards making uses of
3591 * cfgloop.c (init_loops_structure): Update for renaming of
3592 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3593 * graph.c (draw_cfg_nodes_no_loops): Likewise.
3594 * ipa-utils.c (ipa_merge_profiles): Likewise.
3595 * lto-streamer-in.c (make_new_block): Likewise.
3596 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3597 (dump_function_to_file): Likewise.
3599 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3600 macro with "n_basic_blocks_for_fn (cfun)".
3601 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3602 (duplicate_computed_gotos): Likewise.
3603 (reorder_basic_blocks): Likewise.
3604 * bt-load.c (augment_live_range): Likewise.
3605 * cfg.c (expunge_block): Likewise.
3606 (compact_blocks): Likewise.
3607 * cfganal.c (single_pred_before_succ_order): Likewise.
3608 (compute_idf): Likewise.
3609 (flow_dfs_compute_reverse_init): Likewise.
3610 (pre_and_rev_post_order_compute): Likewise.
3611 (pre_and_rev_post_order_compute_fn): Likewise.
3612 (inverted_post_order_compute): Likewise.
3613 (post_order_compute): Likewise.
3614 (print_edge_list): Likewise.
3615 (find_unreachable_blocks): Likewise.
3616 (mark_dfs_back_edges): Likewise.
3617 * cfgcleanup.c (try_optimize_cfg): Likewise.
3618 (try_forward_edges): Likewise.
3619 * cfghooks.c (dump_flow_info): Likewise.
3620 * cfgloop.c (verify_loop_structure): Likewise.
3621 (get_loop_body): Likewise.
3622 (flow_loops_find): Likewise.
3623 * cfgloopmanip.c (add_loop): Likewise.
3624 (remove_path): Likewise.
3625 (find_path): Likewise.
3626 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3627 (rtl_verify_bb_layout): Likewise.
3628 (entry_of_function): Likewise.
3629 (rtl_create_basic_block): Likewise.
3630 * coverage.c (coverage_compute_cfg_checksum): Likewise.
3631 * cprop.c (one_cprop_pass): Likewise.
3632 (is_too_expensive): Likewise.
3633 * df-core.c (df_compute_cfg_image): Likewise.
3634 (df_compact_blocks): Likewise.
3635 (df_worklist_dataflow_doublequeue): Likewise.
3636 * dominance.c (calculate_dominance_info): Likewise.
3637 (calc_dfs_tree): Likewise.
3638 (calc_dfs_tree_nonrec): Likewise.
3639 (init_dom_info): Likewise.
3640 * domwalk.c (cmp_bb_postorder): Likewise.
3641 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3642 (generate_setjmp_warnings): Likewise.
3643 * fwprop.c (build_single_def_use_links): Likewise.
3644 * gcse.c (is_too_expensive): Likewise.
3645 (one_code_hoisting_pass): Likewise.
3646 (one_pre_gcse_pass): Likewise.
3647 * graphite.c (graphite_initialize): Likewise.
3648 * haifa-sched.c (haifa_sched_init): Likewise.
3649 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3650 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3651 * ira-build.c (ira_build): Likewise.
3652 * lcm.c (compute_nearerout): Likewise.
3653 (compute_available): Likewise.
3654 (compute_laterin): Likewise.
3655 (compute_antinout_edge): Likewise.
3656 * lra-lives.c (lra_create_live_ranges): Likewise.
3657 * lra.c (has_nonexceptional_receiver): Likewise.
3658 * mcf.c (create_fixup_graph): Likewise.
3659 * profile.c (branch_prob): Likewise.
3660 * reg-stack.c (convert_regs_2): Likewise.
3661 * regrename.c (regrename_analyze): Likewise.
3662 * reload1.c (has_nonexceptional_receiver): Likewise.
3663 * reorg.c (dbr_schedule): Likewise.
3664 * sched-deps.c (sched_deps_init): Likewise.
3665 * sched-ebb.c (schedule_ebbs): Likewise.
3666 * sched-rgn.c (extend_regions): Likewise.
3667 (schedule_insns): Likewise.
3668 (sched_rgn_init): Likewise.
3669 (extend_rgns): Likewise.
3670 (haifa_find_rgns): Likewise.
3671 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3672 (sel_recompute_toporder): Likewise.
3673 * sel-sched.c (run_selective_scheduling): Likewise.
3674 * store-motion.c (one_store_motion_pass): Likewise.
3675 (remove_reachable_equiv_notes): Likewise.
3676 * tracer.c (tracer): Likewise.
3677 (tail_duplicate): Likewise.
3678 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3679 (dump_cfg_stats): Likewise.
3680 (gimple_dump_cfg): Likewise.
3681 (create_bb): Likewise.
3682 (build_gimple_cfg): Likewise.
3683 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3684 * tree-inline.c (optimize_inline_calls): Likewise.
3685 (fold_marked_statements): Likewise.
3686 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3687 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3688 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3689 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3690 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3691 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3692 * tree-ssa-pre.c (do_pre): Likewise.
3693 (init_pre): Likewise.
3694 (compute_avail): Likewise.
3695 * tree-ssa-reassoc.c (init_reassoc): Likewise.
3696 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3697 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3698 (init_worklist): Likewise.
3699 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3700 * var-tracking.c (variable_tracking_main_1): Likewise.
3701 (vt_find_locations): Likewise.
3702 (vt_stack_adjustments): Likewise.
3703 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3704 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3706 2013-11-18 Jan Hubicka <jh@suse.cz>
3708 * profile.c (compute_branch_probabilities): Do not sanity check
3711 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3713 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3715 * fold-const.c (fold_single_bit_test_into_sign_test)
3716 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3718 2013-11-18 Teresa Johnson <tejohnson@google.com>
3720 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3721 cfglayout after bb reordering.
3722 * passes.def: Move compgotos before bb reordering since it goes into
3725 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
3727 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3728 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3730 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3731 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3732 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3733 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3734 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3735 Remove all_lto_gen_passes.
3736 * passes.c (pass_manager::dump_passes): Remove its use.
3737 (pass_manager::register_pass): Likewise.
3738 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3739 (pass_manager::pass_manager): Don't initialize or use it.
3740 (write_lto): New static function.
3741 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3742 instead of using all_lto_gen_passes.
3743 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3744 pass_ipa_lto_finish_out): Delete.
3745 * tree-pass.h (make_pass_ipa_lto_gimple_out,
3746 make_pass_ipa_lto_finish_out): Don't declare.
3748 2013-11-18 Jeff Law <law@redhat.com>
3750 * tree-ssa-threadupdate.c (redirection_data): Record two
3751 duplicated blocks instead of just one.
3752 (local_info): Explain why we don't create a template for the
3753 second duplicated block in a thread path.
3754 (create_block_for_threading): Accept argument indicating array
3755 index into redirection_data to store its result.
3756 (lookup_redirection_data): Initialize both duplicate blocks.
3757 (ssa_create_duplicates): If a jump threading path needs multiple
3758 blocks duplicated, then duplicate them.
3759 (ssa_fix_duplicate_block_edges): Corresponding changes.
3760 (ssa_fixup_template_block, thread_single_edge): Likewise.
3762 2013-11-18 Marek Polacek <polacek@redhat.com>
3764 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3766 2013-11-18 Andrew Pinski <apinski@cavium.com>
3767 Steve Ellcey <sellcey@mips.com>
3770 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3771 type restriction from equality_operator on conditonal move.
3772 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3773 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3775 2013-11-18 Jeff Law <law@redhat.com>
3777 * tree-ssa-threadupdate.c: Fix file block comment.
3778 Fix minor indention issue.
3780 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
3782 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3783 ix86_address_subreg_operand. Move subreg checks to
3784 ix86_validate_address_register. Move address override check to
3785 ix86_legitimate_address_p.
3786 (ix86_validate_address_register): New function.
3787 (ix86_legitimate_address_p): Call ix86_validate_address_register
3788 to validate base and index registers. Add address override check
3789 from ix86_decompose_address.
3790 (ix86_decompose_address): Remove.
3792 2013-11-18 Richard Biener <rguenther@suse.de>
3794 PR tree-optimization/59125
3795 PR tree-optimization/54570
3796 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3797 is not complete do not treat component-references with offset zero
3798 but different fields as equal.
3799 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3800 (compute_object_sizes): Apply TLC. Propagate the constant
3801 results into all uses and fold their stmts.
3802 * passes.def (pass_all_optimizations): Move pass_object_sizes
3803 after the first pass_forwprop and before pass_fre.
3805 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3807 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3808 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3809 (tree_ctz): Remove cast to unsigned type.
3810 * builtins.c (fold_builtin_memory_op): Likewise.
3811 * dwarf2out.c (descr_info_loc): Likewise.
3812 * godump.c (go_output_typedef): Likewise.
3813 * omp-low.c (expand_omp_simd): Likewise.
3814 * stor-layout.c (excess_unit_span): Likewise.
3815 * tree-object-size.c (addr_object_size): Likewise.
3816 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3817 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3818 (simplify_rotate): Likewise.
3819 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3820 (handle_pointer_plus): Likewise.
3821 * tree-switch-conversion.c (check_range): Likewise.
3822 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3823 * tsan.c (instrument_builtin_call): Likewise.
3824 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3825 * trans-mem.c (tm_log_add): Likewise.
3826 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3827 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3828 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3829 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3831 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3833 * tree.h (host_integerp, tree_low_cst): Delete.
3834 * tree.c (host_integerp, tree_low_cst): Delete.
3836 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3838 * expr.h: Update comments to refer to tree_to_[su]hwi rather
3840 * fold-const.c (fold_binary_loc): Likewise.
3841 * expr.c (store_constructor): Use tree_to_uhwi rather than
3843 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3844 * stmt.c (emit_case_dispatch_table): Likewise.
3845 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3847 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3849 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3850 config/aarch64/aarch64.c, config/alpha/predicates.md,
3851 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3852 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3853 config/mep/mep-pragma.c, config/mips/mips.c,
3854 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3855 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3856 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3857 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3858 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3859 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3860 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3861 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3862 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3863 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3865 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3867 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3868 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3869 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3870 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3871 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3872 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3873 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3874 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3875 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3876 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3877 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3879 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3881 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3882 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3884 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3886 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3889 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3891 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3892 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3893 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3894 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3895 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3896 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3897 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3898 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3899 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3900 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3901 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3902 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3903 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3904 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3905 tree_fits_uhwi_p throughout.
3907 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3909 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3910 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3911 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3912 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3913 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3914 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3915 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3916 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3917 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3918 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3919 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3920 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3921 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3924 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3926 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3927 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3929 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
3931 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3932 flag if it kills its address, not its post-increment.
3934 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3936 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3937 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3938 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3939 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3940 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3941 (gimple_call_with_bounds_p): New.
3942 (gimple_call_set_with_bounds): New.
3943 (gimple_call_num_nobnd_args): Remove.
3944 (gimple_call_nobnd_arg): Remove.
3945 * tree.h (CALL_WITH_BOUNDS_P): New.
3946 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3948 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
3950 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3951 (symtab_node_name): Rename to symtab_node::name.
3952 (cgraph_node_asm_name): Remove.
3953 (varpool_node_asm_name): Remove.
3954 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3955 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3956 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3957 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3958 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3960 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3962 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3963 * config/arm/arm.c (arm_cortex_a53_tune): New.
3964 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3966 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3968 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3969 (case ${target}): Add bdver4.
3970 * config/i386/bdver3.md: Add bdver4.
3971 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3972 -march=native recognize bdver4 processors.
3973 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3974 bdver4 def_and_undef
3975 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3976 (m_BDVER4): New definition.
3977 (m_AMD_MULTIPLE): Includes m_BDVER4.
3978 (processor_target_table): Add bdver4 entry.
3979 (static const char *const cpu_names): Add bdver4 entry.
3980 (software_prefetching_beneficial_p): Add bdver3.
3981 (ix86_option_override_internal): Add bdver4 instruction sets.
3982 (ix86_issue_rate): Add bdver4.
3983 (ix86_adjust_cost): Add bdver4.
3984 (ia32_multipass_dfa_lookahead): Add bdver4.
3985 (enum processor_model): Add M_AMDFAM15H_BDVER4.
3986 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3987 (has_dispatch): Add bdver4.
3988 * config/i386/i386.h (TARGET_BDVER4): New definition.
3989 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3990 (enum processor_type): Add PROCESSOR_BDVER4.
3991 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3992 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3993 * doc/extend.texi: Add details about bdver4.
3994 * doc/invoke.texi: Add details about bdver4. Add
3995 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3997 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3999 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4000 sdmode_stack_slot also in little-endian mode.
4002 2013-11-17 Jan Hubicka <jh@suse.cz>
4004 * doc/md.texi (setmem, movstr): Update documentation.
4005 * builtins.c (determine_block_size): New function.
4006 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4007 (expand_builtin_memset_args): Use it and pass it to
4008 set_storage_via_setmem.
4009 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4010 parameters; update call to expander.
4011 (emit_block_move_hints): Add min_size/max_size parameters.
4012 (clear_storage_hints): Likewise.
4013 (set_storage_via_setmem): Likewise.
4014 (clear_storage): Update.
4015 * expr.h (emit_block_move_hints, clear_storage_hints,
4016 set_storage_via_setmem): Update prototypes.
4017 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4018 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4019 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4020 * i386.md (movmem, setmem): Pass parameters.
4022 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
4025 * config/i386/i386.c (ix86_address_subreg_operand): Do not
4026 reject non-integer subregs.
4027 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4028 Move check for invalid x32 constant addresses ...
4029 (ix86_legitimate_address_p): ... here.
4031 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4033 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4034 parameter and use it in REG_FRAME_RELATED_EXPR note.
4035 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4037 (rs6000_emit_prologue): Likewise, but for little endian VSX
4038 stores, pass the source register of the store instead.
4040 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
4042 * gimple.h: Reorder prototypes to match .c declaration order, and
4043 remove protyotypes for functions not in gimple.c.
4044 (LABEL): Move to tree-into-ssa.c.
4045 * gimple.c: Remove unused prototypes.
4046 (get_base_address): Move to tree.c.
4047 * tree.c (get_base_address): Relocate from gimple.c.
4048 * builtins.h (validate_gimple_arglist): Add prototype.
4049 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4050 * cfgexpand.h: New File.
4051 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4052 * tree.h (build_addr): Move to tree-nested.h.
4053 * tree-nested.h: New File.
4054 (build_addr, lower_nested_functions, insert_field_into_struct): Add
4056 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4057 * ipa-inline-analysis.c: Include cfgexpand.h.
4058 * cgraphunit.c: Include tree-nested.h.
4059 * omp-low.c: Likewise.
4060 * tree-parloops.c: Likewise.
4061 * gimple-low.h: Likewise.
4062 * tree-profile.h: Likewise.
4063 * expr.c: Include cfgexpand.h.
4064 * tree-affine.c: Likewise.
4065 * tree-ssa.c: Likewise.
4066 * tree-ssa-loop-im.c: Include trans-mem.h.
4067 * tree-ssa-tail-merge.c: Likewise.
4068 * value-prof.c: Include builtins.h and tree-nested.h.
4069 * tree-into-ssa.c (LABEL): Define here.
4071 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4073 * config/arc/arc.c (arc_predicate_delay_insns): New function.
4074 (pass_data_arc_predicate_delay_insns): New pass_data instance.
4075 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4076 (make_pass_arc_predicate_delay_insns): New function.
4077 (arc_init): Register pass_arc_predicate_delay_insns if
4078 flag_delayed_branch is active.
4080 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4082 * config/arc/constraints.md (Rcq): Simplify register number test.
4084 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4086 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4088 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
4090 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4093 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4095 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4096 * gimple-pretty-print.c (dump_omp_for): Add case for
4097 GF_OMP_FOR_KIND_CILKSIMD.
4098 * gimple.h (enum gf_mask): Restructure entries to add
4099 GF_OMP_FOR_KIND_CILKSIMD.
4100 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4101 (gimplify_omp_for): Handle CILK_SIMD.
4102 (gimplify_expr): Add ccase for CILK_SIMD.
4103 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4104 (build_outer_var_ref): Same.
4105 (check_omp_nesting_restrictions): Same.
4106 (lower_rec_input_clauses): Same.
4107 (lower_lastprivate_clauses): Same.
4108 (expand_omp_for): Same.
4109 (execute_expand_omp): Check flag_enable_cilkplus.
4110 (execute_lower_omp): Same.
4111 (diagnose_sb_0): Handle CILK_SIMD.
4112 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4113 (setjmp_or_longjmp_p): New.
4114 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4115 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4116 * tree.def: Add tree code for CILK_SIMD.
4118 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4120 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4122 (altivec_vperm_<mode>): Revert earlier little endian change.
4123 (*altivec_vperm_<mode>_internal): Remove.
4124 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4125 (*altivec_vperm_<mode>_uns_internal): Remove.
4126 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4128 2013-11-15 Jeff Law <law@redhat.com>
4130 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4131 has_abnormal_or_outgoing_edge. Check for EH edges as well.
4132 * gimple-ssa-isolate-paths.c
4133 (find_implicit_erroneous_behaviour): Corresponding changes.
4134 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4135 (find_explicit_erroneous_behaviour): Likewise.
4137 2013-11-15 Jeff Law <law@redhat.com>
4139 * ifcvt.c (find_cond_trap): Properly handle case where
4142 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
4144 * configure: Regenerate.
4146 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
4148 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4149 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4150 where it is incorrect or missing.
4152 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4154 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4156 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4157 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4159 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4160 pair with a TREE_CODE test and TREE_INT_CST_LOW.
4161 * tree-vect-generic.c (expand_vector_divmod): Likewise.
4163 2013-11-15 Richard Biener <rguenther@suse.de>
4165 PR tree-optimization/50262
4166 * tree-ssa-alias.h (struct pt_solution): Split
4167 vars_contains_global into vars_contains_nonlocal,
4168 vars_contains_escaped and vars_contains_escaped_heap.
4169 * tree-ssa-structalias.c (label_visit): Expand comment.
4170 (handle_lhs_call): Adjust comment.
4171 (set_uids_in_ptset): Set the new flags appropriately.
4172 (pt_solution_set): Adjust.
4173 (pt_solution_set_var): Likewise.
4174 (pt_solution_ior_into): Likewise.
4175 (pt_solution_includes_global): Likewise.
4176 (pt_solutions_intersect_1): Optimize escaped handling.
4177 (compute_points_to_sets): Remove heap variable globalization.
4178 (ipa_escaped_pt): Adjust initializer.
4179 (pass_data_ipa_pta): Do not run TODO_update_ssa.
4180 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4181 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4183 2013-11-15 Richard Biener <rguenther@suse.de>
4185 * tree-loop-distribution.c (tree_loop_distribution): Make sure
4186 to distribute all stores.
4188 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4190 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4192 2013-11-15 Joseph Myers <joseph@codesourcery.com>
4194 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4195 * configure.ac: Determine target_header_dir earlier.
4196 (--with-glibc-version): New configure option.
4197 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4198 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4199 * configure: Regenerate.
4200 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4201 native toolchains for default.
4202 (--with-glibc-version): Document.
4204 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
4206 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4208 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
4210 * lto-streamer-in.c (input function): Call cgraph_create_node if
4211 cgraph_get_node failed.
4213 2013-11-14 Olivier Hainque <hainque@adacore.com>
4215 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4216 defer allocation of DECL_IGNORED_P variables at toplevel unless really
4217 small. Factorize size threshold computation from the existing one.
4218 (expand_used_vars): Refine comment.
4220 2013-11-14 Cong Hou <congh@google.com>
4222 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4223 address field as it can be obtained from dr. Rename the struct.
4224 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4225 steps of data references during sort.
4226 (vect_prune_runtime_alias_test_list): Adjust with the change to
4227 struct dr_with_seg_len.
4228 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4229 Adjust with the change to struct dr_with_seg_len.
4231 2013-11-14 Jeff Law <law@redhat.com>
4234 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4235 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4236 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4237 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4238 edges, then ignore it. If the statement exhibiting erroneous
4239 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4240 then we can not optimize.
4241 (find_explicit_erroneous_behaviour): Likewise.
4243 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
4245 * gimplify-me.h: New file. Add prototypes.
4246 * gimplify.h: Don't include gimple.h.
4247 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4248 Relocate from gimple.h.
4249 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4250 is_gimple_sizepos): Move to gimplify.h.
4251 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4252 (enum gsi_iterator_update): Move to gimple-iterator.h.
4253 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4254 * gimplify-me.c: New File.
4255 (force_gimple_operand_1, force_gimple_operand,
4256 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4257 gimple_regimplify_operands): Relocate from gimplify.c.
4258 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4259 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4260 gimple_regimplify_operands): Move to gimplify-me.c.
4261 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4263 * Makefile.in (OBJS): Add gimplify-me.o
4264 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4266 * cfgloopmanip.c: Likewise.
4267 * cgraphunit.c: Likewise.
4268 * cilk-common.c: Likewise.
4269 * fold-const.c: Likewise.
4270 * function.c: Likewise.
4271 * gimple-expr.c: Likewise.
4272 * gimple-fold.c: Likewise.
4273 * gimple-ssa-strength-reduction.c: Likewise.
4274 * gimple.c: Likewise.
4275 * graphite-clast-to-gimple.c: Likewise.
4276 * graphite-sese-to-poly.c: Likewise.
4277 * ipa-prop.c: Likewise.
4278 * ipa-split.c: Likewise.
4280 * langhooks.c: Likewise.
4281 * omp-low.c: Likewise.
4283 * stor-layout.c: Likewise.
4284 * targhooks.c: Likewise.
4285 * trans-mem.c: Likewise.
4286 * tree-affine.c: Likewise.
4287 * tree-cfg.c: Likewise.
4288 * tree-cfgcleanup.c: Likewise.
4289 * tree-complex.c: Likewise.
4290 * tree-if-conv.c: Likewise.
4291 * tree-inline.c: Likewise.
4292 * tree-loop-distribution.c: Likewise.
4293 * tree-nested.c: Likewise.
4294 * tree-parloops.c: Likewise.
4295 * tree-predcom.c: Likewise.
4296 * tree-profile.c: Likewise.
4297 * tree-scalar-evolution.c: Likewise.
4298 * tree-sra.c: Likewise.
4299 * tree-ssa-address.c: Likewise.
4300 * tree-ssa-ccp.c: Likewise.
4301 * tree-ssa-dce.c: Likewise.
4302 * tree-ssa-forwprop.c: Likewise.
4303 * tree-ssa-ifcombine.c: Likewise.
4304 * tree-ssa-loop-im.c: Likewise.
4305 * tree-ssa-loop-ivopts.c: Likewise.
4306 * tree-ssa-loop-manip.c: Likewise.
4307 * tree-ssa-loop-niter.c: Likewise.
4308 * tree-ssa-loop-prefetch.c: Likewise.
4309 * tree-ssa-loop-unswitch.c: Likewise.
4310 * tree-ssa-math-opts.c: Likewise.
4311 * tree-ssa-phiopt.c: Likewise.
4312 * tree-ssa-phiprop.c: Likewise.
4313 * tree-ssa-pre.c: Likewise.
4314 * tree-ssa-propagate.c: Likewise.
4315 * tree-ssa-reassoc.c: Likewise.
4316 * tree-ssa-sccvn.c: Likewise.
4317 * tree-ssa-strlen.c: Likewise.
4318 * tree-ssa.c: Likewise.
4319 * tree-switch-conversion.c: Likewise.
4320 * tree-tailcall.c: Likewise.
4321 * tree-vect-data-refs.c: Likewise.
4322 * tree-vect-generic.c: Likewise.
4323 * tree-vect-loop-manip.c: Likewise.
4324 * tree-vect-loop.c: Likewise.
4325 * tree-vect-patterns.c: Likewise.
4326 * tree-vect-stmts.c: Likewise.
4329 * value-prof.c: Likewise.
4330 * config/aarch64/aarch64.c: Likewise.
4331 * config/alpha/alpha.c: Likewise.
4332 * config/darwin.c: Likewise.
4333 * config/i386/i386.c: Likewise.
4334 * config/ia64/ia64.c: Likewise.
4335 * config/mep/mep.c: Likewise.
4336 * config/mips/mips.c: Likewise.
4337 * config/rs6000/rs6000.c: Likewise.
4338 * config/s390/s390.c: Likewise.
4339 * config/sh/sh.c: Likewise.
4340 * config/sparc/sparc.c: Likewise.
4341 * config/spu/spu.c: Likewise.
4342 * config/stormy16/stormy16.c: Likewise.
4343 * config/tilegx/tilegx.c: Likewise.
4344 * config/tilepro/tilepro.c: Likewise.
4345 * config/xtensa/xtensa.c: Likewise.
4347 2013-11-14 Diego Novillo <dnovillo@google.com>
4349 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4351 2013-11-14 Diego Novillo <dnovillo@google.com>
4353 * tree.h: Include fold-const.h.
4354 (aggregate_value_p): Moved to function.h.
4355 (alloca_call_p): Moved to calls.h.
4356 (allocate_struct_function): Moved to function.h.
4357 (apply_tm_attr): Moved to attribs.h.
4358 (array_at_struct_end_p): Moved to expr.h.
4359 (array_ref_element_size): Moved to tree-dfa.h.
4360 (array_ref_low_bound): Moved to tree-dfa.h.
4361 (array_ref_up_bound): Moved to tree.h.
4362 (assemble_alias): Moved to cgraph.h.
4363 (bit_from_pos): Moved to stor-layout.h.
4364 (build_addr): Moved to tree-nested.h.
4365 (build_duplicate_type): Moved to tree-inline.h.
4366 (build_fold_addr_expr): Moved to fold-const.h.
4367 (build_fold_addr_expr_with_type): Moved to fold-const.h.
4368 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4369 (build_fold_indirect_ref): Moved to fold-const.h.
4370 (build_fold_indirect_ref_loc): Moved to fold-const.h.
4371 (build_personality_function): Moved to tree.h.
4372 (build_range_check): Moved to fold-const.h.
4373 (build_simple_mem_ref): Moved to fold-const.h.
4374 (build_simple_mem_ref_loc): Moved to fold-const.h.
4375 (build_tm_abort_call): Moved to trans-mem.h.
4376 (byte_from_pos): Moved to stor-layout.h.
4377 (call_expr_flags): Moved to calls.h.
4378 (can_move_by_pieces): Moved to expr.h.
4379 (categorize_ctor_elements): Moved to expr.h.
4380 (change_decl_assembler_name): Moved to gcc-symtab.h.
4381 (combine_comparisons): Moved to fold-const.h.
4382 (complete_ctor_at_level_p): Moved to tree.h.
4383 (component_ref_field_offset): Moved to tree-dfa.h.
4384 (compute_builtin_object_size): Moved to tree-object-size.h.
4385 (compute_record_mode): Moved to stor-layout.h.
4386 (constant_boolean_node): Moved to fold-const.h.
4387 (constructor_static_from_elts_p): Moved to varasm.h.
4388 (cxx11_attribute_p): Moved to attribs.h.
4389 (debug_body): Moved to print-tree.h.
4390 (debug_find_tree): Moved to tree-inline.h.
4391 (debug_fold_checksum): Moved to fold-const.h.
4392 (debug_head): Moved to print-tree.h.
4393 (debug_head): Moved to print-tree.h.
4394 (debug_raw): Moved to print-tree.h.
4395 (debug_tree): Moved to print-tree.h.
4396 (debug_vec_tree): Moved to print-tree.h.
4397 (debug_verbose): Moved to print-tree.h.
4398 (debug_verbose): Moved to print-tree.h.
4399 (decl_attributes): Moved to attribs.h.
4400 (decl_binds_to_current_def_p): Moved to varasm.h.
4401 (decl_default_tls_model): Moved to varasm.h.
4402 (decl_replaceable_p): Moved to varasm.h.
4403 (div_if_zero_remainder): Moved to fold-const.h.
4404 (double_int mem_ref_offset): Moved to fold-const.h.
4405 (dump_addr): Moved to print-tree.h.
4406 (element_precision): Moved to machmode.h.
4407 (expand_dummy_function_end): Moved to function.h.
4408 (expand_function_end): Moved to function.h.
4409 (expand_function_start): Moved to function.h.
4410 (expand_label): Moved to stmt.h.
4411 (expr_first): Moved to tree-iterator.h.
4412 (expr_last): Moved to tree-iterator.h.
4413 (finalize_size_functions): Moved to stor-layout.h.
4414 (finish_builtin_struct): Moved to stor-layout.h.
4415 (finish_record_layout): Moved to stor-layout.h.
4416 (fixup_signed_type): Moved to stor-layout.h.
4417 (fixup_unsigned_type): Moved to stor-layout.h.
4418 (flags_from_decl_or_type): Moved to calls.h.
4419 (fold): Moved to fold-const.h.
4420 (fold_abs_const): Moved to fold-const.h.
4421 (fold_binary): Moved to fold-const.h.
4422 (fold_binary_loc): Moved to fold-const.h.
4423 (fold_binary_to_constant): Moved to fold-const.h.
4424 (fold_build1): Moved to fold-const.h.
4425 (fold_build1_initializer_loc): Moved to fold-const.h.
4426 (fold_build1_loc): Moved to fold-const.h.
4427 (fold_build1_stat_loc): Moved to fold-const.h.
4428 (fold_build2): Moved to fold-const.h.
4429 (fold_build2_initializer_loc): Moved to fold-const.h.
4430 (fold_build2_loc): Moved to fold-const.h.
4431 (fold_build2_stat_loc): Moved to fold-const.h.
4432 (fold_build3): Moved to fold-const.h.
4433 (fold_build3_loc): Moved to fold-const.h.
4434 (fold_build3_stat_loc): Moved to fold-const.h.
4435 (fold_build_call_array): Moved to fold-const.h.
4436 (fold_build_call_array_initializer): Moved to fold-const.h.
4437 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4438 (fold_build_call_array_loc): Moved to fold-const.h.
4439 (fold_build_cleanup_point_expr): Moved to fold-const.h.
4440 (fold_convert): Moved to fold-const.h.
4441 (fold_convert_loc): Moved to fold-const.h.
4442 (fold_convertible_p): Moved to fold-const.h.
4443 (fold_defer_overflow_warnings): Moved to fold-const.h.
4444 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4445 (fold_fma): Moved to fold-const.h.
4446 (fold_ignored_result): Moved to fold-const.h.
4447 (fold_indirect_ref): Moved to fold-const.h.
4448 (fold_indirect_ref_1): Moved to fold-const.h.
4449 (fold_indirect_ref_loc): Moved to fold-const.h.
4450 (fold_read_from_constant_string): Moved to fold-const.h.
4451 (fold_real_zero_addition_p): Moved to fold-const.h.
4452 (fold_single_bit_test): Moved to fold-const.h.
4453 (fold_strip_sign_ops): Moved to fold-const.h.
4454 (fold_ternary): Moved to fold-const.h.
4455 (fold_ternary_loc): Moved to fold-const.h.
4456 (fold_unary): Moved to tree-data-ref.h.
4457 (fold_unary_ignore_overflow): Moved to fold-const.h.
4458 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4459 (fold_unary_loc): Moved to fold-const.h.
4460 (fold_unary_to_constant): Moved to fold-const.h.
4461 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4462 (fold_undefer_overflow_warnings): Moved to fold-const.h.
4463 (folding_initializer): Moved to fold-const.h.
4464 (free_temp_slots): Moved to function.h.
4465 (generate_setjmp_warnings): Moved to function.h.
4466 (get_attribute_name): Moved to attribs.h.
4467 (get_identifier): Moved to stringpool.h.
4468 (get_identifier_with_length): Moved to stringpool.h.
4469 (get_inner_reference): Moved to tree.h.
4470 (gimple_alloca_call_p): Moved to calls.h.
4471 (gimplify_parameters): Moved to function.h.
4472 (highest_pow2_factor): Moved to expr.h.
4473 (indent_to): Moved to print-tree.h.
4474 (init_attributes): Moved to attribs.h.
4475 (init_dummy_function_start): Moved to function.h.
4476 (init_function_start): Moved to function.h.
4477 (init_inline_once): Moved to tree-inline.h.
4478 (init_object_sizes): Moved to tree-object-size.h.
4479 (init_temp_slots): Moved to function.h.
4480 (init_tree_optimization_optabs): Moved to optabs.h.
4481 (initialize_sizetypes): Moved to stor-layout.h.
4482 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4483 (initializer_constant_valid_p): Moved to varasm.h.
4484 (int_const_binop): Moved to fold-const.h.
4485 (internal_reference_types): Moved to stor-layout.h.
4486 (invert_tree_comparison): Moved to fold-const.h.
4487 (invert_truthvalue): Moved to fold-const.h.
4488 (invert_truthvalue_loc): Moved to fold-const.h.
4489 (is_tm_ending_fndecl): Moved to trans-mem.h.
4490 (is_tm_may_cancel_outer): Moved to trans-mem.h.
4491 (is_tm_pure): Moved to trans-mem.h.
4492 (is_tm_safe): Moved to trans-mem.h.
4493 (layout_decl): Moved to stor-layout.h.
4494 (layout_type): Moved to stor-layout.h.
4495 (lookup_attribute_spec): Moved to attribs.h.
4496 (make_accum_type): Moved to stor-layout.h.
4497 (make_decl_one_only): Moved to varasm.h.
4498 (make_decl_rtl): Moved to tree.h.
4499 (make_decl_rtl_for_debug): Moved to varasm.h.
4500 (make_fract_type): Moved to stor-layout.h.
4501 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4502 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4503 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4504 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4505 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4506 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4507 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4508 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4509 (make_range): Moved to fold-const.h.
4510 (make_range_step): Moved to fold-const.h.
4511 (make_sat_signed_accum_type): Moved to stor-layout.h.
4512 (make_sat_signed_fract_type): Moved to stor-layout.h.
4513 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4514 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4515 (make_signed_accum_type): Moved to stor-layout.h.
4516 (make_signed_fract_type): Moved to stor-layout.h.
4517 (make_signed_type): Moved to stor-layout.h.
4518 (make_unsigned_accum_type): Moved to stor-layout.h.
4519 (make_unsigned_fract_type): Moved to stor-layout.h.
4520 (make_unsigned_type): Moved to stor-layout.h.
4521 (mark_decl_referenced): Moved to varasm.h.
4522 (mark_referenced): Moved to varasm.h.
4523 (may_negate_without_overflow_p): Moved to fold-const.h.
4524 (maybe_get_identifier): Moved to stringpool.h.
4525 (merge_ranges): Moved to fold-const.h.
4526 (merge_weak): Moved to varasm.h.
4527 (mode_for_size_tree): Moved to stor-layout.h.
4528 (multiple_of_p): Moved to fold-const.h.
4529 (must_pass_in_stack_var_size): Moved to calls.h.
4530 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4531 (native_encode_expr): Moved to fold-const.h.
4532 (native_interpret_expr): Moved to fold-const.h.
4533 (non_lvalue): Moved to fold-const.h.
4534 (non_lvalue_loc): Moved to fold-const.h.
4535 (normalize_offset): Moved to stor-layout.h.
4536 (normalize_rli): Moved to stor-layout.h.
4537 (notice_global_symbol): Moved to varasm.h.
4538 (omit_one_operand): Moved to fold-const.h.
4539 (omit_one_operand_loc): Moved to fold-const.h.
4540 (omit_two_operands): Moved to fold-const.h.
4541 (omit_two_operands_loc): Moved to fold-const.h.
4542 (operand_equal_p): Moved to tree-data-ref.h.
4543 (parse_input_constraint): Moved to stmt.h.
4544 (parse_output_constraint): Moved to stmt.h.
4545 (place_field): Moved to stor-layout.h.
4546 (pop_function_context): Moved to function.h.
4547 (pop_temp_slots): Moved to function.h.
4548 (pos_from_bit): Moved to stor-layout.h.
4549 (preserve_temp_slots): Moved to function.h.
4550 (print_node): Moved to print-tree.h.
4551 (print_node_brief): Moved to print-tree.h.
4552 (print_rtl): Moved to rtl.h.
4553 (process_pending_assemble_externals): Moved to varasm.h.
4554 (ptr_difference_const): Moved to fold-const.h.
4555 (push_function_context): Moved to function.h.
4556 (push_struct_function): Moved to function.h.
4557 (push_temp_slots): Moved to function.h.
4558 (record_tm_replacement): Moved to trans-mem.h.
4559 (relayout_decl): Moved to stor-layout.h.
4560 (resolve_asm_operand_names): Moved to stmt.h.
4561 (resolve_unique_section): Moved to varasm.h.
4562 (rli_size_so_far): Moved to stor-layout.h.
4563 (rli_size_unit_so_far): Moved to stor-layout.h.
4564 (round_down): Moved to fold-const.h.
4565 (round_down_loc): Moved to fold-const.h.
4566 (round_up): Moved to fold-const.h.
4567 (round_up_loc): Moved to fold-const.h.
4568 (set_decl_incoming_rtl): Moved to emit-rtl.h.
4569 (set_decl_rtl): Moved to tree.h.
4570 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4571 (set_user_assembler_name): Moved to varasm.h.
4572 (setjmp_call_p): Moved to calls.h.
4573 (size_binop): Moved to fold-const.h.
4574 (size_binop_loc): Moved to fold-const.h.
4575 (size_diffop): Moved to fold-const.h.
4576 (size_diffop_loc): Moved to fold-const.h.
4577 (size_int_kind): Moved to fold-const.h.
4578 (stack_protect_epilogue): Moved to function.h.
4579 (start_record_layout): Moved to stor-layout.h.
4580 (supports_one_only): Moved to varasm.h.
4581 (swap_tree_comparison): Moved to fold-const.h.
4582 (tm_malloc_replacement): Moved to trans-mem.h.
4583 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4584 (tree build_invariant_address): Moved to fold-const.h.
4585 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4586 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4587 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4588 (tree_expr_nonnegative_p): Moved to fold-const.h.
4589 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4590 (tree_output_constant_def): Moved to varasm.h.
4591 (tree_overlaps_hard_reg_set): Moved to stmt.h.
4592 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4593 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4594 (tree_swap_operands_p): Moved to fold-const.h.
4595 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4596 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4597 (update_alignment_for_field): Moved to stor-layout.h.
4598 (use_register_for_decl): Moved to function.h.
4599 (variable_size): Moved to rtl.h.
4600 (vector_type_mode): Moved to stor-layout.h.
4601 * cgraph.h: Corresponding changes.
4602 * emit-rtl.h: Corresponding changes.
4603 * expr.h: Corresponding changes.
4604 * function.h: Corresponding changes.
4605 * optabs.h: Corresponding changes.
4606 * trans-mem.h: Corresponding changes.
4607 Protect against multiple inclusion.
4608 * tree-inline.h: Corresponding changes.
4609 * tree-iterator.h: Corresponding changes.
4610 * tree-dfa.h: Include expr.h.
4611 * tree-ssanames.h: Include stringpool.h.
4612 * attribs.h: New file.
4613 * calls.h: New file.
4614 * fold-const.h: New file.
4615 * gcc-symtab.h: New file.
4616 * print-rtl.h: New file.
4617 * print-tree.h: New file.
4619 * stor-layout.h: New file.
4620 * strinpool.h: New file.
4621 * tree-nested.h: New file
4622 * tree-object-size.h: New file.
4623 * varasm.h: New file.
4625 2013-11-14 Diego Novillo <dnovillo@google.com>
4627 * alias.c: Include varasm.h.
4629 * asan.c: Include calls.h.
4630 Include stor-layout.h.
4632 * attribs.c: Include stringpool.h.
4634 Include stor-layout.h.
4635 * builtins.c: Include stringpool.h.
4636 Include stor-layout.h.
4639 Include tree-object-size.h.
4640 * calls.c: Include stor-layout.h.
4642 Include stringpool.h.
4644 * cfgexpand.c: Include stringpool.h.
4646 Include stor-layout.h.
4648 Include print-tree.h.
4649 * cgraph.c: Include varasm.h.
4651 Include print-tree.h.
4652 * cgraphclones.c: Include stringpool.h.
4655 Move inclusion of rtl.h earlier in the file.
4656 * cgraphunit.c: Include varasm.h.
4657 Include stor-layout.h.
4658 Include stringpool.h.
4659 * cilk-common.c: Include stringpool.h.
4660 Include stor-layout.h.
4661 * combine.c: Include stor-layout.h.
4662 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4663 Include stringpool.h.
4665 * config/aarch64/aarch64.c: Include stringpool.h.
4666 Include stor-layout.h.
4669 * config/alpha/alpha.c: Include stor-layout.h.
4672 * config/arc/arc.c: Include varasm.h.
4673 Include stor-layout.h.
4674 Include stringpool.h.
4676 * config/arm/arm.c: Include stringpool.h.
4677 Include stor-layout.h.
4680 * config/avr/avr-c.c: Include stor-layout.h.
4681 * config/avr/avr-log.c: Include print-tree.h.
4682 * config/avr/avr.c: Include print-tree.h.
4684 Include stor-layout.h.
4685 Include stringpool.h.
4686 * config/bfin/bfin.c: Include varasm.h.
4688 * config/c6x/c6x.c: Include stor-layout.h.
4691 Include stringpool.h.
4692 * config/cr16/cr16.c: Include stor-layout.h.
4694 * config/cris/cris.c: Include varasm.h.
4695 Include stor-layout.h.
4698 * config/darwin.c: Include stringpool.h.
4700 Include stor-layout.h.
4701 * config/epiphany/epiphany.c: Include stor-layout.h.
4704 Include stringpool.h.
4705 * config/fr30/fr30.c: Include stor-layout.h.
4707 * config/frv/frv.c: Include varasm.h.
4708 Include stor-layout.h.
4709 Include stringpool.h.
4710 * config/h8300/h8300.c: Include stor-layout.h.
4713 Include stringpool.h.
4714 * config/i386/i386.c: Include stringpool.h.
4717 Include stor-layout.h.
4719 * config/i386/winnt-cxx.c: Include stringpool.h.
4721 * config/i386/winnt.c: Include stringpool.h.
4723 * config/ia64/ia64-c.c: Include stringpool.h.
4724 * config/ia64/ia64.c: Include stringpool.h.
4725 Include stor-layout.h.
4728 * config/iq2000/iq2000.c: Include stor-layout.h.
4731 * config/lm32/lm32.c: Include calls.h.
4732 * config/m32c/m32c.c: Include stor-layout.h.
4735 * config/m32r/m32r.c: Include stor-layout.h.
4737 Include stringpool.h.
4739 * config/m68k/m68k.c: Include calls.h.
4740 Include stor-layout.h.
4742 * config/mcore/mcore.c: Include stor-layout.h.
4744 Include stringpool.h.
4746 * config/mep/mep.c: Include varasm.h.
4748 Include stringpool.h.
4749 Include stor-layout.h.
4750 * config/microblaze/microblaze.c: Include varasm.h.
4751 Include stor-layout.h.
4753 * config/mips/mips.c: Include varasm.h.
4754 Include stringpool.h.
4755 Include stor-layout.h.
4757 * config/mmix/mmix.c: Include varasm.h.
4758 Include stor-layout.h.
4760 * config/mn10300/mn10300.c: Include stor-layout.h.
4763 * config/moxie/moxie.c: Include stor-layout.h.
4766 * config/msp430/msp430.c: Include stor-layout.h.
4768 * config/nds32/nds32.c: Include stor-layout.h.
4771 * config/pa/pa.c: Include stor-layout.h.
4772 Include stringpool.h.
4775 * config/pdp11/pdp11.c: Include stor-layout.h.
4778 * config/picochip/picochip.c: Include calls.h.
4779 Include stor-layout.h.
4780 Include stringpool.h.
4782 * config/rl78/rl78.c: Include varasm.h.
4783 Include stor-layout.h.
4785 * config/rs6000/rs6000-c.c: Include stor-layout.h.
4786 Include stringpool.h.
4787 * config/rs6000/rs6000.c: Include stringpool.h.
4788 Include stor-layout.h.
4790 Include print-tree.h.
4792 * config/rx/rx.c: Include varasm.h.
4793 Include stor-layout.h.
4795 * config/s390/s390.c: Include print-tree.h.
4796 Include stringpool.h.
4797 Include stor-layout.h.
4800 * config/score/score.c: Include stringpool.h.
4803 Include stor-layout.h.
4804 * config/sh/sh-c.c: Include stringpool.h.
4805 Include attribs.h.h.
4806 * config/sh/sh.c: Include stringpool.h.
4807 Include stor-layout.h.
4810 * config/sol2-c.c: Include stringpool.h.
4812 * config/sol2-cxx.c: Include stringpool.h.
4813 * config/sol2.c: Include stringpool.h.
4815 * config/sparc/sparc.c: Include stringpool.h.
4816 Include stor-layout.h.
4819 * config/spu/spu-c.c: Include stringpool.h.
4820 * config/spu/spu.c: Include stringpool.h.
4821 Include stor-layout.h.
4824 * config/stormy16/stormy16.c: Include stringpool.h.
4825 Include stor-layout.h.
4828 * config/tilegx/tilegx.c: Include stringpool.h.
4829 Include stor-layout.h.
4832 * config/tilepro/tilepro.c: Include stringpool.h.
4833 Include stor-layout.h.
4836 * config/v850/v850-c.c: Include stringpool.h.
4838 * config/v850/v850.c: Include stringpool.h.
4839 Include stor-layout.h.
4842 * config/vax/vax.c: Include calls.h.
4844 * config/vms/vms.c: Include stringpool.h.
4845 * config/vxworks.c: Include stringpool.h.
4846 * config/xtensa/xtensa.c: Include stringpool.h.
4847 Include stor-layout.h.
4850 * convert.c: Include stor-layout.h.
4851 * coverage.c: Include stringpool.h.
4852 Include stor-layout.h.
4853 * dbxout.c: Include varasm.h.
4854 Include stor-layout.h.
4855 * dojump.c: Include stor-layout.h.
4856 * dse.c: Include stor-layout.h.
4857 * dwarf2asm.c: Include stringpool.h.
4859 * dwarf2cfi.c: Include stor-layout.h.
4860 * dwarf2out.c: Include rtl.h.
4861 Include stringpool.h.
4862 Include stor-layout.h.
4866 Move inclusion of rtl.h earlier in the file.
4867 * emit-rtl.c: Include varasm.h.
4868 * except.c: Include stringpool.h.
4869 Include stor-layout.h.
4870 * explow.c: Include stor-layout.h.
4871 * expmed.c: Include stor-layout.h.
4872 * expr.c: Include stringpool.h.
4873 Include stor-layout.h.
4876 * final.c: Include varasm.h.
4877 * fold-const.c: Include stor-layout.h.
4879 Include tree-iterator.h.
4880 * function.c: Include stor-layout.h.
4882 Include stringpool.h.
4883 * genattrtab.c (write_header): Emit includes for varasm.h,
4884 stor-layout.h and calls.h.
4885 * genautomata.c (main): Likewise.
4886 * genemit.c: Likewise.
4887 * genopinit.c: Likewise.
4888 * genoutput.c (output_prologue): Likewise.
4889 * genpeep.c: Likewise.
4890 * genpreds.c (write_insn_preds_c): Likewise.
4891 * gengtype.c (open_base_files): Add stringpool.h.
4892 * gimple-expr.c: Include stringpool.h.
4893 Include stor-layout.h.
4894 * gimple-fold.c: Include stringpool.h.
4897 Include stor-layout.h.
4898 * gimple-low.c: Include tree-nested.h.
4900 * gimple-pretty-print.c: Include stringpool.h.
4901 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4903 * gimple-walk.c: Include stmt.h.
4904 * gimple.c: Include calls.h.
4906 Include stor-layout.h.
4907 * gimplify.c: Include stringpool.h.
4910 Include stor-layout.h.
4912 Include print-tree.h.
4914 * gimplify-me.c: Include stmt.h
4915 Include stor-layout.h
4916 * internal-fn.c: Include stor-layout.h.
4917 * ipa-devirt.c: Include print-tree.h.
4919 * ipa-inline-analysis.c: Include stor-layout.h.
4920 Include stringpool.h.
4921 Include print-tree.h.
4922 * ipa-inline.c: Include trans-mem.h.
4924 * ipa-prop.c: Include expr.h.
4925 Include stor-layout.h.
4926 Include print-tree.h.
4927 * ipa-pure-const.c: Include print-tree.h.
4929 * ipa-reference.c: Include calls.h.
4930 * ipa-split.c: Include stringpool.h.
4933 * ipa.c: Include calls.h.
4934 Include stringpool.h.
4935 * langhooks.c: Include stringpool.h.
4937 * lto-cgraph.c: Include stringpool.h.
4938 * lto-streamer-in.c: Include stringpool.h.
4939 * lto-streamer-out.c: Include stor-layout.h.
4940 Include stringpool.h.
4941 * omp-low.c: Include stringpool.h.
4942 Include stor-layout.h.
4944 * optabs.c: Include stor-layout.h.
4945 Include stringpool.h.
4947 * passes.c: Include varasm.h.
4948 * predict.c: Include calls.h.
4949 * print-rtl.c: Include print-tree.h.
4950 * print-tree.c: Include varasm.h.
4951 Include print-rtl.h.
4952 Include stor-layout.h.
4953 * realmpfr.c: Include stor-layout.h.
4954 * reg-stack.c: Include varasm.h.
4955 * sdbout.c: Include varasm.h.
4956 Include stor-layout.h.
4957 * simplify-rtx.c: Include varasm.h.
4958 * stmt.c: Include varasm.h.
4959 Include stor-layout.h.
4960 * stor-layout.c: Include stor-layout.h.
4961 Include stringpool.h.
4963 Include print-tree.h.
4964 * symtab.c: Include rtl.h.
4965 Include print-tree.h.
4969 * targhooks.c: Include stor-layout.h.
4971 * toplev.c: Include varasm.h.
4972 Include tree-inline.h.
4973 * trans-mem.c: Include calls.h.
4977 * tree-affine.c: Include expr.h.
4978 * tree-browser.c: Include print-tree.h.
4979 * tree-call-cdce.c: Include stor-layout.h.
4980 * tree-cfg.c: Include trans-mem.h.
4981 Include stor-layout.h.
4982 Include print-tree.h.
4983 * tree-complex.c: Include stor-layout.h.
4984 * tree-data-ref.c: Include expr.h.
4985 * tree-dfa.c: Include stor-layout.h.
4986 * tree-eh.c: Include expr.h.
4988 * tree-emutls.c: Include stor-layout.h.
4990 * tree-if-conv.c: Include stor-layout.h.
4991 * tree-inline.c: Include stor-layout.h.
4993 * tree-loop-distribution.c: Include stor-layout.h.
4994 * tree-nested.c: Include stringpool.h.
4995 Include stor-layout.h.
4996 * tree-object-size.c: Include tree-object-size.h.
4997 * tree-outof-ssa.c: Include stor-layout.h.
4998 * tree-parloops.c: Include stor-layout.h.
4999 Include tree-nested.h.
5000 * tree-pretty-print.c: Include stor-layout.h.
5002 * tree-profile.c: Include varasm.h.
5003 Include tree-nested.h.
5004 * tree-scalar-evolution.c: Include expr.h.
5005 * tree-sra.c: Include stor-layout.h.
5006 * tree-ssa-address.c: Include stor-layout.h.
5007 * tree-ssa-ccp.c: Include stor-layout.h.
5008 * tree-ssa-dce.c: Include calls.h.
5009 * tree-ssa-dom.c: Include stor-layout.h.
5010 * tree-ssa-forwprop.c: Include stor-layout.h.
5011 * tree-ssa-ifcombine.c: Include stor-layout.h.
5012 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5013 * tree-ssa-loop-niter.c: Include calls.h.
5015 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5016 * tree-ssa-math-opts.c: Include stor-layout.h.
5017 * tree-ssa-operands.c: Include stmt.h.
5018 Include print-tree.h.
5019 * tree-ssa-phiopt.c: Include stor-layout.h.
5020 * tree-ssa-reassoc.c: Include stor-layout.h.
5021 * tree-ssa-sccvn.c: Include stor-layout.h.
5022 * tree-ssa-sink.c: Include stor-layout.h.
5023 * tree-ssa-strlen.c: Include stor-layout.h.
5024 * tree-ssa-structalias.c: Include stor-layout.h.
5026 * tree-ssa-tail-merge.c: Include stor-layout.h.
5027 Include trans-mem.h.
5028 * tree-ssa-uncprop.c: Include stor-layout.h.
5029 * tree-ssa.c: Include stor-layout.h.
5030 * tree-ssanames.c: Include stor-layout.h.
5031 * tree-streamer-in.c: Include stringpool.h.
5032 * tree-streamer-out.c: Include stor-layout.h.
5033 * tree-switch-conversion.c: Include varasm.h.
5034 Include stor-layout.h.
5035 * tree-tailcall.c: Include stor-layout.h.
5036 * tree-vect-data-refs.c: Include stor-layout.h.
5037 * tree-vect-generic.c: Include stor-layout.h.
5038 * tree-vect-loop.c: Include stor-layout.h.
5039 * tree-vect-patterns.c: Include stor-layout.h.
5040 * tree-vect-slp.c: Include stor-layout.h.
5041 * tree-vect-stmts.c: Include stor-layout.h.
5042 * tree-vectorizer.c: Include stor-layout.h.
5043 * tree-vrp.c: Include stor-layout.h.
5045 * tree.c: Include stor-layout.h.
5049 * tsan.c: Include expr.h.
5050 * ubsan.c: Include stor-layout.h.
5051 Include stringpool.h.
5052 * value-prof.c: Include tree-nested.h.
5054 * var-tracking.c: Include varasm.h.
5055 Include stor-layout.h.
5056 * varasm.c: Include stor-layout.h.
5057 Include stringpool.h.
5058 Include gcc-symtab.h.
5060 * varpool.c: Include varasm.h.
5061 * vmsdbgout.c: Include varasm.h.
5062 * xcoffout.c: Include varasm.h.
5064 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
5066 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5069 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5071 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5073 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5074 Alan Modra <amodra@gmail.com>
5076 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5077 (RS6000_SAVE_TOC): Remove.
5078 (RS6000_TOC_SAVE_SLOT): New macro.
5079 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5080 (rs6000_parm_start): Use it.
5081 (rs6000_function_arg_advance_1): Likewise.
5082 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5083 (rs6000_emit_epilogue): Likewise.
5084 (rs6000_call_aix): Likewise.
5085 (rs6000_output_function_prologue): Do not save/restore r11
5086 around calling _mcount for ABI_ELFv2.
5088 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5089 Alan Modra <amodra@gmail.com>
5091 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5093 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5094 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5095 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5096 (rs6000_function_parms_need_stack): Likewise.
5097 (rs6000_reg_parm_stack_space): Likewise.
5098 (rs6000_function_arg): Do not replace BLKmode by Pmode when
5099 returning a register argument.
5101 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5102 Michael Gschwind <mkg@us.ibm.com>
5104 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5105 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5106 (FUNCTION_VALUE_REGNO_P): Use them.
5107 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5108 (rs6000_return_in_msb): New function.
5109 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5110 Handle aggregates of up to 16 bytes for ELFv2.
5111 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5113 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5114 Michael Gschwind <mkg@us.ibm.com>
5116 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5117 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5118 (rs6000_discover_homogeneous_aggregate): Likewise.
5119 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5120 (rs6000_function_arg_advance_1): Likewise.
5121 (rs6000_function_arg): Likewise.
5122 (rs6000_arg_partial_bytes): Likewise.
5123 (rs6000_psave_function_arg): Handle BLKmode arguments.
5125 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5126 Michael Gschwind <mkg@us.ibm.com>
5128 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5129 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5130 (rs6000_discover_homogeneous_aggregate): Likewise.
5131 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5132 (rs6000_function_arg_advance_1): Likewise.
5133 (rs6000_function_arg): Likewise.
5134 (rs6000_arg_partial_bytes): Likewise.
5135 (rs6000_psave_function_arg): Handle BLKmode arguments.
5137 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5139 * config/rs6000/rs6000.c (machine_function): New member
5141 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5142 (rs6000_output_mi_thunk): Set r2_setup_needed.
5143 (rs6000_output_function_prologue): Output global entry point
5144 prologue and local entry point marker if needed for ABI_ELFv2.
5145 Output -mprofile-kernel code here.
5146 (output_function_profiler): Do not output -mprofile-kernel
5147 code here; moved to rs6000_output_function_prologue.
5148 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5150 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5151 (rs6000_output_function_entry): Likewise.
5152 (rs6000_assemble_integer): Likewise.
5153 (rs6000_elf_encode_section_info): Likewise.
5154 (rs6000_elf_declare_function_name): Do not create dot symbols
5155 or .opd section for ABI_ELFv2.
5157 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5158 (rs6000_trampoline_init): Likewise.
5159 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5161 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
5162 for function descriptors in ABI_ELFv2.
5164 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5165 on ABI_AIX only, not ABI_ELFv2.
5166 ("*call_value_indirect_aix<mode>"): Likewise.
5167 ("*call_indirect_elfv2<mode>"): New pattern.
5168 ("*call_value_indirect_elfv2<mode>"): Likewise.
5170 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5171 check for function descriptors in ABI_ELFv2.
5172 ("current_file_function_operand"): Likewise.
5174 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5176 (FUNC_NAME): Define ELFv2 variant.
5177 (JUMP_TARGET): Likewise.
5178 (FUNC_START): Likewise.
5179 (HIDDEN_FUNC): Likewise.
5180 (FUNC_END): Likeiwse.
5182 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5184 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5185 and --with-abi=elfv2.
5186 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5187 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5188 (mabi=elfv2): Likewise.
5189 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5190 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5192 (ELFv2_ABI_CHECK): New macro.
5193 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5194 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5195 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5196 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5197 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5199 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5200 (debug_stack_info): Likewise.
5201 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5202 (rs6000_legitimize_tls_address): Likewise.
5203 (rs6000_conditional_register_usage): Likewise.
5204 (rs6000_emit_move): Likewise.
5205 (init_cumulative_args): Likewise.
5206 (rs6000_function_arg_advance_1): Likewise.
5207 (rs6000_function_arg): Likewise.
5208 (rs6000_arg_partial_bytes): Likewise.
5209 (rs6000_output_function_entry): Likewise.
5210 (rs6000_assemble_integer): Likewise.
5211 (rs6000_savres_strategy): Likewise.
5212 (rs6000_stack_info): Likewise.
5213 (rs6000_function_ok_for_sibcall): Likewise.
5214 (rs6000_emit_load_toc_table): Likewise.
5215 (rs6000_savres_routine_name): Likewise.
5216 (ptr_regno_for_savres): Likewise.
5217 (rs6000_emit_prologue): Likewise.
5218 (rs6000_emit_epilogue): Likewise.
5219 (rs6000_output_function_epilogue): Likewise.
5220 (output_profile_hook): Likewise.
5221 (output_function_profiler): Likewise.
5222 (rs6000_trampoline_size): Likewise.
5223 (rs6000_trampoline_init): Likewise.
5224 (rs6000_elf_output_toc_section_asm_op): Likewise.
5225 (rs6000_elf_encode_section_info): Likewise.
5226 (rs6000_elf_reloc_rw_mask): Likewise.
5227 (rs6000_elf_declare_function_name): Likewise.
5228 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5229 except that rs6000_compat_align_parm is always assumed false.
5230 (rs6000_gimplify_va_arg): Likewise.
5231 (rs6000_call_aix): Update comment.
5232 (rs6000_sibcall_aix): Likewise.
5233 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5234 Treat ABI_ELFv2 the same as ABI_AIX.
5235 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5236 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5237 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5238 ("load_toc_aix_si"): Likewise.
5239 ("load_toc_aix_di"): Likewise.
5241 ("call_value"): Likewise.
5242 ("*call_local_aix<mode>"): Likewise.
5243 ("*call_value_local_aix<mode>"): Likewise.
5244 ("*call_nonlocal_aix<mode>"): Likewise.
5245 ("*call_value_nonlocal_aix<mode>"): Likewise.
5246 ("*call_indirect_aix<mode>"): Likewise.
5247 ("*call_value_indirect_aix<mode>"): Likewise.
5248 ("sibcall"): Likewise.
5249 ("sibcall_value"): Likewise.
5250 ("*sibcall_aix<mode>"): Likewise.
5251 ("*sibcall_value_aix<mode>"): Likewise.
5252 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5253 ("current_file_function_operand"): Likewise.
5255 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5257 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5258 by making use of the fact that for vector / floating point arguments
5259 passed both in VRs/FPRs and in the fixed parameter area, the partial
5260 bytes mechanism is in fact not used.
5262 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5264 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5265 (rs6000_finish_function_arg): Likewise.
5266 (rs6000_function_arg): Use rs6000_psave_function_arg and
5267 rs6000_finish_function_arg to handle both vector and floating
5268 point arguments that are also passed in GPRs / the stack.
5270 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5272 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5273 (USE_ALTIVEC_FOR_ARG_P): Likewise.
5274 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5275 (rs6000_function_arg_advance_1):Likewise.
5276 (rs6000_darwin64_record_arg_recurse): Likewise.
5277 (rs6000_function_arg): Likewise.
5278 (rs6000_arg_partial_bytes): Likewise.
5280 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5282 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5283 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5284 (rs6000_savres_strategy): Likewise.
5285 (rs6000_return_addr): Likewise.
5286 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5287 testing for ABI_V4 (since ABI_DARWIN is impossible here).
5288 (rs6000_emit_prologue): Likewise.
5289 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5290 (rs6000_elf_declare_function_name): Remove duplicated test.
5291 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5292 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5293 ("load_toc_v4_PIC_1_normal"): Likewise.
5294 ("load_toc_v4_PIC_1_476"): Likewise.
5295 ("load_toc_v4_PIC_1b"): Likewise.
5296 ("load_toc_v4_PIC_1b_normal"): Likewise.
5297 ("load_toc_v4_PIC_1b_476"): Likewise.
5298 ("load_toc_v4_PIC_2"): Likewise.
5299 ("load_toc_v4_PIC_3b"): Likewise.
5300 ("load_toc_v4_PIC_3c"): Likewise.
5301 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5302 (RS6000_SAVE_AREA): Likewise.
5303 (FP_ARG_MAX_REG): Likewise.
5304 (RETURN_ADDRESS_OFFSET): Likewise.
5305 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5307 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5308 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5310 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5312 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5313 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
5314 Create call insn directly instead of via various gen_... routines.
5315 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5316 (rs6000_sibcall_aix): New function.
5317 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5318 (TOC_SAVE_OFFSET_64BIT): Likewise.
5319 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5320 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5321 (AIX_FUNC_DESC_SC_32BIT): Likewise.
5322 (AIX_FUNC_DESC_SC_64BIT): Likewise.
5323 ("call" expander): Call rs6000_call_aix.
5324 ("call_value" expander): Likewise.
5325 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5326 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5327 ("*call_indirect_aix<mode>"): ... by this insn pattern.
5328 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5329 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5330 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5331 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5332 ("*call_nonlocal_aix<mode>"): ... this pattern.
5333 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5334 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5335 ("*call_local_aix<mode>"): New insn pattern.
5336 ("*call_value_local_aix<mode>"): Likewise.
5337 ("sibcall" expander): Call rs6000_sibcall_aix.
5338 ("sibcall_value" expander): Likewise. Move earlier in file.
5339 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5340 ("*sibcall_aix<mode>"): ... this pattern.
5341 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5342 ("*sibcall_value_aix<mode>"): ... this pattern.
5343 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5344 (rs6000_call_aix): Add prototype.
5345 (rs6000_sibcall_aix): Likewise.
5347 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5350 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5351 isn't confused by the artificial decl.
5353 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5355 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5356 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5357 Instead, add USEs of all modified call-saved CR fields to the
5358 insn storing the result to the stack slot, and provide an
5359 appropriate REG_FRAME_RELATED_EXPR for that insn.
5360 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5361 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5363 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5364 Alan Modra <amodra@gmail.com>
5366 * function.c (assign_parms): Use all.reg_parm_stack_space instead
5367 of re-evaluating REG_PARM_STACK_SPACE target macro.
5368 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
5369 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5370 (assign_parm_find_entry_rtl): Update call.
5371 * calls.c (initialize_argument_information): Update call.
5372 (emit_library_call_value_1): Likewise.
5373 * expr.h (locate_and_pad_parm): Update prototype.
5375 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5377 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5380 2013-11-14 DJ Delorie <dj@redhat.com>
5382 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5385 2013-11-14 Jeff Law <law@redhat.com>
5387 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5388 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5390 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5392 * doc/invoke.texi: Update documentation for AArch64's -mcpu
5395 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5397 * config/aarch64/aarch64-cores.def (example-1): Remove.
5398 (example-2): Likewise.
5399 * config/aarch64/aarch64-tune.md: Regenerate.
5400 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5401 (generic_sched): Remove "large", "small".
5402 * config/aarch64/large.md: Delete.
5403 * config/aarch64/small.md: Delete.
5405 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5407 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5408 * config/aarch64/aarch64-tune.md: Regenerate.
5409 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5410 (generic_sched): "no" if we are tuning for cortexa15.
5411 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5414 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5416 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5417 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5418 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5419 (all_cores): Use cortexa53 when tuning for "generic".
5420 (aarch64_override_options): Fix comment.
5421 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5422 * config/aarch64/aarch64-generic.md: Delete.
5424 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5426 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5428 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5430 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5431 (generic_rtx_cost_table): Remove.
5432 (aarch64_rtx_costs): Use fields from cpu_cost_table.
5433 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5435 (cpu_rtx_cost_table): Remove.
5437 2013-11-14 Julian Brown <julian@codesourcery.com>
5438 Joey Ye <joey.ye@arm.com>
5440 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5441 (arm_v7m_tune): New.
5442 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5443 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5444 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5445 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5447 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
5450 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5453 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5454 Uros Bizjak <ubizjak@gmail.com>
5457 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5458 operands[2] satisfies_constraint_Z that might have bit 31 set.
5460 2013-11-13 Jeff Law <law@redhat.com>
5462 PR tree-optimization/59102
5463 * gimple-ssa-isolate-paths.c
5464 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5465 gimple assignment before looking at gimple_assign_lhs.
5467 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5469 * ira.c: Add comment about threads at the top of file.
5471 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5473 * ira-color.c (coalesce_allocnos): Don't allocate and free
5476 2013-11-14 Tom de Vries <tom@codesourcery.com>
5478 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5479 equality for GIMPLE_ASSIGN.
5481 2013-11-14 Tom de Vries <tom@codesourcery.com>
5483 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5485 (gimple_equal_p): ... here.
5487 2013-11-14 Tom de Vries <tom@codesourcery.com>
5489 * trans-mem.c (is_tm_ending): New function.
5490 * gimple.h (is_tm_ending): Declare.
5491 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5493 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5495 2013-11-14 Tom de Vries <tom@codesourcery.com>
5497 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5499 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
5501 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
5502 (struct walk_stmt_info): Relocate here from gimple.h.
5503 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
5504 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5505 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5506 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5507 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5508 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5509 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5510 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5511 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5512 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5513 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5514 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5515 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5516 (struct walk_stmt_info): Move to gimple-walk.h.
5517 (gimple_seq_set_location): Move to gimple.c
5518 * gimple-walk.c: New File.
5519 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5520 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5521 walk_stmt_load_store_ops): Relocate here from gimple.c.
5522 * gimple-iterator.c: Include gimple-iterator.h.
5523 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5524 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5525 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5527 (gimple_seq_set_location): Relocate from gimple.h.
5528 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5529 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5530 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5531 * Makefile.in (OBJS): Add gimple-walk.o
5532 * asan.c: Update Include list as required for gimple-iterator.h and
5534 * cfgexpand.c: Likewise.
5535 * cfgloop.c: Likewise.
5536 * cfgloopmanip.c: Likewise.
5537 * cgraph.c: Likewise.
5538 * cgraphbuild.c: Likewise.
5539 * cgraphunit.c: Likewise.
5540 * gimple-fold.c: Likewise.
5541 * gimple-low.c: Likewise.
5542 * gimple-pretty-print.c: Likewise.
5543 * gimple-ssa-isolate-paths.c: Likewise.
5544 * gimple-ssa-strength-reduction.c: Likewise.
5545 * gimple-streamer-in.c: Likewise.
5546 * gimple-streamer-out.c: Likewise.
5547 * gimplify.c: Likewise.
5548 * graphite-blocking.c: Likewise.
5549 * graphite-clast-to-gimple.c: Likewise.
5550 * graphite-dependences.c: Likewise.
5551 * graphite-interchange.c: Likewise.
5552 * graphite-optimize-isl.c: Likewise.
5553 * graphite-poly.c: Likewise.
5554 * graphite-scop-detection.c: Likewise.
5555 * graphite-sese-to-poly.c: Likewise.
5556 * graphite.c: Likewise.
5557 * ipa-inline-analysis.c: Likewise.
5558 * ipa-profile.c: Likewise.
5559 * ipa-prop.c: Likewise.
5560 * ipa-pure-const.c: Likewise.
5561 * ipa-split.c: Likewise.
5562 * lto-streamer-in.c: Likewise.
5563 * lto-streamer-out.c: Likewise.
5564 * omp-low.c: Likewise.
5565 * predict.c: Likewise.
5566 * profile.c: Likewise.
5568 * tracer.c: Likewise.
5569 * trans-mem.c: Likewise.
5570 * tree-call-cdce.c: Likewise.
5571 * tree-cfg.c: Likewise.
5572 * tree-cfgcleanup.c: Likewise.
5573 * tree-complex.c: Likewise.
5574 * tree-data-ref.c: Likewise.
5575 * tree-dfa.c: Likewise.
5576 * tree-eh.c: Likewise.
5577 * tree-emutls.c: Likewise.
5578 * tree-if-conv.c: Likewise.
5579 * tree-inline.c: Likewise.
5580 * tree-into-ssa.c: Likewise.
5581 * tree-loop-distribution.c: Likewise.
5582 * tree-nested.c: Likewise.
5583 * tree-nrv.c: Likewise.
5584 * tree-object-size.c: Likewise.
5585 * tree-outof-ssa.c: Likewise.
5586 * tree-parloops.c: Likewise.
5587 * tree-predcom.c: Likewise.
5588 * tree-profile.c: Likewise.
5589 * tree-scalar-evolution.c: Likewise.
5590 * tree-sra.c: Likewise.
5591 * tree-ssa-ccp.c: Likewise.
5592 * tree-ssa-coalesce.c: Likewise.
5593 * tree-ssa-copy.c: Likewise.
5594 * tree-ssa-copyrename.c: Likewise.
5595 * tree-ssa-dce.c: Likewise.
5596 * tree-ssa-dom.c: Likewise.
5597 * tree-ssa-dse.c: Likewise.
5598 * tree-ssa-forwprop.c: Likewise.
5599 * tree-ssa-ifcombine.c: Likewise.
5600 * tree-ssa-live.c: Likewise.
5601 * tree-ssa-loop-ch.c: Likewise.
5602 * tree-ssa-loop-im.c: Likewise.
5603 * tree-ssa-loop-ivcanon.c: Likewise.
5604 * tree-ssa-loop-ivopts.c: Likewise.
5605 * tree-ssa-loop-manip.c: Likewise.
5606 * tree-ssa-loop-niter.c: Likewise.
5607 * tree-ssa-loop-prefetch.c: Likewise.
5608 * tree-ssa-loop.c: Likewise.
5609 * tree-ssa-math-opts.c: Likewise.
5610 * tree-ssa-phiopt.c: Likewise.
5611 * tree-ssa-phiprop.c: Likewise.
5612 * tree-ssa-pre.c: Likewise.
5613 * tree-ssa-propagate.c: Likewise.
5614 * tree-ssa-reassoc.c: Likewise.
5615 * tree-ssa-sink.c: Likewise.
5616 * tree-ssa-strlen.c: Likewise.
5617 * tree-ssa-structalias.c: Likewise.
5618 * tree-ssa-tail-merge.c: Likewise.
5619 * tree-ssa-ter.c: Likewise.
5620 * tree-ssa-threadedge.c: Likewise.
5621 * tree-ssa-threadupdate.c: Likewise.
5622 * tree-ssa-uncprop.c: Likewise.
5623 * tree-ssa-uninit.c: Likewise.
5624 * tree-ssa.c: Likewise.
5625 * tree-stdarg.c: Likewise.
5626 * tree-switch-conversion.c: Likewise.
5627 * tree-tailcall.c: Likewise.
5628 * tree-vect-data-refs.c: Likewise.
5629 * tree-vect-generic.c: Likewise.
5630 * tree-vect-loop-manip.c: Likewise.
5631 * tree-vect-loop.c: Likewise.
5632 * tree-vect-patterns.c: Likewise.
5633 * tree-vect-slp.c: Likewise.
5634 * tree-vect-stmts.c: Likewise.
5635 * tree-vectorizer.c: Likewise.
5636 * tree-vrp.c: Likewise.
5639 * value-prof.c: Likewise.
5640 * vtable-verify.c: Likewise.
5642 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5644 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5647 2013-11-13 Jeff Law <law@redhat.com>
5649 * PR middle-end/59119
5650 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5651 function, extracted from gimple_ssa_isolate_erroneous_paths.
5652 (find_explicit_erroneous_behaviour): Similarly.
5653 (insert_trap_and_remove_trailing_statements): Remove statements
5656 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5658 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5659 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
5660 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5661 looking at INSN_CODE.
5662 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5663 active_insn_p object, respect basic block boundaries.
5664 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5665 follows immediately after the jump table data label.
5666 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5667 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
5668 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5670 2013-11-13 Teresa Johnson <tejohnson@google.com>
5673 * predict.c (drop_profile): Error is currently too strict.
5674 (handle_missing_profiles): Pass call_count to drop_profile.
5676 2013-11-13 Teresa Johnson <tejohnson@google.com>
5679 * ipa-inline.c (edge_badness): Fix overflow.
5681 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5683 PR rtl-optimization/59036
5684 * ira-color.c (struct allocno_color_data): Add new members
5685 first_thread_allocno, next_thread_allocno, thread_freq.
5686 (sorted_copies): New static var.
5687 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5688 (allocno_thread_conflict_p, merge_threads)
5689 (form_threads_from_copies, form_threads_from_bucket)
5690 (form_threads_from_colorable_allocno, init_allocno_threads): New
5692 (bucket_allocno_compare_func): Add comparison by thread frequency
5694 (add_allocno_to_ordered_bucket): Rename to
5695 add_allocno_to_ordered_colorable_bucket. Remove parameter.
5696 (push_only_colorable): Call form_threads_from_bucket.
5697 (color_pass): Call init_allocno_threads. Use
5698 consideration_allocno_bitmap instead of coloring_allocno_bitmap
5699 for nuillify allocno color data.
5700 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5701 (coalesce_allocnos): Use static sorted copies.
5703 2013-11-13 Jakub Jelinek <jakub@redhat.com>
5705 * passes.c (execute_todo): Don't call do_per_function if
5707 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5708 execute_function_dump if dump_file is NULL.
5710 2013-11-13 Martin Jambor <mjambor@suse.cz>
5712 * cgraph.c (cgraph_get_create_node): Do what
5713 cgraph_get_create_real_symbol_node used to do.
5714 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
5715 call cgraph_get_create_node.
5716 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5717 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5718 cgraph_get_create_node. Assert we get a node.
5720 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5722 * config/aarch64/aarch64-simd.md (vec_extract): New.
5724 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5726 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5729 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5731 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5732 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5733 or if optimization is enabled.
5734 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5735 require that all the names based on a PARM_DECL or a RESULT_DECL that
5736 isn't ignored for debug info be coalesced.
5738 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5740 * config/c6x/c6x.c: Include "gimple-expr.h".
5742 2013-11-13 Richard Biener <rguenther@suse.de>
5744 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5745 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5746 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5747 dealing with type mismatches inside component reference chains.
5749 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
5751 PR tree-optimization/59077
5752 * ipa-pure-const.c (better_state): Update *state.
5754 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
5756 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5757 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5758 Update offset calculations.
5760 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5763 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5764 for fields. Do not add the attribute if the size is negative.
5766 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5768 * config/arm/arm.c: Include aarch-cost-tables.h.
5769 (generic_extra_costs): Move from here...
5770 * config/arm/aarch-cost-tables.h: ... To here. New file.
5772 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
5773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5774 Sergey Lega <sergey.s.lega@intel.com>
5775 Anna Tikhonova <anna.tikhonova@intel.com>
5776 Ilya Tocar <ilya.tocar@intel.com>
5777 Andrey Turetskiy <andrey.turetskiy@intel.com>
5778 Ilya Verbin <ilya.verbin@intel.com>
5779 Kirill Yukhin <kirill.yukhin@intel.com>
5780 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5782 * config/i386/i386.c (ix86_print_operand): Support z-masking.
5783 * config/i386/predicate.md (const_0_to_4_operand): New.
5784 (const_0_to_5_operand): Ditto.
5785 * config/i386/sse.md (UNSPEC_COMPRESS): New.
5786 (UNSPEC_COMPRESS_STORE): Ditto.
5787 (UNSPEC_EXPAND): Ditto.
5788 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5789 (define_mode_attr ssescalarsize): Ditto.
5790 (avx512f_load<mode>_mask): Ditto.
5791 (avx512f_store<mode>_mask): Ditto.
5792 (avx512f_storedqu<mode>_mask): Ditto.
5793 (avx512f_vmcmp<mode>3_mask): Ditto.
5794 (avx512f_fmadd_<mode>_mask): Ditto.
5795 (avx512f_fmadd_<mode>_mask3): Ditto.
5796 (avx512f_fmsub_<mode>_mask): Ditto.
5797 (avx512f_fmsub_<mode>_mask3): Ditto.
5798 (avx512f_fnmadd_<mode>_mask): Ditto.
5799 (avx512f_fnmadd_<mode>_mask3): Ditto.
5800 (avx512f_fnmsub_<mode>_mask): Ditto.
5801 (avx512f_fnmsub_<mode>_mask3): Ditto.
5802 (avx512f_fmaddsub_<mode>_mask): Ditto.
5803 (avx512f_fmaddsub_<mode>_mask3): Ditto.
5804 (avx512f_fmsubadd_<mode>_mask): Ditto.
5805 (avx512f_fmsubadd_<mode>_mask3): Ditto.
5806 (vec_unpacku_float_lo_v16si): Ditto.
5807 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5808 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5809 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5810 (vec_extract_lo_<mode>_maskm): Ditto.
5811 (vec_extract_hi_<mode>_maskm): Ditto.
5812 (avx512f_vternlog<mode>_mask): Ditto.
5813 (avx512f_shufps512_mask): Ditto.
5814 (avx512f_fixupimm<mode>_mask): Ditto.
5815 (avx512f_shufpd512_mask): Ditto.
5816 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5817 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5818 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5819 (ashr<mode>3<mask_name>): Ditto.
5820 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5821 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5822 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5823 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5824 (avx512f_pshufdv3_mask): Ditto.
5825 (avx512f_perm<mode>_mask): Ditto.
5826 (avx512f_vpermi2var<mode>3_mask): Ditto.
5827 (avx512f_vpermt2var<mode>3_mask): Ditto.
5828 (avx512f_compress<mode>_mask): Ditto.
5829 (avx512f_compressstore<mode>_mask): Ditto.
5830 (avx512f_expand<mode>_mask): Ditto.
5831 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5833 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5834 (<plusminus_insn><mode>3<mask_name>): Ditto.
5835 (*<plusminus_insn><mode>3<mask_name>): Ditto.
5836 (mul<mode>3<mask_name>): Ditto.
5837 (*mul<mode>3<mask_name>): Ditto.
5838 (<sse>_div<mode>3<mask_name>): Ditto.
5839 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5840 (<sse>_sqrt<mode>2<mask_name>): Ditto.
5841 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5842 (<code><mode>3<mask_name>/smaxmin): Ditto.
5843 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5844 (*<code><mode>3<mask_name>/smaxmin): Ditto.
5845 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5846 (ufloatv16siv16sf2<mask_name>): Ditto.
5847 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5848 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5849 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5850 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5851 (ufloatv8siv8df<mask_name>): Ditto.
5852 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5853 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5854 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5855 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5856 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5857 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5858 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5859 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5860 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5861 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5862 (vec_extract_lo_<mode><mask_name>): Ditto.
5863 (vec_extract_hi_<mode><mask_name>): Ditto.
5864 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5865 (avx512f_movddup512<mask_name>): Ditto.
5866 (avx512f_unpcklpd512<mask_name>): Ditto.
5867 (*avx512f_unpcklpd512<mask_name>): Ditto.
5868 (*avx512f_vmscalef<mode>): Ditto.
5869 (avx512f_scalef<mode><mask_name>): Ditto.
5870 (avx512f_getexp<mode><mask_name>): Ditto.
5871 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5872 (avx512f_rndscale<mode><mask_name>): Ditto.
5873 (avx512f_shufps512_1<mask_name>): Ditto.
5874 (avx512f_shufpd512_1<mask_name>): Ditto.
5875 (<plusminus_insn><mode>3<mask_name>): Ditto.
5876 (*<plusminus_insn><mode>3<mask_name>): Ditto.
5877 (vec_widen_umult_even_v16si<mask_name>): Ditto.
5878 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5879 (vec_widen_smult_even_v16si<mask_name>): Ditto.
5880 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5881 (mul<mode>3<mask_name>): Ditto.
5882 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5883 (<shift_insn><mode>3<mask_name>): Ditto.
5884 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5885 (avx512f_<rotate><mode><mask_name>): Ditto.
5886 (<code><mode>3<mask_name>/maxmin): Ditto.
5887 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5888 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5889 (*andnot<mode>3<mask_name>): Ditto.
5890 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5891 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5892 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5893 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5894 (vec_set_lo_<mode><mask_name>): Ditto.
5895 (vec_set_hi_<mode><mask_name>): Ditto.
5896 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5897 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5898 (avx512f_pshufd_1<mask_name>): Ditto.
5899 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5900 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5901 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5902 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5903 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5904 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5905 (avx512er_exp2<mode><mask_name>): Ditto.
5906 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5907 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5908 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5909 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5910 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5911 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5912 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5913 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5914 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5915 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5916 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5917 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5918 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5919 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5920 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5921 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5922 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5923 (avx512f_getmant<mode><mask_name>): Ditto.
5924 (clz<mode>2<mask_name>): Ditto.
5925 (<mask_codefor>conflict<mode><mask_name>): Ditto.
5926 (*srcp14<mode>): Remove visibility.
5927 (*rsqrt14<mode>): Ditto.
5928 (*fma_fmsub_<mode>): Ditto.
5929 (*fma_fnmadd_<mode>): Ditto.
5930 (*avx512f_rndscale<mode>): Ditto.
5931 * config/i386/subst.md: New file.
5933 2013-11-13 Joseph Myers <joseph@codesourcery.com>
5935 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5936 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5937 (atomic_load_explicit, atomic_exchange_explicit)
5938 (atomic_compare_exchange_strong_explicit)
5939 (atomic_compare_exchange_weak_explicit): Use __auto_type to
5940 declare variable initialized with PTR argument.
5942 2013-11-12 Jeff Law <law@redhat.com>
5944 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5945 backedge_seen_p. Set, use and pass it to children appropriately.
5946 (thread_through_normal_block): Similarly.
5947 (thread_across_edge): Similarly.
5949 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5950 memory references as volatile.
5951 (insert_trap_and_remove_trailing_statements): Fix comment.
5953 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
5956 * ira-costs.c (record_operand_costs): Check operands number for
5959 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5962 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5963 constraints that would allow DImode into the traditional Altivec
5964 registers, but cause undesirable code generation when loading 0 as
5966 (movdi_internal64): Likewise.
5967 (cmp<mode>_fpr): Do not use %x for CR register output.
5968 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5969 -mallow-upper-sf debug switches are used.
5971 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
5973 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5974 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5975 Relocate prototypes from gimple.h.
5976 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
5977 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5979 * gimple.h: Move some prototypes to gimplify.h.
5980 (gimple_predicate, enum fallback, enum gimplify_status): Move to
5982 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5983 Relocate from gimpify.c.
5984 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5985 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5986 is_gimple_reg_rhs) Relocate from gimplify.c.
5987 * gimplify.c (mark_addressable): Move to gimple-expr.c.
5988 (gimple_seq_add_stmt_without_update): Move to gimple.c.
5989 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5990 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5991 is_gimple_reg_rhs): Move to gimple-expr.c.
5992 (should_carry_location_p): Move to gimple.c.
5993 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5995 (annotate_one_with_location, annotate_all_with_location_after,
5996 annotate_all_with_location): Move to gimple.c.
5997 (compare_case_labels, sort_case_labels,
5998 preprocess_case_label_vec_for_gimple): Move to gimple.c.
5999 (rhs_predicate_for): Make static.
6000 (gimplify_assign): Relocate from gimple.c.
6001 * gimple.c (gimplify_assign): Move to gimplify.c.
6002 (gimple_seq_add_stmt_without_update, should_carry_location_p,
6003 annotate_one_with_location, annotate_all_with_location_after,
6004 annotate_all_with_location, compare_case_labels, sort_case_labels,
6005 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6006 * tree.h (unshare_expr, unshare_expr_without_location,
6007 mark_addressable): Move prototypes to gimplify.h.
6008 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6010 * asan.c: Include gimplify.h rather than gimple.h.
6011 * cfgloopmanip.c: Likewise.
6012 * cgraphunit.c: Likewise.
6013 * cilk-common.c: Likewise.
6014 * dwarf2out.c: Dont include gimple.h.
6015 * fold-const.c: Include gimplify.h rather than gimple.h.
6016 * function.c: Likewise.
6017 * gimple-fold.c: Likewise.
6018 * gimple-ssa-strength-reduction.c: Likewise.
6019 * graphite-clast-to-gimple.c: Likewise.
6020 * graphite-sese-to-poly.c: Likewise.
6021 * ipa-prop.c: Likewise.
6022 * ipa-split.c: Likewise.
6024 * langhooks.c: Dont include gimple.h.
6025 * loop-init.c: Include gimplify.h rather than gimple.h.
6026 * omp-low.c: Likewise.
6028 * stor-layout.c: Likewise.
6029 * targhooks.c: Likewise.
6030 * trans-mem.c: Likewise.
6031 * tree-affine.c: Likewise.
6032 * tree-cfg.c: Likewise.
6033 * tree-cfgcleanup.c: Likewise.
6034 * tree-complex.c: Likewise.
6035 * tree-if-conv.c: Likewise.
6036 * tree-inline.c: Likewise.
6037 * tree-iterator.c: Likewise.
6038 * tree-loop-distribution.c: Likewise.
6039 * tree-nested.c: Likewise.
6040 * tree-parloops.c: Likewise.
6041 * tree-predcom.c: Likewise.
6042 * tree-profile.c: Likewise.
6043 * tree-scalar-evolution.c: Likewise.
6044 * tree-sra.c: Likewise.
6045 * tree-ssa-address.c: Likewise.
6046 * tree-ssa-ccp.c: Likewise.
6047 * tree-ssa-dce.c: Likewise.
6048 * tree-ssa-forwprop.c: Likewise.
6049 * tree-ssa-ifcombine.c: Likewise.
6050 * tree-ssa-loop-im.c: Likewise.
6051 * tree-ssa-loop-ivopts.c: Likewise.
6052 * tree-ssa-loop-manip.c: Likewise.
6053 * tree-ssa-loop-niter.c: Likewise.
6054 * tree-ssa-loop-prefetch.c: Likewise.
6055 * tree-ssa-loop-unswitch.c: Likewise.
6056 * tree-ssa-math-opts.c: Likewise.
6057 * tree-ssa-phiopt.c: Likewise.
6058 * tree-ssa-phiprop.c: Likewise.
6059 * tree-ssa-pre.c: Likewise.
6060 * tree-ssa-propagate.c: Likewise.
6061 * tree-ssa-reassoc.c: Likewise.
6062 * tree-ssa-sccvn.c: Likewise.
6063 * tree-ssa-strlen.c: Likewise.
6064 * tree-ssa.c: Likewise.
6065 * tree-switch-conversio: Likewise.n.c
6066 * tree-tailcall.c: Likewise.
6067 * tree-vect-data-refs.c: Likewise.
6068 * tree-vect-generic.c: Likewise.
6069 * tree-vect-loop-manip.c: Likewise.
6070 * tree-vect-loop.c: Likewise.
6071 * tree-vect-patterns.c: Likewise.
6072 * tree-vect-stmts.c: Likewise.
6074 * value-prof.c: Likewise.
6075 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6076 * config/alpha/alpha.c: Likewise.
6077 * config/darwin.c: Likewise.
6078 * config/i386/i386.c: Likewise.
6079 * config/ia64/ia64.c: Likewise.
6080 * config/mep/mep.c: Likewise.
6081 * config/mips/mips.c: Likewise.
6082 * config/rs6000/rs6000.c: Likewise.
6083 * config/s390/s390.c: Likewise.
6084 * config/sh/sh.c: Likewise.
6085 * config/sparc/sparc.c: Likewise.
6086 * config/spu/spu.c: Likewise.
6087 * config/stormy16/stormy16.c: Likewise.
6088 * config/tilegx/tilegx.c: Likewise.
6089 * config/tilepro/tilepro.c: Likewise.
6090 * config/xtensa/xtensa.c: Likewise.
6092 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
6094 * tree.c (grow_tree_vec_stat): New function ...
6095 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6096 and macro front-end.
6098 2013-11-12 Marek Polacek <polacek@redhat.com>
6100 * final.c (update_alignments): Initialize label to NULL_RTX.
6102 2013-11-12 Jeff Law <law@redhat.com>
6104 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6105 (insert_trap_and_remove_trailing_statements): New argument OP which
6106 is the NULL pointer. Emit the trap after the load/store through
6107 the NULL pointer. Simplify the RHS of a store through a NULL pointer
6108 when trivial to do so.
6109 (isolate_path): Corresponding changes.
6110 (gimple_ssa_isolate_erroneous_path): Likewise.
6112 2013-11-12 Teresa Johnson <tejohnson@google.com>
6113 Jan Hubicka <jh@suse.cz>
6115 * predict.c (drop_profile): New function.
6116 (handle_missing_profiles): Ditto.
6117 (counts_to_freqs): Don't overwrite estimated frequencies
6118 when function has no profile counts.
6119 * predict.h (handle_missing_profiles): Declare.
6120 * tree-inline.c (freqs_to_counts): New function.
6121 (copy_cfg_body): Invoke freqs_to_counts as needed.
6122 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6124 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6127 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6129 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6131 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6134 * config/i386/i386.c (ix86_option_override_internal): Check
6135 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6136 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6137 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6138 MASK_AVX256_SPLIT_UNALIGNED_STORE.
6140 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6141 Clear m_COREI7_AVX and update comments.
6142 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6144 2013-11-12 Martin Jambor <mjambor@suse.cz>
6146 PR rtl-optimization/10474
6147 * ira.c (interesting_dest_for_shprep): New function.
6148 (split_live_ranges_for_shrink_wrap): Likewise.
6149 (find_moveable_pseudos): Move calculation of dominance info,
6150 df_analysios and the final anlyses to...
6151 (ira): ...here, call split_live_ranges_for_shrink_wrap.
6153 2013-11-12 Bin Cheng <bin.cheng@arm.com>
6155 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6156 Handle type conversion.
6158 2013-11-11 Martin Liska <marxin.liska@gmail.com>
6159 Jan Hubicka <jh@suse.cz>
6161 * cgraph.c (dump_cgraph_node): Profile dump added.
6162 * cgraph.h (struct cgraph_node): New time profile variable added.
6163 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6164 * gcov-io.h (gcov_type): New profiler type introduced.
6165 * ipa-profile.c (lto_output_node): Streaming for time profile added.
6166 (input_node): Time profiler is read from LTO stream.
6167 * predict.c (maybe_hot_count_p): Hot prediction changed.
6168 * profile.c (instrument_values): New case for time profiler added.
6169 (compute_value_histograms): Read of time profile.
6170 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6171 * tree-profile.c (init_ic_make_global_vars): Time profiler
6173 (gimple_init_edge_profiler): TP function instrumentation.
6174 (gimple_gen_time_profiler): New.
6175 * value-prof.c (gimple_add_histogram_value): Support for time profiler
6177 (dump_histogram_value): TP type added to dumps.
6178 (visit_hist): More sensitive check that takes TP into account.
6179 (gimple_find_values_to_profile): TP instrumentation.
6180 * value-prof.h (hist_type): New histogram type added.
6181 (struct histogram_value_t): Pointer to struct function added.
6182 * libgcc/Makefile.in: New GCOV merge function for TP added.
6183 * libgcov.c: function_counter variable introduced.
6184 (_gcov_merge_time_profile): New.
6185 (_gcov_time_profiler): New.
6187 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
6188 Jeff Law <law@redhat.com>
6190 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6191 ao_ref_init_from_ptr_and_size for builtins.
6193 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
6194 H.J. Lu <hongjiu.lu@intel.com>
6197 * config/i386/x86-tune.def
6198 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6199 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6200 * config/i386/i386.h
6201 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6202 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
6203 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6204 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6205 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6206 misaligned_prologue_used. Check that
6207 desired_aling <= epilogue_size_needed.
6209 2013-11-11 Cong Hou <congh@google.com>
6211 PR tree-optimization/59050
6212 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6214 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6217 * expmed.c (emit_store_flag): Fail for const-const comparison.
6219 2013-11-11 Tristan Gingold <gingold@adacore.com>
6220 Eric Botcazou <ebotcazou@adacore.com>
6222 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6223 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6224 * tree.def (CONSTRUCTOR): Likewise.
6225 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
6226 * gimplify.c (gimplify_init_constructor): Do not clear the object when
6227 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6229 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
6231 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6234 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6236 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6239 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6241 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6243 2013-11-08 Jeff Law <law@redhat.com>
6245 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6246 threading paths first, then perform PHI node checks if applicable.
6248 2013-11-10 Karlson2k <k2k@narod.ru>
6249 Kai Tietz <ktietz@redhat.com>
6252 * configure.ac: Adding for exported symbols check
6253 and for rdynamic-check executable-extension.
6254 * configure: Regenerated.
6256 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
6258 * mode-switching.c (optimize_mode_switching): Mark block as
6259 nontransparent, if last_mode at block exit is different from no_mode.
6261 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6263 * function.c (NAME__MAIN): Move to...
6264 * cfgexpand.c (NAME__MAIN): ...here.
6266 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
6268 * target.def (can_use_doloop_p): New hook.
6269 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6270 * doc/tm.texi: Regenerate.
6271 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6272 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6273 * hooks.c (hook_bool_dint_dint_uint_true): New function.
6274 * targhooks.h (can_use_doloop_if_innermost): Declare.
6275 * targhooks.c (can_use_doloop_if_innermost): New function.
6276 * target.h: Include double-int.h.
6277 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6278 Remove iteration count, maximum iteration count, loop depth and
6279 enter-at-top inputs from doloop_begin and doloop_end.
6280 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6282 * config/arc/arc.c (arc_can_use_doloop_p): New function.
6283 (TARGET_CAN_USE_DOLOOP_P): Define.
6284 * config/arm/thumb2.md (doloop_end): Update for new interface.
6285 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6286 * config/bfin/bfin.md (doloop_end): Update for new interface.
6287 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6288 (TARGET_CAN_USE_DOLOOP_P): Define.
6289 * config/c6x/c6x.md (doloop_end): Update for new interface.
6290 * config/ia64/ia64.md (doloop_end): Update for new interface.
6291 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6292 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6294 * config/mep/mep.c (mep_emit_doloop): Likewise.
6295 (TARGET_CAN_USE_DOLOOP_P): Define.
6296 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6297 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6298 * config/s390/s390.md (doloop_end): Update for new interface.
6299 * config/sh/sh.md (doloop_end): Likewise.
6300 * config/spu/spu.md (doloop_end): Likewise.
6301 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6302 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6303 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6304 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6305 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6306 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6308 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6310 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
6313 * doc/extend.texi: Move Cilk Plus Builtins node before Other
6316 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
6317 Joseph Myers <joseph@codesourcery.com>
6319 * ginclude/stdatomic.h: New file.
6320 * Makefile.in (USER_H): Add stdatomic.h.
6322 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6324 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6327 2013-11-08 Jeff Law <law@redhat.com>
6329 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6330 * tree-ssa-threadupdate.c (delete_thread_path): New function.
6331 (ssa_redirect_edges, thread_block_1): Use it.
6332 (thread_through_loop_header, mark_threaded_blocks): Likewise.
6333 (thread_through_all_blocks, register_jump_thread): Likewise.
6334 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6336 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6338 * config/arm/aarch-common.c
6339 (search_term): New typedef.
6340 (shift_rtx_costs): New array.
6341 (arm_rtx_shift_left_p): New.
6342 (arm_find_sub_rtx_with_search_term): Likewise.
6343 (arm_find_sub_rtx_with_code): Likewise.
6344 (arm_early_load_addr_dep): Add sanity checking.
6345 (arm_no_early_alu_shift_dep): Likewise.
6346 (arm_no_early_alu_shift_value_dep): Likewise.
6347 (arm_no_early_mul_dep): Likewise.
6348 (arm_no_early_store_addr_dep): Likewise.
6350 2013-11-08 Richard Biener <rguenther@suse.de>
6352 PR tree-optimization/59047
6353 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6355 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
6357 * common.opt (fcheck-pointer-bounds): Move to ...
6358 * c-family/c.opt: ... here.
6359 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6360 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6361 * langhooks.h (lang_hooks): Remove chkp_supported field.
6362 * toplev.c (process_options): Remove chkp_supported check.
6364 2013-11-08 Richard Biener <rguenther@suse.de>
6366 PR tree-optimization/59038
6367 PR tree-optimization/58955
6368 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6369 previous change. Handle known dependences correctly.
6371 2013-11-08 Tom de Vries <tom@codesourcery.com>
6373 * config/rs6000/t-xilinx: Remove duplicate contents.
6375 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
6376 Joseph Myers <joseph@codesourcery.com>
6378 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6379 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6380 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6381 (struct tree_base): Add atomic_flag field.
6382 * tree.h (TYPE_ATOMIC): New accessor macro.
6383 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6384 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6385 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6386 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6387 * tree.c (set_type_quals): Set TYPE_ATOMIC.
6388 (find_atomic_core_type): New function.
6389 (build_qualified_type): Adjust alignment for qualified types.
6390 (build_atomic_base): New function
6391 (build_common_tree_nodes): Build atomicQI_type_node,
6392 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6394 * print-tree.c (print_node): Print atomic qualifier.
6395 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6396 * target.def (atomic_assign_expand_fenv): New hook.
6397 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6398 * doc/tm.texi: Regenerate.
6399 * targhooks.c (default_atomic_assign_expand_fenv): New function.
6400 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6401 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6402 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6404 * config/i386/i386.c (enum ix86_builtins): Add
6405 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6406 IX86_BUILTIN_FNCLEX.
6407 (bdesc_special_args): Add __builtin_ia32_fnstenv,
6408 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6409 (ix86_expand_builtin): Handle the new built-in functions.
6410 (ix86_atomic_assign_expand_fenv): New function.
6411 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6412 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6413 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6414 (fnstenv, fldenv, fnstsw, fnclex): New insns.
6416 2013-11-07 Steve Ellcey <sellcey@mips.com>
6418 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6419 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6420 (MULTILIB_DIRNAMES): Add fp64 directory.
6421 (MULTILIB_EXCEPTIONS): Add new exclusions.
6423 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
6425 * gimplify.c (gimple_regimplify_operands): Do not set
6427 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6428 (rewrite_close_phi_out_of_ssa): Same.
6429 (rewrite_phi_out_of_ssa): Same.
6430 (rewrite_degenerate_phi): Same.
6431 (handle_scalar_deps_crossing_scop_limits): Same.
6432 * tree-if-conv.c (predicate_scalar_phi): Same.
6433 * tree-parloops.c (create_loads_for_reductions): Same.
6434 (create_final_loads_for_reduction): Same.
6435 (create_loads_and_stores_for_name): Same.
6436 (transform_to_exit_first_loop): Same.
6437 (create_parallel_loop): Same.
6438 * tree-ssa-loop-im.c
6439 (move_computations_dom_walker::before_dom_children): Same.
6440 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6441 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6442 * tree-ssa-propagate.c (substitute_and_fold): Same.
6443 * tree-vect-loop.c (vect_finalize_reduction): Same.
6444 * tree-vect-stmts.c (vectorizable_call): Same.
6446 2013-11-07 Mike Stump <mikestump@comcast.net>
6448 * config/pdp11/pdp11.c: Include dbxout.h.
6449 * config/picochip/picochip.c: Likewise.
6451 2013-11-07 Cong Hou <congh@google.com>
6453 PR tree-optimization/56764
6454 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6455 Combine alias checks if it is possible to amortize the runtime
6456 overhead. Return the number of alias checks after merging.
6457 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6458 Use the function vect_create_cond_for_alias_checks () to check
6459 the number of alias checks.
6461 2013-11-07 Jeff Law <law@redhat.com>
6463 * varpool.c (ctor_for_folding): Fix typo in comment.
6465 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
6467 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6468 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
6470 2013-11-07 Jeff Law <law@redhat.com>
6472 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6474 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6475 No longer check if we have __builtin_trap, assume it's available.
6477 2013-11-07 Diego Novillo <dnovillo@google.com>
6479 * attribs.c (lookup_scoped_attribute_spec): Make static.
6480 (get_attribute_namespace): Likewise.
6481 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6482 (validate_arglist): Move earlier in the file. Make static.
6483 (expand_stack_restore): Move from stmt.c
6484 (expand_stack_save): Move from stmt.c
6485 (rewrite_call_expr_array): Move earlier in the file.
6486 (rewrite_call_expr_valist): Likewise.
6487 * cfgexpand.c: Include hard-reg-set.h before tree.h
6490 (expand_asm_loc): Move from stmt.c.
6491 (n_occurrences): Move from stmt.c.
6492 (check_operand_nalternatives): Move from stmt.c.
6493 (tree_conflicts_with_clobbers_p): Move from stmt.c.
6494 (expand_asm_operands): Move from stmt.c
6495 (expand_asm_stmt): Move from stmt.c
6496 (expand_computed_goto): Move from stmt.c
6497 (expand_goto): Move from stmt.c
6498 (expand_null_return_1): Move from stmt.c
6499 (expand_null_return): Move from stmt.c
6500 (expand_value_return): Move from stmt.c
6501 (expand_return): Move from stmt.c
6502 (expand_main_function): Move from function.c
6503 (stack_protect_prologue): Move from function.c
6504 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6505 (build_function_decl_skip_args): Move from tree.c.
6506 * explow.c (tree_expr_size): Move from tree.c.
6507 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6508 (fields_length): Move from tree.c.
6509 * fold-const.c (size_low_cst): Move from tree.c.
6510 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6511 (tree_expr_nonzero_p): Make static. Move earlier in the file.
6512 (fold_build3_initializer_loc): Remove.
6513 (tree_invalid_nonnegative_warnv_p): Make static.
6514 * function.c (expand_main_function): Move to cfgexpand.c.
6515 (stack_protect_prologue): Move to cfgexpand.c.
6516 (set_insn_locations): Move earlier in the file.
6517 * gimple-fold.c: Include langhooks.h.
6518 (truth_type_for): Move from tree.c.
6519 * print-tree.c (print_vec_tree): Remove.
6520 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6521 (expand_goto): Move to cfgexpand.c.
6522 (n_occurrences): Move to cfgexpand.c.
6523 (expand_asm_loc): Move to cfgexpand.c
6524 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6525 (expand_asm_operands): Move to cfgexpand.c.
6526 (expand_asm_stmt): Move to cfgexpand.c.
6527 (check_operand_nalternatives): Move to cfgexpand.c
6528 (expand_null_return): Move to cfgexpand.c.
6529 (expand_value_return): Move to cfgexpand.c.
6530 (expand_null_return_1): Move to cfgexpand.c.
6531 (expand_return): Move to cfgexpand.c.
6532 (expand_stack_save): Move to builtins.c.
6533 (expand_stack_restore): Move to builtins.c
6534 * symtab.c: Include output.h.
6535 (decl_assembler_name_hash): Move from tree.c.
6536 (decl_assembler_name_equal): Move from tree.c.
6537 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6538 * tree-eh.c (in_array_bounds_p): Move from tree.c.
6539 (range_in_array_bounds_p): Move from tree.c.
6540 * tree-object-size.c (fini_object_sizes): Make static.
6541 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6542 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6543 * tree.c (decl_assembler_name_equal): Move to symtab.c.
6544 (tree_expr_size): Move to explow.c.
6545 (decl_assembler_name_hash): Move to symtab.c.
6546 (real_twop): Remove.
6547 (tree_expr_size): Move to explow.c.
6548 (stabilize_reference_1): Move earlier in the file. Make static.
6549 (omp_remove_redundant_declare_simd_attrs): Remove.
6550 (simple_cst_list_equal): Move earlier in the file. Make static.
6551 (size_low_cst): Move to fold-const.c.
6552 (build_type_no_quals): Remove.
6553 (build_function_type_skip_args): Move to cgraphclones.c.
6554 (build_function_decl_skip_args): Move to cgraphclones.c.
6555 (in_array_bounds_p): Move to tree-eh.c.
6556 (range_in_array_bounds_p): Move to tree-eh.c.
6557 (truth_type_for): Move to gimple-fold.c.
6558 (list_equal_p): Remove.
6559 * tree.h (decl_assembler_name_equal): Remove.
6560 (decl_assembler_name_hash): Remove.
6561 (truth_type_for): Remove.
6562 (build_type_no_quals): Remove.
6563 (build_function_decl_skip_args): Remove.
6564 (in_array_bounds_p): Remove.
6565 (range_in_array_bounds_p): Remove.
6566 (size_low_cst): Remove.
6567 (omp_remove_redundant_declare_simd_attrs): Remove.
6568 (tree_expr_size): Remove.
6569 (fields_length): Remove.
6570 (stabilize_reference_1): Remove.
6571 (expand_goto): Remove.
6572 (expand_stack_save): Remove.
6573 (expand_stack_restore): Remove.
6574 (expand_return): Remove.
6575 (fold_build3_initializer_loc): Remove.
6576 (tree_expr_nonzero_p): Remove.
6577 (tree_invalid_nonnegative_warnv_p): Remove.
6578 (tree_expr_nonzero_warnv_p): Remove.
6579 (fold_builtin_snprintf_chk): Remove.
6580 (validate_arglist): Remove.
6581 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6582 (simple_cst_list_equal): Remove.
6583 (real_twop): Remove.
6584 (expand_main_function): Remove.
6585 (stack_protect_prologue): Remove.
6586 (print_vec_tree): Remove.
6587 (lookup_scoped_attribute_spec): Remove.
6588 (get_attribute_namespace): Remove.
6589 (expand_computed_goto): Remove.
6590 (expand_asm_stmt): Remove.
6591 (list_equal_p): Remove.
6592 (ssa_name_nonnegative_p): Remove.
6593 (fini_object_sizes): Remove.
6594 (addr_expr_of_non_mem_decl_p): Remove.
6595 (is_tm_safe_or_pure): Move to trans-mem.c.
6596 (more_const_call_expr_args_p): Remove.
6597 (save_vtable_map_decl): Remove.
6599 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
6601 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6602 linker plugins, too.
6604 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6605 link to libgomp and its dependencies.
6606 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6607 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6608 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6609 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6611 2013-11-07 Jakub Jelinek <jakub@redhat.com>
6613 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6614 (determine_value_range): Add loop argument. Use get_range_info to
6616 (bound_difference): Adjust caller.
6618 2013-11-07 Richard Biener <rguenther@suse.de>
6619 Jakub Jelinek <jakub@redhat.com>
6621 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6622 latches from header PHI arguments from the latch edge.
6624 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
6627 * varasm.c (output_constant): Handle NULLPTR_TYPE.
6629 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6631 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6632 misaligned_prologue_used when it has been set.
6634 2013-11-07 Yury Gribov <y.gribov@samsung.com>
6635 Jakub Jelinek <jakub@redhat.com>
6638 * asan.c (get_mem_refs_of_builtin_call): Allow
6639 integer literals as addresses in instrumented builtins.
6641 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6643 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6644 Explain why plus_constant is not used.
6646 2013-11-07 Richard Biener <rguenther@suse.de>
6648 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6649 (canonicalize_value): ... this. Also handle stripping of
6651 (get_value, set_lattice_value, get_value_for_expr): Adjust.
6652 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6653 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6655 2013-11-07 Richard Biener <rguenther@suse.de>
6657 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6659 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6662 * config/i386/i386.md (push peepholer/splitter): Use Pmode
6663 with stack_pointer_rtx.
6665 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6667 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6668 using operand_equal_p.
6670 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6672 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6673 * tree-affine.c (get_inner_reference_aff): Return base.
6674 * tree-affine.h (get_inner_reference_aff): Change prototype.
6676 2013-11-06 Tobias Burnus <burnus@net-b.de>
6678 * doc/invoke.texi (Wdate-time): Fix typo.
6680 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6682 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6683 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6684 fp_arith_reg_operand instead of arith_reg_operand.
6686 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6688 * config/sh/sh.md (adddi3): Remove empty constraints.
6689 Remove can_create_pseudo_p and arith_reg_operand check.
6690 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6691 Split before reload.
6693 2013-11-06 Jeff Law <law@redhat.com>
6694 Tom Tromey <tromey@redhat.com>
6696 * gdbinit.in: Disable strict type checking.
6698 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
6700 * tree-pass.h (make_pass_live_range_shrinkage): New external.
6701 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6702 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6703 (rest_of_handle_live_range_shrinkage): Ditto
6704 (class pass_live_range_shrinkage): Ditto.
6705 (pass_data_live_range_shrinkage): Ditto.
6706 (make_pass_live_range_shrinkage): Ditto.
6707 * sched-int.h (initialize_live_range_shrinkage): New prototype.
6708 (finish_live_range_shrinkage): Ditto.
6709 * sched-deps.c (create_insn_reg_set): Make void return value.
6710 * passes.def: Add pass_live_range_shrinkage.
6711 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6712 * haifa-sched.c (live_range_shrinkage_p): New.
6713 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6715 (rank_for_schedule): Add code for pressure relief through live
6717 (schedule_insn): Print more debug info.
6718 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6719 through live range shrinkage.
6720 * doc/invoke.texi (-flive-range-shrinkage): New.
6721 * common.opt (flive-range-shrinkage): New.
6723 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
6726 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6727 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6728 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6729 RTXes that return in AVX256 register.
6731 2013-11-06 Richard Biener <rguenther@suse.de>
6733 PR tree-optimization/58653
6734 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6735 (prepare_initializers_chain): Adjust.
6737 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
6739 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6740 (gimple_in_transaction): Use bb_in_transaction.
6741 * basic-block.h (bb_in_transaction): Relocate here and rename.
6742 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6744 2013-11-06 Richard Biener <rguenther@suse.de>
6746 * tree.c (drop_tree_overflow): New function.
6747 * tree.h (drop_tree_overflow): Declare.
6748 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6749 * tree-vrp.c (range_int_cst_singleton_p): Use
6750 is_overflow_infinity instead of testing TREE_OVERFLOW.
6751 (extract_range_from_assert): Likewise.
6752 (zero_nonzero_bits_from_vr): Likewise.
6753 (extract_range_basic): Likewise.
6754 (register_new_assert_for): Use drop_tree_overflow.
6755 (vrp_visit_phi_node): Likewise.
6757 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
6759 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6760 checking for leaf functions without dynamic stack allocation.
6761 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6762 (ia64_expand_prologue): Likewise.
6763 * config/mips/mips.c (mips_expand_prologue): Likewise.
6764 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6765 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6766 (sparc_flat_expand_prologue): Likewise.
6768 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
6770 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6771 (__ST3_LANE_FUNC): Likewise.
6772 (__ST4_LANE_FUNC): Likewise.
6774 2013-11-06 Nick Clifton <nickc@redhat.com>
6776 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6777 name returned by msp430_mcu_name.
6778 (LIB_SPEC): If a -T option has not been specified then set a
6779 default, mcu-specific, linker script.
6780 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6781 * config/msp430/msp430.c (msp430x_names): Likewise.
6782 Alpha sort the names for ease of comparison.
6783 (msp430_mcu_name): New function: Returns a string suitable for
6784 use as a C preprocessor symbol based upon the name of the MCU
6786 (msp430_option_override): Accept msp430x and msp430xv2 as generic
6788 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6790 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6791 unless it is the last part of a spec substring.
6792 * doc/invoke.texi (Spec Files): Document space insertion
6795 2013-11-06 Christian Bruel <christian.bruel@st.com>
6797 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6798 Factorize probabilities, Use adjust_address instead of
6799 adjust_automodify_address when possible. Enable for optimize.
6800 (sh_expand_strlen): New function.
6801 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6802 * config/sh/sh.md (strlensi): New pattern.
6803 (UNSPEC_BUILTIN_STRLEN): Define.
6805 2013-11-06 Jakub Jelinek <jakub@redhat.com>
6808 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6809 (expand_assignment): If *bitpos is negative, set *offset
6810 and adjust *bitpos, so that it is not negative.
6812 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6814 * config/i386/bdver3.md : Added two additional decoder units
6815 to support issue rate of 4 and remodeled vector unit.
6816 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6817 architectures is set to 4.
6818 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6819 lookahead is set to 4 for BD architectures.
6821 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6823 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6824 Remove restriction against use of VSX instructions when generating
6825 code for little endian mode.
6827 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6829 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6830 for both big and little endian.
6831 (mulv8hi3): Swap input operands for merge high and merge low
6832 instructions for little endian.
6834 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6836 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6837 define_insn to define_expand that uses even patterns for big
6838 endian and odd patterns for little endian.
6839 (vec_widen_smult_even_v16qi): Likewise.
6840 (vec_widen_umult_even_v8hi): Likewise.
6841 (vec_widen_smult_even_v8hi): Likewise.
6842 (vec_widen_umult_odd_v16qi): Likewise.
6843 (vec_widen_smult_odd_v16qi): Likewise.
6844 (vec_widen_umult_odd_v8hi): Likewise.
6845 (vec_widen_smult_odd_v8hi): Likewise.
6846 (altivec_vmuleub): New define_insn.
6847 (altivec_vmuloub): Likewise.
6848 (altivec_vmulesb): Likewise.
6849 (altivec_vmulosb): Likewise.
6850 (altivec_vmuleuh): Likewise.
6851 (altivec_vmulouh): Likewise.
6852 (altivec_vmulesh): Likewise.
6853 (altivec_vmulosh): Likewise.
6855 2013-11-05 Mike Stump <mikestump@comcast.net>
6857 * Makefile.in (mostlyclean): Remove c-family objects.
6859 2013-11-05 Ian Lance Taylor <iant@google.com>
6861 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6862 If possible, add .cfi directives to record change to bx.
6863 * config/i386/i386.c (ix86_emit_cfi): New function.
6864 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6866 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
6868 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6869 immediately after a label for a tablejump pattern.
6871 * config/arm/arm.c (is_jump_table): Remove.
6872 (create_fix_barrier): Use tablejump_p instead.
6873 (arm_reorg): Likewise.
6874 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6875 (thumb2_output_casesi): Likewise.
6876 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6877 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6878 casesi_shift_media, casesi_load_media): Likewise.
6879 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6880 * config/microblaze/microblaze.md: Likewise.
6882 2013-11-05 Tobias Burnus <burnus@net-b.de>
6884 * doc/invoke.texi (-Wdate-time): Document.
6886 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
6888 * double-int.c (lshift_double, rshift_double): Remove
6889 SHIFT_COUNT_TRUNCATED handling.
6891 2013-11-05 Jeff Law <law@redhat.com>
6893 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6894 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6895 * gimple-ssa-isolate-paths.c: New file.
6896 * gimple.c (check_loadstore): New function.
6897 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6898 Verify OP is in the argument list and the argument corresponding
6899 to OP is a pointer type. Use operand_equal_p rather than
6900 pointer equality when testing if OP is on the nonnull list.
6901 Use check_loadstore rather than count_ptr_derefs. Handle
6902 GIMPLE_RETURN statements.
6903 * tree-vrp.c (infer_nonnull_range): Remove.
6904 * gimple.h (infer_nonnull_range): Declare.
6905 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6906 * passes.def: Add pass_isolate_erroneous_paths.
6907 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6908 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6909 * tree-ssa.c (struct count_ptr_d): Remove.
6910 (count_ptr_derefs, count_uses_and_derefs): Remove.
6911 * tree-ssa.h (count_uses_and_derefs): Remove.
6913 2013-11-05 Jakub Jelinek <jakub@redhat.com>
6915 PR rtl-optimization/58997
6916 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6917 get_iv_value to be in iv->mode rather than iv->extend_mode.
6918 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
6919 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6920 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6923 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
6925 * gimple.h: Move some prototypes to gimple-expr.h and add to include
6927 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6928 Move to gimple-expr.h.
6929 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
6930 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6931 is_gimple_id, virtual_operand_p, is_gimple_addressable,
6932 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6934 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6935 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6936 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6937 is_gimple_address, is_gimple_invariant_address,
6938 is_gimple_ip_invariant_address, is_gimple_min_invariant,
6939 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6940 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6941 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6942 gimple_decl_printable_name, useless_type_conversion_p,
6943 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6945 * gimple-expr.c: New File.
6946 (useless_type_conversion_p, gimple_set_body, gimple_body,
6947 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6948 gimple_can_coalesce_p, extract_ops_from_tree_1,
6949 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6950 is_gimple_address, is_gimple_invariant_address,
6951 is_gimple_ip_invariant_address, is_gimple_min_invariant,
6952 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6953 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6954 is_gimple_mem_ref_addr): Relocate here.
6955 * Makefile.in (OBJS): Add gimple-expr.o.
6957 2013-11-05 David Malcolm <dmalcolm@redhat.com>
6959 * gengtype-parse.c (struct_field_seq): Support empty structs.
6961 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
6963 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6965 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
6967 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6969 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6971 (LONG_DOUBLE_TYPE_SIZE): New define.
6972 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6974 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
6977 * doc/extend.texi [visibility ("visibility_type")]: Add example
6978 about visibility attribute on namespace declaration.
6980 2013-11-05 Richard Biener <rguenther@suse.de>
6983 * passes.def (all_passes): Start with pass_fixup_cfg again.
6985 2013-11-05 Richard Biener <rguenther@suse.de>
6987 PR tree-optimization/58955
6988 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6991 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6993 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6995 (vec_pack_ufix_trunc_v2df): Likewise.
6997 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
7000 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7001 pattern, instead of word_mode.
7003 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7005 (set_storage_via_setmem): Likewise.
7007 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7009 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7010 gimple.h and the rest of the condition in eliminate_build.
7011 (eliminate_build): Call new routine.
7012 * gimple.h (phi_ssa_name_p): Delete.
7014 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
7016 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7017 case of no prefix and reserving zero slots, because when that's the
7018 case we'll never get here.
7019 * vec.h (va_heap::reserve): Don't try and handle
7020 vec_prefix::calculate_allocation returning zero because that should
7023 2013-11-05 Richard Biener <rguenther@suse.de>
7026 * tree-dfa.c (get_ref_base_and_extent): Merge common code
7027 in MEM_REF and TARGET_MEM_REF handling. Make sure to
7028 process trailing array detection before diving into the
7029 view-converted object (and possibly apply some extra offset).
7031 2013-11-05 Joseph Myers <joseph@codesourcery.com>
7033 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7035 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7037 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7039 PR tree-optimization/58958
7040 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7041 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7043 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7045 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7046 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7048 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7050 PR tree-optimization/58984
7051 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7052 set *SIZE_P if non-NULL on success.
7053 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7055 (ipcp_transform_function): Likewise. Punt if size of access
7056 is different from TYPE_SIZE on v->value's type.
7058 2013-11-05 Tobias Burnus <burnus@net-b.de>
7060 * doc/invoke.texi (-fopenmp-simd): Document new option.
7061 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7062 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7063 * tree.c (attribute_value_equal): Ditto.
7065 2013-11-04 Wei Mi <wmi@google.com>
7067 * sched-rgn.c (add_branch_dependences): Keep insns in
7068 a SCHED_GROUP at the end of BB to remain their location.
7070 2013-11-04 Wei Mi <wmi@google.com>
7072 * config/i386/i386.c (memory_address_length): Extract a part
7073 of code to rip_relative_addr_p.
7074 (rip_relative_addr_p): New Function.
7075 (ix86_macro_fusion_p): Ditto.
7076 (ix86_macro_fusion_pair_p): Ditto.
7077 * config/i386/i386.h: Add new tune features about macro-fusion.
7078 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7079 * doc/tm.texi: Generated.
7080 * doc/tm.texi.in: Ditto.
7081 * haifa-sched.c (try_group_insn): New Function.
7082 (group_insns_for_macro_fusion): Ditto.
7083 (sched_init): Call group_insns_for_macro_fusion.
7084 * target.def: Add two hooks: macro_fusion_p and
7085 macro_fusion_pair_p.
7087 2013-11-04 Kostya Serebryany <kcc@google.com>
7089 Update to match the changed asan API.
7090 * asan.c (asan_function_start): New function.
7091 (asan_emit_stack_protection): Update the string stored in the
7092 stack red zone to match new API. Store the PC of the current
7093 function in the red zone.
7094 (asan_global_struct): Update the __asan_global definition to match
7096 (asan_add_global): Ditto.
7097 * asan.h (asan_function_start): New prototype.
7098 * final.c (final_start_function): Call asan_function_start.
7099 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7102 2013-11-04 Wei Mi <wmi@google.com>
7104 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7105 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7106 * config/i386/i386.c (ix86_option_override_internal): Ditto.
7107 (ix86_issue_rate): Ditto.
7108 (ix86_adjust_cost): Ditto.
7109 (ia32_multipass_dfa_lookahead): Ditto.
7110 (ix86_sched_init_global): Ditto.
7111 (get_builtin_code_for_version): Ditto.
7112 * config/i386/i386.h (enum target_cpu_default): Ditto.
7113 (enum processor_type): Ditto.
7114 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7116 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7118 PR rtl-optimization/58967
7119 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7120 !lra_in_progress for mode sizes bigger word.
7122 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7124 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7125 arguments to merge instruction for little endian.
7126 (vec_widen_umult_lo_v16qi): Likewise.
7127 (vec_widen_smult_hi_v16qi): Likewise.
7128 (vec_widen_smult_lo_v16qi): Likewise.
7129 (vec_widen_umult_hi_v8hi): Likewise.
7130 (vec_widen_umult_lo_v8hi): Likewise.
7131 (vec_widen_smult_hi_v8hi): Likewise.
7132 (vec_widen_smult_lo_v8hi): Likewise.
7134 2013-11-04 Ian Lance Taylor <iant@google.com>
7136 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7137 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7138 builtins that take pointers.
7139 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7140 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7141 (run_gcc): Pass -fnon-call-exceptions.
7143 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7145 * optabs.c (expand_vec_perm): Revert one incorrect line from
7148 PR tree-optimization/58978
7149 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7150 use_stmt by single_imm_use directly. Only call single_imm_use
7153 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7155 PR rtl-optimization/58968
7156 * lra-spills.c (return_regno_p): New function.
7157 (lra_final_code_change): Use it.
7159 2013-11-04 Joseph Myers <joseph@codesourcery.com>
7161 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7162 * target.def (float_exceptions_rounding_supported_p): New hook.
7163 * targhooks.c (default_float_exceptions_rounding_supported_p): New
7165 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7166 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7168 * doc/tm.texi: Regenerate.
7169 * config.gcc (powerpc*-*-linux*): Set extra_objs.
7170 * config/rs6000/rs6000-linux.c: New file.
7171 * config/rs6000/rs6000-protos.h
7172 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7173 * config/rs6000/linux.h
7174 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7175 * config/rs6000/linux64.h
7176 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7177 * config/rs6000/t-linux (rs6000-linux.o): New rule.
7178 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7180 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7182 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7183 Replace the define_insn_and_split with a define_insn and two
7184 define_splits, with the split after reload re-permuting the source
7185 register to its original value.
7186 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7187 (*vsx_le_perm_store_v8hi): Likewise.
7188 (*vsx_le_perm_store_v16qi): Likewise.
7190 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7192 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
7195 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7197 PR tree-optimization/58946
7198 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7199 bbs with bbinfo[idx].op != NULL before all blocks with
7200 bbinfo[idx].op == NULL.
7202 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
7204 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7205 (avr_dump_double_int_hex): Likewise.
7206 (avr_log_vadump): Remove %D and %X handling.
7207 * config/avr/avr.c (avr_double_int_push_digit): Delete.
7208 (avr_map_op_t): Change map from double_int to unsigned int.
7209 (avr_map_op): Update accordingly.
7210 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7211 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7212 unsigned ints rather than double_ints.
7214 2013-11-03 Marek Polacek <polacek@redhat.com>
7216 Implement -fsanitize=vla-bound.
7217 * opts.c (common_handle_option): Handle vla-bound.
7218 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7219 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7220 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7222 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7224 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7227 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
7229 * config/i386/constraints.md (Ts, Tv): New address constrains.
7230 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7231 constraint for address_no_seg_operand.
7232 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7233 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7234 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7235 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7236 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7237 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7238 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7239 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7240 constraint for vsib_address_operand.
7242 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
7244 * gcse.c (pre_delete): Remove references to regmove from comments.
7245 * recog.c: (validate_replace_rtx_1): Likewise.
7246 * config/rl78/rl78.c: Likewise.
7247 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7248 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7249 * common/config/mmix/mmix-common.c: Likewise.
7251 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
7253 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7254 * gimplify.c (gimplify_compound_lval): Likewise.
7255 * graphite-clast-to-gimple.c (gloog): Likewise.
7256 * graphite-dependences.c (loop_is_parallel_p): Likewise.
7257 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7258 (limit_scop); Likewise.
7259 (build_scops): Likewise.
7260 (dot_scop): Likewise.
7261 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7262 (build_scop_drs): Likewise.
7263 (insert_stmts): Likewise.
7264 (insert_out_of_ssa_copy): Likewise.
7265 (remove_phi): Likewise.
7266 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7267 * hw-doloop.c (discover_loop): Likewise.
7268 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7269 * tree-dfa.c (dump_enumerated_decls): Likewise.
7270 * tree-if-conv.c (if_convertable_loop_p): Likewise.
7271 * tree-inline.c (tree_function_versioning): Likewise.
7272 * tree-loop-distribution.c (build_rdg): Likewise.
7273 (rdg_flag_vertex_and_dependent): Likewise.
7274 (distribute_loop): Likewise.
7275 * tree-parloops.c (loop_parallel_p): Likewise.
7276 (eliminate_local_variables): Likewise.
7277 (separate_decls_in_region): Likewise.
7278 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7279 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7280 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7281 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7282 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7283 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7284 (vectorizable_condition): Likewise.
7286 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
7288 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7289 * configure: Regenerate.
7290 * config/i386/i386.md (*movdi_internal): Change
7291 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7292 (*movdf_internal): Ditto.
7293 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7294 * config/i386/sse.md (vec_concatv2di): Output interunit movq
7295 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7297 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
7299 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7302 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7304 Automated part of renaming of symtab_node_base to symtab_node.
7306 Patch autogenerated by rename_symtab.py from
7307 https://github.com/davidmalcolm/gcc-refactoring-scripts
7308 revision 58bb219cc090b2f4516a9297d868c245495ee622
7309 with ChangeLog entry fixed up by hand.
7311 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7313 (cgraph_node_for_asm): Likewise.
7314 * cgraph.h (symtab_node_base): Likewise.
7315 (cgraph_node): Likewise.
7316 (varpool_node): Likewise.
7317 (is_a_helper <cgraph_node>::test): Likewise.
7318 (is_a_helper <varpool_node>::test): Likewise.
7319 (symtab_nodes): Likewise.
7320 (symtab_register_node): Likewise.
7321 (symtab_unregister_node): Likewise.
7322 (symtab_remove_node): Likewise.
7323 (symtab_get_node): Likewise.
7324 (symtab_node_for_asm): Likewise.
7325 (symtab_node_asm_name): Likewise.
7326 (symtab_node_name): Likewise.
7327 (symtab_insert_node_to_hashtable): Likewise.
7328 (symtab_add_to_same_comdat_group): Likewise.
7329 (symtab_dissolve_same_comdat_group_list): Likewise.
7330 (dump_symtab_node): Likewise.
7331 (debug_symtab_node): Likewise.
7332 (dump_symtab_base): Likewise.
7333 (verify_symtab_node): Likewise.
7334 (verify_symtab_base): Likewise.
7335 (symtab_used_from_object_file_p): Likewise.
7336 (symtab_alias_ultimate_target): Likewise.
7337 (symtab_resolve_alias): Likewise.
7338 (fixup_same_cpp_alias_visibility): Likewise.
7339 (symtab_for_node_and_aliases): Likewise.
7340 (symtab_nonoverwritable_alias): Likewise.
7341 (availability symtab_node_availability): Likewise.
7342 (symtab_semantically_equivalent_p): Likewise.
7343 (fixup_same_cpp_alias_visibility): Likewise.
7344 (symtab_prevail_in_asm_name_hash): Likewise.
7346 (varpool): Likewise.
7347 (varpool_first_variable): Likewise.
7348 (varpool_next_variable): Likewise.
7349 (varpool_first_static_initializer): Likewise.
7350 (varpool_next_static_initializer): Likewise.
7351 (varpool_first_defined_variable): Likewise.
7352 (varpool_next_defined_variable): Likewise.
7353 (cgraph_first_defined_function): Likewise.
7354 (cgraph_next_defined_function): Likewise.
7355 (cgraph_first_function): Likewise.
7356 (cgraph_next_function): Likewise.
7357 (cgraph_first_function_with_gimple_body): Likewise.
7358 (cgraph_next_function_with_gimple_body): Likewise.
7359 (symtab_alias_target): Likewise.
7360 (symtab_real_symbol_p): Likewise.
7361 (symtab_can_be_discarded): Likewise.
7362 * cgraphbuild.c (mark_address): Likewise.
7363 (mark_load): Likewise.
7364 (mark_store): Likewise.
7365 * cgraphunit.c (decide_is_symbol_needed): Likewise.
7367 (enqueue_node): Likewise.
7368 (referred_to_p): Likewise.
7369 (cgraph_process_same_body_aliases): Likewise.
7370 (analyze_functions): Likewise.
7371 (handle_alias_pairs): Likewise.
7372 (output_weakrefs): Likewise.
7373 (compile): Likewise.
7374 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7375 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7376 * ipa-prop.c (remove_described_reference): Likewise.
7377 (try_decrement_rdesc_refcount): Likewise.
7378 (ipa_edge_duplication_hook): Likewise.
7379 * ipa-ref.c (ipa_record_reference): Likewise.
7380 (ipa_maybe_record_reference): Likewise.
7381 (ipa_clone_ref): Likewise.
7382 (ipa_clone_references): Likewise.
7383 (ipa_clone_referring): Likewise.
7384 (ipa_find_reference): Likewise.
7385 (ipa_remove_stmt_references): Likewise.
7386 (ipa_clear_stmts_in_references): Likewise.
7387 * ipa-ref.h (symtab_node_base): Likewise.
7388 (ipa_ref): Likewise.
7389 (ipa_record_reference): Likewise.
7390 (ipa_maybe_record_reference): Likewise.
7391 (ipa_clone_references): Likewise.
7392 (ipa_clone_referring): Likewise.
7393 (ipa_clone_ref): Likewise.
7394 (ipa_find_reference): Likewise.
7395 (ipa_remove_stmt_references): Likewise.
7396 (ipa_clear_stmts_in_references): Likewise.
7397 * ipa-reference.c (ipa_reference_write_optimization_summary):
7399 * ipa.c (enqueue_node): Likewise.
7400 (process_references): Likewise.
7401 (walk_polymorphic_call_targets): Likewise.
7402 (symtab_remove_unreachable_nodes): Likewise.
7403 (address_taken_from_non_vtable_p): Likewise.
7404 (comdat_can_be_unshared_p_1): Likewise.
7405 (comdat_can_be_unshared_p): Likewise.
7406 (can_replace_by_local_alias): Likewise.
7407 (function_and_variable_visibility): Likewise.
7408 * is-a.h: Likewise (within example in comment).
7409 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7410 (lto_symtab_encoder_encode): Likewise.
7411 (lto_symtab_encoder_delete_node): Likewise.
7412 (lto_symtab_encoder_in_partition_p): Likewise.
7413 (lto_set_symtab_encoder_in_partition): Likewise.
7414 (output_refs): Likewise.
7415 (compute_ltrans_boundary): Likewise.
7416 (output_symtab): Likewise.
7417 (input_node): Likewise.
7418 (input_ref): Likewise.
7419 (input_edge): Likewise.
7420 (input_cgraph_1): Likewise.
7421 (input_refs): Likewise.
7422 (output_cgraph_opt_summary): Likewise.
7423 (input_node_opt_summary): Likewise.
7424 (input_cgraph_opt_section): Likewise.
7425 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7427 * lto-streamer-out.c (lto_output): Likewise.
7428 (output_symbol_p): Likewise.
7429 (produce_symtab): Likewise.
7430 * lto-streamer.h (lto_encoder_entry): Likewise.
7431 (lto_free_function_in_decl_state_for_node): Likewise.
7432 (lto_symtab_encoder_encode): Likewise.
7433 (lto_symtab_encoder_delete_node): Likewise.
7434 (lto_symtab_encoder_in_partition_p): Likewise.
7435 (lto_set_symtab_encoder_in_partition): Likewise.
7436 (lto_symtab_encoder_lookup): Likewise.
7437 (lsei_node): Likewise.
7438 (lto_symtab_encoder_deref): Likewise.
7439 * symtab.c (symtab_hash): Likewise.
7440 (assembler_name_hash): Likewise.
7441 (symtab_nodes): Likewise.
7442 (hash_node): Likewise.
7443 (eq_node): Likewise.
7444 (hash_node_by_assembler_name): Likewise.
7445 (eq_assembler_name): Likewise.
7446 (insert_to_assembler_name_hash): Likewise.
7447 (unlink_from_assembler_name_hash): Likewise.
7448 (symtab_prevail_in_asm_name_hash): Likewise.
7449 (symtab_register_node): Likewise.
7450 (symtab_insert_node_to_hashtable): Likewise.
7451 (symtab_unregister_node): Likewise.
7452 (symtab_get_node): Likewise.
7453 (symtab_remove_node): Likewise.
7454 (symtab_initialize_asm_name_hash): Likewise.
7455 (symtab_node_for_asm): Likewise.
7456 (symtab_add_to_same_comdat_group): Likewise.
7457 (symtab_dissolve_same_comdat_group_list): Likewise.
7458 (symtab_node_asm_name): Likewise.
7459 (symtab_node_name): Likewise.
7460 (dump_symtab_base): Likewise.
7461 (dump_symtab_node): Likewise.
7462 (dump_symtab): Likewise.
7463 (debug_symtab_node): Likewise.
7464 (verify_symtab_base): Likewise.
7465 (verify_symtab_node): Likewise.
7466 (verify_symtab): Likewise.
7467 (symtab_used_from_object_file_p): Likewise.
7468 (symtab_node_availability): Likewise.
7469 (symtab_alias_ultimate_target): Likewise.
7470 (fixup_same_cpp_alias_visibility): Likewise.
7471 (symtab_resolve_alias): Likewise.
7472 (symtab_for_node_and_aliases): Likewise.
7473 (symtab_for_node_and_aliases): Likewise.
7474 (symtab_nonoverwritable_alias_1): Likewise.
7475 (symtab_nonoverwritable_alias): Likewise.
7476 (symtab_semantically_equivalent_p): Likewise.
7477 * value-prof.c (init_node_map): Likewise.
7478 * varasm.c (find_decl): Likewise.
7479 * varpool.c (varpool_node_for_asm): Likewise.
7480 (varpool_remove_unreferenced_decls): Likewise.
7482 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7484 Manual part of renaming of symtab_node_base to symtab_node.
7486 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7487 clashes with the preferred name for the base class.
7488 (const_symtab_node): Remove redundant typedef.
7490 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7492 * optabs.c (expand_vec_perm): Avoid vector mode punning
7493 SUBREGs in SET_DEST.
7494 * expmed.c (store_bit_field_1): Likewise.
7495 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7496 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7497 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7498 * config/i386/i386.c (ix86_expand_vector_move_misalign,
7499 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7500 ix86_expand_sse_unpack, ix86_expand_args_builtin,
7501 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7502 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7503 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7504 expand_vec_perm_vpshufb2_vpermq,
7505 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7506 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7507 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7508 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
7511 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
7513 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7514 Use gcc_unreachable for unhandled modes. Do not check results of
7515 expand_simple_binop. If not expanded to target, move the result.
7517 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
7518 Shiva Chen <shiva0217@gmail.com>
7520 * config.gcc (nds32*-*-*): Add nds32 target.
7521 * config/nds32/nds32.c: New file.
7522 * config/nds32/nds32.h: New file.
7523 * config/nds32/nds32.md: New file.
7524 * config/nds32/constants.md: New file.
7525 * config/nds32/constraints.md: New file.
7526 * config/nds32/iterators.md: New file.
7527 * config/nds32/nds32-doubleword.md: New file.
7528 * config/nds32/nds32-intrinsic.md: New file.
7529 * config/nds32/nds32_intrinsic.h: New file.
7530 * config/nds32/nds32-modes.def: New file.
7531 * config/nds32/nds32-multiple.md: New file.
7532 * config/nds32/nds32.opt: New file.
7533 * config/nds32/nds32-opts.h: New file.
7534 * config/nds32/nds32-protos.h: New file.
7535 * config/nds32/nds32-peephole2.md: New file.
7536 * config/nds32/pipelines.md: New file.
7537 * config/nds32/predicates.md: New file.
7538 * config/nds32/t-mlibs: New file.
7539 * common/config/nds32: New directory and files.
7541 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7542 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7543 * doc/install.texi (Cross-Compiler-Specific Options): Document
7544 --with-nds32-lib for nds32 target.
7545 * doc/extend.texi (Function Attributes, Target Builtins): Document
7546 nds32 specific attributes.
7548 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
7550 * lra-constraints (process_alt_operands): Use the result
7551 elimination register for operand when matching constraints.
7553 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7555 * tree-vrp.c (maybe_set_nonzero_bits): New function.
7556 (remove_range_assertions): Call it.
7558 * tree.c (tree_ctz): New function.
7559 * tree.h (tree_ctz): New prototype.
7560 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7561 first argument from tree to const_tree.
7562 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7563 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7564 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7566 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7567 * tree-vect-loop.c (vect_analyze_loop_operations,
7568 vect_transform_loop): Don't force scalar loop for bound just because
7569 number of iterations is unknown, only do it if it is not known to be
7570 a multiple of vectorization_factor.
7571 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7573 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7574 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
7575 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7576 (set_nonzero_bits, get_nonzero_bits): New prototypes.
7577 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7578 a default def isn't partially constant.
7579 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7580 is known to be partially zero.
7581 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7582 to see if a default def isn't partially constant.
7583 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7584 creation of a range, if VR_RANGE, try to improve nonzero_bits from
7586 (set_nonzero_bits, get_nonzero_bits): New functions.
7588 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7589 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7590 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7591 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7592 uses but in the condition and ASSERT_EXPR and the other successor of
7593 the predecessor bb is __builtin_unreachable (), set_range_info of the
7594 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7596 2013-10-31 Martin Jambor <mjambor@suse.cz>
7598 PR rtl-optimization/58934
7600 2013-10-30 Martin Jambor <mjambor@suse.cz>
7601 PR rtl-optimization/10474
7602 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7604 (interesting_dest_for_shprep): New function.
7605 (split_live_ranges_for_shrink_wrap): Likewise.
7606 (ira): Calculate dominance info and df analysis. Call
7607 split_live_ranges_for_shrink_wrap.
7609 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7610 Yury Gribov <y.gribov@samsung.com>
7613 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7614 shadow pointer to avoid clobbering the main one.
7616 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7618 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7620 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7623 * ira-color.c (update_costs_from_copies): Add new parameter. Use
7624 it for calling update_costs_from_allocno.
7625 (assign_hard_reg): Call restore_costs_from_copies only for
7626 !retry_p. Pass new argument to update_costs_from_copies.
7627 (color_pass): Pass new argument to update_costs_from_copies.
7628 (ira_mark_allocation_change): Ditto.
7630 2013-10-30 Sharad Singhai <singhai@google.com>
7633 * opts.c (common_handle_option): Remove deprecated option
7634 -ftree-vectorizer-verbose.
7635 * doc/invoke.texi (Debugging Options): Ditto.
7636 * opts-global.c (handle_common_deferred_options): Ditto.
7637 (dump_remap_tree_vectorizer_verbose): Delete.
7638 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7640 2013-10-30 DJ Delorie <dj@redhat.com>
7642 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7643 that take no arguments.
7645 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
7648 * reload1.c (update_eliminables_and_spill): New function, broken
7650 (reload): Use it. Check for frame size change after frame size
7651 alignment, and call update_eliminables_and_spill first if continue-ing.
7653 2013-10-30 Cong Hou <congh@google.com>
7656 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7657 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7658 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7660 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
7662 PR rtl-optimization/58369
7663 * reload1.c (compute_reload_subreg_offset): New function.
7664 (choose_reload_regs): Use it to pass endian-correct
7665 offset to subreg_regno_offset.
7667 2013-10-30 Tobias Burnus <burnus@net-b.de>
7670 * tree-cfg.c (replace_loop_annotate): Replace warning by
7673 2013-10-30 Jason Merrill <jason@redhat.com>
7675 * configure.ac (loose_warn): Add -Wno-format if
7676 --disable-build-format-warnings.
7678 2013-10-30 David Malcolm <dmalcolm@redhat.com>
7680 * cgraphunit.c (analyze_functions): Split symtab_node declarations
7681 onto multiple lines to make things easier for rename_symtab.py.
7683 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7684 (symtab_semantically_equivalent_p): Likewise.
7686 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7689 * lra.c (check_rtl): Remove address check before LRA work.
7691 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
7693 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7694 POINTER_PLUS_EXPR in the defining statement.
7696 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7698 * regmove.c: Remove.
7699 * tree-pass.h (make_pass_regmove): Remove.
7700 * timevar.def (TV_REGMOVE): Remove.
7701 * passes.def (pass_regmove): Remove.
7702 * opts.c (default_options_table): Remove entry for regmove.
7703 * doc/passes.texi: Remove regmove pass description.
7704 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7706 (-fdump-rtl-regmove): Ditto.
7707 * common.opt (foptimize-register-move, fregmove): Ignore.
7708 * Makefile.in (OBJS): Remove regmove.o.
7709 * regmove.c: Remove.
7710 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7712 (struct ira_allocno) New member allocno_prefs.
7713 (ALLOCNO_PREFS): New macro.
7714 (ira_prefs, ira_prefs_num): New external vars.
7715 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7716 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7717 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7719 (ira_add_allocno_copy_to_list): Remove prototype.
7720 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7721 (ira_pref_iterator): New type.
7722 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7723 (FOR_EACH_PREF): New macro.
7724 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7725 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
7727 (ira_setup_alts): New function.
7728 (decrease_live_ranges_number): New function.
7729 (ira): Call the above function.
7730 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7731 (ira_create_allocno): Initialize allocno prefs.
7732 (pref_pool, pref_vec): New static vars.
7733 (initiate_prefs, find_allocno_pref, ira_create_pref): New
7735 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7736 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7737 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7738 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7739 (ira_add_allocno_copy_to_list): Make static. Rename to
7740 add_allocno_copy_to_list.
7741 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
7742 swap_allocno_copy_ends_if_necessary.
7743 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7744 ira_remove_allocno_prefs.
7745 (ira_flattening): Ditto.
7746 (ira_build): Call initiate_prefs, print_prefs.
7747 (ira_destroy): Call finish_prefs.
7748 * ira-color.c (struct update_cost_record): New.
7749 (struct allocno_color_data): Add new member update_cost_records.
7750 (update_cost_record_pool): New static var.
7751 (init_update_cost_records, get_update_cost_record): New functions.
7752 (free_update_cost_record_list, finish_update_cost_records): Ditto.
7753 (struct update_cost_queue_elem): Add member from.
7754 (initiate_cost_update): Call init_update_cost_records.
7755 (finish_cost_update): Call finish_update_cost_records.
7756 (queue_update_cost, get_next_update_cost): Add new param from.
7757 (Update_allocno_cost, update_costs_from_allocno): New functions.
7758 (update_costs_from_prefs): Ditto.
7759 (update_copy_costs): Rename to update_costs_from_copies.
7760 (restore_costs_from_copies): New function.
7761 (update_conflict_hard_regno_costs): Don't go back.
7762 (assign_hard_reg): Call restore_costs_from_copies. Add printing
7764 (pop_allocnos): Add priniting more debug info.
7765 (color_allocnos): Remove prefs for conflicting hard regs.
7766 Call update_costs_from_prefs.
7767 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7768 (get_dup_num): Rename, modify, and move to ira.c
7769 (process_regs_for_copy): Add prefs.
7770 (add_insn_allocno_copies): Put src as first arg of
7771 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
7772 * ira-costs.c (record_reg_classes): Modify and move code into
7773 record_operands_costs.
7774 (find_costs_and_classes): Create prefs for the hard reg of small
7776 (process_bb_node_for_hard_reg_moves): Add prefs.
7778 2013-10-30 Richard Biener <rguenther@suse.de>
7781 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7782 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7784 (pre_and_rev_post_order_compute): ... which now wraps it.
7785 * graph.c (draw_cfg_nodes_no_loops): Use
7786 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7789 2013-10-30 Christian Bruel <christian.bruel@st.com>
7791 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7792 (sh_expand_cmpstr): Handle known align and schedule improvements.
7793 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7794 * config/sh/sh.md (cmpstrnsi): New pattern.
7796 2013-10-30 Martin Jambor <mjambor@suse.cz>
7798 PR rtl-optimization/10474
7799 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7801 (interesting_dest_for_shprep): New function.
7802 (split_live_ranges_for_shrink_wrap): Likewise.
7803 (ira): Calculate dominance info and df analysis. Call
7804 split_live_ranges_for_shrink_wrap.
7806 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7809 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7811 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7813 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7814 * tree.h (POINTER_BOUNDS_P): New.
7815 (BOUNDED_TYPE_P): New.
7817 (pointer_bounds_type_node): New.
7818 * tree.c (build_common_tree_nodes): Initialize
7819 pointer_bounds_type_node.
7820 * gimple.h (gimple_call_get_nobnd_arg_index): New.
7821 (gimple_call_num_nobnd_args): New.
7822 (gimple_call_nobnd_arg): New.
7823 (gimple_return_retbnd): New.
7824 (gimple_return_set_retbnd): New
7825 * gimple.c (gimple_build_return): Increase number of ops
7826 for return statement.
7827 (gimple_call_get_nobnd_arg_index): New.
7828 * gimple-pretty-print.c (dump_gimple_return): Print second op.
7830 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7832 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7833 with "chkp ctor" and "bnd_legacy" attributes.
7834 * gimplify.c (gimplify_init_constructor): Avoid infinite
7835 loop during gimplification of bounds initializer.
7837 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7839 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7840 (handle_bnd_legacy): New.
7841 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7842 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7845 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
7847 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7848 (BT_FN_PTR_CONST_PTR): New.
7849 (BT_FN_CONST_PTR_CONST_PTR): New.
7850 (BT_FN_PTR_CONST_PTR_SIZE): New.
7851 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7852 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7853 (BT_FN_VOID_CONST_PTR_SIZE): New.
7854 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7855 * chkp-builtins.def: New.
7856 * builtins.def: include chkp-builtins.def.
7857 (DEF_CHKP_BUILTIN): New.
7858 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7859 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7860 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7861 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7862 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7863 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7864 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7865 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7866 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7867 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7868 * common.opt (fcheck-pointer-bounds): New.
7869 * toplev.c (process_options): Check Pointer Bounds Checker is
7871 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7873 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7875 * target.def (builtin_chkp_function): New.
7876 (chkp_bound_type): New.
7877 (chkp_bound_mode): New.
7878 (fn_abi_va_list_bounds_size): New.
7879 (load_bounds_for_arg): New.
7880 (store_bounds_for_arg): New.
7881 * targhooks.h (default_load_bounds_for_arg): New.
7882 (default_store_bounds_for_arg): New.
7883 (default_fn_abi_va_list_bounds_size): New.
7884 (default_chkp_bound_type): New.
7885 (default_chkp_bound_mode): New.
7886 (default_builtin_chkp_function): New.
7887 * targhooks.c (default_load_bounds_for_arg): New.
7888 (default_store_bounds_for_arg): New.
7889 (default_fn_abi_va_list_bounds_size): New.
7890 (default_chkp_bound_type): New.
7891 (default_chkp_bound_mode); New.
7892 (default_builtin_chkp_function): New.
7893 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7894 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7895 (TARGET_STORE_BOUNDS_FOR_ARG): New.
7896 (TARGET_BUILTIN_CHKP_FUNCTION): New.
7897 (TARGET_CHKP_BOUND_TYPE): New.
7898 (TARGET_CHKP_BOUND_MODE): New.
7899 * doc/tm.texi: Regenerated.
7900 * langhooks.h (lang_hooks): Add chkp_supported field.
7901 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7902 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7904 2013-10-29 Andrew Pinski <apinski@cavium.com>
7906 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7907 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7908 fails, combining the branches anyways.
7909 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7910 increases the number of combinings.
7911 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7913 2013-10-29 Mike Stump <mikestump@comcast.net>
7915 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7916 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7917 (make_vector_mode): Increase namebuf to 16.
7918 (emit_insn_modes_h): When processing BImode, don't
7919 also match partial int modes.
7920 (emit_class_narrowest_mode): Likewise.
7922 * config/bfin/bfin-modes.def: Add precision to PDI.
7923 * config/m32c/m32c-modes.def: Add precision to PSI.
7924 * config/msp430/msp430-modes.def: Add precision to PSI.
7925 * config/rs6000/rs6000-modes.def: Add precision to PTI.
7926 * config/sh/sh-modes.def: Add precision to PSI and PDI.
7928 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
7931 * config/sh/sh.md (*addc): Rename existing variations to ...
7932 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7933 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7934 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7935 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7937 2013-10-29 Teresa Johnson <tejohnson@google.com>
7940 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7941 insanities when updating probabilities.
7943 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7945 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7946 prettyprinter for cgraph_node to reflect the conversion of the
7947 symtable types to a C++ class hierarchy: it now *is* a
7948 symtab_node_base, rather than having one (named "symbol").
7950 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
7952 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7953 __cilkrts_pop_frame. If matched, then return true for built-in
7955 (expand_builtin): Added BUILT_IN_CILK_DETACH and
7956 BUILT_IN_CILK_POP_FRAME case.
7957 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7958 (lhs_cilk_detect_spawn): Likewise.
7959 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7960 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7961 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7962 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7963 (LANG_HOOKS_CILKPLUS): Likewise.
7964 * tree.h (CILK_SPAWN_FN): Likewise.
7965 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7966 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7967 (OBJS): Added cilk-common.o.
7968 (BUILTINS_DEF): Added cilk-builtins.def.
7969 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7970 (lhd_cilk_detect_spawn): Likewise.
7971 * langhooks.h (lang_hooks_for_cilkplus): New struct.
7972 (struct lang_hooks): Added new field called "cilkplus."
7973 * cilk-common.c: New file.
7975 * cilk-builtins.def: Likewise.
7976 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7977 "__cilk" macro and set it to 200.
7978 * function.h (struct function::cilk_frame_decl): New field.
7979 (struct function::is_cilk_function): Likewise.
7980 (struct function::calls_cilk_spawn): Likewise.
7981 * gimplify.c (gimplify_call_expr): Added a check if the function call
7982 being gimplified is a spawn detach point. If so, then add pop_frame
7983 and detach function calls.
7984 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7985 for gimplifying _Cilk_spawn and _Cilk_sync statements.
7986 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7987 function. If so, added a _Cilk_sync and gimplified it.
7988 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7989 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
7990 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7992 (can_inline_edge_p): Prevent inling of spawnee function.
7993 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7994 for functions that use Cilk keywords.
7995 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7996 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7997 CILK_SYNC_STMT cases.
7998 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8000 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8001 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8002 * passes.texi (Cilk Keywords): New section that describes the compiler
8003 code changes for handling Cilk Keywords.
8005 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8007 Patch autogenerated by refactor_symtab.py from
8008 https://github.com/davidmalcolm/gcc-refactoring-scripts
8009 revision 58bb219cc090b2f4516a9297d868c245495ee622
8011 * asan.c (asan_finish_file): Update for conversion of symtab types to
8012 a true class hierarchy.
8013 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8014 * cgraph.c (cgraph_get_body): Likewise.
8015 (cgraph_get_create_real_symbol_node): Likewise.
8016 (verify_cgraph_node): Likewise.
8017 (verify_edge_corresponds_to_fndecl): Likewise.
8018 (verify_edge_count_and_frequency): Likewise.
8019 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8020 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8021 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8022 (cgraph_node_cannot_return): Likewise.
8023 (cgraph_set_pure_flag_1): Likewise.
8024 (cgraph_set_const_flag_1): Likewise.
8025 (cgraph_set_nothrow_flag_1): Likewise.
8026 (cgraph_make_node_local_1): Likewise.
8027 (cgraph_for_node_and_aliases): Likewise.
8028 (cgraph_for_node_thunks_and_aliases): Likewise.
8029 (cgraph_node_can_be_local_p): Likewise.
8030 (cgraph_node_cannot_be_local_p_1): Likewise.
8031 (cgraph_function_body_availability): Likewise.
8032 (dump_cgraph_node): Likewise.
8033 (cgraph_rtl_info): Likewise.
8034 (cgraph_mark_address_taken_node): Likewise.
8035 (cgraph_remove_node): Likewise.
8036 (cgraph_release_function_body): Likewise.
8037 (cgraph_update_edges_for_call_stmt_node): Likewise.
8038 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8039 (cgraph_make_edge_direct): Likewise.
8040 (cgraph_resolve_speculation): Likewise.
8041 (cgraph_speculative_call_info): Likewise.
8042 (cgraph_turn_edge_to_speculative): Likewise.
8043 (cgraph_create_edge_1): Likewise.
8044 (cgraph_set_call_stmt): Likewise.
8045 (cgraph_node_for_asm): Likewise.
8046 (cgraph_add_thunk): Likewise.
8047 (cgraph_same_body_alias): Likewise.
8048 (cgraph_create_function_alias): Likewise.
8049 (cgraph_create_node): Likewise.
8050 (cgraph_create_empty_node): Likewise.
8051 (record_function_versions): Likewise.
8052 (used_from_object_file_p): Likewise.
8053 * cgraph.h (symtab_can_be_discarded): Likewise.
8054 (symtab_real_symbol_p): Likewise.
8055 (cgraph_mark_force_output_node): Likewise.
8056 (cgraph_edge_recursive_p): Likewise.
8057 (symtab_alias_target): Likewise.
8058 (varpool_all_refs_explicit_p): Likewise.
8059 (varpool_can_remove_if_no_refs): Likewise.
8060 (cgraph_only_called_directly_or_aliased_p): Likewise.
8061 (cgraph_next_function_with_gimple_body): Likewise.
8062 (cgraph_first_function_with_gimple_body): Likewise.
8063 (cgraph_function_with_gimple_body_p): Likewise.
8064 (cgraph_next_function): Likewise.
8065 (cgraph_first_function): Likewise.
8066 (cgraph_next_defined_function): Likewise.
8067 (cgraph_first_defined_function): Likewise.
8068 (varpool_next_defined_variable): Likewise.
8069 (varpool_first_defined_variable): Likewise.
8070 (varpool_next_static_initializer): Likewise.
8071 (varpool_first_static_initializer): Likewise.
8072 (varpool_next_variable): Likewise.
8073 (varpool_first_variable): Likewise.
8074 (varpool_node_name): Likewise.
8075 (varpool): Likewise.
8077 (is_a_helper <varpool_node>::test): Likewise.
8078 (is_a_helper <cgraph_node>::test): Likewise.
8079 (varpool_variable_node): Likewise.
8080 (cgraph_function_or_thunk_node): Likewise.
8081 (varpool_alias_target): Likewise.
8082 (cgraph_alias_target): Likewise.
8083 (cgraph_node_name): Likewise.
8084 (varpool_node_asm_name): Likewise.
8085 (cgraph_node_asm_name): Likewise.
8086 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8087 (cgraph_rebuild_references): Likewise.
8088 (rebuild_cgraph_edges): Likewise.
8089 (record_eh_tables): Likewise.
8090 (build_cgraph_edges): Likewise.
8091 (mark_store): Likewise.
8092 (mark_load): Likewise.
8093 (mark_address): Likewise.
8094 (record_type_list): Likewise.
8095 (record_reference): Likewise.
8096 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8097 (cgraph_materialize_clone): Likewise.
8098 (cgraph_function_versioning): Likewise.
8099 (cgraph_copy_node_for_versioning): Likewise.
8100 (update_call_expr): Likewise.
8101 (cgraph_find_replacement_node): Likewise.
8102 (cgraph_create_virtual_clone): Likewise.
8103 (cgraph_clone_node): Likewise.
8104 * cgraphunit.c (compile): Likewise.
8105 (output_weakrefs): Likewise.
8106 (output_in_order): Likewise.
8107 (expand_function): Likewise.
8108 (assemble_thunks_and_aliases): Likewise.
8109 (expand_thunk): Likewise.
8110 (mark_functions_to_output): Likewise.
8111 (handle_alias_pairs): Likewise.
8112 (analyze_functions): Likewise.
8113 (walk_polymorphic_call_targets): Likewise.
8114 (varpool_finalize_decl): Likewise.
8115 (process_function_and_variable_attributes): Likewise.
8116 (cgraph_process_same_body_aliases): Likewise.
8117 (analyze_function): Likewise.
8118 (cgraph_add_new_function): Likewise.
8119 (cgraph_finalize_function): Likewise.
8120 (referred_to_p): Likewise.
8121 (cgraph_reset_node): Likewise.
8122 (cgraph_process_new_functions): Likewise.
8123 (enqueue_node): Likewise.
8124 (decide_is_symbol_needed): Likewise.
8125 * coverage.c (coverage_compute_profile_id): Likewise.
8126 * dbxout.c (dbxout_expand_expr): Likewise.
8127 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8128 (reference_to_unused): Likewise.
8129 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8130 * gimplify.c (unvisit_body): Likewise.
8131 (unshare_body): Likewise.
8132 * ipa-cp.c (ipcp_generate_summary): Likewise.
8133 (ipcp_decision_stage): Likewise.
8134 (identify_dead_nodes): Likewise.
8135 (decide_whether_version_node): Likewise.
8136 (decide_about_value): Likewise.
8137 (perhaps_add_new_callers): Likewise.
8138 (create_specialized_node): Likewise.
8139 (update_profiling_info): Likewise.
8140 (ipcp_propagate_stage): Likewise.
8141 (estimate_local_effects): Likewise.
8142 (good_cloning_opportunity_p): Likewise.
8143 (devirtualization_time_bonus): Likewise.
8144 (propagate_constants_accross_call): Likewise.
8145 (initialize_node_lattices): Likewise.
8146 (ipcp_cloning_candidate_p): Likewise.
8147 (determine_versionability): Likewise.
8148 (print_all_lattices): Likewise.
8149 (print_lattice): Likewise.
8150 (ipcp_discover_new_direct_edges): Likewise.
8151 * ipa-devirt.c (ipa_devirt): Likewise.
8152 (likely_target_p): Likewise.
8153 (update_type_inheritance_graph): Likewise.
8154 (possible_polymorphic_call_target_p): Likewise.
8155 (dump_possible_polymorphic_call_targets): Likewise.
8156 (devirt_variable_node_removal_hook): Likewise.
8157 (record_binfo): Likewise.
8158 (maybe_record_node): Likewise.
8159 (build_type_inheritance_graph): Likewise.
8160 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8161 (inline_generate_summary): Likewise.
8162 (inline_analyze_function): Likewise.
8163 (do_estimate_growth): Likewise.
8164 (simple_edge_hints): Likewise.
8165 (estimate_node_size_and_time): Likewise.
8166 (estimate_edge_devirt_benefit): Likewise.
8167 (compute_inline_parameters): Likewise.
8168 (estimate_function_body_sizes): Likewise.
8169 (compute_bb_predicates): Likewise.
8170 (initialize_inline_failed): Likewise.
8171 (dump_inline_summary): Likewise.
8172 (dump_inline_edge_summary): Likewise.
8173 * ipa-inline-transform.c (inline_transform): Likewise.
8174 (preserve_function_body_p): Likewise.
8175 (save_inline_function_body): Likewise.
8176 (inline_call): Likewise.
8177 (clone_inlined_nodes): Likewise.
8178 (can_remove_node_now_p): Likewise.
8179 (can_remove_node_now_p_1): Likewise.
8180 * ipa-inline.c (early_inliner): Likewise.
8181 (early_inline_small_functions): Likewise.
8182 (inline_always_inline_functions): Likewise.
8183 (ipa_inline): Likewise.
8184 (flatten_function): Likewise.
8185 (inline_small_functions): Likewise.
8186 (speculation_useful_p): Likewise.
8187 (recursive_inlining): Likewise.
8188 (update_caller_keys): Likewise.
8189 (reset_edge_caches): Likewise.
8190 (update_edge_key): Likewise.
8191 (edge_badness): Likewise.
8192 (relative_time_benefit): Likewise.
8193 (want_inline_self_recursive_call_p): Likewise.
8194 (want_inline_small_function_p): Likewise.
8195 (want_early_inline_function_p): Likewise.
8196 (num_calls): Likewise.
8197 (can_early_inline_edge_p): Likewise.
8198 (can_inline_edge_p): Likewise.
8199 (report_inline_failed_reason): Likewise.
8200 * ipa-profile.c (ipa_profile): Likewise.
8201 (ipa_propagate_frequency): Likewise.
8202 (ipa_propagate_frequency_1): Likewise.
8203 (ipa_profile_generate_summary): Likewise.
8204 * ipa-prop.c (ipcp_transform_function): Likewise.
8205 (read_replacements_section): Likewise.
8206 (ipa_prop_read_section): Likewise.
8207 (ipa_modify_call_arguments): Likewise.
8208 (ipa_print_node_params): Likewise.
8209 (propagate_controlled_uses): Likewise.
8210 (update_indirect_edges_after_inlining): Likewise.
8211 (remove_described_reference): Likewise.
8212 (ipa_make_edge_direct_to_target): Likewise.
8213 (ipa_analyze_node): Likewise.
8214 (ipa_analyze_params_uses): Likewise.
8215 (ipa_compute_jump_functions): Likewise.
8216 (ipa_get_callee_param_type): Likewise.
8217 (ipa_print_node_jump_functions): Likewise.
8218 (ipa_initialize_node_params): Likewise.
8219 (ipa_populate_param_decls): Likewise.
8220 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8221 (write_agg_replacement_chain): Likewise.
8222 (ipa_write_node_info): Likewise.
8223 (ipa_edge_duplication_hook): Likewise.
8224 (try_decrement_rdesc_refcount): Likewise.
8225 * ipa-pure-const.c (propagate_nothrow): Likewise.
8226 (propagate_pure_const): Likewise.
8227 (pure_const_read_summary): Likewise.
8228 (pure_const_write_summary): Likewise.
8229 (analyze_function): Likewise.
8230 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8231 (ipa_ref_referring_ref_list): Likewise.
8232 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8233 (ipa_remove_stmt_references): Likewise.
8234 (ipa_find_reference): Likewise.
8235 (ipa_dump_referring): Likewise.
8236 (ipa_dump_references): Likewise.
8237 (ipa_record_reference): Likewise.
8238 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8239 (ipa_reference_write_optimization_summary): Likewise.
8240 (write_node_summary_p): Likewise.
8241 (propagate): Likewise.
8242 (read_write_all_from_decl): Likewise.
8243 (generate_summary): Likewise.
8244 (analyze_function): Likewise.
8245 (propagate_bits): Likewise.
8246 (ipa_reference_get_not_written_global): Likewise.
8247 (ipa_reference_get_not_read_global): Likewise.
8248 * ipa-split.c (execute_split_functions): Likewise.
8249 (split_function): Likewise.
8250 * ipa-utils.c (ipa_merge_profiles): Likewise.
8251 (dump_cgraph_node_set): Likewise.
8252 (ipa_reverse_postorder): Likewise.
8253 (ipa_edge_within_scc): Likewise.
8254 (ipa_get_nodes_in_cycle): Likewise.
8255 (ipa_free_postorder_info): Likewise.
8256 (ipa_reduced_postorder): Likewise.
8257 (searchc): Likewise.
8258 (recursive_call_p): Likewise.
8259 * ipa.c (ipa_cdtor_merge): Likewise.
8260 (record_cdtor_fn): Likewise.
8261 (function_and_variable_visibility): Likewise.
8262 (varpool_externally_visible_p): Likewise.
8263 (cgraph_externally_visible_p): Likewise.
8264 (comdat_can_be_unshared_p): Likewise.
8265 (comdat_can_be_unshared_p_1): Likewise.
8266 (address_taken_from_non_vtable_p): Likewise.
8267 (ipa_discover_readonly_nonaddressable_vars): Likewise.
8268 (symtab_remove_unreachable_nodes): Likewise.
8269 (walk_polymorphic_call_targets): Likewise.
8270 (process_references): Likewise.
8271 (enqueue_node): Likewise.
8272 (has_addr_references_p): Likewise.
8273 (cgraph_non_local_node_p_1): Likewise.
8274 * is-a.h (varpool_analyze_node): Likewise.
8275 * lto-cgraph.c (input_symtab): Likewise.
8276 (merge_profile_summaries): Likewise.
8277 (input_cgraph_1): Likewise.
8278 (input_edge): Likewise.
8279 (input_varpool_node): Likewise.
8280 (input_node): Likewise.
8281 (input_overwrite_node): Likewise.
8282 (compute_ltrans_boundary): Likewise.
8283 (output_refs): Likewise.
8284 (lto_output_varpool_node): Likewise.
8285 (lto_output_node): Likewise.
8286 (reachable_from_other_partition_p): Likewise.
8287 (referenced_from_other_partition_p): Likewise.
8288 (lto_output_edge): Likewise.
8289 (output_node_opt_summary): Likewise.
8290 (add_node_to): Likewise.
8291 (reachable_from_this_partition_p): Likewise.
8292 (lto_set_symtab_encoder_in_partition): Likewise.
8293 (lto_symtab_encoder_in_partition_p): Likewise.
8294 (lto_set_symtab_encoder_encode_initializer): Likewise.
8295 (lto_symtab_encoder_encode_initializer_p): Likewise.
8296 (lto_set_symtab_encoder_encode_body): Likewise.
8297 (lto_symtab_encoder_encode_body_p): Likewise.
8298 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8300 * lto-streamer-in.c (lto_read_body): Likewise.
8301 (fixup_call_stmt_edges): Likewise.
8302 (fixup_call_stmt_edges_1): Likewise.
8303 * lto-streamer-out.c (produce_symtab): Likewise.
8304 (output_symbol_p): Likewise.
8305 (write_symbol): Likewise.
8306 (lto_output): Likewise.
8307 (copy_function): Likewise.
8308 (output_function): Likewise.
8309 * passes.c (function_called_by_processed_nodes_p): Likewise.
8310 (ipa_write_optimization_summaries): Likewise.
8311 (ipa_write_summaries): Likewise.
8312 (do_per_function_toporder): Likewise.
8313 (do_per_function): Likewise.
8314 (dump_passes): Likewise.
8315 * symtab.c (symtab_semantically_equivalent_p): Likewise.
8316 (symtab_nonoverwritable_alias): Likewise.
8317 (symtab_nonoverwritable_alias_1): Likewise.
8318 (symtab_for_node_and_aliases): Likewise.
8319 (symtab_resolve_alias): Likewise.
8320 (fixup_same_cpp_alias_visibility): Likewise.
8321 (symtab_alias_ultimate_target): Likewise.
8322 (symtab_used_from_object_file_p): Likewise.
8323 (verify_symtab_base): Likewise.
8324 (dump_symtab_base): Likewise.
8325 (symtab_node_name): Likewise.
8326 (symtab_node_asm_name): Likewise.
8327 (symtab_dissolve_same_comdat_group_list): Likewise.
8328 (symtab_add_to_same_comdat_group): Likewise.
8329 (symtab_unregister_node): Likewise.
8330 (symtab_insert_node_to_hashtable): Likewise.
8331 (symtab_register_node): Likewise.
8332 (unlink_from_assembler_name_hash): Likewise.
8333 (insert_to_assembler_name_hash): Likewise.
8334 (eq_assembler_name): Likewise.
8335 (hash_node_by_assembler_name): Likewise.
8336 (eq_node): Likewise.
8337 (hash_node): Likewise.
8338 * toplev.c (wrapup_global_declaration_2): Likewise.
8339 * trans-mem.c (ipa_tm_execute): Likewise.
8340 (ipa_tm_transform_clone): Likewise.
8341 (ipa_tm_transform_transaction): Likewise.
8342 (ipa_tm_transform_calls_redirect): Likewise.
8343 (ipa_tm_insert_gettmclone_call): Likewise.
8344 (ipa_tm_insert_irr_call): Likewise.
8345 (ipa_tm_create_version): Likewise.
8346 (ipa_tm_create_version_alias): Likewise.
8347 (ipa_tm_mark_forced_by_abi_node): Likewise.
8348 (ipa_tm_mark_force_output_node): Likewise.
8349 (ipa_tm_diagnose_tm_safe): Likewise.
8350 (ipa_tm_mayenterirr_function): Likewise.
8351 (ipa_tm_scan_irr_function): Likewise.
8352 (ipa_tm_note_irrevocable): Likewise.
8353 (ipa_tm_scan_calls_clone): Likewise.
8354 (get_cg_data): Likewise.
8355 * tree-eh.c (tree_could_trap_p): Likewise.
8356 * tree-emutls.c (ipa_lower_emutls): Likewise.
8357 (create_emultls_var): Likewise.
8358 (lower_emutls_function_body): Likewise.
8359 (gen_emutls_addr): Likewise.
8360 (emutls_decl): Likewise.
8361 (new_emutls_decl): Likewise.
8362 * tree-inline.c (tree_function_versioning): Likewise.
8363 (optimize_inline_calls): Likewise.
8364 (expand_call_inline): Likewise.
8365 (estimate_num_insns): Likewise.
8366 (copy_bb): Likewise.
8367 (delete_unreachable_blocks_update_callgraph): Likewise.
8368 * tree-nested.c (gimplify_all_functions): Likewise.
8369 (create_nesting_tree): Likewise.
8370 (check_for_nested_with_variably_modified): Likewise.
8371 * tree-pretty-print.c (dump_function_header): Likewise.
8372 * tree-profile.c (tree_profiling): Likewise.
8373 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8374 (modify_function): Likewise.
8375 (convert_callers): Likewise.
8376 (convert_callers_for_node): Likewise.
8377 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8378 (associate_varinfo_to_alias): Likewise.
8379 (create_variable_info_for): Likewise.
8380 (get_constraint_for_ssa_var): Likewise.
8381 * tree-vectorizer.c (increase_alignment): Likewise.
8382 * tree.c (find_decls_types_in_var): Likewise.
8383 (find_decls_types_in_node): Likewise.
8384 (free_lang_data_in_decl): Likewise.
8385 * value-prof.c (gimple_ic_transform): Likewise.
8386 (gimple_ic): Likewise.
8387 (check_ic_target): Likewise.
8388 (init_node_map): Likewise.
8389 * varasm.c (decl_binds_to_current_def_p): Likewise.
8390 (default_binds_local_p_1): Likewise.
8391 (dump_tm_clone_pairs): Likewise.
8392 (assemble_alias): Likewise.
8393 (find_decl): Likewise.
8394 (mark_decl_referenced): Likewise.
8395 * varpool.c (varpool_for_node_and_aliases): Likewise.
8396 (varpool_extra_name_alias): Likewise.
8397 (varpool_create_variable_alias): Likewise.
8398 (add_new_static_var): Likewise.
8399 (varpool_finalize_named_section_flags): Likewise.
8400 (varpool_remove_unreferenced_decls): Likewise.
8401 (enqueue_node): Likewise.
8402 (varpool_assemble_decl): Likewise.
8403 (assemble_aliases): Likewise.
8404 (varpool_analyze_node): Likewise.
8405 (cgraph_variable_initializer_availability): Likewise.
8406 (varpool_add_new_variable): Likewise.
8407 (ctor_for_folding): Likewise.
8408 (dump_varpool_node): Likewise.
8409 (varpool_remove_initializer): Likewise.
8410 (varpool_remove_node): Likewise.
8411 (varpool_node_for_decl): Likewise.
8412 (varpool_create_empty_node): Likewise.
8413 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8414 (ix86_get_function_versions_dispatcher): Likewise.
8416 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8418 * cgraph.h (symtab_node_base): Convert to a class;
8419 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8420 chain_next/prev from symtab_node_def.
8421 (cgraph_node): Inherit from symtab_node; add GTY option
8422 tag ("SYMTAB_FUNCTION").
8423 (varpool_node): Inherit from symtab_node; add GTY option
8424 tag ("SYMTAB_VARIABLE").
8425 (symtab_node_def): Remove.
8426 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8427 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8428 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8429 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8431 * ipa-ref.h (symtab_node_def): Drop.
8432 (symtab_node): Change underlying type from symtab_node_def to
8434 (const_symtab_node): Likwise.
8436 * is-a.h: Update examples in comment.
8438 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8439 (assembler_name_hash): Likewise.
8441 2013-10-29 Martin Liska <marxin.liska@gmail.com>
8443 * doc/tree-ssa.texi (gimple_phi_result): Document.
8444 (gimple_phi_num_args, gimple_phi_arg): Likewise.
8445 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8446 (PHI_RESULT, PHI_NUM_ARGS): Remove.
8447 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8449 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8451 * expr.h: Revert change and include tree-core.h.
8452 * rtl.h: Revert change and don't include tree-core.h.
8454 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8456 * config/darwin.c: Include gimple.h.
8457 * config/i386/winnt.c: Likewise.
8459 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
8461 PR tree-optimization/19831
8462 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8464 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8466 * tree-outof-ssa.h: Remove include files.
8467 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8469 * tree-ssa-coalesce.c: Likewise.
8470 * cfgexpand.c: Likewise.
8471 * tree-ssa-ter.c: Likewise.
8472 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8473 * lto-streamer.h: Likewise.
8474 * cgraphbuild.c: Add gimple.h to include list.
8475 * data-streamer-in.c: Likewise.
8476 * ipa-cp.c: Likewise.
8477 * tree-streamer.c: Likewise.
8478 * lto-compress.c: Likewise.
8479 * ipa-reference.c: Likewise.
8480 * data-streamer-out.c: Likewise.
8481 * lto-cgraph.c: Likewise.
8482 * cgraphclones.c: Likewise.
8483 * ipa-utils.c: Likewise.
8484 * data-streamer.c: Likewise.
8485 * ipa-split.c: Likewise.
8486 * lto-section-in.c: Likewise.
8487 * tree-streamer-out.c: Likewise.
8488 * ipa-prop.c: Likewise.
8489 * tree-streamer-in.c: Likewise.
8490 * symtab.c: Likewise.
8491 * opts-global.c: Likewise.
8492 * lto-opts.c: Likewise.
8493 * lto-section-out.c: Likewise.
8494 * lto-streamer.c: Likewise.
8495 * rtl.h: Add tree-core.h to include list.
8496 * expr.h: Remove tree-core.h from include list.
8497 * gimple.h: Likewise.
8498 * ipa-utils.h: Likewise.
8499 * streamer-hooks.h: Likewise.
8500 * streamer-hooks.c: Include input.h.
8502 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8504 * config/arm/arm.c (cortexa7_extra_costs): New table.
8505 (arm_cortex_a7_tune): New.
8506 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8508 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
8510 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8512 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8514 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8515 to use autogenerated markers for a class-hierarchy, every class
8516 must have a GTY marker.
8517 * gengtype.h (struct type): Add linked list of subclasses to
8518 the "s" member of the union.
8519 (add_subclass): New decl.
8520 * gengtype-state.c (read_state_struct_type): Set up subclass
8522 * gengtype.c (get_ultimate_base_class): New.
8523 (add_subclass): New.
8524 (new_structure): Set up subclass linked list.
8525 (set_gc_used_type): Propagate usage information to subclasses.
8526 (output_mangled_typename): Use get_ultimate_base_class.
8527 (walk_subclasses): Use the subclass linked list, avoiding an
8528 O(N^2) when writing out all types.
8529 (walk_type): Issue an error if the base class is missing a tag,
8530 rather than generating bogus C code. Add a gcc_unreachable
8531 default case, in case people omit tags from concrete subclasses,
8532 or get the values wrong.
8533 (write_func_for_structure): Issue an error for subclasses for
8534 which the base doesn't have a "desc", since otherwise the
8535 autogenerated routines for the base would silently fail to visit
8536 any subclass fields.
8537 (write_root): Use get_ultimate_base_class, tweaking constness of
8538 tp to match that function's signature.
8540 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8542 * doc/gty.texi (GTY Options): Add note about inheritance to
8543 description of desc and tag.
8544 (Inheritance and GTY): New.
8546 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8548 * gengtype-parse.c (opts_have): Drop "static" so that
8549 we can use this from gengtype.c.
8550 * gengtype.c (set_gc_used_type): Mark any base class as used;
8551 update field traversal to visit inherited fields.
8552 (output_mangled_typename): Convert references to classes within
8553 an inheritance hierarchy to reference the ultimate base class,
8554 since only it will have gt_ functions.
8555 (get_string_option): New.
8556 (walk_subclasses): New.
8557 (walk_type): Treat GTY structs that have a "desc" as being the
8558 root of an inheritance hierarchy. Generate a switch on it
8559 within the marking function which walks all subclasses, adding
8560 cases for them via walk_subclasses. For subclasses, visit all
8561 fields of the type (including inherited ones).
8562 (write_func_for_structure): Don't write fns for subclasses, only
8563 for the ultimate base class within an inheritance hierarchy.
8564 Subclasses-marking will be handled by the base class marking functions.
8565 (write_types): Likewise.
8566 (write_local_func_for_structure): Likewise.
8567 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8568 a "tag" option (and are thus concrete subclasses).
8569 (write_root): Use the marker function for the ultimate base class.
8570 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8571 (opts_have): Add declaration.
8573 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
8575 * lra-spills.c (lra_final_code_change): Remove useless move insns
8576 originated from moves of pseudos.
8578 2013-10-28 Jeff Law <law@redhat.com>
8580 * lower-subreg.c (resolve_simple_move): Fix comment typo.
8582 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
8584 * df-scan.c (df_collection_rec): Adjust.
8585 (copy_defs): New constant.
8586 (copy_uses): Likewise.
8587 (copy_eq_uses): Likewise.
8588 (copy_mw): Likewise.
8589 (copy_all): Likewise.
8590 (df_insn_rescan): Adjust.
8591 (df_notes_rescan): Likewise.
8592 (df_swap_refs): Likewise.
8593 (df_sort_and_compress_refs): Likewise.
8594 (df_sort_and_compress_mws): Likewise.
8595 (df_install_refs): Likewise.
8596 (df_install_mws): Likewise.
8597 (df_refs_add_to_chains): Add flags parameter controlling which vectors
8599 (df_bb_refs_record): Adjust.
8600 (df_record_entry_block_defs): Likewise.
8601 (df_record_exit_block_defs): Likewise.
8602 (df_refs_verify): Likewise.
8603 (df_mws_verify): Likewise.
8604 (df_insn_refs_verify): Likewise.
8605 (df_bb_verify): Likewise.
8606 * ipa-pure-const.c (finish_state): Remove.
8607 (propagate): Adjust.
8608 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8609 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8610 var-tracking.c: Adjust.
8611 * vec.c (stack_vecs): Remove.
8612 (register_stack_vec): Likewise.
8613 (stack_vec_register_index): Likewise.
8614 (unregister_stack_vec): Likewise.
8615 * vec.h (struct va_stack): Remove.
8616 (struct vec<T, A, vl_ptr>): Specialize as
8617 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8618 allocation strategy compatable with the vl_ptr layout.
8619 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8620 specialization anyway.
8621 (class stack_vec): New class.
8622 (vec_stack_alloc): Remove.
8623 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8625 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8626 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8627 Sergey Lega <sergey.s.lega@intel.com>
8628 Anna Tikhonova <anna.tikhonova@intel.com>
8629 Ilya Tocar <ilya.tocar@intel.com>
8630 Andrey Turetskiy <andrey.turetskiy@intel.com>
8631 Ilya Verbin <ilya.verbin@intel.com>
8632 Kirill Yukhin <kirill.yukhin@intel.com>
8633 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8635 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8636 (*prefetch_avx512pf_<mode>): New.
8637 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8638 (avx512f_maskcmp<mode>3): Ditto.
8639 (vashrv16si3): Ditto.
8641 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8642 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8643 Sergey Lega <sergey.s.lega@intel.com>
8644 Anna Tikhonova <anna.tikhonova@intel.com>
8645 Ilya Tocar <ilya.tocar@intel.com>
8646 Andrey Turetskiy <andrey.turetskiy@intel.com>
8647 Ilya Verbin <ilya.verbin@intel.com>
8648 Kirill Yukhin <kirill.yukhin@intel.com>
8649 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8651 * config/i386/i386.md (any_truncate): New.
8652 (trunsuffix): Ditto.
8653 * config/i386/predicates.md (const_8_to_9_operand): New.
8654 (const_10_to_11_operand): Ditto.
8655 (const_12_to_13_operand): Ditto.
8656 (const_14_to_15_operand): Ditto.
8657 (const_16_to_19_operand): Ditto.
8658 (const_20_to_23_operand): Ditto.
8659 (const_24_to_27_operand): Ditto.
8660 (const_28_to_31_operand): Ditto.
8661 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8662 (cvtusi2<ssescalarmodesuffix>32): New.
8663 (cvtusi2<ssescalarmodesuffix>64): Ditto.
8664 (ufloatv16siv16sf2): Ditto.
8665 (avx512f_fix_notruncv16sfv16si): Ditto.
8666 (avx512f_ufix_notruncv16sfv16si): Ditto.
8667 (avx512f_vcvtss2usi): Ditto.
8668 (avx512f_vcvtss2usiq): Ditto.
8669 (avx512f_vcvttss2usi): Ditto.
8670 (avx512f_vcvttss2usiq): Ditto.
8671 (avx512f_vcvtsd2usi): Ditto.
8672 (avx512f_vcvtsd2usiq): Ditto.
8673 (avx512f_vcvttsd2usi): Ditto.
8674 (avx512f_vcvttsd2usiq): Ditto.
8675 (ufloatv8siv8df): Ditto.
8676 (avx512f_cvtdq2pd512_2): Ditto.
8677 (avx512f_cvtpd2dq512): Ditto.
8678 (avx512f_ufix_notruncv8dfv8si): Ditto.
8679 (avx512f_cvtpd2ps512): Ditto.
8680 (vec_unpacks_lo_v16sf): Ditto.
8681 (vec_unpacks_hi_v16sf): Ditto.
8682 (vec_unpacks_float_hi_v16si): Ditto.
8683 (vec_unpacks_float_lo_v16si): Ditto.
8684 (avx512f_unpckhps512): Ditto.
8685 (avx512f_unpcklps512): Ditto.
8686 (avx512f_movshdup512): Ditto.
8687 (avx512f_movsldup512): Ditto.
8688 (vec_extract_lo_v32hi): Ditto.
8689 (vec_extract_hi_v32hi): Ditto.
8690 (vec_extract_lo_v64qi): Ditto.
8691 (vec_extract_hi_v64qi): Ditto.
8692 (avx512f_unpckhpd512): Ditto.
8693 (avx512f_movddup512): Ditto.
8694 (avx512f_unpcklpd512): Ditto.
8695 (*avx512f_unpcklpd512): Ditto.
8696 (avx512f_shufps512_1): Ditto.
8697 (avx512f_shufpd512_1): Ditto.
8698 (avx512f_interleave_highv8di): Ditto.
8699 (avx512f_interleave_lowv8di): Ditto.
8700 (PMOV_DST_MODE): Ditto.
8701 (pmov_src_mode): Ditto.
8702 (pmov_src_lower): Ditto.
8704 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8705 (*avx512f_<code>v8div16qi2): Ditto.
8706 (*avx512f_<code>v8div16qi2_store): Ditto.
8707 (vec_widen_umult_even_v16si): Ditto.
8708 (*vec_widen_umult_even_v16si): Ditto.
8709 (vec_widen_smult_even_v16si): Ditto.
8710 (*vec_widen_smult_even_v16si): Ditto.
8711 (avx512f_interleave_highv16si): Ditto.
8712 (avx512f_interleave_lowv16si): Ditto.
8713 (avx512f_<code>v16qiv16si2): Ditto.
8714 (avx512f_<code>v16hiv16si2): Ditto.
8715 (avx512f_<code>v8qiv8di2): Ditto.
8716 (avx512f_<code>v8hiv8di2): Ditto.
8717 (avx512f_<code>v8siv8di2): Ditto.
8718 (avx512cd_maskb_vec_dupv8di): Ditto.
8719 (avx512cd_maskw_vec_dupv16si): Ditto.
8720 (avx512f_vcvtph2ps512): Ditto.
8721 (avx512f_vcvtps2ph512): Ditto.
8722 (VEC_EXTRACT_MODE): Extened with wider modes.
8723 (VEC_PERM_AVX2): Ditto.
8724 (VEC_PERM_CONST): Ditto.
8726 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
8728 * config/arc/arc.c (arc_ccfsm_post_advance):
8729 Add comment about TYPE_RETURN.
8731 2013-10-28 Bin Cheng <bin.cheng@arm.com>
8733 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8734 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8735 (strip_offset): Convert offset to unsigned number.
8737 2013-10-27 Tom de Vries <tom@codesourcery.com>
8739 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8740 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8742 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
8744 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8745 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8746 (TARGET_BIG_ENDIAN): New macro.
8747 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8748 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8749 * config/sh/sh.c: Likewise.
8750 * config/sh/sh.h: Likewise.
8752 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
8754 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8755 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
8757 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8759 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8761 (cmpstr_t, cmpstrsi): Fix formatting.
8763 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8766 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8767 addressing, do not use general_operand for memory operands.
8769 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
8772 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8773 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8775 2013-10-26 Jeff Law <law@redhat.com>
8777 * predict.c (PRED_MUDFLAP): Remove.
8778 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8780 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8781 (OBJS): Remove tree-nomudflap.o
8782 (GTFILES): Remove tree-mudflap.c
8783 * builtins.c (expand_builtin_alloc): Remove mudflap support.
8784 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8785 (mfwrap_spec, mflib_spec): Likewise.
8786 (cpp_unique_options, cc1_options, static_specs): Likewise.
8787 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8788 * passes.def: Likewise.
8789 * toplev.c (compile_file, process_options): Likewise.
8790 * tree-inline.c (copy_tree_r): Likewise.
8791 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8792 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8793 (build_constant_desc, output_constant_def_contents): Likewise.
8794 (categorize_decl_for_section): Likewise.
8795 * tree-mudflap.c: Removed.
8796 * tree-mudflap.h: Removed.
8797 * tree-nomudflap.c: Removed.
8798 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8799 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8800 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8801 * config/sol2.h (MFLIB_SPEC): Likewise.
8802 * doc/install.texi: Remove mudflap references.
8803 * doc/passes.texi: Similarly.
8804 * doc/sourcebuild.texi: Similarly.
8805 * doc/invoke.texi: Remove mudlfap related options.
8807 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8809 PR rtl-optimization/58759
8810 * lra-constraints.c (lra_constraints): Remove wrong condition to
8811 remove insn setting up an equivalent pseudo.
8813 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8815 * config/rs6000/rs6000-protos.h
8816 (rs6000_secondary_memory_needed_mode): New prototype.
8817 * config/rs6000/rs6000.c: Include ira.h.
8818 (TARGET_LRA_P): Redefine.
8819 (rs6000_legitimate_offset_address_p): Call
8820 legitimate_constant_pool_address_p in strict mode for LRA.
8821 (rs6000_legitimate_address_p): Ditto.
8822 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
8823 (rs6000_emit_move): Add LRA version of code to generate load/store
8825 (rs6000_secondary_memory_needed_mode): New.
8826 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8827 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8828 constants, memory, and FP registers.
8829 (rs6000_lra_p): New.
8830 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8831 * config/rs6000/rs6000.opt (mlra): New option.
8832 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8834 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
8836 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8837 has_single_use () and not do the conversion if has_single_use ()
8838 returns false for the multiplication result.
8840 2013-10-25 David Malcolm <dmalcolm@redhat.com>
8842 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8843 to "NODE", since this works on a "tree", not an
8845 (CONSTANT_CLASS_P): Likewise.
8848 (INDIRECT_REF_P): Likewise.
8849 (REFERENCE_CLASS_P): Likewise.
8850 (COMPARISON_CLASS_P): Likewise.
8851 (UNARY_CLASS_P): Likewise.
8852 (BINARY_CLASS_P): Likewise.
8853 (STATEMENT_CLASS_P): Likewise.
8854 (VL_EXP_CLASS_P): Likewise.
8855 (EXPRESSION_CLASS_P): Likewise.
8856 (IS_TYPE_OR_DECL_P): Likewise.
8858 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
8860 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8861 ADDR_EXPR in the defining statement.
8863 2013-10-25 Richard Biener <rguenther@suse.de>
8865 PR tree-optimization/58626
8866 * tree-loop-distribution.c (enum rdg_dep_type): Remove
8867 anti_dd, output_dd and input_dd.
8868 (struct rdg_edge): Remove level and relation members.
8869 (RDGE_LEVEL, RDGE_RELATION): Remove.
8870 (dot_rdg_1): Adjust.
8871 (create_rdg_edge_for_ddr): Remove.
8872 (create_rdg_edges_for_scalar): Adjust.
8873 (create_edge_for_control_dependence): Likewise.
8874 (create_rdg_edges): Split into ...
8875 (create_rdg_flow_edges): ... this
8876 (create_rdg_cd_edges): ... and this.
8878 (build_rdg): Likewise, do not compute data dependences or
8880 (pg_add_dependence_edges): New function.
8882 (distribute_loop): First apply all non-dependence based
8883 partition mergings. Then compute dependences between partitions
8884 and merge and order partitions according to them.
8886 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
8888 PR rtl-optimization/58831
8889 * alias.c (init_alias_analysis): At the beginning of each iteration,
8890 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8892 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
8894 * recog.c (search_ofs): New static variable moved from...
8895 (peep2_find_free_register): ...here.
8896 (peephole2_optimize): Initialize it.
8898 2013-10-25 Tobias Burnus <burnus@net-b.de>
8900 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8902 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
8904 * config/i386/i386.h (TARGET_MPX): New define.
8905 (TARGET_MPX_P): Ditto.
8907 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
8909 * config/i386/constraints.md (B): New.
8912 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8913 * config/i386/i386-modes.def (BND32): New.
8915 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8916 * config/i386/i386.c (isa_opts): Add mmpx.
8917 (regclass_map): Add bound registers.
8918 (dbx_register_map): Likewise.
8919 (dbx64_register_map): Likewise.
8920 (svr4_dbx_register_map): Likewise.
8922 (ix86_option_override_internal): Support MPX ISA.
8923 (ix86_conditional_register_usage): Support bound registers.
8924 (print_reg): Likewise.
8925 (ix86_code_end): Add MPX bnd prefix.
8926 (output_set_got): Likewise.
8927 (ix86_output_call_insn): Likewise.
8928 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8929 (ix86_print_operand_punct_valid_p): Likewise.
8930 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8932 (ix86_class_likely_spilled_p): Add bound regs support.
8933 (ix86_hard_regno_mode_ok): Likewise.
8934 (x86_order_regs_for_local_alloc): Likewise.
8935 (ix86_bnd_prefixed_insn_p): New.
8936 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8937 (FIXED_REGISTERS): Add bound registers.
8938 (CALL_USED_REGISTERS): Likewise.
8939 (REG_ALLOC_ORDER): Likewise.
8940 (HARD_REGNO_NREGS): Likewise.
8942 (VALID_BND_REG_MODE): New.
8943 (FIRST_BND_REG): New.
8944 (LAST_BND_REG): New.
8945 (reg_class): Add BND_REGS.
8946 (REG_CLASS_NAMES): Likewise.
8947 (REG_CLASS_CONTENTS): Likewise.
8949 (ANY_BND_REG_P): New.
8951 (HI_REGISTER_NAMES): Add bound registers.
8952 * config/i386/i386.md (UNSPEC_BNDMK): New.
8953 (UNSPEC_BNDMK_ADDR): New.
8954 (UNSPEC_BNDSTX): New.
8955 (UNSPEC_BNDLDX): New.
8956 (UNSPEC_BNDLDX_ADDR): New.
8957 (UNSPEC_BNDCL): New.
8958 (UNSPEC_BNDCU): New.
8959 (UNSPEC_BNDCN): New.
8960 (UNSPEC_MPX_FENCE): New.
8963 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8964 (length_immediate): Likewise.
8965 (prefix_0f): Likewise.
8967 (prefix_rep): Check for bnd prefix.
8968 (length_nobnd): New.
8969 (length): Use length_nobnd if specified.
8974 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8977 (simple_return_internal): Likewise.
8978 (simple_return_pop_internal): Likewise.
8979 (*indirect_jump): Add MPX bnd prefix.
8980 (*tablejump_1): Likewise.
8981 (simple_return_internal_long): Likewise.
8982 (simple_return_indirect_internal): Likewise.
8986 (*mov<mode>_internal_mpx): New.
8987 (<mode>_<bndcheck>): New.
8988 (*<mode>_<bndcheck>): New.
8993 * config/i386/predicates.md (lea_address_operand): Rename to...
8994 (address_no_seg_operand): ... this.
8995 (address_mpx_no_base_operand): New.
8996 (address_mpx_no_index_operand): New.
8997 (bnd_mem_operator): New.
8998 * config/i386/i386.opt (mmpx): New.
8999 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9000 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9002 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9004 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9005 * tree.def (POINTER_BOUNDS_TYPE): New.
9006 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9007 (POINTER_BOUNDS_MODE): New.
9008 (make_pointer_bounds_mode): New.
9009 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9010 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9011 (layout_type): Support POINTER_BOUNDS_TYPE.
9012 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9013 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9014 (type_contains_placeholder_1): Likewise.
9015 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9016 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9017 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9019 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9021 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9022 mode of address computation when calling memory_address_addr_space.
9024 2013-08-24 Richard Henderson <rth@twiddle.net>
9027 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9028 instead of create_convert_operand_to.
9029 (maybe_emit_sync_lock_test_and_set): Likewise.
9030 (expand_atomic_compare_and_swap): Likewise.
9031 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9033 2013-08-24 Sriraman Tallam <tmsriram@google.com>
9035 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9036 Change param_is to use the struct and not the pointer to the struct.
9038 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
9040 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9041 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9042 Move to targhooks.c.
9043 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9044 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9045 Relocate from gimplify.c.
9046 * targhooks.h: Add 2 prototypes.
9047 * tree.h: Delete 2 prototypes.
9049 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9051 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9052 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9054 2013-10-24 Cong Hou <congh@google.com>
9056 * convert.c (convert_to_real): Guard those unsafe math function
9057 convertions with flag_unsafe_math_optimizations. Handle sqrt()
9060 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
9063 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9065 (cgraph_create_edge): Use the new argument.
9066 (cgraph_create_indirect_edge): Likewise.
9068 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
9070 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9072 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9073 changes statep->state.
9075 2013-10-24 Tobias Burnus <burnus@net-b.de>
9078 * tree-cfg.c (replace_loop_annotate): New function.
9079 (execute_build_cfg): Call it.
9080 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9081 * internal-fn.c (expand_ANNOTATE): New function.
9082 * internal-fn.def (ANNOTATE): Define as new internal function.
9083 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9084 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9085 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9086 * doc/extend.texi (Pragmas): Document #pragma ivdep.
9087 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9089 2013-10-17 Ian Bolton <ian.bolton@arm.com>
9090 Marcus Shawcroft <marcus.shawcroft@arm.com>
9092 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9093 Special case reload SP+C into none GENERAL_REGS.
9095 2013-10-24 Michael Matz <matz@suse.de>
9097 * gengtype.c (is_file_equal): Check that files will be same length.
9099 2013-10-25 Christian Bruel <christian.bruel@st.com>
9101 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9102 * config/sh/t-sh (sh-mem.o): New rule.
9103 * config/sh/sh-mem.cc (expand_block_move): Moved here.
9104 (sh_expand_cmpstr): New function.
9105 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9106 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9107 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9108 (rotlhi3_8): Rename.
9110 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9112 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9113 * Makefile.in (CXXDEPMODE): Assign and change users.
9114 (CCDEPMODE): Delete.
9115 * configure: Regenerate.
9117 2013-10-23 David Malcolm <dmalcolm@redhat.com>
9119 * gengtype-parse.c (require_without_advance): New.
9120 (type): For GTY-marked types that are not GTY((user)), parse any
9121 base classes, requiring them to be single-inheritance, and not
9122 be templates. For non-GTY-marked types and GTY((user)),
9123 continue to skip over any C++ inheritance specification.
9124 * gengtype-state.c (state_writer::write_state_struct_type):
9125 Write base class of type (if any).
9126 (read_state_struct_type): Read base class of type (if any).
9127 * gengtype.c (new_structure): Add a "base_class" parameter.
9128 (create_optional_field_): Update for new parameter to new_structure.
9129 (adjust_field_rtx_def): Likewise.
9130 (adjust_field_tree_exp): Likewise.
9131 * gengtype.h (struct type): Add "base_class" field to the s
9133 (new_structure): Add "base" parameter.
9135 2013-10-23 Sriraman Tallam <tmsriram@google.com>
9138 * config/i386/i386.c (ix86_option_override_internal):
9139 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9140 (ix86_valid_target_attribute_tree):
9141 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9142 Change TARGET_SSE to TARGET_SSE_P (opts->...)
9144 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9146 * tree-ssa-loop.h: Remove include files.
9147 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9148 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9149 * graphite-clast-to-gimple.c: Likewise.
9150 * graphite-scop-detection.c: Likewise.
9151 * graphite-sese-to-poly.c: Likewise.
9152 * ipa-inline-analysis.c: Likewise.
9153 * ipa-pure-const.c: Likewise.
9154 * loop-init.c: Likewise.
9155 * passes.c: Likewise.
9156 * predict.c: Likewise.
9157 * tree-cfg.c: Likewise.
9158 * tree-cfgcleanup.c: Likewise.
9159 * tree-chrec.c: Likewise.
9160 * tree-data-ref.c: Likewise.
9161 * tree-loop-distribution.c: Likewise.
9162 * tree-parloops.c: Likewise.
9163 * tree-predcom.c: Likewise.
9164 * tree-scalar-evolution.c: Likewise.
9165 * tree-ssa-address.c: Likewise.
9166 * tree-ssa.c: Likewise.
9167 * tree-ssa-dce.c: Likewise.
9168 * tree-ssa-loop.c: Likewise.
9169 * tree-ssa-loop-im.c: Likewise.
9170 * tree-ssa-loop-ivcanon.c: Likewise.
9171 * tree-ssa-loop-ivopts.c: Likewise.
9172 * tree-ssa-loop-manip.c: Likewise.
9173 * tree-ssa-loop-niter.c: Likewise.
9174 * tree-ssa-loop-prefetch.c: Likewise.
9175 * tree-ssa-loop-unswitch.c: Likewise.
9176 * tree-ssa-reassoc.c: Likewise.
9177 * tree-vect-data-refs.c: Likewise.
9178 * tree-vect-loop.c: Likewise.
9179 * tree-vect-loop-manip.c: Likewise.
9180 * tree-vectorizer.c: Likewise.
9181 * tree-vect-stmts.c: Likewise.
9182 * tree-vrp.c: Likewise.
9184 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9186 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9188 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9190 PR tree-optimization/58775
9191 PR tree-optimization/58791
9192 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9193 (insert_stmt_after): Rewritten, don't move the stmt, but really
9195 (get_stmt_uid_with_default): Remove.
9196 (build_and_add_sum): Use insert_stmt_after and
9197 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
9198 (update_range_test): Set uid on stmts added by
9199 force_gimple_operand_gsi. Don't immediately modify statements
9200 in inter-bb optimization, just update oe->op values.
9201 (optimize_range_tests): Return bool whether any changed have been made.
9202 (update_ops): New function.
9203 (struct inter_bb_range_test_entry): New type.
9204 (maybe_optimize_range_tests): Perform statement changes here.
9205 (not_dominated_by, appears_later_in_bb, get_def_stmt,
9206 ensure_ops_are_available): Remove.
9207 (find_insert_point): Rewritten.
9208 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9209 return LHS of the (new resp. old) stmt. Don't call
9210 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9211 instead of last, move new stmt at the right place.
9212 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9213 (negate_value): Likewise. Set uids.
9214 (break_up_subtract_bb): Initialize uids.
9215 (reassociate_bb): Adjust rewrite_expr_tree caller.
9216 (do_reassoc): Don't call renumber_gimple_stmt_uids.
9218 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
9221 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9222 TARGET_32BIT final condition.
9223 (mulsi3_internal2 and splitter): Same.
9225 2013-10-23 Jeff Law <law@redhat.com>
9227 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9228 through joiner blocks with abnormal outgoing edges.
9230 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9231 Add parameter JOINERS, to allow/disallow threading through joiner
9233 (thread_block): New. Call thread_block_1.
9234 (mark_threaded_blocks): Remove code to filter out certain cases
9235 of threading through joiner blocks.
9236 (thread_through_all_blocks): Document how we can have a dangling
9237 edge AUX field and clear it.
9239 2013-10-23 Ian Lance Taylor <iant@google.com>
9241 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9242 (C++ Dialect Options): Likewise.
9243 (Optimize Options): Likewise.
9245 2013-10-23 Tom de Vries <tom@codesourcery.com>
9247 PR tree-optimization/58805
9248 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9250 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9252 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9253 sequence based on get_range_info returned range.
9255 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9257 * tree-ssa.h: Remove all #include's
9258 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9259 * alias.c: Move required includes from tree-ssa.h.
9261 * builtins.c: Likewise.
9262 * calls.c: Likewise.
9263 * cfgexpand.c: Likewise.
9264 * cfghooks.c: Likewise.
9265 * cfgloop.c: Likewise.
9266 * cfgloopmanip.c: Likewise.
9267 * cgraph.c: Likewise.
9268 * cgraphbuild.c: Likewise.
9269 * cgraphclones.c: Likewise.
9270 * cgraphunit.c: Likewise.
9272 * except.c: Likewise.
9274 * final.c: Likewise.
9275 * fold-const.c: Likewise.
9276 * ggc-page.c: Likewise.
9277 * gimple-builder.c: Likewise.
9278 * gimple-fold.c: Likewise.
9279 * gimple-iterator.c: Likewise.
9280 * gimple-low.c: Likewise.
9281 * gimple-pretty-print.c: Likewise.
9282 * gimple-ssa-strength-reduction.c: Likewise.
9283 * gimple-streamer-in.c: Likewise.
9284 * gimple-streamer-out.c: Likewise.
9285 * gimplify.c: Likewise.
9286 * graphite-blocking.c: Likewise.
9287 * graphite-clast-to-gimple.c: Likewise.
9288 * graphite-dependences.c: Likewise.
9289 * graphite-interchange.c: Likewise.
9290 * graphite-optimize-isl.c: Likewise.
9291 * graphite-poly.c: Likewise.
9292 * graphite-scop-detection.c: Likewise.
9293 * graphite-sese-to-poly.c: Likewise.
9294 * graphite.c: Likewise.
9295 * ipa-cp.c: Likewise.
9296 * ipa-inline-analysis.c: Likewise.
9297 * ipa-inline-transform.c: Likewise.
9298 * ipa-inline.c: Likewise.
9299 * ipa-prop.c: Likewise.
9300 * ipa-pure-const.c: Likewise.
9301 * ipa-reference.c: Likewise.
9302 * ipa-split.c: Likewise.
9303 * ipa-utils.c: Likewise.
9304 * loop-init.c: Likewise.
9305 * lto-cgraph.c: Likewise.
9306 * lto-section-in.c: Likewise.
9307 * lto-section-out.c: Likewise.
9308 * lto-streamer-in.c: Likewise.
9309 * lto-streamer-out.c: Likewise.
9310 * lto-streamer.c: Likewise.
9311 * omp-low.c: Likewise.
9312 * passes.c: Likewise.
9313 * predict.c: Likewise.
9314 * print-tree.c: Likewise.
9315 * profile.c: Likewise.
9317 * targhooks.c: Likewise.
9318 * tracer.c: Likewise.
9319 * trans-mem.c: Likewise.
9320 * tree-call-cdce.c: Likewise.
9321 * tree-cfg.c: Likewise.
9322 * tree-cfgcleanup.c: Likewise.
9323 * tree-chrec.c: Likewise.
9324 * tree-complex.c: Likewise.
9325 * tree-data-ref.c: Likewise.
9326 * tree-dfa.c: Likewise.
9327 * tree-eh.c: Likewise.
9328 * tree-emutls.c: Likewise.
9329 * tree-if-conv.c: Likewise.
9330 * tree-inline.c: Likewise.
9331 * tree-into-ssa.c: Likewise.
9332 * tree-loop-distribution.c: Likewise.
9333 * tree-mudflap.c: Likewise.
9334 * tree-nested.c: Likewise.
9335 * tree-nrv.c: Likewise.
9336 * tree-object-size.c: Likewise.
9337 * tree-outof-ssa.c: Likewise.
9338 * tree-parloops.c: Likewise.
9339 * tree-phinodes.c: Likewise.
9340 * tree-predcom.c: Likewise.
9341 * tree-pretty-print.c: Likewise.
9342 * tree-profile.c: Likewise.
9343 * tree-scalar-evolution.c: Likewise.
9344 * tree-sra.c: Likewise.
9345 * tree-ssa-address.c: Likewise.
9346 * tree-ssa-alias.c: Likewise.
9347 * tree-ssa-ccp.c: Likewise.
9348 * tree-ssa-coalesce.c: Likewise.
9349 * tree-ssa-copy.c: Likewise.
9350 * tree-ssa-copyrename.c: Likewise.
9351 * tree-ssa-dce.c: Likewise.
9352 * tree-ssa-dom.c: Likewise.
9353 * tree-ssa-dse.c: Likewise.
9354 * tree-ssa-forwprop.c: Likewise.
9355 * tree-ssa-ifcombine.c: Likewise.
9356 * tree-ssa-live.c: Likewise.
9357 * tree-ssa-loop-ch.c: Likewise.
9358 * tree-ssa-loop-im.c: Likewise.
9359 * tree-ssa-loop-ivcanon.c: Likewise.
9360 * tree-ssa-loop-ivopts.c: Likewise.
9361 * tree-ssa-loop-manip.c: Likewise.
9362 * tree-ssa-loop-niter.c: Likewise.
9363 * tree-ssa-loop-prefetch.c: Likewise.
9364 * tree-ssa-loop-unswitch.c: Likewise.
9365 * tree-ssa-loop.c: Likewise.
9366 * tree-ssa-math-opts.c: Likewise.
9367 * tree-ssa-operands.c: Likewise.
9368 * tree-ssa-phiopt.c: Likewise.
9369 * tree-ssa-phiprop.c: Likewise.
9370 * tree-ssa-pre.c: Likewise.
9371 * tree-ssa-propagate.c: Likewise.
9372 * tree-ssa-reassoc.c: Likewise.
9373 * tree-ssa-sccvn.c: Likewise.
9374 * tree-ssa-sink.c: Likewise.
9375 * tree-ssa-strlen.c: Likewise.
9376 * tree-ssa-structalias.c: Likewise.
9377 * tree-ssa-tail-merge.c: Likewise.
9378 * tree-ssa-ter.c: Likewise.
9379 * tree-ssa-threadedge.c: Likewise.
9380 * tree-ssa-threadupdate.c: Likewise.
9381 * tree-ssa-uncprop.c: Likewise.
9382 * tree-ssa-uninit.c: Likewise.
9383 * tree-ssa.c: Likewise.
9384 * tree-ssanames.c: Likewise.
9385 * tree-stdarg.c: Likewise.
9386 * tree-streamer-in.c: Likewise.
9387 * tree-switch-conversion.c: Likewise.
9388 * tree-tailcall.c: Likewise.
9389 * tree-vect-data-refs.c: Likewise.
9390 * tree-vect-generic.c: Likewise.
9391 * tree-vect-loop-manip.c: Likewise.
9392 * tree-vect-loop.c: Likewise.
9393 * tree-vect-patterns.c: Likewise.
9394 * tree-vect-slp.c: Likewise.
9395 * tree-vect-stmts.c: Likewise.
9396 * tree-vectorizer.c: Likewise.
9397 * tree-vrp.c: Likewise.
9400 * value-prof.c: Likewise.
9401 * var-tracking.c: Likewise.
9402 * varpool.c: Likewise.
9403 * vtable-verify.c: Likewise.
9405 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9407 * config/tilegx/tilegx.c: Include "tree.h".
9409 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9411 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9412 the info, not after it.
9413 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9414 dump_ssaname_info call.
9415 (pp_gimple_stmt_1): Adjust caller.
9416 (dump_phi_nodes): Likewise. Don't print "# " here.
9418 2013-10-22 Jan Hubicka <jh@suse.cz>
9420 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9422 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9423 * i386.c (expand_small_movmem_or_setmem): New function.
9424 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9426 (alg_usable_p): Add support for value ranges; cleanup.
9427 (ix86_expand_set_or_movmem): Add support for misaligned moves.
9429 2013-10-22 Sterling Augustine <saugustine@google.com>
9431 * doc/invoke.texi: Document -ggnu-pubnames.
9432 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9434 * dwarf2out.c: Include gdb/gdb-index.h.
9435 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9436 debug_generate_pub_sections.
9437 (is_java, output_pubtables, output_pubname): New functions.
9438 (include_pubname_in_output): Handle debug_generate_pub_sections at
9440 (size_of_pubnames): Use new local space_for_flags based on
9441 debug_generate_pub_sections.
9442 (output_pubnames): Unify pubnames and pubtypes output logic.
9443 Genericize comments. Call output_pubname.
9444 (dwarf2out_finish): Move logic to output_pubnames and call it.
9446 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
9449 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9450 Remove CCCmode handling.
9451 <case LTU>: Return 'c' suffix for CCCmode.
9452 <case GEU>: Return 'nc' suffix for CCCmode.
9453 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9454 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9455 (*sub<mode>3_cc_overflow): Ditto.
9456 (*subsi3_zext_cc_overflow): Ditto.
9458 2013-10-22 Steve Ellcey <sellcey@mips.com>
9460 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
9461 (AND (NOT OP1) (NOT OP2)).
9463 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
9465 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9466 meaning of merge-high and merge-low masks for little endian; avoid
9467 use of vector-pack masks for little endian for mismatched modes.
9469 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9471 * config/tilepro/tilepro.c: Include "tree.h".
9473 2013-10-22 Andreas Schwab <schwab@suse.de>
9475 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9478 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
9480 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9481 [Ed Smith-Rowland]): New entries.
9482 ([Stephen M. Webb]): Update.
9484 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
9486 * tree-ssa-ter.h: Remove duplicate copy of file contents.
9488 2013-10-21 Marek Polacek <polacek@redhat.com>
9491 * fold-const.c (fold_range_test): Return 0 if the type is not
9494 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
9496 * system.h: Move hwint.h include further down.
9497 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
9498 gcc_checking_asserts.
9499 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9501 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9503 Fix volatile issues in optimize_bit_field_compare.
9504 * fold-const.c (optimize_bit_field_compare): Bail out if
9505 lvolatilep or rvolatilep.
9507 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9509 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9510 and get_inner_reference returning different pmode for non-volatile
9511 bit-field members dependent on flag_strict_volatile_bitfields.
9512 * stor-layout.c (layout_decl): Remove special handling of
9513 flag_strict_volatile_bitfields.
9514 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9515 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9517 2013-10-21 Paulo Matos <pmatos@broadcom.com>
9519 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9522 2013-10-21 Jeff Law <law@redhat.com>
9524 * tree-ssa-threadedge.c (thread_through_normal_block): New
9525 argument VISITED. Remove VISISTED as a local variable. When we
9526 have a threadable jump, verify the destination of the jump has not
9528 (thread_across_edge): Allocate VISITED bitmap once at function
9529 scope and use it throughout. Make sure to set appropriate bits in
9530 VISITED for E (start of jump thread path).
9531 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9532 through a joiner if any edge on the path has a recorded jump thread.
9534 2013-10-21 Ian Lance Taylor <iant@google.com>
9536 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9537 don't imply that attributes can solve all problems.
9538 (Directory Options): Fix typo.
9540 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9542 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9543 extend and extend_add.
9545 2013-10-21 Richard Biener <rguenther@suse.de>
9547 PR tree-optimization/58794
9548 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9549 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9551 2013-10-21 Richard Biener <rguenther@suse.de>
9554 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9555 to (T) X for sign-changing conversions (or no conversion).
9557 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
9559 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9561 2013-10-20 Jan Hubicka <jh@suse.cz>
9563 * config/i386/i386-tune.def: Add comment; organize into categories
9565 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9567 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9568 argument. Update function comment.
9569 (expand_set_or_movmem_via_rep): New function combining
9570 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9571 (expand_movmem_via_rep_mov): Remove.
9572 expand_setmem_via_rep_stos): Remove.
9573 (expand_movmem_epilogue): Update calls correspondingly.
9574 (expand_setmem_epilogue_via_loop): Likewise.
9576 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9577 (expand_set_or_movmem_prologue): New function combining
9578 expand_movmem_prologue and expand_setmem_prologue.
9579 (expand_movmem_prologue): Remove.
9580 (expand_setmem_prologue): Remove.
9581 (expand_set_or_movmem_constant_prologue): New function combining
9582 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9583 (expand_constant_movmem_prologue): Remove.
9584 (expand_constant_setmem_prologue): Remove.
9585 (promote_duplicated_reg): Allow vector-const0 value.
9586 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9587 and ix86_expand_setmem.
9588 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9589 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9591 2013-10-21 Diego Novillo <dnovillo@google.com>
9593 * asan.c: Include tree.h
9594 * bb-reorder.c: Likewise.
9595 * cfgcleanup.c: Likewise.
9596 * cfgloopmanip.c: Likewise.
9597 * data-streamer-in.c: Likewise.
9598 * data-streamer-out.c: Likewise.
9599 * data-streamer.c: Likewise.
9600 * dwarf2cfi.c: Likewise.
9601 * graphite-blocking.c: Likewise.
9602 * graphite-clast-to-gimple.c: Likewise.
9603 * graphite-dependences.c: Likewise.
9604 * graphite-interchange.c: Likewise.
9605 * graphite-optimize-isl.c: Likewise.
9606 * graphite-poly.c: Likewise.
9607 * graphite-scop-detection.c: Likewise.
9608 * graphite-sese-to-poly.c: Likewise.
9609 * graphite.c: Likewise.
9610 * ipa-devirt.c: Likewise.
9611 * ipa-profile.c: Likewise.
9614 * loop-init.c: Likewise.
9615 * loop-unroll.c: Likewise.
9616 * lower-subreg.c: Likewise.
9617 * lto/lto-object.c: Likewise.
9618 * recog.c: Likewise.
9619 * reginfo.c: Likewise.
9620 * tree-loop-distribution.c: Likewise.
9621 * tree-parloops.c: Likewise.
9622 * tree-ssa-strlen.c: Likewise.
9623 * tree-streamer.c: Likewise.
9624 * value-prof.c: Likewise.
9625 * target-globals.c: Likewise.
9626 * expr.h: Include tree-core.h instead of tree.h.
9627 * gimple.h: Likewise.
9628 * ipa-prop.h: Likewise.
9629 * ipa-utils.h: Likewise.
9630 * lto-streamer.h: Likewise.
9631 * streamer-hooks.h: Likewise.
9632 * ipa-reference.h: Include cgraph.h instead of tree.h.
9633 * cgraph.h: Include basic-block.h instead of tree.h.
9634 * tree-streamer.h: Do not include tree.h.
9635 * genattrtab.c (write_header): Generate inclusion of tree.h.
9636 * genautomata.c (main): Likewise.
9637 * genemit.c: Likewise.
9638 * genopinit.c: Likewise.
9639 * genoutput.c (output_prologue): Likewise.
9640 * genpeep.c: Likewise.
9642 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9644 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9646 (vec_unpacku_hi_v8hi): Likewise.
9647 (vec_unpacku_lo_v16qi): Likewise.
9648 (vec_unpacku_lo_v8hi): Likewise.
9650 2013-10-20 Jan Hubicka <jh@suse.cz>
9652 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9653 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9654 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9656 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
9658 * config/mips/mips.h (ISA_HAS_WSBH): Define.
9659 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9661 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9663 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
9666 * system.h: Undef m_slot.
9668 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9670 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9671 all elements for both endian flavors.
9673 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9676 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9677 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
9678 and SI_REG for 64bit SYSV ABI targets.
9680 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9682 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9683 to multi_reg_return. Clarify that we are skipping USEs of multiple
9684 return registers. Use bool type where appropriate.
9686 2013-10-18 Jan Hubicka <jh@suse.cz>
9688 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9690 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9691 (X86_TUNE_PUSH_MEMORY): Likewise.
9692 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9693 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9694 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9696 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9697 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9699 (ix86_option_override_internal): Update to use tune features instead
9702 2013-10-18 Cong Hou <congh@google.com>
9704 PR tree-optimization/58508
9705 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9706 statement that contains data refs with zero-step.
9708 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9710 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9711 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9712 * gimple-low.c (gimple_check_call_arg,
9713 gimple_check_call_matching_types): Move to cgraph.c.
9714 * gimple-low.h: Remove prototype.
9715 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9716 Relocate from gimple-low.c.
9717 * cgraph.h: Add prototype. Don't include basic-block.h.
9718 * gimplify.c: Add gimple-low to include list.
9719 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9720 * tree-eh.c: Add gimple-low to include list.
9721 * tree-nested.c: Likewise.
9722 * cfgexpand.c: Add tree-ssa-address.h to include list.
9724 * gimple-fold.c: Likewise.
9725 * gimple-ssa-strength-reduction.c: Likewise.
9726 * trans-mem.c: Likewise.
9727 * tree-mudflap.c: Likewise.
9728 * tree-ssa-loop-ivopts.c: Likewise.
9729 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9730 (degenerate_phi_result): Move to tree-phinodes.c.
9731 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9732 * tree-ssa-threadedge.c: Likewise.
9733 * tree-vrp.c: Likewise.
9734 * tree-phinodes.c (degenerate_phi_result): Relocate here.
9735 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9736 * tree-phinodes.h (degenerate_phi_result): Add prototype.
9737 * tree-ssa-copy.c: Include tree-ssa-dom.h.
9738 * tree-ssa-forwprop.c: Likewise.
9739 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9740 pass_data_cleanup_cfg_post_optimizing,
9741 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9742 * tree-optimize.c: Delete File.
9743 * graphite.c: Include tree-cfgcleanup.h.
9744 * passes.c: Likewise.
9745 * tree-cfg.c: Likewise.
9746 * tree-profile.c: Likewise.
9747 * tree-ssa-dse.c: Likewise.
9748 * tree-ssa-loop-ivcanon.c: Likewise.
9749 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9750 * tree-outof-ssa.c: Include sbitmap.h.
9751 * tree-ssa-live.c: Likewise.
9752 * tree-ssa-propagate.c: Likewise.
9753 * tree-ssa-structalias.c: Likewise.
9754 * tree-stdarg.c: Likewise.
9755 * Makefile.in (OBJS): Delete tree-optimize.o.
9756 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9757 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9758 * varasm.c: Include basic-block.h.
9759 * cfgloop.h: Include function.h instead of basic-block.h
9760 (bb_loop_depth): Move to cfgloop.c.
9761 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9763 2013-10-18 Teresa Johnson <tejohnson@google.com>
9765 * predict.c (probably_never_executed): Compare frequency-based
9766 count to number of training runs.
9767 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9769 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9771 * config/arm/arm.c (cortexa9_extra_costs): New table.
9772 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9774 2013-10-18 Jeff Law <law@redhat.com>
9776 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9778 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9779 (register_jump_thread): Add "registered_jump_thread" debug
9781 * dbgcnt.def (registered_jump_thread): New debug counter.
9783 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9785 * config/rs6000/rs6000.c: Include cgraph.h.
9787 2013-10-18 Teresa Johnson <tejohnson@google.com>
9789 * tree-ssa-tail-merge.c (replace_block_by): Update edge
9790 weights during merging.
9792 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9794 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
9795 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9796 * tree-ssa-operands.h: Remove prototype.
9797 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9798 * gimple.c (virtual_operand_p): Relocate from gimple.c.
9799 * gimple.h: Add prototype.
9800 * gimple-ssa.h: Include tree-ssa-operands.h.
9801 * tree-dump.c: Add tree-cfg.h to include list.
9802 * tree-ssa-alias.c: Add ipa-reference.h to include list.
9803 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9804 * config/i386/i386.c: Don't include tree-flow.h.
9805 * config/rs6000/rs6000.c: Likewise.
9807 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9809 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9811 2013-10-18 Richard Biener <rguenther@suse.de>
9813 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9814 or TYPE_UNSIGNED of integral types.
9815 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9816 NULL_TREE for zero-precision integral types.
9818 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
9820 * config/aarch64/arm_neon.h
9821 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9823 2013-10-17 Sriraman Tallam <tmsriram@google.com>
9826 * opth-gen.awk: Define target_flags_explicit.
9828 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9830 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9831 fields to the reg_addr array that describes the valid addressing
9832 mode for any register, general purpose registers, floating point
9833 registers, and Altivec registers.
9834 (FIRST_RELOAD_REG_CLASS): Likewise.
9835 (LAST_RELOAD_REG_CLASS): Likewise.
9836 (struct reload_reg_map_type): Likewise.
9837 (reload_reg_map_type): Likewise.
9838 (RELOAD_REG_VALID): Likewise.
9839 (RELOAD_REG_MULTIPLE): Likewise.
9840 (RELOAD_REG_INDEXED): Likewise.
9841 (RELOAD_REG_OFFSET): Likewise.
9842 (RELOAD_REG_PRE_INCDEC): Likewise.
9843 (RELOAD_REG_PRE_MODIFY): Likewise.
9844 (reg_addr): Likewise.
9845 (mode_supports_pre_incdec_p): New helper functions to say whether
9846 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9847 (mode_supports_pre_modify_p): Likewise.
9848 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9849 print the valid address mode bits for each mode.
9850 (rs6000_debug_print_mode): Likewise.
9851 (rs6000_debug_reg_global): Likewise.
9852 (rs6000_setup_reg_addr_masks): New function to set up the address
9853 mask bits for each type.
9854 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9855 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9856 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9857 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9858 PRE_MODIFY are supported.
9859 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9860 registers, instead of {src,dest}_av_p.
9861 (rs6000_print_options_internal): Tweak the debug output slightly.
9863 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
9865 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9868 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
9870 * tree-flow.h (struct omp_region): Move to omp-low.c.
9871 Remove omp_ prototypes and variables.
9872 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9873 (copy_var_decl): Relocate prototype from tree-flow.h.
9874 * gimple.c (copy_var_decl): Relocate from omp-low.c.
9875 * tree.h: Move prototype to omp-low.h.
9876 * omp-low.h: New File. Relocate prototypes here.
9877 * omp-low.c (struct omp_region): Make local here.
9878 (root_omp_region): Make static.
9879 (copy_var_decl) Move to gimple.c.
9880 (new_omp_region): Make static.
9881 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
9882 * tree-cfg.c: Include omp-low.h.
9883 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9884 * gimplify.c: Include omp-low.h.
9885 * tree-parloops.c: Likewise.
9887 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
9889 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9890 operands are in memory, prefer to force non-matched operand 1 to
9893 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9896 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9897 restrict TImode addresses to single indirect registers if both
9898 -mquad-memory and -mvsx-timode are used.
9899 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9900 we should emit load/store quad. Remove using %y for quad memory
9903 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9904 constraints to allow load/store quad on machines where TImode is
9905 not allowed in VSX registers. Use 'n' instead of 'F' constraint
9906 for TImode to load integer constants.
9908 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9910 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9912 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
9914 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9915 handling of STACK_REG.
9917 2013-10-17 Richard Biener <rguenther@suse.de>
9919 PR tree-optimization/58143
9920 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9922 (rewrite_to_defined_overflow): Likewise.
9923 (move_computations_dom_walker::before_dom): Rewrite stmts
9924 with undefined signed overflow that are not always executed
9925 into unsigned arithmetic.
9927 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
9930 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9931 explicit isa flag to be an options variable, instead of using
9932 global_options_set. Remove define from rs6000.h.
9933 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9935 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9936 Initialize rs6000_isa_flags_explicit.
9937 (rs6000_function_specific_save): Add gcc_options* parameter, so
9938 that the powerpc builds after the 2013-10-15 changes.
9939 (rs6000_function_specific_restore): Likewise.
9941 2013-10-16 DJ Delorie <dj@redhat.com>
9943 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9944 op is a REG before checking REGNO.
9945 (rl78_alloc_physical_registers): Verify pattern is a SET before
9948 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9950 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9952 (vec_unpacks_lo_v4sf): Likewise.
9953 (vec_unpacks_float_hi_v4si): Likewise.
9954 (vec_unpacks_float_lo_v4si): Likewise.
9955 (vec_unpacku_float_hi_v4si): Likewise.
9956 (vec_unpacku_float_lo_v4si): Likewise.
9958 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9960 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9961 (vsx_concat_v2sf): Likewise.
9963 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
9965 * config/aarch64/aarch64.md
9966 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9968 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
9970 PR tree-optimization/58697
9971 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9972 estimated_loop_iterations_int.
9973 (max_stmt_executions_int): Call get_max_loop_iterations_int.
9974 (get_max_loop_iterations_int): New. HWINT version of
9975 get_max_loop_iterations.
9976 * cfgloop.h: Add prototypes.
9977 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9978 * loop-unroll.c (decide_peel_once_rolling): Call
9979 get_estimated_loop_iterations_int.
9980 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9981 * tree-ssa-loop-niter.h: Tweak prototypes.
9983 2013-10-16 David Malcolm <dmalcolm@redhat.com>
9985 * gengtype-parse.c (struct_field_seq): Ignore access-control
9986 keywords ("public:" etc).
9988 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
9990 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9991 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9993 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
9995 * config/arm/arm.opt (mlra): New option.
9996 * config/arm/arm.c (arm_lra_p): New function.
9997 (TARGET_LRA_P): Define.
9999 2013-10-16 Paulo Matos <pmatos@broadcom.com>
10001 * tree-core.h (tree_code_name): Remove.
10002 * tree.h (get_tree_code_name): New prototype.
10003 * tree.c (tree_code_name): Make static.
10004 (get_tree_code_name): New function.
10005 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10006 tree_class_check_failed, tree_range_check_failed,
10007 tree_not_class_check_failed, omp_clause_check_failed,
10008 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10009 wrapper get_tree_code_name instead of calling tree_code_name directly.
10010 * tree-vrp.c (dump_asserts_for): Likewise.
10011 * tree-dump.c (dequeue_and_dump): Likewise.
10012 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10013 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10014 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10015 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10016 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10017 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10018 dump_gimple_omp_for): Likewise.
10019 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10020 * tree-ssa-pre.c (print_pre_expr): Likewise.
10021 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10022 * print-tree.c (print_node_brief, print_node): Likewise.
10023 * gimple.c (gimple_check_failed): Likewise.
10024 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10025 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10026 * config/mep/mep.c (mep_validate_vliw): Likewise.
10027 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10028 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10030 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10032 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10035 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
10037 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10038 (MULTILIB_MATCHES): Add multilib for -march=v8.
10040 2013-10-15 Sriraman Tallam <tmsriram@google.com>
10043 * optc-save-gen.awk: Add extra parameter to the save and restore
10045 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
10046 * tree.c (build_optimization_node): New parameter. Add extra parameter
10047 to call to cl_optimization_save.
10048 (build_target_option_node): New parameter. Add extra parameter
10049 to call to cl_target_option_save.
10050 * tree.h (build_optimization_node): New parameter.
10051 (build_target_option_node): New parameter.
10052 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10053 build_optimization_node and build_target_option_node.
10054 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10055 (handle_pragma_push_options): Ditto.
10056 * toplev.c (process_options): Ditto.
10057 * opts.c (init_options_struct): Check for opts_set non-null.
10058 * target.def (target_option.save): New parameter.
10059 (target_option.restore): New parameter.
10060 * tm.texi: Generate.
10061 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10062 (ix86_pragma_target_parse): Ditto.
10063 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10065 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10066 to build_optimization_node and build_target_option_node.
10067 (rs6000_valid_attribute_p): Ditto.
10068 (rs6000_pragma_target_parse): Ditto.
10069 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10071 * config/i386/i386.h:
10072 TARGET_64BIT_P: New Macro
10073 TARGET_MMX_P: New Macro.
10074 TARGET_3DNOW_P: New Macro.
10075 TARGET_3DNOW_A_P: New Macro.
10076 TARGET_SSE_P: New Macro.
10077 TARGET_SSE2_P: New Macro.
10078 TARGET_SSE3_P: New Macro.
10079 TARGET_SSSE3_P: New Macro.
10080 TARGET_SSE4_1_P: New Macro.
10081 TARGET_SSE4_2_P: New Macro.
10082 TARGET_AVX_P: New Macro.
10083 TARGET_AVX2_P: New Macro.
10084 TARGET_AVX512F_P: New Macro.
10085 TARGET_AVX512PF_P: New Macro.
10086 TARGET_AVX512ER_P: New Macro.
10087 TARGET_AVX512CD_P: New Macro.
10088 TARGET_FMA_P: New Macro.
10089 TARGET_SSE4A_P: New Macro.
10090 TARGET_FMA4_P: New Macro.
10091 TARGET_XOP_P: New Macro.
10092 TARGET_LWP_P: New Macro.
10093 TARGET_ABM_P: New Macro.
10094 TARGET_BMI_P: New Macro.
10095 TARGET_BMI2_P: New Macro.
10096 TARGET_LZCNT_P: New Macro.
10097 TARGET_TBM_P: New Macro.
10098 TARGET_POPCNT_P: New Macro.
10099 TARGET_SAHF_P: New Macro.
10100 TARGET_MOVBE_P: New Macro.
10101 TARGET_CRC32_P: New Macro.
10102 TARGET_AES_P: New Macro.
10103 TARGET_PCLMUL_P: New Macro.
10104 TARGET_CMPXCHG16B_P: New Macro.
10105 TARGET_FSGSBASE_P: New Macro.
10106 TARGET_RDRND_P: New Macro.
10107 TARGET_F16C_P: New Macro.
10108 TARGET_RTM_P: New Macro.
10109 TARGET_HLE_P: New Macro.
10110 TARGET_RDSEED_P: New Macro.
10111 TARGET_PRFCHW_P: New Macro.
10112 TARGET_ADX_P: New Macro.
10113 TARGET_FXSR_P: New Macro.
10114 TARGET_XSAVE_P: New Macro.
10115 TARGET_XSAVEOPT_P: New Macro.
10116 TARGET_LP64_P: New Macro.
10117 TARGET_X32_P: New Macro.
10118 TARGET_FPMATH_DEFAULT_P: New Macro.
10119 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10120 * config/i386/i386.c (ix86_option_override_internal): New parameters.
10122 Change ix86_tune_string to access opts->x_ix86_tune_string.
10123 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10124 Change ix86_arch_string to access opts->x_ix86_arch_string.
10125 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10126 Change ix86_pmode to access opts->x_ix86_pmode.
10127 Change ix86_abi to access opts->x_ix86_abi.
10128 Change ix86_cmodel to access opts->x_ix86_cmodel.
10129 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10130 Change ix86_isa_flags_explicit to access
10131 opts->x_ix86_isa_flags_explicit.
10132 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10133 Change ix86_regparm to access opts->x_ix86_regparm.
10134 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10135 Change ix86_preferred_stack_boundary_arg to access
10136 opts->x_ix86_preferred_stack_boundary_arg.
10137 Change ix86_force_align_arg_pointer to access
10138 opts->x_ix86_force_align_arg_pointer.
10139 Change ix86_incoming_stack_boundar_arg to access
10140 opts->x_ix86_incoming_stack_boundar_arg.
10141 Change ix86_fpmath to access opts->x_ix86_fpmath.
10142 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10143 Change ix86_recip_name to access opts->x_ix86_recip_name.
10144 Change ix86_stack_protector_guard to access
10145 opts->x_ix86_stack_protector_guard.
10146 Change ix86_tune_memcpy_strategy to access
10147 opts->x_ix86_tune_memcpy_strategy.
10148 Change ix86_tune_memset_strategy to access
10149 opts->x_ix86_tune_memset_strategy.
10150 Change global_options to access opts.
10151 Change global_options_set to access opts_set.
10152 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10153 Change TARGET_MMX to TARGET_MMX_P (opts->...).
10154 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10155 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10156 Change TARGET_SSE to TARGET_SSE_P (opts->...).
10157 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10158 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10159 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10160 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10161 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10162 Change TARGET_AVX to TARGET_AVX_P (opts->...).
10163 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10164 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10165 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10166 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10167 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10168 Change TARGET_FMA to TARGET_FMA_P (opts->...).
10169 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10170 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10171 Change TARGET_XOP to TARGET_XOP_P (opts->...).
10172 Change TARGET_LWP to TARGET_LWP_P (opts->...).
10173 Change TARGET_ABM to TARGET_ABM_P (opts->...).
10174 Change TARGET_BMI to TARGET_BMI_P (opts->...).
10175 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10176 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10177 Change TARGET_TBM to TARGET_TBM_P (opts->...).
10178 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10179 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10180 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10181 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10182 Change TARGET_AES to TARGET_AES_P (opts->...).
10183 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10184 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10185 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10186 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10187 Change TARGET_F16C to TARGET_F16C_P (opts->...).
10188 Change TARGET_RTM to TARGET_RTM_P (opts->...).
10189 Change TARGET_HLE to TARGET_HLE_P (opts->...).
10190 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10191 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10192 Change TARGET_ADX to TARGET_ADX_P (opts->...).
10193 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10194 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10195 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10196 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10197 Change TARGET_X32 to TARGET_X32_P (opts->...).
10198 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10199 Change TARGET_FLOAT_RETURNS_IN_80387 to
10200 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10201 (ix86_function_specific_save): New parameter. Use opts-> fields
10202 to replace global fields.
10203 (ix86_function_specific_restore): Ditto.
10204 (ix86_valid_target_attribute_inner_p): New parameters.
10205 Fix recursive call.
10206 Fix call to ix86_handle_option and set_option.
10207 (ix86_valid_target_attribute_tree): New parameters.
10208 Change global_options to access opts.
10209 Change global_options_set to access opts_set.
10210 Fix call to ix86_valid_target_attribute_inner_p.
10211 Change ix86_tune_string to access opts->x_ix86_tune_string.
10212 Change ix86_arch_string to access opts->x_ix86_arch_string.
10213 Change ix86_fpmath to access opts->x_ix86_fpmath
10214 Fix call to ix86_option_override_internal.
10215 Fix call to ix86_add_new_builtins.
10216 Fix calls to build_optimization_node and build_target_option_node.
10217 (ix86_valid_target_attribute_p): Remove access to global_options.
10218 Use new gcc_options structure func_options.
10219 Fix call to ix86_valid_target_attribute_tree.
10220 Fix call to build_optimization_node.
10221 (get_builtin_code_for_version): Fix call to
10222 ix86_valid_target_attribute_tree.
10224 2013-10-15 David Malcolm <dmalcolm@redhat.com>
10226 * Makefile.in (PICFLAG): New.
10227 (enable_host_shared): New.
10228 (INTERNAL_CFLAGS): Use PICFLAG.
10229 (LIBIBERTY): Use pic build of libiberty.a if configured with
10230 --enable-host-shared.
10231 * configure.ac: Add --enable-host-shared, setting up new
10233 * configure: Regenerate.
10234 * doc/install.texi (--enable-shared): Add note contrasting it with ...
10235 (--enable-host-shared): New option.
10237 2013-10-15 Richard Biener <rguenther@suse.de>
10239 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10240 for built-in functions.
10242 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
10244 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10245 (optimize_range_tests_1): New function,
10246 extracted from optimize_range_tests.
10247 (optimize_range_tests_xor): Similarly.
10248 (optimize_range_tests_diff): New function.
10249 (optimize_range_tests): Use optimize_range_tests_1.
10251 2013-10-15 Cong Hou <congh@google.com>
10253 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10254 requirement of the reduction pattern so that one operand of the
10255 reduction operation can come from outside of the loop.
10257 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10259 * config/arm/neon-schedgen.ml: Remove.
10260 * config/arm/cortex-a9-neon.md: Remove comment regarding
10263 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10265 * config/arm/types: Remove old neon types.
10267 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10269 * config/arm/cortex-a7.md
10270 (cortex_a7_neon_type): New.
10271 (cortex_a7_neon_mul): Update for new types.
10272 (cortex_a7_neon_mla): Likewise.
10273 (cortex_a7_neon): Likewise.
10275 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10277 * config/arm/cortex-a15-neon.md
10278 (cortex_a15_neon_type): New,
10280 (cortex_a15_neon_int_1): Remove.
10281 (cortex_a15_neon_int_2): Likewise.
10282 (cortex_a15_neon_int_3): Likewise.
10283 (cortex_a15_neon_int_4): Likewise.
10284 (cortex_a15_neon_int_5): Likewise.
10285 (cortex_a15_neon_vqneg_vqabs): Likewise.
10286 (cortex_a15_neon_vmov): Likewise.
10287 (cortex_a15_neon_vaba): Likewise.
10288 (cortex_a15_neon_vaba_qqq): Likewise.
10289 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10290 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10291 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10293 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10294 (cortex_a15_neon_mla_qqq_8_16): Likewise.
10295 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10296 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10297 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10298 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10299 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10300 (cortex_a15_neon_shift_1): Likewise.
10301 (cortex_a15_neon_shift_2): Likewise.
10302 (cortex_a15_neon_shift_3): Likewise.
10303 (cortex_a15_neon_vshl_ddd): Likewise.
10304 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10305 (cortex_a15_neon_vsra_vrsra): Likewise.
10306 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10307 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10308 (cortex_a15_neon_bp_3cycle): Likewise.
10309 (cortex_a15_neon_ldm_2): Likewise.
10310 (cortex_a15_neon_stm_2): Likewise.
10311 (cortex_a15_neon_mcr): Likewise.
10312 (cortex_a15_neon_mrc): Likewise.
10313 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10314 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10315 (cortex_a15_neon_fp_vmul_ddd): Likewise.
10316 (cortex_a15_neon_fp_vmul_qqd): Likewise.
10317 (cortex_a15_neon_fp_vmla_ddd): Likewise.
10318 (cortex_a15_neon_fp_vmla_qqq): Likewise.
10319 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10320 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10321 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10322 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10323 (cortex_a15_neon_bp_simple): Likewise.
10324 (cortex_a15_neon_bp_2cycle): Likewise.
10325 (cortex_a15_neon_bp_3cycle): Likewise.
10326 (cortex_a15_neon_vld1_1_2_regs): Likewise.
10327 (cortex_a15_neon_vld1_3_4_regs): Likewise.
10328 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10329 (cortex_a15_neon_vld2_4_regs): Likewise.
10330 (cortex_a15_neon_vld3_vld4): Likewise.
10331 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10332 (cortex_a15_neon_vst1_3_4_regs): Likewise.
10333 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10334 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10335 (cortex_a15_neon_vst3_vst4): Rename to...
10336 (cortex_a15_neon_vst4): This, update for new attributes.
10337 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10338 (cortex_a15_neon_vld3_vld4_lane): Likewise.
10339 (cortex_a15_neon_vst1_vst2_lane): Likewise.
10340 (cortex_a15_neon_vst3_vst4_lane): Likewise.
10341 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10342 (cortex_a15_neon_ldm_2): Likewise.
10343 (cortex_a15_neon_stm_2): Likewise.
10344 (cortex_a15_neon_mcr): Likewise.
10345 (cortex_a15_neon_mcr_2_mcrr): Likewise.
10346 (cortex_a15_neon_mrc): Likewise.
10347 (cortex_a15_neon_mrrc): Likewise.
10349 (cortex_a15_neon_abd): New.
10350 (cortex_a15_neon_abd_q): Likewise.
10351 (cortex_a15_neon_aba): Likewise.
10352 (cortex_a15_neon_aba_q): Likewise.
10353 (cortex_a15_neon_acc): Likewise.
10354 (cortex_a15_neon_acc_q): Likewise.
10355 (cortex_a15_neon_arith_basic): Likewise.
10356 (cortex_a15_neon_arith_complex): Likewise.
10357 (cortex_a15_neon_multiply): Likewise.
10358 (cortex_a15_neon_multiply_q): Likewise.
10359 (cortex_a15_neon_mla): Likewise.
10360 (cortex_a15_neon_mla_q): Likewise.
10361 (cortex_a15_neon_sat_mla_long): Likewise.
10362 (cortex_a15_neon_shift_acc): Likewise.
10363 (cortex_a15_neon_shift_imm_basic): Likewise.
10364 (cortex_a15_neon_shift_imm_complex): Likewise.
10365 (cortex_a15_neon_shift_reg_basic): Likewise.
10366 (cortex_a15_neon_shift_reg_basic_q): Likewise.
10367 (cortex_a15_neon_shift_reg_complex): Likewise.
10368 (cortex_a15_neon_shift_reg_complex_q): Likewise.
10369 (cortex_a15_neon_fp_negabs): Likewise
10370 (cortex_a15_neon_fp_arith): Likewise
10371 (cortex_a15_neon_fp_arith_q): Likewise
10372 (cortex_a15_neon_fp_cvt_int): Likewise
10373 (cortex_a15_neon_fp_cvt_int_q): Likewise
10374 (cortex_a15_neon_fp_cvt_16): Likewise
10375 (cortex_a15_neon_fp_mul): Likewise
10376 (cortex_a15_neon_fp_mul_q): Likewise
10377 (cortex_a15_neon_fp_mla): Likewise
10378 (cortex_a15_neon_fp_mla_q): Likewise
10379 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10380 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10381 (cortex_a15_neon_bitops): Likewise.
10382 (cortex_a15_neon_bitops_q): Likewise.
10383 (cortex_a15_neon_from_gp): Likewise.
10384 (cortex_a15_neon_from_gp_q): Likewise.
10385 (cortex_a15_neon_tbl3_tbl4): Likewise.
10386 (cortex_a15_neon_zip_q): Likewise.
10387 (cortex_a15_neon_to_gp): Likewise.
10388 (cortex_a15_neon_load_a): Likewise.
10389 (cortex_a15_neon_load_b): Likewise.
10390 (cortex_a15_neon_load_c): Likewise.
10391 (cortex_a15_neon_load_d): Likewise.
10392 (cortex_a15_neon_load_e): Likewise.
10393 (cortex_a15_neon_load_f): Likewise.
10394 (cortex_a15_neon_store_a): Likewise.
10395 (cortex_a15_neon_store_b): Likewise.
10396 (cortex_a15_neon_store_c): Likewise.
10397 (cortex_a15_neon_store_d): Likewise.
10398 (cortex_a15_neon_store_e): Likewise.
10399 (cortex_a15_neon_store_f): Likewise.
10400 (cortex_a15_neon_store_g): Likewise.
10401 (cortex_a15_neon_store_h): Likewise.
10402 (cortex_a15_vfp_to_from_gp): Likewise.
10404 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10406 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10408 (cortex_a9_neon_vshl_ddd): Remove.
10409 (cortex_a9_neon_vst3_vst4): Likewise.
10410 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10412 (cortex_a9_neon_bit_ops_q): New.
10414 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10415 (cortex_a9_neon_int_2): Likewise.
10416 (cortex_a9_neon_int_3): Likewise.
10417 (cortex_a9_neon_int_4): Likewise.
10418 (cortex_a9_neon_int_5): Likewise.
10419 (cortex_a9_neon_vqneg_vqabs): Likewise.
10420 (cortex_a9_neon_vmov): Likewise.
10421 (cortex_a9_neon_vaba): Likewise.
10422 (cortex_a9_neon_vaba_qqq): Likewise.
10423 (cortex_a9_neon_shift_1): Likewise.
10424 (cortex_a9_neon_shift_2): Likewise.
10425 (cortex_a9_neon_shift_3): Likewise.
10426 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10427 (cortex_a9_neon_vsra_vrsra): Likewise.
10428 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10429 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10430 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10432 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10433 (cortex_a9_neon_mla_qqq_8_16): Likewise.
10434 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10436 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10437 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10438 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10439 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10440 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10441 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10442 (cortex_a9_neon_fp_vsum): Likewise.
10443 (cortex_a9_neon_fp_vmul_ddd): Likewise.
10444 (cortex_a9_neon_fp_vmul_qqd): Likewise.
10445 (cortex_a9_neon_fp_vmla_ddd): Likewise.
10446 (cortex_a9_neon_fp_vmla_qqq): Likewise.
10447 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10448 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10449 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10450 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10451 (cortex_a9_neon_bp_simple): Likewise.
10452 (cortex_a9_neon_bp_2cycle): Likewise.
10453 (cortex_a9_neon_bp_3cycle): Likewise.
10454 (cortex_a9_neon_ldr): Likewise.
10455 (cortex_a9_neon_str): Likewise.
10456 (cortex_a9_neon_vld1_1_2_regs): Likewise.
10457 (cortex_a9_neon_vld1_3_4_regs): Likewise.
10458 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10459 (cortex_a9_neon_vld2_4_regs): Likewise.
10460 (cortex_a9_neon_vld3_vld4): Likewise.
10461 (cortex_a9_neon_vld1_vld2_lane): Likewise.
10462 (cortex_a9_neon_vld3_vld4_lane): Likewise.
10463 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10464 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10465 (cortex_a9_neon_vst1_3_4_regs): Likewise.
10466 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10467 (cortex_a9_neon_vst1_vst2_lane): Likewise.
10468 (cortex_a9_neon_vst3_vst4_lane): Likewise.
10469 (cortex_a9_neon_mcr): Likewise.
10470 (cortex_a9_neon_mcr_2_mcrr): Likewise.
10471 (cortex_a9_neon_mrc): Likewise.
10472 (cortex_a9_neon_mrrc): Likewise.
10474 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10476 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10478 (cortex_a8_neon_vshl_ddd): Remove.
10479 (cortex_a8_neon_vst3_vst4): Likewise.
10480 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10482 (cortex_a8_neon_bit_ops_q): New.
10484 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10485 (cortex_a8_neon_int_2): Likewise..
10486 (cortex_a8_neon_int_3): Likewise.
10487 (cortex_a8_neon_int_5): Likewise.
10488 (cortex_a8_neon_vqneg_vqabs): Likewise.
10489 (cortex_a8_neon_int_4): Likewise.
10490 (cortex_a8_neon_vaba): Likewise.
10491 (cortex_a8_neon_vaba_qqq): Likewise.
10492 (cortex_a8_neon_shift_1): Likewise.
10493 (cortex_a8_neon_shift_2): Likewise.
10494 (cortex_a8_neon_shift_3): Likewise.
10495 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10496 (cortex_a8_neon_vsra_vrsra): Likewise.
10497 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10498 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10499 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10501 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10502 (cortex_a8_neon_mla_qqq_8_16): Likewise.
10503 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10505 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10506 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10507 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10508 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10509 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10510 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10511 (cortex_a8_neon_fp_vsum): Likewise.
10512 (cortex_a8_neon_fp_vmul_ddd): Likewise.
10513 (cortex_a8_neon_fp_vmul_qqd): Likewise.
10514 (cortex_a8_neon_fp_vmla_ddd): Likewise.
10515 (cortex_a8_neon_fp_vmla_qqq): Likewise.
10516 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10517 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10518 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10519 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10520 (cortex_a8_neon_bp_simple): Likewise.
10521 (cortex_a8_neon_bp_2cycle): Likewise.
10522 (cortex_a8_neon_bp_3cycle): Likewise.
10523 (cortex_a8_neon_ldr): Likewise.
10524 (cortex_a8_neon_str): Likewise.
10525 (cortex_a8_neon_vld1_1_2_regs): Likewise.
10526 (cortex_a8_neon_vld1_3_4_regs): Likewise.
10527 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10528 (cortex_a8_neon_vld2_4_regs): Likewise.
10529 (cortex_a8_neon_vld3_vld4): Likewise.
10530 (cortex_a8_neon_vld1_vld2_lane): Likewise.
10531 (cortex_a8_neon_vld3_vld4_lane): Likewise.
10532 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10533 (cortex_a8_neon_vst1_3_4_regs): Likewise.
10534 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10535 (cortex_a8_neon_vst1_vst2_lane): Likewise.
10536 (cortex_a8_neon_vst3_vst4_lane): Likewise.
10537 (cortex_a8_neon_mcr): Likewise.
10538 (cortex_a8_neon_mcr_2_mcrr): Likewise.
10539 (cortex_a8_neon_mrc): Likewise.
10540 (cortex_a8_neon_mrrc): Likewise.
10542 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10544 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10546 * config/aarch64/aarch64-simd.md (neon_type): Remove.
10547 (aarch64_simd_dup<mode>): Add "type" attribute.
10548 (aarch64_dup_lane<mode>): Likewise.
10549 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10550 (*aarch64_simd_mov<mode>): Likewise.
10551 (aarch64_simd_mov_from_<mode>low): Likewise.
10552 (aarch64_simd_mov_from_<mode>high): Likewise.
10553 (orn<mode>3): Likewise.
10554 (bic<mode>3): Likewise.
10555 (add<mode>3): Likewise.
10556 (sub<mode>3): Likewise.
10557 (mul<mode>3): Likewise.
10558 (*aarch64_mul3_elt<mode>): Likewise.
10559 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10560 (*aarch64_mul3_elt_to_128df): Likewise.
10561 (*aarch64_mul3_elt_to_64v2df): Likewise.
10562 (neg<mode>2): Likewise.
10563 (abs<mode>2): Likewise.
10564 (abd<mode>_3): Likewise.
10565 (aba<mode>_3): Likewise.
10566 (fabd<mode>_3): Likewise.
10567 (*fabd_scalar<mode>3): Likewise.
10568 (and<mode>3): Likewise.
10569 (ior<mode>3): Likewise.
10570 (xor<mode>3): Likewise.
10571 (one_cmpl<mode>2): Likewise.
10572 (aarch64_simd_vec_set<mode>): Likewise.
10573 (aarch64_simd_lshr<mode>): Likewise.
10574 (aarch64_simd_ashr<mode>): Likewise.
10575 (aarch64_simd_imm_shl<mode>): Likewise.
10576 (aarch64_simd_reg_sshl<mode): Likewise.
10577 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10578 (aarch64_simd_reg_shl<mode>_signed): Likewise.
10579 (aarch64_simd_vec_setv2di): Likewise.
10580 (aarch64_simd_vec_set<mode>): Likewise.
10581 (aarch64_mla<mode>): Likewise.
10582 (*aarch64_mla_elt<mode>): Likewise.
10583 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10584 (aarch64_mls<mode>): Likewise.
10585 (*aarch64_mls_elt<mode>): Likewise.
10586 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10587 (<su><maxmin><mode>3): Likewise.
10588 (move_lo_quad_<mode>): Likewise.
10589 (aarch64_simd_move_hi_quad_<mode>): Likewise.
10590 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10591 (vec_pack_trunc_<mode>): Likewise.
10592 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10593 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10594 (*aarch64_<su>mlal_lo<mode>): Likewise.
10595 (*aarch64_<su>mlal_hi<mode>): Likewise.
10596 (*aarch64_<su>mlsl_lo<mode>): Likewise.
10597 (*aarch64_<su>mlsl_hi<mode>): Likewise.
10598 (*aarch64_<su>mlal<mode>): Likewise.
10599 (*aarch64_<su>mlsl<mode>): Likewise.
10600 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10601 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10602 (add<mode>3): Likewise.
10603 (sub<mode>3): Likewise.
10604 (mul<mode>3): Likewise.
10605 (div<mode>3): Likewise.
10606 (neg<mode>2): Likewise.
10607 (abs<mode>2): Likewise.
10608 (fma<mode>4): Likewise.
10609 (*aarch64_fma4_elt<mode>): Likewise.
10610 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10611 (*aarch64_fma4_elt_to_128df): Likewise.
10612 (*aarch64_fma4_elt_to_64v2df): Likewise.
10613 (fnma<mode>4): Likewise.
10614 (*aarch64_fnma4_elt<mode>): Likewise.
10615 (*aarch64_fnma4_elt_<vswap_width_name><mode>
10616 (*aarch64_fnma4_elt_to_128df): Likewise.
10617 (*aarch64_fnma4_elt_to_64v2df): Likewise.
10618 (<frint_pattern><mode>2): Likewise.
10619 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10620 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10621 (vec_unpacks_lo_v4sf): Likewise.
10622 (aarch64_float_extend_lo_v2df): Likewise.
10623 (vec_unpacks_hi_v4sf): Likewise.
10624 (aarch64_float_truncate_lo_v2sf): Likewise.
10625 (aarch64_float_truncate_hi_v4sf): Likewise.
10626 (aarch64_vmls<mode>): Likewise.
10627 (<su><maxmin><mode>3): Likewise.
10628 (<maxmin_uns><mode>3): Likewise.
10629 (reduc_<sur>plus_<mode>): Likewise.
10630 (reduc_<sur>plus_v2di): Likewise.
10631 (reduc_<sur>plus_v2si): Likewise.
10632 (reduc_<sur>plus_<mode>): Likewise.
10633 (aarch64_addpv4sf): Likewise.
10634 (clz<mode>2): Likewise.
10635 (reduc_<maxmin_uns>_<mode>): Likewise.
10636 (reduc_<maxmin_uns>_v2di): Likewise.
10637 (reduc_<maxmin_uns>_v2si): Likewise.
10638 (reduc_<maxmin_uns>_<mode>): Likewise.
10639 (reduc_<maxmin_uns>_v4sf): Likewise.
10640 (aarch64_simd_bsl<mode>_internal): Likewise.
10641 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10642 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10643 (aarch64_get_lane<mode>): Likewise.
10644 (*aarch64_combinez<mode>): Likewise.
10645 (aarch64_combine<mode>): Likewise.
10646 (aarch64_simd_combine<mode>): Likewise.
10647 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10648 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10649 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10650 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10651 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10652 (aarch64_<sur>h<addsub><mode>): Likewise.
10653 (aarch64_<sur><addsub>hn<mode>): Likewise.
10654 (aarch64_<sur><addsub>hn2<mode>): Likewise.
10655 (aarch64_pmul<mode>): Likewise.
10656 (aarch64_<su_optab><optab><mode>): Likewise.
10657 (aarch64_<sur>qadd<mode>): Likewise.
10658 (aarch64_sqmovun<mode>): Likewise.
10659 (aarch64_<sur>qmovn<mode>): Likewise.
10660 (aarch64_s<optab><mode>): Likewise.
10661 (aarch64_sq<r>dmulh<mode>): Likewise.
10662 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10663 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10664 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10665 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10666 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10667 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10668 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10669 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10670 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10671 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10672 (aarch64_sqdmull<mode>): Likewise.
10673 (aarch64_sqdmull_lane<mode>_internal): Likewise.
10674 (aarch64_sqdmull_n<mode>): Likewise.
10675 (aarch64_sqdmull2<mode>_internal): Likewise.
10676 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10677 (aarch64_sqdmull2_n<mode>_internal): Likewise.
10678 (aarch64_<sur>shl<mode>): Likewise.
10679 (aarch64_<sur>q<r>shl<mode>
10680 (aarch64_<sur>shll_n<mode>): Likewise.
10681 (aarch64_<sur>shll2_n<mode>): Likewise.
10682 (aarch64_<sur>shr_n<mode>): Likewise.
10683 (aarch64_<sur>sra_n<mode>): Likewise.
10684 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10685 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10686 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10687 (aarch64_cm<optab><mode>): Likewise.
10688 (aarch64_cm<optab>di): Likewise.
10689 (aarch64_cm<optab><mode>): Likewise.
10690 (aarch64_cm<optab>di): Likewise.
10691 (aarch64_cmtst<mode>): Likewise.
10692 (aarch64_cmtstdi): Likewise.
10693 (aarch64_cm<optab><mode>): Likewise.
10694 (*aarch64_fac<optab><mode>): Likewise.
10695 (aarch64_addp<mode>): Likewise.
10696 (aarch64_addpdi): Likewise.
10697 (sqrt<mode>2): Likewise.
10698 (vec_load_lanesoi<mode>): Likewise.
10699 (vec_store_lanesoi<mode>): Likewise.
10700 (vec_load_lanesci<mode>): Likewise.
10701 (vec_store_lanesci<mode>): Likewise.
10702 (vec_load_lanesxi<mode>): Likewise.
10703 (vec_store_lanesxi<mode>): Likewise.
10704 (*aarch64_mov<mode>): Likewise.
10705 (aarch64_ld2<mode>_dreg): Likewise.
10706 (aarch64_ld2<mode>_dreg): Likewise.
10707 (aarch64_ld3<mode>_dreg): Likewise.
10708 (aarch64_ld3<mode>_dreg): Likewise.
10709 (aarch64_ld4<mode>_dreg): Likewise.
10710 (aarch64_ld4<mode>_dreg): Likewise.
10711 (aarch64_tbl1<mode>): Likewise.
10712 (aarch64_tbl2v16qi): Likewise.
10713 (aarch64_combinev16qi): Likewise.
10714 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10715 (aarch64_st2<mode>_dreg): Likewise.
10716 (aarch64_st2<mode>_dreg): Likewise.
10717 (aarch64_st3<mode>_dreg): Likewise.
10718 (aarch64_st3<mode>_dreg): Likewise.
10719 (aarch64_st4<mode>_dreg): Likewise.
10720 (aarch64_st4<mode>_dreg): Likewise.
10721 (*aarch64_simd_ld1r<mode>): Likewise.
10722 (aarch64_frecpe<mode>): Likewise.
10723 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10724 (aarch64_frecps<mode>): Likewise.
10726 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10728 * config/arm/iterators.md (V_elem_ch): New.
10730 (VQH_type): Likewise.
10731 * config/arm/arm.md (is_neon_type): New.
10732 (conds): Use is_neon_type.
10733 (anddi3_insn): Update type attribute.
10734 (xordi3_insn): Likewise.
10735 (one_cmpldi2): Likewise.
10736 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10737 * config/arm/neon.md (neon_mov): Update type attribute.
10738 (*movmisalign<mode>_neon_store): Likewise.
10739 (*movmisalign<mode>_neon_load): Likewise.
10740 (vec_set<mode>_internal): Likewise.
10741 (vec_set<mode>_internal): Likewise.
10742 (vec_setv2di_internal): Likewise.
10743 (vec_extract<mode>): Likewise.
10744 (vec_extract<mode>): Likewise.
10745 (vec_extractv2di): Likewise.
10746 (*add<mode>3_neon): Likewise.
10747 (adddi3_neon): Likewise.
10748 (*sub<mode>3_neon): Likewise.
10749 (subdi3_neon): Likewise.
10750 (fma<VCVTF:mode>4): Likewise.
10751 (fma<VCVTF:mode>4_intrinsic): Likewise.
10752 (*fmsub<VCVTF:mode>4): Likewise.
10753 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10754 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10755 (ior<mode>3): Likewise.
10756 (and<mode>3): Likewise.
10757 (orn<mode>3_neon): Likewise.
10758 (orndi3_neon): Likewise.
10759 (bic<mode>3_neon): Likewise.
10760 (bicdi3_neon): Likewise.
10761 (xor<mode>3): Likewise.
10762 (one_cmpl<mode>2): Likewise.
10763 (abs<mode>2): Likewise.
10764 (neg<mode>2): Likewise.
10765 (negdi2_neon): Likewise.
10766 (*umin<mode>3_neon): Likewise.
10767 (*umax<mode>3_neon): Likewise.
10768 (*smin<mode>3_neon): Likewise.
10769 (*smax<mode>3_neon): Likewise.
10770 (vashl<mode>3): Likewise.
10771 (vashr<mode>3_imm): Likewise.
10772 (vlshr<mode>3_imm): Likewise.
10773 (ashl<mode>3_signed): Likewise.
10774 (ashl<mode>3_unsigned): Likewise.
10775 (neon_load_count): Likewise.
10776 (ashldi3_neon_noclobber): Likewise.
10777 (ashldi3_neon): Likewise.
10778 (signed_shift_di3_neon): Likewise.
10779 (unsigned_shift_di3_neon): Likewise.
10780 (ashrdi3_neon_imm_noclobber): Likewise.
10781 (lshrdi3_neon_imm_noclobber): Likewise.
10782 (<shift>di3_neon): Likewise.
10783 (widen_ssum<mode>3): Likewise.
10784 (widen_usum<mode>3): Likewise.
10785 (quad_halves_<code>v4si): Likewise.
10786 (quad_halves_<code>v4sf): Likewise.
10787 (quad_halves_<code>v8hi): Likewise.
10788 (quad_halves_<code>v16qi): Likewise.
10789 (reduc_splus_v2di): Likewise.
10790 (neon_vpadd_internal<mode>): Likewise.
10791 (neon_vpsmin<mode>): Likewise.
10792 (neon_vpsmax<mode>): Likewise.
10793 (neon_vpumin<mode>): Likewise.
10794 (neon_vpumax<mode>): Likewise.
10795 (*ss_add<mode>_neon): Likewise.
10796 (*us_add<mode>_neon): Likewise.
10797 (*ss_sub<mode>_neon): Likewise.
10798 (*us_sub<mode>_neon): Likewise.
10799 (neon_vadd<mode>_unspec): Likewise.
10800 (neon_vaddl<mode>): Likewise.
10801 (neon_vaddw<mode>): Likewise.
10802 (neon_vhadd<mode>): Likewise.
10803 (neon_vqadd<mode>): Likewise.
10804 (neon_vaddhn<mode>): Likewise.
10805 (neon_vmul<mode>): Likewise.
10806 (neon_vfms<VCVTF:mode>): Likewise.
10807 (neon_vmlal<mode>): Likewise.
10808 (neon_vmls<mode>): Likewise.
10809 (neon_vmlsl<mode>): Likewise.
10810 (neon_vqdmulh<mode>): Likewise.
10811 (neon_vqdmlal<mode>): Likewise.
10812 (neon_vqdmlsl<mode>): Likewise.
10813 (neon_vmull<mode>): Likewise.
10814 (neon_vqdmull<mode>): Likewise.
10815 (neon_vsub<mode>_unspec): Likewise.
10816 (neon_vsubl<mode>): Likewise.
10817 (neon_vsubw<mode>): Likewise.
10818 (neon_vqsub<mode>): Likewise.
10819 (neon_vhsub<mode>): Likewise.
10820 (neon_vsubhn<mode>): Likewise.
10821 (neon_vceq<mode>): Likewise.
10822 (neon_vcge<mode>): Likewise.
10823 (neon_vcgeu<mode>): Likewise.
10824 (neon_vcgt<mode>): Likewise.
10825 (neon_vcgtu<mode>): Likewise.
10826 (neon_vcle<mode>): Likewise.
10827 (neon_vclt<mode>): Likewise.
10828 (neon_vcage<mode>): Likewise.
10829 (neon_vcagt<mode>): Likewise.
10830 (neon_vtst<mode>): Likewise.
10831 (neon_vabd<mode>): Likewise.
10832 (neon_vabdl<mode>): Likewise.
10833 (neon_vaba<mode>): Likewise.
10834 (neon_vabal<mode>): Likewise.
10835 (neon_vmax<mode>): Likewise.
10836 (neon_vmin<mode>): Likewise.
10837 (neon_vpaddl<mode>): Likewise.
10838 (neon_vpadal<mode>): Likewise.
10839 (neon_vpmax<mode>): Likewise.
10840 (neon_vpmin<mode>): Likewise.
10841 (neon_vrecps<mode>): Likewise.
10842 (neon_vrsqrts<mode>): Likewise.
10843 (neon_vqabs<mode>): Likewise.
10844 (neon_vqneg<mode>): Likewise.
10845 (neon_vcls<mode>): Likewise.
10846 (clz<mode>2): Likewise.
10847 (popcount<mode>2): Likewise.
10848 (neon_vrecpe<mode>): Likewise.
10849 (neon_vrsqrte<mode>): Likewise.
10850 (neon_vget_lane<mode>_sext_internal): Likewise.
10851 (neon_vget_lane<mode>_zext_internal): Likewise.
10852 (neon_vdup_n<mode>): Likewise.
10853 (neon_vdup_n<mode>): Likewise.
10854 (neon_vdup_nv2di): Likewise.
10855 (neon_vdup_lane<mode>_interal): Likewise.
10856 (*neon_vswp<mode>): Likewise.
10857 (neon_vcombine<mode>): Likewise.
10858 (float<mode><V_cvtto>2): Likewise.
10859 (floatuns<mode><V_cvtto>2): Likewise.
10860 (fix_trunc<mode><V_cvtto>2): Likewise.
10861 (fixuns_trunc<mode><V_cvtto>2
10862 (neon_vcvt<mode>): Likewise.
10863 (neon_vcvt<mode>): Likewise.
10864 (neon_vcvtv4sfv4hf): Likewise.
10865 (neon_vcvtv4hfv4sf): Likewise.
10866 (neon_vcvt_n<mode>): Likewise.
10867 (neon_vcvt_n<mode>): Likewise.
10868 (neon_vmovn<mode>): Likewise.
10869 (neon_vqmovn<mode>): Likewise.
10870 (neon_vqmovun<mode>): Likewise.
10871 (neon_vmovl<mode>): Likewise.
10872 (neon_vmul_lane<mode>): Likewise.
10873 (neon_vmul_lane<mode>): Likewise.
10874 (neon_vmull_lane<mode>): Likewise.
10875 (neon_vqdmull_lane<mode>): Likewise.
10876 (neon_vqdmulh_lane<mode>): Likewise.
10877 (neon_vqdmulh_lane<mode>): Likewise.
10878 (neon_vmla_lane<mode>): Likewise.
10879 (neon_vmla_lane<mode>): Likewise.
10880 (neon_vmlal_lane<mode>): Likewise.
10881 (neon_vqdmlal_lane<mode>): Likewise.
10882 (neon_vmls_lane<mode>): Likewise.
10883 (neon_vmls_lane<mode>): Likewise.
10884 (neon_vmlsl_lane<mode>): Likewise.
10885 (neon_vqdmlsl_lane<mode>): Likewise.
10886 (neon_vext<mode>): Likewise.
10887 (neon_vrev64<mode>): Likewise.
10888 (neon_vrev32<mode>): Likewise.
10889 (neon_vrev16<mode>): Likewise.
10890 (neon_vbsl<mode>_internal): Likewise.
10891 (neon_vshl<mode>): Likewise.
10892 (neon_vqshl<mode>): Likewise.
10893 (neon_vshr_n<mode>): Likewise.
10894 (neon_vshrn_n<mode>): Likewise.
10895 (neon_vqshrn_n<mode>): Likewise.
10896 (neon_vqshrun_n<mode>): Likewise.
10897 (neon_vshl_n<mode>): Likewise.
10898 (neon_vqshl_n<mode>): Likewise.
10899 (neon_vqshlu_n<mode>): Likewise.
10900 (neon_vshll_n<mode>): Likewise.
10901 (neon_vsra_n<mode>): Likewise.
10902 (neon_vsri_n<mode>): Likewise.
10903 (neon_vsli_n<mode>): Likewise.
10904 (neon_vtbl1v8qi): Likewise.
10905 (neon_vtbl2v8qi): Likewise.
10906 (neon_vtbl3v8qi): Likewise.
10907 (neon_vtbl4v8qi): Likewise.
10908 (neon_vtbl1v16qi): Likewise.
10909 (neon_vtbl2v16qi): Likewise.
10910 (neon_vcombinev16qi): Likewise.
10911 (neon_vtbx1v8qi): Likewise.
10912 (neon_vtbx2v8qi): Likewise.
10913 (neon_vtbx3v8qi): Likewise.
10914 (neon_vtbx4v8qi): Likewise.
10915 (*neon_vtrn<mode>_insn): Likewise.
10916 (*neon_vzip<mode>_insn): Likewise.
10917 (*neon_vuzp<mode>_insn): Likewise.
10918 (neon_vld1<mode>): Likewise.
10919 (neon_vld1_lane<mode>): Likewise.
10920 (neon_vld1_lane<mode>): Likewise.
10921 (neon_vld1_dup<mode>): Likewise.
10922 (neon_vld1_dup<mode>): Likewise.
10923 (neon_vld1_dupv2di): Likewise.
10924 (neon_vst1<mode>): Likewise.
10925 (neon_vst1_lane<mode>): Likewise.
10926 (neon_vst1_lane<mode>): Likewise.
10927 (neon_vld2<mode>): Likewise.
10928 (neon_vld2<mode>): Likewise.
10929 (neon_vld2_lane<mode>): Likewise.
10930 (neon_vld2_lane<mode>): Likewise.
10931 (neon_vld2_dup<mode>): Likewise.
10932 (neon_vst2<mode>): Likewise.
10933 (neon_vst2<mode>): Likewise.
10934 (neon_vst2_lane<mode>): Likewise.
10935 (neon_vst2_lane<mode>): Likewise.
10936 (neon_vld3<mode>): Likewise.
10937 (neon_vld3qa<mode>): Likewise.
10938 (neon_vld3qb<mode>): Likewise.
10939 (neon_vld3_lane<mode>): Likewise.
10940 (neon_vld3_lane<mode>): Likewise.
10941 (neon_vld3_dup<mode>): Likewise.
10942 (neon_vst3<mode>): Likewise.
10943 (neon_vst3qa<mode>): Likewise.
10944 (neon_vst3qb<mode>): Likewise.
10945 (neon_vst3_lane<mode>): Likewise.
10946 (neon_vst3_lane<mode>): Likewise.
10947 (neon_vld4<mode>): Likewise.
10948 (neon_vld4qa<mode>): Likewise.
10949 (neon_vld4qb<mode>): Likewise.
10950 (neon_vld4_lane<mode>): Likewise.
10951 (neon_vld4_lane<mode>): Likewise.
10952 (neon_vld4_dup<mode>): Likewise.
10953 (neon_vst4<mode>): Likewise.
10954 (neon_vst4qa<mode>): Likewise.
10955 (neon_vst4qb<mode>): Likewise.
10956 (neon_vst4_lane<mode>): Likewise.
10957 (neon_vst4_lane<mode>): Likewise.
10958 (neon_vec_unpack<US>_lo_<mode>): Likewise.
10959 (neon_vec_unpack<US>_hi_<mode>): Likewise.
10960 (neon_vec_<US>mult_lo_<mode>): Likewise.
10961 (neon_vec_<US>mult_hi_<mode>): Likewise.
10962 (neon_vec_<US>shiftl_<mode>): Likewise.
10963 (neon_unpack<US>_<mode>): Likewise.
10964 (neon_vec_<US>mult_<mode>): Likewise.
10965 (vec_pack_trunc_<mode>): Likewise.
10966 (neon_vec_pack_trunc_<mode>): Likewise.
10967 (neon_vabd<mode>_2): Likewise.
10968 (neon_vabd<mode>_3): Likewise.
10970 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10972 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10973 (load_pair): Update type attribute.
10974 (store_pair): Update type attribute.
10975 * config/aarch64/iterators.md (q): New.
10977 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10979 * config/arm/types.md: Add new types for Neon insns.
10981 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10982 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10983 Sergey Lega <sergey.s.lega@intel.com>
10984 Anna Tikhonova <anna.tikhonova@intel.com>
10985 Ilya Tocar <ilya.tocar@intel.com>
10986 Andrey Turetskiy <andrey.turetskiy@intel.com>
10987 Ilya Verbin <ilya.verbin@intel.com>
10988 Kirill Yukhin <kirill.yukhin@intel.com>
10989 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10991 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10992 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10993 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10994 (rcp14<mode>): New.
10995 (srcp14<mode>): Ditto.
10996 (rsqrt14<mode>): Ditto.
10997 (rsqrt14<mode>): Ditto.
10998 (avx512f_vmscalef<mode>): Ditto.
10999 (avx512f_scalef<mode>): Ditto.
11000 (avx512f_getexp<mode>): Ditto.
11001 (avx512f_sgetexp<mode>): Ditto.
11002 (avx512f_fixupimm<mode>): Ditto.
11003 (avx512f_sfixupimm<mode>): Ditto.
11004 (avx512f_rndscale<mode>): Ditto.
11005 (*avx512er_exp2<mode>): Ditto.
11006 (*avx512er_rcp28<mode>): Ditto.
11007 (avx512er_rsqrt28<mode>): Ditto.
11008 (avx512f_getmant<mode>): Ditto.
11009 (avx512f_getmant<mode>): Ditto.
11010 (avx512f_rndscale<mode>): Fix formatting.
11012 2013-10-15 Martin Jambor <mjambor@suse.cz>
11014 * ipa-utils.h (ipa_edge_within_scc): Declare.
11015 * ipa-cp.c (edge_within_scc): Moved...
11016 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
11018 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11019 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11020 Sergey Lega <sergey.s.lega@intel.com>
11021 Anna Tikhonova <anna.tikhonova@intel.com>
11022 Ilya Tocar <ilya.tocar@intel.com>
11023 Andrey Turetskiy <andrey.turetskiy@intel.com>
11024 Ilya Verbin <ilya.verbin@intel.com>
11025 Kirill Yukhin <kirill.yukhin@intel.com>
11026 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11028 * config/i386/predicates.md (const_8_to_15_operand): New.
11029 (const_16_to_31_operand): Ditto.
11030 * config/i386/sse.md (V8FI): New.
11032 (reduc_splus_v8df): Ditto.
11033 (reduc_splus_v16sf): Ditto.
11034 (avx512f_vextract<shuffletype>32x4_1): Ditto.
11035 (vec_extract_hi_<mode>): Ditto.
11036 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11037 (vec_set_lo_<mode>): Ditto.
11038 (vec_set_hi_<mode>): Ditto.
11039 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11040 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11041 (avx512f_pshufd_1): Ditto.
11042 (avx512f_broadcast<mode>): Ditto.
11043 (avx512f_broadcast<mode>): Ditto.
11044 (define_split): Split vec_extract_lo into move.
11045 (ssequartermode): Ditto.
11046 (ssedoublemode): Extened with wider modes.
11047 (vec_extract_lo_<mode>): Ditto.
11049 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11050 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11051 Sergey Lega <sergey.s.lega@intel.com>
11052 Anna Tikhonova <anna.tikhonova@intel.com>
11053 Ilya Tocar <ilya.tocar@intel.com>
11054 Andrey Turetskiy <andrey.turetskiy@intel.com>
11055 Ilya Verbin <ilya.verbin@intel.com>
11056 Kirill Yukhin <kirill.yukhin@intel.com>
11057 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11059 * config/i386/predicates.md (register_or_constm1_operand): New.
11060 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11061 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11062 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11063 UNSPEC_SCATTER_PREFETCH
11065 (avx512f_ucmp<mode>3): Ditto.
11066 (avx512f_vternlog<mode>): Ditto.
11067 (avx512f_align<mode>): Ditto.
11068 (<shift_insn><mode>3): Ditto.
11069 (avx512f_<rotate>v<mode>): Ditto.
11070 (avx512f_<rotate><mode>): Ditto.
11071 (avx512f_eq<mode>3): Ditto.
11072 (avx512f_eq<mode>3_1): Ditto.
11073 (avx512f_gt<mode>3): Ditto.
11074 (avx512f_testm<mode>3): Ditto.
11075 (avx512f_testnm<mode>3): Ditto.
11076 (avx512pf_gatherpf<mode>): Ditto.
11077 (*avx512pf_gatherpf<mode>_mask): Ditto.
11078 (*avx512pf_gatherpf<mode>): Ditto.
11079 (avx512pf_scatterpf<mode>): Ditto.
11080 (*avx512pf_scatterpf<mode>_mask): Ditto.
11081 (*avx512pf_scatterpf<mode>): Ditto.
11082 (avx512f_vec_dup_gpr<mode>): Ditto.
11083 (clz<mode>2): Ditto.
11084 (conflict<mode>): Ditto.
11085 (REDUC_SMINMAX_MODE): Extened with wider modes.
11086 (reduc_<code>_<mode>): Ditto.
11087 (vlshr<mode>3): Ditto.
11088 (vashl<mode>3): Ditto.
11090 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11091 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11092 Sergey Lega <sergey.s.lega@intel.com>
11093 Anna Tikhonova <anna.tikhonova@intel.com>
11094 Ilya Tocar <ilya.tocar@intel.com>
11095 Andrey Turetskiy <andrey.turetskiy@intel.com>
11096 Ilya Verbin <ilya.verbin@intel.com>
11097 Kirill Yukhin <kirill.yukhin@intel.com>
11098 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11100 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11103 (avx512fmaskmode): Ditto.
11104 (bcstscalarsuff): Ditto.
11105 (avx512f_blendm<mode>): Ditto.
11106 (cmp_imm_predicate): Ditto.
11107 (avx512f_cmp<mode>3): Ditto.
11108 (avx512f_vec_dup<mode>): Ditto.
11109 (avx512f_vec_dup_mem<mode>): Ditto.
11110 (avx512f_vpermi2var<mode>3): Ditto.
11111 (avx512f_vpermt2var<mode>3): Ditto.
11112 (vec_init<mode>): Ditto.
11113 (avx512f_gathersi<mode>): Ditto.
11114 (*avx512f_gathersi<mode>): Ditto.
11115 (*avx512f_gathersi<mode>_2): Ditto.
11116 (avx512f_gatherdi<mode>): Ditto.
11117 (*avx512f_gatherdi<mode>): Ditto.
11118 (*avx512f_gatherdi<mode>_2): Ditto.
11119 (avx512f_scattersi<mode>): Ditto.
11120 (*avx512f_scattersi<mode>): Ditto.
11121 (avx512f_scatterdi<mode>): Ditto.
11122 (*avx512f_scatterdi<mode>): Ditto.
11123 (sseintprefix): Extened with wider modes.
11124 (VEC_GATHER_IDXSI): Ditto.
11125 (VEC_GATHER_IDXDI): Ditto.
11126 (VEC_GATHER_SRCDI): Ditto.
11128 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11129 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11131 * config/arm/t-aprofile: New file.
11132 * config.gcc: Handle --with-multilib-list option.
11134 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
11136 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11139 2013-10-15 Richard Biener <rguenther@suse.de>
11141 * tree-loop-distribution.c (build_empty_rdg): Inline into
11143 (rdg_flag_vertex): Inline into single user.
11144 (rdg_flag_vertex_and_dependent): Likewise.
11145 (build_rdg_partition_for_vertex): Remove processed bitmap.
11146 (rdg_build_partitions): Simplify.
11148 2013-10-15 Richard Biener <rguenther@suse.de>
11150 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11151 Restructure forwarding through conversions and copies to
11152 avoid performing copy-propagation the wrong way. Adjust
11153 recursion invocations.
11154 (forward_propagate_addr_expr): Add argument stating if we
11155 are recursing from a single-use.
11156 (ssa_forward_propagate_and_combine): Adjust.
11158 2013-10-14 David Malcolm <dmalcolm@redhat.com>
11160 * dumpfile.h (gcc::dump_manager): New class, to hold state
11161 relating to dumpfile management.
11162 (get_dump_file_name): Remove in favor of method of dump_manager.
11163 (dump_initialized_p): Likewise.
11164 (dump_start): Likewise.
11165 (dump_finish): Likewise.
11166 (dump_switch_p): Likewise.
11167 (dump_register): Likewise.
11168 (get_dump_file_info): Likewise.
11169 * context.c (gcc::context::context): Construct the dump_manager
11171 * context.h (gcc::context::get_dumps): New.
11172 (gcc::context::m_dumps): New.
11173 * coverage.c (coverage_init): Port to dump_manager API.
11174 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11175 (extra_dump_files_in_use): Likewise.
11176 (extra_dump_files_alloced): Likewise.
11177 (gcc::dump_manager::dump_manager): New.
11178 (dump_register): Convert to...
11179 (gcc::dump_manager::dump_register): ...method, replacing
11180 function-static next_dump with m_next_dump field.
11181 (get_dump_file_info): Convert to...
11182 (gcc::dump_manager::get_dump_file_info): ...method.
11183 (get_dump_file_name): Convert to...
11184 (gcc::dump_manager::get_dump_file_name): ...method.
11185 (dump_start): Convert to...
11186 (gcc::dump_manager::dump_start): ...method.
11187 (dump_finish): Convert to...
11188 (gcc::dump_manager::dump_finish): ...method.
11189 (dump_begin): Replace body with...
11190 (gcc::dump_manager::dump_begin): ...new method.
11191 (dump_phase_enabled_p): Convert to...
11192 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11193 (dump_phase_enabled_p): Convert to...
11194 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11195 (dump_initialized_p): Convert to...
11196 (gcc::dump_manager::dump_initialized_p): ...method.
11197 (dump_flag_name): Replace body with...
11198 (gcc::dump_manager::dump_flag_name): ...new method.
11199 (dump_enable_all): Convert to...
11200 (gcc::dump_manager::dump_enable_all): ...new method.
11201 (opt_info_enable_passes): Convert to...
11202 (gcc::dump_manager::opt_info_enable_passes): ...new method.
11203 (dump_switch_p_1): Convert to...
11204 (gcc::dump_manager::dump_switch_p_1): ...new method.
11205 (dump_switch_p): Convert to...
11206 (gcc::dump_manager::dump_switch_p): ...new method.
11207 (opt_info_switch_p): Port to dump_manager API.
11208 (enable_rtl_dump_file): Likewise.
11209 * opts-global.c (handle_common_deferred_options): Port to new
11211 * passes.c (pass_manager::finish_optimization_passes): Likewise.
11212 (pass_manager::register_one_dump_file): Likewise.
11213 (pass_manager::register_pass): Likewise.
11214 (pass_init_dump_file): Likewise.
11215 (pass_fini_dump_file): Likewise.
11216 * statistics.c (statistics_early_init): Likewise.
11218 2013-10-14 Richard Biener <rguenther@suse.de>
11220 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11221 iterative_hash_canonical_type, gimple_canonical_type_hash,
11222 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11223 gimple_register_canonical_type, print_gimple_types_stats,
11224 free_gimple_type_tables): Move to lto/lto.c
11225 (gt-gimple.h): Do not include.
11226 * gimple.h (gimple_register_canonical_type,
11227 print_gimple_types_stats, free_gimple_type_tables): Remove.
11228 * Makefile.in (GTFILES): Remove gimple.c.
11230 2013-10-14 Travis Snoozy <quandary@remstate.com>
11233 * config/msp430/msp430.c (msp430_option_override): Correct thinko
11234 scanning for msp430x targets.
11236 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
11239 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11240 (registers_ok_for_ldd_peep): Move around.
11241 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11242 * config/sparc/sparc.md (widening peepholes): Use it.
11244 2013-10-14 Richard Biener <rguenther@suse.de>
11246 PR middle-end/58712
11247 PR middle-end/55358
11248 * gimple.c (iterative_hash_canonical_type): Make sure to
11249 record the hash into the correct hashtable slot.
11251 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
11253 PR rtl-optimization/58662
11254 * combine.c (try_combine): Take into account death nodes on I2 when
11255 splitting a PARALLEL of two independent SETs. Fix dump message.
11257 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
11260 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11261 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11263 * config/sh/t-sh (sh_treg_combine.o): New entry.
11264 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11265 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11266 (register_sh_passes): New function. Register sh_treg_combine pass.
11267 (sh_option_override): Invoke it.
11268 (sh_canonicalize_comparison): Handle op0_preserve_value.
11269 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11270 opportunities. Canonicalize branch condition.
11271 (nott): Allow only if pseudos can be created for non-SH2A.
11273 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
11276 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11277 (ix86_expand_movmem): Replace copy_addr_to_reg with
11278 ix86_copy_addr_to_reg.
11279 (ix86_expand_setmem): Likewise.
11281 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
11283 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11284 provided by ix86_fp_compare_mode instead of CCFPUmode.
11286 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
11288 * config/aarch64/arm_neon.h
11289 (vtbx<1,3>_<psu>8): Fix register constriants.
11291 2013-10-11 Jeff Law <law@redhat.com>
11293 PR tree-optimization/58640
11294 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11295 threading paths that cross over two loop entry points.
11297 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11299 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11300 handle vector float as well.
11301 (*vsx_le_perm_load_v4si): Likewise.
11302 (*vsx_le_perm_store_v2di): Likewise.
11303 (*vsx_le_perm_store_v4si): Likewise.
11305 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11307 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11308 directly to circumvent subtract from splat{31} workaround.
11309 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11311 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11312 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11313 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11314 (altivec_vperm_<mode>): Convert to define_insn_and_split to
11315 separate big and little endian logic.
11316 (*altivec_vperm_<mode>_internal): New define_insn.
11317 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11318 separate big and little endian logic.
11319 (*altivec_vperm_<mode>_uns_internal): New define_insn.
11320 (vec_permv16qi): Add little endian logic.
11322 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
11324 * doc/extend.texi (returns_nonnull): Remove arguments.
11326 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11327 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11328 Sergey Lega <sergey.s.lega@intel.com>
11329 Anna Tikhonova <anna.tikhonova@intel.com>
11330 Ilya Tocar <ilya.tocar@intel.com>
11331 Andrey Turetskiy <andrey.turetskiy@intel.com>
11332 Ilya Verbin <ilya.verbin@intel.com>
11333 Kirill Yukhin <kirill.yukhin@intel.com>
11334 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11336 * config/i386/sse.md (VI48F_256_512): New.
11337 (avx2_permvar<mode>): Change to ...
11338 (<avx2_avx512f>_permvar<mode>): This.
11340 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11341 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11342 Sergey Lega <sergey.s.lega@intel.com>
11343 Anna Tikhonova <anna.tikhonova@intel.com>
11344 Ilya Tocar <ilya.tocar@intel.com>
11345 Andrey Turetskiy <andrey.turetskiy@intel.com>
11346 Ilya Verbin <ilya.verbin@intel.com>
11347 Kirill Yukhin <kirill.yukhin@intel.com>
11348 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11350 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11351 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11352 * config/i386/sse.md (VI4_AVX): New.
11353 (sf2simodelower): Ditto.
11354 (sse2_cvtps2dq): Change to ...
11355 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11357 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11358 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11359 Sergey Lega <sergey.s.lega@intel.com>
11360 Anna Tikhonova <anna.tikhonova@intel.com>
11361 Ilya Tocar <ilya.tocar@intel.com>
11362 Andrey Turetskiy <andrey.turetskiy@intel.com>
11363 Ilya Verbin <ilya.verbin@intel.com>
11364 Kirill Yukhin <kirill.yukhin@intel.com>
11365 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11367 * config/i386/sse.md (V_512): New.
11369 (vcond<V_512:mode><VF_512:mode>): Ditto.
11370 (vcond<V_512:mode><VI_512:mode>): Ditto.
11371 (vcondu<V_512:mode><VI_512:mode>): Ditto.
11373 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11374 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11375 Sergey Lega <sergey.s.lega@intel.com>
11376 Anna Tikhonova <anna.tikhonova@intel.com>
11377 Ilya Tocar <ilya.tocar@intel.com>
11378 Andrey Turetskiy <andrey.turetskiy@intel.com>
11379 Ilya Verbin <ilya.verbin@intel.com>
11380 Kirill Yukhin <kirill.yukhin@intel.com>
11381 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11383 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11384 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11386 (fma<mode>4): Removed condition.
11387 (fms<mode>4): Ditto.
11388 (fnma<mode>4): Ditto.
11389 (fnms<mode>4): Ditto.
11390 (fma4i_fmadd_<mode>): Ditto.
11391 (*fma_fmadd_<mode>): Ditto.
11392 (*fma_fmsub_<mode>): Ditto.
11393 (*fma_fnmadd_<mode>): Ditto.
11394 (*fma_fnmsub_<mode>): Ditto.
11395 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11396 (*fma_fmaddsub_<mode>): Ditto.
11397 (*fma_fmsubadd_<mode>): Ditto.
11398 (*fmai_fmadd_<mode>): Ditto.
11399 (*fmai_fmsub_<mode>): Ditto.
11400 (*fmai_fnmadd_<mode>): Ditto.
11401 (*fmai_fnmsub_<mode>): Ditto.
11403 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11404 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11405 Sergey Lega <sergey.s.lega@intel.com>
11406 Anna Tikhonova <anna.tikhonova@intel.com>
11407 Ilya Tocar <ilya.tocar@intel.com>
11408 Andrey Turetskiy <andrey.turetskiy@intel.com>
11409 Ilya Verbin <ilya.verbin@intel.com>
11410 Kirill Yukhin <kirill.yukhin@intel.com>
11411 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11413 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11414 (VI124_256): Changed to ...
11415 (VI124_256_48_512): This.
11416 (ssepackmode): Extended with wider modes.
11417 (<code><mode>3): Changed iterator.
11418 (*avx2_<code><mode>3): Ditto.
11419 (vec_pack_trunc_<mode>): Ditto.
11421 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11422 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11423 Sergey Lega <sergey.s.lega@intel.com>
11424 Anna Tikhonova <anna.tikhonova@intel.com>
11425 Ilya Tocar <ilya.tocar@intel.com>
11426 Andrey Turetskiy <andrey.turetskiy@intel.com>
11427 Ilya Verbin <ilya.verbin@intel.com>
11428 Kirill Yukhin <kirill.yukhin@intel.com>
11429 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11431 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11432 (VI8F_256_512): Ditto.
11433 (abs<mode>2): Changed iterator.
11434 (avx2_perm<mode>): Changed to ...
11435 (<avx2_avx512f>_perm<mode>): This.
11436 (avx2_perm<mode>_1): Changed to ...
11437 (<avx2_avx512f>_perm<mode>_1): This.
11439 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11440 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11441 Sergey Lega <sergey.s.lega@intel.com>
11442 Anna Tikhonova <anna.tikhonova@intel.com>
11443 Ilya Tocar <ilya.tocar@intel.com>
11444 Andrey Turetskiy <andrey.turetskiy@intel.com>
11445 Ilya Verbin <ilya.verbin@intel.com>
11446 Kirill Yukhin <kirill.yukhin@intel.com>
11447 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11449 * config/i386/sse.md (VI48_AVX512F): New.
11450 (VI48_AVX2): Changed to ...
11451 (VI48_AVX2_48_AVX512F): This.
11452 (avx2_ashrv<mode>): Changed to ...
11453 (<avx2_avx512f>_ashrv<mode>): This.
11454 (avx2_<shift_insn>v<mode>): Changed to ...
11455 (<avx2_avx512f>_<shift_insn>v<mode>): This.
11457 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11458 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11459 Sergey Lega <sergey.s.lega@intel.com>
11460 Anna Tikhonova <anna.tikhonova@intel.com>
11461 Ilya Tocar <ilya.tocar@intel.com>
11462 Andrey Turetskiy <andrey.turetskiy@intel.com>
11463 Ilya Verbin <ilya.verbin@intel.com>
11464 Kirill Yukhin <kirill.yukhin@intel.com>
11465 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11467 * config/i386/sse.md (VI4_AVX512F): New.
11468 (VI8_AVX2_AVX512F): Ditto.
11469 (mul<mode>3): Extended with wider modes.
11470 (*<sse4_1_avx2>_mul<mode>3): Ditto.
11471 (mul<mode>3): Ditto.
11472 (vec_widen_<s>mult_odd_<mode>): Ditto.
11474 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11475 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11476 Sergey Lega <sergey.s.lega@intel.com>
11477 Anna Tikhonova <anna.tikhonova@intel.com>
11478 Ilya Tocar <ilya.tocar@intel.com>
11479 Andrey Turetskiy <andrey.turetskiy@intel.com>
11480 Ilya Verbin <ilya.verbin@intel.com>
11481 Kirill Yukhin <kirill.yukhin@intel.com>
11482 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11484 * config/i386/sse.md (VI2_AVX512F): New.
11485 (VI124_AVX512F): Ditto.
11486 (sseunpackmode): Extended with wider modes.
11487 (sseunpackfltmode): Ditto.
11488 (vec_unpacks_float_hi_<mode>): Ditto.
11489 (vec_unpacks_float_lo_<mode>): Ditto.
11490 (vec_unpacku_float_hi_<mode>): Ditto.
11491 (vec_unpacku_float_lo_<mode>): Ditto.
11492 (vec_unpacks_lo_<mode>): Ditto.
11493 (vec_unpacks_hi_<mode>): Ditto.
11494 (vec_unpacku_lo_<mode>): Ditto.
11495 (vec_unpacku_hi_<mode>): Ditto.
11497 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11498 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11499 Sergey Lega <sergey.s.lega@intel.com>
11500 Anna Tikhonova <anna.tikhonova@intel.com>
11501 Ilya Tocar <ilya.tocar@intel.com>
11502 Andrey Turetskiy <andrey.turetskiy@intel.com>
11503 Ilya Verbin <ilya.verbin@intel.com>
11504 Kirill Yukhin <kirill.yukhin@intel.com>
11505 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11507 * config/i386/i386.md (multdiv): New.
11508 (multdiv_mnemonic): Ditto.
11509 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11510 (<sse>_vm<multdiv_mnemonic><mode>3): This.
11511 (<sse>_vmdiv<mode>3): Removed.
11513 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11514 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11515 Sergey Lega <sergey.s.lega@intel.com>
11516 Anna Tikhonova <anna.tikhonova@intel.com>
11517 Ilya Tocar <ilya.tocar@intel.com>
11518 Andrey Turetskiy <andrey.turetskiy@intel.com>
11519 Ilya Verbin <ilya.verbin@intel.com>
11520 Kirill Yukhin <kirill.yukhin@intel.com>
11521 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11523 * config/i386/sse.md (V): Extended with wider modes.
11525 (ssehalfvecmode): Ditto.
11527 (ssepackfltmode): Ditto.
11528 (avx_vec_concat<mode>): Ditto.
11529 (V_256_512): New iterator.
11530 (VF2_512_256): Ditto.
11531 (si2dfmode): New attribute.
11532 (si2dfmodelower): Ditto.
11533 (sf2dfmode): Ditto.
11534 (concat_tg_mode): Ditto.
11535 (floatv4siv4df2): Changed to ...
11536 (float<si2dfmodelower><mode>2): This.
11537 (avx_cvtps2pd256): Changed to ...
11538 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11539 (vec_pack_trunc_v4df): Changed to ...
11540 (vec_pack_trunc_<mode>): This.
11541 (avx_vpermil<mode>): Changed to ...
11542 (<sse2_avx_avx512f>_vpermil<mode>): This.
11543 (<fixsuffix>fix_truncv8dfv8si2): New.
11544 (vec_pack_sfix_trunc_v8df): Ditto.
11545 (avx512f_rndscale<mode>): Ditto.
11546 (avx512f_roundpd512): Ditto.
11547 (vec_pack_ufix_trunc_<mode>): Updated iterator.
11549 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11550 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11551 Sergey Lega <sergey.s.lega@intel.com>
11552 Anna Tikhonova <anna.tikhonova@intel.com>
11553 Ilya Tocar <ilya.tocar@intel.com>
11554 Andrey Turetskiy <andrey.turetskiy@intel.com>
11555 Ilya Verbin <ilya.verbin@intel.com>
11556 Kirill Yukhin <kirill.yukhin@intel.com>
11557 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11559 * config/i386/i386.md (any_fix): New iterator.
11560 (fixsuffix): New attribute.
11561 * config/i386/sse.md (VF1): Extened with wider modes.
11565 (sseintvecmodelower): Ditto.
11566 (ssescalarmode): Ditto.
11567 (ssescalarnum): Ditto.
11568 (VF1_128_256): New.
11569 (ssexmmmode): Ditto.
11570 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11571 (<sse>_rcp<mode>2): Change iterator.
11572 (rsqrt<mode>2): Ditto.
11573 (<sse>_rsqrt<mode>2): Ditto.
11574 (avx2_vec_dup<mode>): Ditto.
11575 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11576 (round<mode>2_sfix): Ditto.
11577 (avx2_pbroadcast<mode>): Ditto.
11578 (*andnot<mode>3): Handle XI mode.
11579 (*<code><mode>3): Ditto.
11580 (AVXTOSSEMODE): Removed.
11581 (avx_vpermil<mode>): Changed to ...
11582 (<sse2_avx_avx512f>_vpermil<mode>): This.
11584 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11585 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11586 Sergey Lega <sergey.s.lega@intel.com>
11587 Anna Tikhonova <anna.tikhonova@intel.com>
11588 Ilya Tocar <ilya.tocar@intel.com>
11589 Andrey Turetskiy <andrey.turetskiy@intel.com>
11590 Ilya Verbin <ilya.verbin@intel.com>
11591 Kirill Yukhin <kirill.yukhin@intel.com>
11592 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11594 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11595 (<sse>_comi): Ditto.
11596 (<sse>_ucomi): Ditto.
11597 (sse_cvtss2siq_2): Ditto.
11598 (sse2_cvtsd2si): Ditto.
11599 (sse2_cvtsd2siq): Ditto.
11600 (sse2_cvttsd2si): Ditto.
11601 (sse2_cvttsd2siq): Ditto.
11602 (<shift_insn><mode>3): Ditto.
11603 (sse2_cvtsi2sdq): Update constraint and prefix.
11604 (sse_cvtsi2ss): Update prefix.
11605 (sse_cvtsi2ssq): Ditto.
11607 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11609 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11610 ignore internal calls.
11612 2013-10-11 Richard Biener <rguenther@suse.de>
11614 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11615 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
11616 TREE_OVERFLOW is set.
11618 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
11620 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11622 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11623 * gimple.h: Likewise.
11625 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11627 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11630 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11632 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11633 * configure: Regenerate.
11635 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11637 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11638 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11639 formatting fixes, use pp_colon instead of pp_character (..., ':'),
11640 similarly pp_right_paren.
11641 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11642 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11643 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11644 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11646 (omp_declare_simd_clauses_equal,
11647 omp_remove_redundant_declare_simd_attrs): New functions.
11648 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11649 (walk_tree_1): Handle new OpenMP 4.0 clauses.
11650 * tree.h (OMP_LOOP_CHECK): Define.
11651 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11652 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11653 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11654 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11655 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11656 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11657 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11658 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11659 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11660 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11661 OMP_CLAUSE_SIMDLEN_EXPR): Define.
11662 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11663 (omp_remove_redundant_declare_simd_attrs): New prototype.
11664 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11665 GIMPLE_OMP_TEAMS): New codes.
11666 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11667 * omp-low.c (struct omp_context): Add cancel_label and cancellable
11669 (target_nesting_level): New variable.
11670 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11671 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
11672 for collapse > 1 static schedule unless ordered.
11673 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
11674 (determine_parallel_type): Adjust get_ws_args_for caller.
11675 (install_var_field): Handle mask & 4 for double indirection.
11676 (scan_sharing_clauses): Ignore shared clause on teams construct.
11677 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11678 (create_omp_child_function): If inside target or declare target
11679 constructs, set "omp declare target" attribute on the child function.
11680 (find_combined_for): New function.
11681 (scan_omp_parallel): Handle combined loops.
11682 (scan_omp_target, scan_omp_teams): New functions.
11683 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11684 restrictions and set ctx->cancellable for cancellable constructs.
11685 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11686 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
11687 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11688 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11689 (omp_clause_aligned_alignment): New function.
11690 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11691 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
11692 on teams constructs. Handle user defined reductions and new
11693 OpenMP 4.0 clauses.
11694 (lower_reduction_clauses): Don't set placeholder to address of ref
11695 if it has already the right type.
11696 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11697 (expand_parallel_call): Use the new non-_start suffixed builtins,
11698 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11699 and GOMP_parallel_end after the call.
11700 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11701 (expand_omp_for_init_counts): Handle combined loops.
11702 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11704 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
11705 end of cancellable loops.
11706 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11707 Likewise. Handle collapse > 1 loops.
11708 (expand_omp_simd): Handle combined loops.
11709 (expand_omp_for): Add inner_stmt argument, adjust callers of
11710 expand_omp_for* functions, use expand_omp_for_static*chunk even
11711 for collapse > 1 unless ordered.
11712 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11713 of cancellable sections.
11714 (expand_omp_single): Remove need_barrier variable, just rely on
11715 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
11716 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11717 (expand_omp_atomic_load, expand_omp_atomic_store,
11718 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11719 (expand_omp_target): New function.
11720 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
11721 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11722 (build_omp_regions_1): Immediately close region for
11723 GF_OMP_TARGET_KIND_UPDATE.
11724 (maybe_add_implicit_barrier_cancel): New function.
11725 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
11727 (lower_omp_single): Likewise. Add clobber after the barrier.
11728 (lower_omp_taskgroup): New function.
11729 (lower_omp_for): Handle combined loops. Adjust
11730 lower_rec_input_clauses caller. Handle cancellation.
11731 (lower_depend_clauses): New function.
11732 (lower_omp_taskreg): Lower depend clauses. Adjust
11733 lower_rec_input_clauses caller. Add clobber after the call. Handle
11735 (lower_omp_target, lower_omp_teams): New functions.
11736 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
11737 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11738 and GOMP_cancellation_point calls.
11739 (lower_omp): Fold stmts inside of target region.
11740 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11741 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11742 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11743 (BT_FN_VOID_OMPFN_PTR_UINT,
11744 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11745 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11746 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11747 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11748 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11749 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11750 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11751 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11752 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11753 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11754 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11755 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11756 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11757 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
11758 BUILT_IN_GOMP_PARALLEL_END.
11759 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11760 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11761 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11762 GF_OMP_FOR_KIND_DISTRIBUTE.
11763 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11764 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11765 (dump_gimple_omp_return): Print lhs if it has any.
11766 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11767 gimple_omp_atomic_seq_cst_p.
11768 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11769 and GIMPLE_OMP_TEAMS.
11770 * langhooks.c (lhd_omp_mappable_type): New function.
11771 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11772 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11774 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11775 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11776 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11777 (struct gimplify_omp_ctx): Add combined_loop field.
11778 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11779 on stmts inside of target region.
11780 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11781 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11782 ORT_TARGET and ORT_TARGET_DATA.
11783 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11785 (omp_notice_threadprivate_variable): Complain about threadprivate
11786 variables in target region.
11787 (omp_notice_variable): Complain about vars with non-mappable type
11788 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11789 (omp_check_private): Ignore ORT_TARGET* regions.
11790 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11791 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11792 (find_combined_omp_for): New function.
11793 (gimplify_omp_for): Handle gimplification of combined loops.
11794 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11796 (gimplify_omp_target_update): New function.
11797 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11798 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11799 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11800 (gimplify_body): If fndecl has "omp declare target" attribute, add
11801 implicit ORT_TARGET context around it.
11802 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11803 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11804 * tree-nested.c (convert_nonlocal_reference_stmt,
11805 convert_local_reference_stmt, convert_gimple_call): Handle
11806 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11807 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11808 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11809 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11810 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11811 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11812 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11813 BUILT_IN_GOMP_LOOP_END_CANCEL,
11814 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11815 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11816 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11817 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11818 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11819 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11820 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11821 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11822 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11823 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11824 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11825 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11826 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11827 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11828 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11829 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11830 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11831 gimple_build_omp_teams): New functions.
11832 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11833 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
11834 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11835 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11836 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11837 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11838 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11839 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11840 GF_OMP_ATOMIC_SEQ_CST): New.
11841 (gimple_build_omp_taskgroup, gimple_build_omp_target,
11842 gimple_build_omp_teams): New prototypes.
11843 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11844 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11845 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11846 GIMPLE_OMP_SINGLE as end of range.
11847 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11848 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11849 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11850 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11851 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11852 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11853 gimple_omp_target_kind, gimple_omp_target_set_kind,
11854 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11855 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11856 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11857 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11858 gimple_omp_teams_set_clauses): New inlines.
11859 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11860 and GIMPLE_OMP_TASKGROUP.
11861 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11862 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11863 enum omp_clause_proc_bind_kind): New.
11864 (union omp_clause_subcode): Add depend_kind, map_kind and
11865 proc_bind_kind fields.
11866 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11867 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11868 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11869 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11870 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11872 2013-10-10 Teresa Johnson <tejohnson@google.com>
11874 * predict.c (tree_estimate_probability): Add new parameter
11875 for estimate_bb_frequencies.
11876 (estimate_bb_frequencies): Add new parameter to force estimation.
11877 (rebuild_frequencies): When max frequency in function is small,
11878 recompute counts from frequencies.
11879 * predict.h (estimate_bb_frequencies): New parameter.
11881 2013-10-10 David Malcolm <dmalcolm@redhat.com>
11883 * ipa-inline.c (ipa_inline): Fix leak of "order" when
11884 optimizations are disabled.
11886 2013-10-10 David Malcolm <dmalcolm@redhat.com>
11888 * coverage.c (coverage_finish): Fix leak of da_file_name.
11890 2013-10-10 Jan Hubicka <jh@suse.cz>
11892 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11893 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11894 Bobcat and generic.
11896 2013-10-10 Jakub Jelinek <jakub@redhat.com>
11898 PR middle-end/58670
11899 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11900 if any labels are in FALLTHRU_BB, use a special label emitted
11901 immediately after the asm goto insn rather than label_rtx
11903 (expand_asm_stmt): Adjust caller.
11904 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11905 edge if the last insn in predecessor is a jump with single successor,
11906 but it isn't simplejump_p.
11908 2013-10-10 Richard Biener <rguenther@suse.de>
11910 PR tree-optimization/58656
11911 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11913 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11915 * gimplify.c: Include expr.h and tm_p.h for targets with special
11916 va-arg padding requirements.
11918 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11920 * tree-flow.h: Move some prototypes to gimple.h.
11921 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11922 * gimple.h: Relocate some prototypes from tree-flow.h
11923 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11924 Move to gimplify.c.
11925 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11926 (build_va_arg_indirect_ref): Relocate and make static.
11927 (std_gimplify_va_arg_expr): Relocate here.
11928 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11929 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11931 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11933 * doc/md.texi: Document the mnemonic attribute.
11935 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11938 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11939 (set_attr_alternative x ...) when searching for user defined
11940 mnemonic attribute.
11942 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11944 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11946 2013-10-09 Easwaran Raman <eraman@google.com>
11948 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11949 * cfgexpand.c (defer_stack_allocation): ...use here
11950 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11952 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
11954 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11955 (operand_equal_for_value_replacement): New function, extracted from
11956 value_replacement and enhanced to catch more cases.
11957 (value_replacement): Use operand_equal_for_value_replacement.
11959 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11961 * loop-doloop.c (doloop_modify, doloop_optimize): Use
11962 get_max_loop_iterations.
11964 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11966 * config/arm/aarch-common.c (arm_early_load_addr_dep):
11967 Place comment above function.
11969 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11971 * tree-flow.h: Remove all remaining prototypes, enums and structs that
11972 are not related to tree-cfg.c.
11973 * tree-ssa-address.h: New file. Relocate prototypes.
11974 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11975 (addr_for_mem_ref): New. Combine call to get_address_description and
11976 return addr_for_mem_ref.
11977 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11978 * tree-ssa-live.h: Adjust prototypes.
11979 * passes.c: Include tree-ssa-live.h.
11980 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11981 * graphite.c (graphite_transform_loops): Make static.
11982 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11983 make_pass_graphite, pass_data_graphite_transforms,
11984 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11985 * ipa-pure-const.c (warn_function_noreturn): Make static.
11986 (execute_warn_function_noreturn, gate_warn_function_noreturn,
11987 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11988 Relocate from tree-cfg.c
11989 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11991 (execute_warn_function_noreturn, gate_warn_function_noreturn,
11992 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11993 Move to ipa-pure-const.c.
11994 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11995 Relocate from tree-optimize.c.
11996 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11997 make_pass_fixup_cfg): Move to tree-cfg.c.
11998 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11999 Relocate some prototypes.
12000 * tree-data-ref.h (tree_check_data_deps) Add prototype.
12001 * tree-dump.c (dump_function_to_file): Remove prototype.
12002 Add tree-flow.h to the include file.
12003 * tree-dump.h: Remove prototype.
12004 * tree-parloops.h: New File. Add prototypes.
12005 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12006 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
12007 from tree-ssa-loop.c.
12008 * tree-predcom.c (run_tree_predictive_commoning,
12009 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12010 Relocate here from tree-ssa-loop.c.
12011 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12012 ssa_name_values.release ().
12013 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
12014 (ssa_name_values): Relocate from tree-flow.h.
12015 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12016 * tree-ssa-loop.c (run_tree_predictive_commoning,
12017 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12018 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12019 make_pass_graphite, pass_data_graphite_transforms,
12020 make_pass_graphite_transforms, gate_tree_parallelize_loops,
12021 tree_parallelize_loops, pass_data_parallelize_loops,
12022 make_pass_parallelize_loops): Move to other files.
12023 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12025 * tree.h: Remove prototypes from tree-address.c.
12027 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12029 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12030 (struct int_tree_map): Move to tree-hasher.h
12031 (SCALE, LABEL, PERCENT): Move to gimple.h
12032 * tree-flow-inline.h: Delete. Move functions to other files.
12033 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12034 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12035 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12036 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12037 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12038 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12039 * tree-hasher.h: Don't include tree-flow.h.
12040 (struct int_tree_map): Relocate from tree-flow.h.
12041 * tree-sra.c (contains_view_convert_expr_p): Relocate from
12042 tree-flow-inline.h and make static.
12043 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12044 tree-flow-inline.h.
12045 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12046 tree-flow-inline.h and make static.
12047 * tree.h (is_global_var, may_be_aliased): Relocate from
12048 tree-flow-inline.h.
12049 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12050 * value-prof.c: No longer include tree-flow-inline.h.
12051 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12053 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12055 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
12056 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12057 (enum move_pos): Move to tree-ssa-loop-im.h
12058 * cfgloop.h: Move some prototypes.
12059 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12060 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12061 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
12062 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12063 (loop_containing_stmt): Relocate from tree-flow-inline.h.
12064 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12065 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12066 (enum move_pos): Relocate here.
12067 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12069 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12070 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12071 make_pass_lim): Relocate here from tree-ssa-loop.c.
12072 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12074 (loop_edge_to_cancel, unloop_loops): Make static.
12075 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12076 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12077 (tree_complete_unroll, gate_tree_complete_unroll,
12078 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12079 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12080 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12081 * tree-ssa-loop-ivopts.c: Remove local prototypes.
12082 (stmt_invariant_in_loop_p): Remove unused function.
12083 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
12084 * tree-ssa-loop-manip.h: New file. Add prototypes.
12085 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12086 (gcov_type_to_double_int): Move to cfgloop.h.
12087 (double_int_cmp, bound_index,
12088 estimate_numbers_of_iterations_loop): Make static.
12089 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12090 (max_loop_iterations): Factor out get_max_loop_iterations.
12091 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12093 * tree-ssa-loop-niter.h: New file. Add prototypes.
12094 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12095 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12096 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12097 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12098 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12099 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12100 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12101 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12102 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12103 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12104 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12105 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12106 pass_data_complete_unroll, make_pass_complete_unroll,
12107 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12108 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12109 tree-ssa-loop-ivcanon.c.
12110 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12111 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12112 tree-ssa-loop-prefetch.c.
12113 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12114 tree-ssa-loop-im.c.
12115 (get_lsm_tmp_name): Relocate and add suffix parameter.
12116 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12117 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12118 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12119 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12120 (get_estimated_loop_iterations): Factor out accessor from
12121 estimated_loop_iterations in tree-ssa-loop-niter.c.
12122 (get_max_loop_iterations): Factor out accessor from
12123 _max_loop_iterations in tree-ssa-niter.c.
12124 * loop-unroll.c (decide_unroll_constant_iterations,
12125 decide_unroll_runtime_iterations, decide_peel_simple,
12126 decide_unroll_stupid): Use new get_* accessors.
12128 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
12130 PR tree-optimization/20318
12131 * doc/extend.texi (returns_nonnull): New function attribute.
12132 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12134 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12135 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12137 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
12139 PR middle-end/58570
12140 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12141 false if both components are bitfields.
12143 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12145 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12146 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12147 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12148 * config/aarch64/aarch64.h
12149 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12150 * config/aarch64/aarch64-simd-builtins.def
12151 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12153 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12155 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12157 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12159 * config/aarch64/arm_neon.h (vdiv_f64): Added.
12161 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12163 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12164 (vneg_f64): New intrinsic.
12165 (vneg_s8): Asm replaced with C.
12166 (vneg_s16): Likewise.
12167 (vneg_s32): Likewise.
12168 (vneg_s64): New intrinsic.
12169 (vnegq_f32): Asm replaced with C.
12170 (vnegq_f64): Likewise.
12171 (vnegq_s8): Likewise.
12172 (vnegq_s16): Likewise.
12173 (vnegq_s32): Likewise.
12174 (vnegq_s64): Likewise.
12176 2013-10-09 Renlin Li <Renlin.Li@arm.com>
12178 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12180 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12182 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12183 packed stack special handling.
12184 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12185 back to fixed stack slots for FPRs saved due to stdarg.
12187 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12189 * config/s390/s390.c (s390_frame_info): Restructure function.
12191 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12193 * config/s390/s390.c (struct s390_frame_layout): New field
12195 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12196 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12197 regs_ever_clobbered to char*.
12198 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12199 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
12200 (s390_register_info): Enable FPR save slots. Move/Copy some
12201 functionality into ...
12202 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12203 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12205 (s390_frame_info): Do gpr slot allocation here now. stdarg does
12206 not imply a stack frame.
12207 (s390_init_frame_layout): Remove variable clobbered_regs.
12208 (s390_update_register_info): Remove function.
12209 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12210 cannot be used for register renaming.
12211 (s390_hard_regno_scratch_ok): New function.
12212 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12213 (s390_initial_elimination_offset): Change offset calculation of
12214 the return address pointer.
12215 (save_gprs): Deal with only r6 being saved from the call-saved regs.
12216 (restore_gprs): Set frame related flag.
12217 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12218 (s390_emit_prologue): Call s390_register_info instead of
12219 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
12220 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12221 (s390_optimize_prologue): Call s390_optimize_register_info.
12222 Try to remove also FPR slot save/restore INSNs. Remove frame
12223 related flags from restore INSNs.
12225 2013-10-08 DJ Delorie <dj@redhat.com>
12227 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12230 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12231 avoid conflict with the MI use of %c.
12232 * config/rl78/rl78-real.md: change %c to %C throughout.
12233 * config/rl78/rl78-virt.md: Likewise.
12235 2013-10-08 Jan Hubicka <jh@suse.cz>
12237 * config/i386/i386.c (ix86_option_override_internal): Switch
12238 to SSE math for -ffast-math when target ISA supports SSE2.
12240 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
12242 * tree-flow.h: Remove some prototypes.
12243 * tree.h: Remove some protypes, add a couple.
12244 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12245 using_eh_for_cleanups_p): Add interface routines for front ends.
12246 * tree-eh.h: New file. Add protoptyes.
12247 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12248 (add_stmt_to_eh_lp_fn): Make static.
12249 (lower_try_finally): Use new using_eh_for_cleanups_p.
12250 * emit-rtl.c: Include tree-eh.h.
12251 * gimple.h: Include tree-eh.h.
12253 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
12255 PR tree-optimization/58480
12256 * tree-vrp.c (infer_nonnull_range): New function.
12257 (infer_value_range): Call infer_nonnull_range.
12259 2013-10-08 Dehao Chen <dehao@google.com>
12261 PR tree-optimization/58619
12262 * tree-inline.c (copy_phis_for_bb): Combine location data
12265 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12268 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12269 RTX_FRAME_RELATED_P on INSN.
12271 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12273 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12274 (altivec_expand_vec_perm_const): Call it.
12276 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12278 * config/rs6000/vector.md (mov<mode>): Emit permuted move
12279 sequences for LE VSX loads and stores at expand time.
12280 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12282 * config/rs6000/rs6000.c (rs6000_const_vec): New.
12283 (rs6000_gen_le_vsx_permute): New.
12284 (rs6000_gen_le_vsx_load): New.
12285 (rs6000_gen_le_vsx_store): New.
12286 (rs6000_gen_le_vsx_move): New.
12287 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12288 (*vsx_le_perm_load_v4si): New.
12289 (*vsx_le_perm_load_v8hi): New.
12290 (*vsx_le_perm_load_v16qi): New.
12291 (*vsx_le_perm_store_v2di): New.
12292 (*vsx_le_perm_store_v4si): New.
12293 (*vsx_le_perm_store_v8hi): New.
12294 (*vsx_le_perm_store_v16qi): New.
12295 (*vsx_xxpermdi2_le_<mode>): New.
12296 (*vsx_xxpermdi4_le_<mode>): New.
12297 (*vsx_xxpermdi8_le_V8HI): New.
12298 (*vsx_xxpermdi16_le_V16QI): New.
12299 (*vsx_lxvd2x2_le_<mode>): New.
12300 (*vsx_lxvd2x4_le_<mode>): New.
12301 (*vsx_lxvd2x8_le_V8HI): New.
12302 (*vsx_lxvd2x16_le_V16QI): New.
12303 (*vsx_stxvd2x2_le_<mode>): New.
12304 (*vsx_stxvd2x4_le_<mode>): New.
12305 (*vsx_stxvd2x8_le_V8HI): New.
12306 (*vsx_stxvd2x16_le_V16QI): New.
12308 2013-10-07 Renlin Li <Renlin.Li@arm.com>
12310 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12312 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12314 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12315 loop to work also for 31bit ABI.
12316 Save the stack pointer for frame_size > 0.
12318 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12320 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12321 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12322 constraint letters from expanders.
12323 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12324 retry count to general_operand.
12325 ("tabort"): Give operand 0 a mode.
12326 ("tabort_1"): Add mode and constraint letter for operand 0.
12327 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12329 2013-10-04 Jeff Law <law@redhat.com>
12331 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12333 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12335 (thread_across_edge): Here. Call it.
12337 2013-10-04 Cary Coutant <ccoutant@google.com>
12339 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12340 discarding a location list expression (or a piece of one).
12342 2013-10-03 Jan Hubicka <jh@suse.cz>
12344 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12345 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
12346 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12348 2013-10-03 Jan Hubicka <jh@suse.cz>
12350 * config/i386/i386.c (ix86_option_override_internal): Do not enable
12351 accumulate-outgoing-args when producing unwind info.
12353 2013-10-03 Wei Mi <wmi@google.com>
12355 * lra-constraints.c (insert_move_for_subreg): New function
12356 extracted from simplify_operand_subreg.
12357 (simplify_operand_subreg): Add reload for paradoxical subreg.
12359 2013-10-03 Rong Xu <xur@google.com>
12361 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12362 the candidate of builtin_expect such that we should fix the
12363 size/time estimation.
12364 (estimate_function_body_sizes): Do the acutally size/time fix-up
12365 for builtin_expect.
12367 2013-10-03 Rong Xu <xur@google.com>
12369 * predict.c (tree_predict_by_opcode): Get the probability
12370 for builtin_expect from param builtin_expect_probability.
12371 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12372 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12373 * doc/invoke.texi: Add documentation for builtin-expect-probability.
12375 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
12378 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12379 * calls.c (alloca_call_p): Use get_callee_fndecl.
12380 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12381 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12383 (vrp_visit_stmt): Remove duplicated code.
12385 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12387 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12388 ceildf2, btruncdf2, instead of vsx_* name.
12390 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12391 iterators to only do V2DF and V4SF here. Move the DF code to
12392 rs6000.md where it is combined with SF mode. Replace <VSv> with
12393 just 'v' since only vector operations are handled with these insns
12394 after moving the DF support to rs6000.md.
12395 (vsx_sub<mode>3): Likewise.
12396 (vsx_mul<mode>3): Likewise.
12397 (vsx_div<mode>3): Likewise.
12398 (vsx_fre<mode>2): Likewise.
12399 (vsx_neg<mode>2): Likewise.
12400 (vsx_abs<mode>2): Likewise.
12401 (vsx_nabs<mode>2): Likewise.
12402 (vsx_smax<mode>3): Likewise.
12403 (vsx_smin<mode>3): Likewise.
12404 (vsx_sqrt<mode>2): Likewise.
12405 (vsx_rsqrte<mode>2): Likewise.
12406 (vsx_fms<mode>4): Likewise.
12407 (vsx_nfma<mode>4): Likewise.
12408 (vsx_copysign<mode>3): Likewise.
12409 (vsx_btrunc<mode>2): Likewise.
12410 (vsx_floor<mode>2): Likewise.
12411 (vsx_ceil<mode>2): Likewise.
12412 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12413 (vsx_sminsf3): Likewise.
12414 (vsx_fmadf4): Likewise.
12415 (vsx_fmsdf4): Likewise.
12416 (vsx_nfmadf4): Likewise.
12417 (vsx_nfmsdf4): Likewise.
12418 (vsx_cmpdf_internal1): Likewise.
12420 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12421 simpler to select whether a target has SPE or traditional floating
12422 point support in iterators.
12423 (TARGET_DF_SPE): Likewise.
12424 (TARGET_SF_FPR): Likewise.
12425 (TARGET_DF_FPR): Likewise.
12426 (TARGET_SF_INSN): Macros to say whether floating point support
12427 exists for a given operation for expanders.
12428 (TARGET_DF_INSN): Likewise.
12430 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12431 combining of SF/DF mode operations, using both traditional and VSX
12439 (abs<mode>2): Combine SF/DF modes using traditional floating point
12440 instructions. Add support for using the upper DF registers with
12441 VSX support, and SF registers with power8-vector support. Update
12442 expanders for operations supported by both the SPE and traditional
12443 floating point units.
12444 (abs<mode>2_fpr): Likewise.
12445 (nabs<mode>2): Likewise.
12446 (nabs<mode>2_fpr): Likewise.
12447 (neg<mode>2): Likewise.
12448 (neg<mode>2_fpr): Likewise.
12449 (add<mode>3): Likewise.
12450 (add<mode>3_fpr): Likewise.
12451 (sub<mode>3): Likewise.
12452 (sub<mode>3_fpr): Likewise.
12453 (mul<mode>3): Likewise.
12454 (mul<mode>3_fpr): Likewise.
12455 (div<mode>3): Likewise.
12456 (div<mode>3_fpr): Likewise.
12457 (sqrt<mode>3): Likewise.
12458 (sqrt<mode>3_fpr): Likewise.
12459 (fre<Fs>): Likewise.
12460 (rsqrt<mode>2): Likewise.
12461 (cmp<mode>_fpr): Likewise.
12462 (smax<mode>3): Likewise.
12463 (smin<mode>3): Likewise.
12464 (smax<mode>3_vsx): Likewise.
12465 (smin<mode>3_vsx): Likewise.
12466 (negsf2): Delete SF operations that are merged with DF.
12467 (abssf2): Likewise.
12468 (addsf3): Likewise.
12469 (subsf3): Likewise.
12470 (mulsf3): Likewise.
12471 (divsf3): Likewise.
12473 (fmasf4_fpr): Likewise.
12474 (fmssf4_fpr): Likewise.
12475 (nfmasf4_fpr): Likewise.
12476 (nfmssf4_fpr): Likewise.
12477 (sqrtsf2): Likewise.
12478 (rsqrtsf_internal1): Likewise.
12479 (smaxsf3): Likewise.
12480 (sminsf3): Likewise.
12481 (cmpsf_internal1): Likewise.
12482 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12483 (negdf2): Delete DF operations that are merged with SF.
12484 (absdf2): Likewise.
12485 (nabsdf2): Likewise.
12486 (adddf3): Likewise.
12487 (subdf3): Likewise.
12488 (muldf3): Likewise.
12489 (divdf3): Likewise.
12491 (rsqrtdf_internal1): Likewise.
12492 (fmadf4_fpr): Likewise.
12493 (fmsdf4_fpr): Likewise.
12494 (nfmadf4_fpr): Likewise.
12495 (nfmsdf4_fpr): Likewise.
12496 (sqrtdf2): Likewise.
12497 (smaxdf3): Likewise.
12498 (smindf3): Likewise.
12499 (cmpdf_internal1): Likewise.
12500 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12501 (btrunc<mode>2): Delete separate expander, and combine with the
12502 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
12503 (btrunc<mode>2_fpr): Likewise.
12504 (ceil<mode>2): Likewise.
12505 (ceil<mode>2_fpr): Likewise.
12506 (floor<mode>2): Likewise.
12507 (floor<mode>2_fpr): Likewise.
12508 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12509 Add support for using the upper registers with VSX and
12510 power8-vector. Move insns to be closer to the define_expands. On
12511 VSX systems, prefer the traditional form of FMA over the VSX
12512 version, since the traditional form allows the target not to
12513 overlap with the inputs.
12514 (fms<mode>4_fpr): Likewise.
12515 (nfma<mode>4_fpr): Likewise.
12516 (nfms<mode>4_fpr): Likewise.
12518 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12519 Richard Earnshaw <richard.earnshaw@arm.com>
12521 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12522 (struct mult_cost_table): Likewise.
12523 (struct mem_cost_table): Likewise.
12524 (struct fp_cost_table): Likewise.
12525 (struct vector_cost_table): Likewise.
12526 (cpu_cost_table): Likewise.
12527 * config/arm/arm.opt (mold-rts-costs): New option.
12528 (mnew-generic-costs): Likewise.
12529 * config/arm/arm.c (generic_extra_costs): New table.
12530 (cortexa15_extra_costs): Likewise.
12531 (arm_slowmul_tune): Use NULL as new costs.
12532 (arm_fastmul_tune): Likewise.
12533 (arm_strongarm_tune): Likewise.
12534 (arm_xscale_tune): Likewise.
12535 (arm_9e_tune): Likewise.
12536 (arm_v6t2_tune): Likewise.
12537 (arm_cortex_a5_tune): Likewise.
12538 (arm_cortex_a9_tune): Likewise.
12539 (arm_v6m_tune): Likewise.
12540 (arm_fa726te_tune): Likewise.
12541 (arm_cortex_a15_tune): Use cortex15_extra_costs.
12542 (arm_cortex_tune): Use generict_extra_costs.
12543 (shifter_op_p): New function.
12544 (arm_unspec_cost): Likewise.
12545 (LIBCALL_COST): Define.
12546 (arm_new_rtx_costs): New function.
12547 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12548 table is available. Use old costs otherwise unless mnew-generic-costs
12550 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12551 (cpu_cost_table): Declare.
12553 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
12556 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12557 (*subs_mul_imm_<mode>)
12558 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12559 (*sub_<shift>_<mode>)
12560 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12561 Remove k constraint.
12563 2013-10-03 Ian Bolton <ian.bolton@arm.com>
12565 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12567 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12569 2013-10-02 Teresa Johnson <tejohnson@google.com>
12571 * predict.c (probably_never_executed): New function.
12572 (probably_never_executed_bb_p): Invoke probably_never_executed.
12573 (probably_never_executed_edge_p): Ditto.
12574 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12575 Treat profile insanities conservatively.
12577 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
12579 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12581 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
12583 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12584 use it. Use smaller increase for scratch. Don't increase reject
12585 for early clobber scratch.
12586 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12587 setting eliminated regs except setting fp from hfp.
12588 (lra_eliminate): Check lra_insn_recog_data on NULL.
12590 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12593 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12594 setting -mvsx-timode by default until the underlying problem is fixed.
12595 (RS6000_CPU, power7 defaults): Likewise.
12597 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12599 * config/x-linux (host-linux.o): Remove header dependencies.
12600 Use $(COMPILE) and $(POSTCOMPILE).
12601 * config/t-linux-android (linux-android.o): Ditto.
12603 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12605 * Makefile.in (expmed.o-warn): Remove.
12607 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12609 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12610 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12612 2013-10-02 Teresa Johnson <tejohnson@google.com>
12614 * dojump.c (do_jump_1): Divide probability between
12615 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12617 2013-10-02 Tom Tromey <tromey@redhat.com>
12619 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12621 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12623 * tree-flow.h: Remove some prototypes.
12624 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12625 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12626 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12627 mark_virtual_phi_result_for_renaming): Relocate here.
12628 * tree-into-ssa.h: Add prototypes.
12629 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12630 single_pred_before_succ_order.
12631 (blocks_in_phiopt_order): Rename and move to cfganal.c.
12632 (nonfreeing_call_p) Move to gimple.c.
12633 * cfganal.c (single_pred_before_succ_order): Move and renamed from
12635 * basic-block.h (single_pred_before_succ_order): Add prototype.
12636 * gimple.c (nonfreeing_call_p): Relocate here.
12637 * gimple.h: Add prototype.
12638 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12639 * tree-ssa-dom.h: New file. Relocate prototypes here.
12640 * tree-ssa.h: Include tree-ssa-dom.h.
12642 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12644 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12645 Use $(COMPILE) and $(POSTCOMPILE).
12647 * config/alpha/x-alpha (driver-alpha.o): Ditto.
12649 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12651 * tree-flow.h: Remove some prototypes.
12652 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12653 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12654 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12655 propagate_tree_value*): Move from here to...
12656 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12657 propagate_tree_value*): Relocate here.
12658 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12659 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12660 * gimple-fold.c: Remove gimple-fold.h from include list.
12661 * tree-vrp.c: Remove gimple-fold.h from include list.
12662 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12663 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12664 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12665 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12666 * sese.c: Add tree-ssa-propagate.h to include list.
12668 2013-10-02 Richard Biener <rguenther@suse.de>
12670 * tree-loop-distribution.c: Include tree-vectorizer.h for
12671 find_loop_location.
12672 (enum partition_kind): Remove PKIND_REDUCTION.
12673 (struct partition_s): Remove has_writes member, add reduction_p member.
12674 (partition_alloc): Adjust.
12675 (partition_builtin_p): Likewise.
12676 (partition_has_writes): Remove.
12677 (partition_reduction_p): New function.
12678 (partition_merge_into): Likewise.
12679 (generate_code_for_partition): Commonize builtin partition
12681 (rdg_cannot_recompute_vertex_p): Remove.
12682 (already_processed_vertex_p): Likewise.
12683 (rdg_flag_vertex): Do not set has_writes.
12684 (classify_partition): Adjust.
12685 (rdg_build_partitions): Do not set has_writes, treat all
12686 partitions as useful.
12687 (distribute_loop): Record number of library calls generated. Adjust.
12688 (tree_loop_distribution): Report number of loops and library
12689 calls generated as opt-info.
12691 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12693 * tree-flow.h: Include new .h files. Move prototypes.
12694 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
12695 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
12696 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12697 * tree-pretty-print.h: Add prototypes from tree-flow.h.
12698 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
12699 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12700 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12701 * tree.h (get_ref_base_and_extent): Move prototype out.
12702 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12704 * gimple-low.h: New File. Add prototypes from tree-flow.h.
12705 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12706 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12707 * tree-scalar-evolution.c: Include tree.h.
12708 * sese.c: Include tree.h.
12709 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12710 * dwarf2out.c: Include tree-dfa.h.
12711 * tree-chrec.c: Include tree.h.
12712 * tree-data-ref.c: Include tree.h.
12714 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
12716 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12719 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12721 * config/t-sol2 (sol2-c.o): Remove header dependencies.
12722 Use $(COMPILE) and $(POSTCOMPILE).
12723 (sol2-cxx.o): Likewise.
12724 (sol2-stubs.o): Likewise.
12725 (sol2.o): Likewise.
12726 * config/x-solaris (host-solaris.o): Likewise.
12728 * config/sparc/t-sparc (sparc.o): Remove.
12729 (sparc-c.o): Remove header dependencies.
12730 Use $(COMPILE) and $(POSTCOMPILE).
12731 * config/sparc/x-sparc: Likewise.
12733 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
12735 * config/arc/arc-opts.h: Add 2013 to Copyright years.
12736 * config/arc/arc700.md: Likewise.
12737 * config/arc/arc-modes.def: Likewise.
12738 * config/arc/arc-simd.h: Likewise.
12739 * config/arc/t-arc-uClibc: Likewise.
12740 * config/arc/t-arc-newlib: Likewise.
12742 2013-10-02 Renlin Li <renlin.li@arm.com>
12744 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12746 (aarch64_expand_epilogue): Likewise.
12748 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12749 Yufeng Zhang <yufeng.zhang@arm.com>
12751 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12753 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12754 'base_in' represent a conversion and legal_cast_p_1 holds; set
12755 'base_in' with the returned value from get_unwidened.
12757 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12759 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12760 plus_constant is not used.
12762 2013-10-01 Wei Mi <wmi@google.com>
12764 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12765 * config/i386/i386.md: Add define_peephole2 to
12766 break partial reg stall for cvtss2sd/cvtsd2ss.
12768 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12770 * config/arc/arc.c (pass_arc_ifcvt::clone):
12771 Update for ctxt_ -> m_ctxt change.
12773 2013-10-01 Jeff Law <law@redhat.com>
12775 * tree-ssa-threadupdate.c (struct redirection_data): Delete
12776 outgoing_edge and intermediate_edge fields. Instead store the path.
12777 (redirection_data::hash): Hash on the last edge's destination index.
12778 (redirection_data::equal): Check the entire thread path.
12779 (lookup_redirectio_data): Corresponding changes.
12780 (create_edge_and_update_destination_phis): Likewise.
12781 (thread_single_edge): Likewise.
12783 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12784 Diego Novillo <dnovillo@google.com>
12786 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12787 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12788 (vld32wh_insn, vld32wl_insn): Delete commented-out old
12789 versions of these patterns.
12791 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12792 (__builtin_arc_aligned): Likewise.
12794 * config/arc/arc.md: Expand adc_0 comment stating the intended
12795 purpose and why it isn't ready.
12796 Replace commented out call_value_via_label_mixed with a
12797 plain comment about bl_s.
12799 * config/arc/arc.c (stdio.h): Don't include directly.
12800 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12801 Remove if (1) condition.
12802 (arc_encode_section_info): Fix comment.
12804 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12806 * config/arc/arc.c (arc_conditional_register_usage):
12807 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12808 Also set reg_alloc_order for DMA config regs.
12810 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12811 Jeremy Bennett <jeremy.bennett@embecosm.com>
12813 * doc/install.texi (--with-cpu): Mention ARC.
12814 (arc-*-elf32): New paragraph.
12815 (arc-linux-uclibc): Likewise.
12816 * doc/md.texi (Machine Constraints): Add ARC part.
12817 * doc/invoke.texi: (menu): Add ARC Options.
12818 (Machine Dependent Options) <ARC Options>: Add synopsis.
12819 (node ARC Options): Add.
12820 * doc/extend.texi (long_call / short_call attribute): Add ARC.
12821 (ARC Built-in Functions): New section defining
12822 generic ARC built-in functions.
12823 (ARC SIMD Built-in Functions): New section defining SIMD specific
12824 built-in functions.
12825 (Declaring Attributes of Functions): Extended
12826 description of short_call and long_call attributes for ARC and
12827 added index entries.
12829 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
12830 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
12831 Joern Rennecke <joern.rennecke@embecosm.com>
12832 Muhammad Khurram Riaz <khurram.riaz@arc.com>
12833 Brendan Kehoe <brendan@zen.org>
12834 Michael Eager <eager@eagercon.com>
12835 Simon Cook <simon.cook@embecosm.com>
12836 Jeremy Bennett <jeremy.bennett@embecosm.com>
12838 * config/arc, common/config/arc: New directories.
12840 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12841 Brendan Kehoe <brendan@zen.org>
12842 Simon Cook <simon.cook@embecosm.com>
12844 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12846 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
12848 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12849 * tree-ssa-coalesce.h: New. Move prototype to here.
12850 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12851 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12852 (gimple_can_coalesce_p): Move to...
12853 * gimple.c (gimple_can_coalesce_p): Here.
12855 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
12857 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12858 (dump_decl_set): Move to gimple.c.
12859 * gimple.h: Don't include tree-ssa-operands.h.
12860 (dump_decl_set): Add prototype.
12861 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12862 Move to gimple-ssa.h.
12863 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12864 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12865 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12866 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12867 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12869 (dump_decl_set): Relocate here.
12870 * gimple-ssa.h: New file.
12871 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12872 Relocate from gimple.h.
12873 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12874 * tree-ssa-operands.c (swap_ssa_operands): Rename from
12875 swap_tree_operands and remove non-ssa path.
12876 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12877 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12879 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12880 vect_is_simple_reduction_1): Use swap_ssa_operands.
12881 * tree-flow.h: Move various prototypes to tree-phinodes.h.
12882 (enum need_phi_state): Move to tree-into-ssa.c.
12883 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12884 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12885 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12886 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12887 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12888 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12889 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12890 num_imm_uses): Move to ssa-iterators.h.
12891 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12892 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12894 (op_iter_done, op_iter_next_def, op_iter_next_tree,
12895 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12896 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12897 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12898 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12899 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12900 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12901 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12902 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12903 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12904 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12905 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12906 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12907 (set_phi_nodes): Move to tree-phinodes.h.
12908 * tree-ssa-operands.h (enum ssa_op_iter_type,
12909 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12910 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12911 (dump_decl_set): Remove prototype.
12912 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12913 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
12914 (set_phi_nodes): Relocate from tree-flow-inline.h.
12915 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12917 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12918 include list. Temporarily add gimple.h to include list.
12919 * ssa-iterators.h: New file.
12920 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12921 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12922 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12923 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12924 Relocate from tree-ssa-operands.h.
12925 (delink_imm_use, link_imm_use_to_list, link_imm_use,
12926 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12927 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12928 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12929 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12930 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12931 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12932 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12933 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12934 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12935 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12936 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12937 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12938 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12939 Relocate from tree-flow-inline.h.
12940 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12942 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
12945 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12946 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12947 Insert '\t' to output template.
12948 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12949 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12950 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12951 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12953 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
12955 * doc/install.texi (Host/target specific installation notes for GCC):
12956 Put @anchor before @heading.
12957 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12958 Use @email for email addresses.
12960 2013-10-01 Jeff Law <law@redhat.com>
12962 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12963 a vec. Only delete the path if we create one without successfully
12964 registering a jump thread.
12965 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12967 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
12968 (paths): New vector of jump threading paths.
12969 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12970 (THREAD_PATH): New accessor macro for the entire thread path.
12971 (lookup_redirection_data): Get intermediate and final outgoing edge
12972 from the thread path.
12973 (create_edge_and_update_destination_phis): Copy the threading path.
12974 (ssa_fix_duplicate_block_edges): Get edges and block types from the
12975 jump threading path.
12976 (ssa_redirect_edges): Get edges and block types from the jump threading
12977 path. Free the path vector.
12978 (thread_block): Get edges from the jump threading path. Look at the
12979 entire path to see if we thread to a loop exit. If we cancel a jump
12980 thread request, then free the path vector.
12981 (thread_single_edge): Get edges and block types from the jump threading
12982 path. Free the path vector.
12983 (thread_through_loop_header): Get edges and block types from the jump
12984 threading path. Free the path vector.
12985 (mark_threaded_blocks): Iterate over the vector of paths and store
12986 the path on the appropriate edge. Get edges and block types from the
12987 jump threading path.
12988 (mark_threaded_blocks): Get edges and block types from the jump
12989 threading path. Free the path vector.
12990 (thread_through_all_blocks): Use the vector of paths rather than
12991 a vector of 3-edge sets.
12992 (register_jump_thread): Accept pointer to a path vector rather
12993 than the path vector itself. Store the path vector for later use.
12996 2013-10-01 Jakub Jelinek <jakub@redhat.com>
12997 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13000 * config/s390/s390.c (s390_split_branches): Modify check for table
13002 (s390_chunkify_start): Rearrange table jump insn check in order to
13003 deal with compare and branch insns correctly.
13005 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
13009 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
13010 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
13011 define_insn_and_split.
13012 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13013 (shiftsi3_compare): New pattern.
13014 (rrx): New pattern.
13015 * config/arm/unspecs.md (UNSPEC_RRX): New.
13017 2013-10-01 Alan Modra <amodra@gmail.com>
13019 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13020 casing inout operands.
13022 2013-10-01 Richard Biener <rguenther@suse.de>
13024 PR tree-optimization/58553
13025 * tree-loop-distribution.c (struct partition_s): Add niter member.
13026 (classify_partition): Populate niter member for the partition
13027 and properly identify whether the relevant store happens before
13028 or after the loop exit.
13029 (generate_memset_builtin): Use niter member from the partition.
13030 (generate_memcpy_builtin): Likewise.
13032 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13034 * vec.h (vec_prefix, vec): Prefix member names with "m_".
13035 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13037 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13039 * basic-block.h (edge_list): Prefix member names with "m_".
13040 * context.h (context): Likewise.
13041 * domwalk.h (dom_walker): Likewise.
13042 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13043 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13044 * hash-table.h (hash_table): Likewise.
13045 * machmode.h (bit_field_mode_iterator): Likewise.
13046 * pass_manager.h (pass_list): Likewise.
13047 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13048 * tree-pass.h (pass_data): Likewise.
13049 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13050 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13051 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13052 * asan.c (pass_data_asan): Update accordingly.
13053 * cfganal.c (control_dependences::find_control_dependence): Likewise.
13054 (control_dependences::control_dependences): Likewise.
13055 (control_dependences::~control_dependences): Likewise.
13056 (control_dependences::~control_dependences): Likewise.
13057 (control_dependences::get_edges_dependent_on): Likewise.
13058 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13059 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13060 * context.c (gcc::context::context): Likewise.
13061 * cprop.c (pass_rtl_cprop::clone): Likewise.
13062 * domwalk.c (dom_walker::walk): Likewise.
13063 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13064 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13065 * mode-switching.c (pass_mode_switching::clone): Likewise.
13066 * passes.c (opt_pass::opt_pass): Likewise.
13067 (pass_manager::pass_manager): Likewise.
13068 * predict.c (pass_strip_predict_hints::clone): Likewise.
13069 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13070 (pass_split_all_insns::clone): Likewise.
13071 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13073 (bit_field_mode_iterator::next_mode): Likewise.
13074 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13075 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13076 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13077 * tree-complex.c (pass_lower_complex::clone): Likewise.
13078 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13079 * tree-object-size.c (pass_object_sizes::clone): Likewise.
13080 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13081 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13082 (pass_fold_builtins::clone): Likewise.
13083 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13084 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13085 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13086 (pass_cd_dce::clone): Likewise.
13087 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13088 (pass_phi_only_cprop::clone): Likewise.
13089 * tree-ssa-dse.c (pass_dse::clone): Likewise.
13090 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13091 * tree-ssa-loop.c (pass_lim::clone): Likewise.
13092 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13093 * tree-ssa-pre.c (pass_fre::clone): Likewise.
13094 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13095 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13096 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13097 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13098 * tree-vrp.c (pass_vrp::clone): Likewise.
13099 * tsan.c (pass_tsan::clone): Likewise.
13101 2013-09-30 Jakub Jelinek <jakub@redhat.com>
13103 PR middle-end/58564
13104 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13105 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13107 PR middle-end/58564
13108 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13109 optimization, punt if sign_bit_p looked through any zero extension.
13111 2013-09-30 Teresa Johnson <tejohnson@google.com>
13113 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13114 Update redirected out edge count in joiner case.
13115 (ssa_redirect_edges): Common the joiner and non-joiner cases
13116 so that joiner case gets profile updates.
13118 2013-09-30 Richard Biener <rguenther@suse.de>
13120 PR tree-optimization/58554
13121 * tree-loop-distribution.c (classify_partition): Require
13122 unconditionally executed stores for memcpy and memset recognition.
13123 (tree_loop_distribution): Calculate dominance info.
13125 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
13127 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13128 (NO_PROFILE_COUNTERS): Likewise.
13129 (PROFILE_HOOK): Likewise.
13130 (FUNCTION_PROFILER): Likewise.
13131 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13133 2013-09-30 Iain Sandoe <iain@codesourcery.com>
13135 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13136 calls and defines in TARGET_MACHO conditional.
13137 (load_macho_picbase_di): Likewise.
13138 (reload_macho_picbase): Likewise.
13139 (reload_macho_picbase_si): Likewise.
13140 (reload_macho_picbase_di): Likewise.
13141 (nonlocal_goto_receiver): Likewise.
13143 2013-09-30 Nick Clifton <nickc@redhat.com>
13145 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
13146 that use the MSP430X ISA.
13147 (msp430_option_override): Scan -mmcu command line option for any
13148 MCU name that supports the MSP430X ISA.
13149 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13150 -mmcu options which enable the MSP430X ISA.
13152 2013-09-30 Richard Biener <rguenther@suse.de>
13154 PR middle-end/58532
13155 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13156 before looking for setjmp-like calls.
13158 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13161 * config/darwin-protos.h (machopic_get_function_picbase): New.
13162 * config/darwin.c (machopic_get_function_picbase): New.
13163 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13164 label for a new func. (load_macho_picbase_di): Likewise.
13165 (reload_macho_picbase): New expand.
13166 (reload_macho_picbase_si): New insn.
13167 (reload_macho_picbase_di): New insn.
13168 (nonlocal_goto_receiver): New define and split.
13169 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13170 (unspecv enum): Add UNSPECV_NLGR.
13172 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13174 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13175 that altivec registers are correctly sized on Darwin.
13177 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13179 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13180 darwin-driver.o): Use COMPILE and POSTCOMPILE.
13181 * config/x-darwin (host-darwin.o): Likewise.
13182 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13183 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13184 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13186 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
13188 * doc/invoke.texi: Fix usage of @tie{} command.
13190 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
13192 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13194 2013-09-28 Jan Hubicka <jh@suse.cz>
13196 * config/i386/x86-tune.def: Add documentation for each of the options;
13199 2013-09-28 Jan Hubicka <jh@suse.cz>
13201 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13203 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13204 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13205 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13206 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13207 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13209 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
13211 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13212 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13213 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13214 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13215 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13216 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13217 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13218 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13219 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13220 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13221 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13222 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13223 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13224 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13225 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13226 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13227 gimple.h, godump.c, graphite-clast-to-gimple.c,
13228 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13229 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13230 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13231 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13232 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13233 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13234 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13235 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13236 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13237 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13238 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13239 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13240 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13241 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13242 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13243 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13244 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13245 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13246 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13247 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13248 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13249 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13250 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13251 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13252 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13253 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13254 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13255 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13256 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13257 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13258 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13259 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13260 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13261 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13262 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13263 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13264 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13265 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13266 whitespace before "(".
13268 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
13270 * expr.h (extract_bit_field): Remove packedp parameter.
13271 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13272 from forward declaration.
13273 (store_split_bit_field): Remove packedp arg from calls to
13274 extract_fixed_bit_field.
13275 (extract_bit_field_1): Remove packedp parameter and packedp
13276 argument from recursive calls and calls to extract_fixed_bit_field.
13277 (extract_bit_field): Remove packedp parameter and corresponding
13278 arg to extract_bit_field_1.
13279 (extract_fixed_bit_field): Remove packedp parameter. Remove code
13281 (extract_split_bit_field): Remove packedp arg from call to
13282 extract_fixed_bit_field.
13283 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13284 (copy_blkmode_from_reg): Likewise.
13285 (copy_blkmode_to_reg): Likewise.
13286 (read_complex_part): Likewise.
13287 (store_field): Likewise.
13288 (expand_expr_real_1): Likewise.
13289 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13290 to extract_bit_field.
13291 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13292 call to extract_bit_field.
13293 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13294 call to extract_bit_field.
13295 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13296 and special packedp behavior from -fstrict-volatile-bitfields
13299 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13301 * lra-eliminations.c (init_elim_table): Guard value_p.
13303 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13305 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13306 DFmode, DImode, and SFmode in the upper VSX registers based on the
13307 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
13308 if -mpower8-vector. Combine -mvsx-timode handling with the rest
13309 of the VSX register handling.
13311 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13312 (f32_sv): Likewise.
13313 (zero_extendsidi2_lfiwzx): Add support for loading into the
13314 Altivec registers with -mpower8-vector. Use wu/wv constraints to
13315 only do VSX memory options on Altivec registers.
13316 (extendsidi2_lfiwax): Likewise.
13317 (extendsfdf2_fpr): Likewise.
13318 (mov<mode>_hardfloat, SF/SD modes): Likewise.
13319 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13320 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13321 (movdi_internal64): Likewise.
13323 2013-09-27 Xinliang David Li <davidxl@google.com>
13325 * opts.c (finish_options): Adjust parameters
13326 according to vect cost model.
13327 (common_handle_option): Set dynamic vect cost
13329 targhooks.c (default_add_stmt_cost): Compute stmt cost
13331 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13332 Use helper function.
13333 * tree-vectorizer.h (unlimited_cost_model): New function.
13334 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13335 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13337 (vect_enhance_data_refs_alignment): Ditto.
13338 * flag-types.h: New enum.
13339 * common/config/i386/i386-common.c (ix86_option_init_struct):
13340 No need to initialize vect_cost_model flag.
13341 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13344 2013-09-27 Diego Novillo <dnovillo@google.com>
13346 * gimple.h (enum ssa_mode): Remove.
13348 2013-09-27 Paulo Matos <pmatos@broadcom.com>
13350 * cfgloop.h (number_of_loops): Fix typo in check for null.
13352 2013-09-27 Jakub Jelinek <jakub@redhat.com>
13354 PR middle-end/58551
13355 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13356 are children of outermost saved_cfun's loop, and set it up to
13357 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
13358 if loop != loop0 and SESE region contains bbs that belong to loop0.
13360 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13362 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13363 (binary_scale_code_p, get_base_term, get_index_term): New functions.
13364 (set_address_segment, set_address_base, set_address_index)
13365 (set_address_disp): Accept the argument unconditionally.
13366 (baseness): Remove must_be_base_p and must_be_index_p checks.
13367 (decompose_normal_address): Classify as much as possible in the
13370 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13372 * cse.c (count_reg_usage): Handle INT_LIST.
13373 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13374 * reginfo.c (reg_scan_mark_refs): Likewise.
13375 * reload1.c (eliminate_regs_1): Likewise.
13377 2013-09-27 Iain Sandoe <iain@codesourcery.com>
13379 PR middle-end/58547
13380 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13383 2013-09-27 Richard Biener <rguenther@suse.de>
13385 PR tree-optimization/58459
13386 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13387 restriction not propagating into loops.
13389 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
13391 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13392 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13393 * doc/tree-ssa.texi (Walking use-def chains): Delete.
13395 2013-09-26 Richard Biener <rguenther@suse.de>
13397 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13399 2013-09-26 Richard Biener <rguenther@suse.de>
13401 * alias.h (component_uses_parent_alias_set): Rename to ...
13402 (component_uses_parent_alias_set_from): ... this.
13403 * alias.c (component_uses_parent_alias_set): Rename to ...
13404 (component_uses_parent_alias_set_from): ... this and return
13405 the desired parent.
13406 (reference_alias_ptr_type_1): Use the result from
13407 component_uses_parent_alias_set_from instead of stripping
13408 components one at a time.
13409 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13411 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13413 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13414 Move prototypes to...
13415 * tree-ssa-ter.h: New File. Move prototypes here.
13416 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13417 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13418 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
13419 from is_replaceable_p.
13420 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13421 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
13422 (process_replaceable): Use ter_is_replaceable_p.
13423 (find_replaceable_in_bb): Use ter_is_replaceable_p.
13424 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
13425 newly refactored ssa_is_replaceable_p.
13426 * cfgexpand.c: Include tree-outof-ssa.h.
13427 * ssaexpand.h: Delete.
13429 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13431 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13432 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13434 (create_gimple_tmp): Delete.
13435 (get_expr_type, build_assign, build_type_cast): Move to...
13436 * gimple-builder.c: New File.
13437 (get_expr_type): Relocate from gimple.c.
13438 (build_assign, build_type_cast): Change to only create ssanames.
13439 * gimple.h: Move prototypes to...
13440 * gimple-builder.h: New File. Here.
13441 * tree-ssa.h: And here.
13442 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13443 count_uses_and_derefs): Relocate from gimple.c.
13444 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13445 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13446 * tree-ssa-math-opts (execute_cse_reciprocals): Use
13447 gimple_replace_ssa_lhs.
13448 * asan.c: Include gimple-builder.h.
13449 * Makefile.in: Add gimple-builder.o.
13451 2013-09-26 Richard Biener <rguenther@suse.de>
13453 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13454 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13455 (loe_visit_block): Use gcc_checking_assert.
13456 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13457 gimple_assign_ssa_name_copy_p.
13458 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13461 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
13463 * config/rs6000/t-rs6000 (rs6000.o): Remove.
13464 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13466 2013-09-26 Richard Biener <rguenther@suse.de>
13468 PR tree-optimization/58539
13469 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13470 the fact that debug statements are not taking part in loop-closed
13473 2013-09-26 Nick Clifton <nickc@redhat.com>
13475 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13476 time warning message.
13477 (msp430_print_operand_raw): Delete unused letter parameter.
13478 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13479 (msp430_print_operand_address): New function.
13480 (msp430_print_operand): Move address printing code from here to
13482 * config/msp430/msp430.md (movsipsi2): Add comment in generated
13484 (zero_extendpsisi2): Likewise.
13485 (extendpsisi2): New pattern.
13486 (andneghi3): New pattern.
13488 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
13490 * config/aarch64/aarch64.opt (mlra): New option.
13491 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13492 (TARGET_LRA_P): Define.
13494 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
13496 * expr.c (expand_assignment): Remove obsolete comment.
13498 2013-09-25 Jeff Law <law@redhat.com>
13500 * tree-flow.h (thread_through_all_blocks): Prototype moved into
13501 tree-ssa-threadupdate.h.
13502 (register_jump_thread): Similarly.
13503 * tree-ssa-threadupdate.h: New header file.
13504 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13505 * tree-vrp.c: Likewise.
13506 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13507 (thread_around_empty_blocks): Change type of path vector argument to
13508 an edge,type pair from just an edge. Initialize both elements when
13509 appending to a jump threading path. Tweak references to elements
13511 (thread_across_edge): Similarly. Release memory for the elements
13513 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13514 (dump_jump_thread_path): New function broken out from
13515 register_jump_thread.
13516 (register_jump_thread): Use dump_jump_thread_path. Change type of
13517 path vector entries. Search the path for NULL edges and dump
13518 the path if one is found. Tweak the conversion of path to 3-edge
13519 form to use the block copy type information embedded in the path.
13521 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13523 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13525 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13526 Vladimir Makarov <vmakarov@redhat.com>
13528 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13529 from the least significant bit.
13530 (strip_address_mutations): Add bitfield operations handling.
13531 (must_be_index_p): Add shifting and rotate operations handling.
13532 (set_address_base): Use must_be_base_p predicate.
13533 (set_address_index): Use must_be_index_p predicate.
13535 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13536 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13537 Sergey Lega <sergey.s.lega@intel.com>
13538 Anna Tikhonova <anna.tikhonova@intel.com>
13539 Ilya Tocar <ilya.tocar@intel.com>
13540 Andrey Turetskiy <andrey.turetskiy@intel.com>
13541 Ilya Verbin <ilya.verbin@intel.com>
13542 Kirill Yukhin <kirill.yukhin@intel.com>
13543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13545 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13547 (ix86_expand_vector_move_misalign): Support new unaligned load and
13548 stores and use new names.
13549 (CODE_FOR_sse2_storedqu): Rename to ...
13550 (CODE_FOR_sse2_storedquv16qi): ... this.
13551 (CODE_FOR_sse2_loaddqu): Rename to ...
13552 (CODE_FOR_sse2_loaddquv16qi): ... this.
13553 (CODE_FOR_avx_loaddqu256): Rename to ...
13554 (CODE_FOR_avx_loaddquv32qi): ... this.
13555 (CODE_FOR_avx_storedqu256): Rename to ...
13556 (CODE_FOR_avx_storedquv32qi): ... this.
13557 * config/i386/i386.md (fpint_logic): New.
13558 * config/i386/sse.md (VMOVE): Extend for AVX512.
13562 (VI_UNALIGNED_LOADSTORE): Ditto.
13563 (sse2_avx_avx512f): Ditto.
13564 (sse2_avx2): Extend for AVX512.
13565 (sse4_1_avx2): Ditto.
13566 (avx2_avx512f): New.
13567 (sse): Extend for AVX512.
13570 (avxsizesuffix): Ditto.
13571 (sseintvecmode): Ditto.
13572 (ssePSmode): Ditto.
13573 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13574 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13575 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13576 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13577 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13578 (<sse2_avx_avx512f>_storedqu<mode): ... this.
13579 (<sse>_movnt<mode>): Replace constraint "x" with "v".
13580 (STORENT_MODE): Extend for AVX512.
13581 (*absneg<mode>2): Replace constraint "x" with "v".
13582 (*mul<mode>3): Ditto.
13583 (*ieee_smin<mode>3): Ditto.
13584 (*ieee_smax<mode>3): Ditto.
13585 (avx_cmp<mode>3): Replace VF with VF_128_256.
13586 (*<sse>_maskcmp<mode>3_comm): Ditto.
13587 (<sse>_maskcmp<mode>3): Ditto.
13588 (<sse>_andnot<mode>3): Extend for AVX512.
13589 (<code><mode>3, anylogic): Replace VF with VF_128_256.
13590 (<code><mode>3, fpint_logic): New.
13591 (*<code><mode>3): Extend for AVX512.
13592 (avx512flogicsuff): New.
13593 (avx512f_<logic><mode>): Ditto.
13594 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13596 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13597 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13598 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13599 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13600 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13601 (xop_vpermil2<mode>3): Ditto.
13602 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13603 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13604 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13605 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13607 2013-09-25 Tom Tromey <tromey@redhat.com>
13609 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13610 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13611 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13612 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13613 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13614 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13615 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13616 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13617 (GRAPHITE_HTAB_H): Remove.
13619 2013-09-25 Tom Tromey <tromey@redhat.com>
13621 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13623 2013-09-25 Tom Tromey <tromey@redhat.com>
13625 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13627 2013-09-25 Tom Tromey <tromey@redhat.com>
13629 * config/i386/t-i386 (i386.o): Remove.
13630 (i386-c.o): Use COMPILE and POSTCOMPILE.
13632 2013-09-25 Tom Tromey <tromey@redhat.com>
13634 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13636 2013-09-25 Tom Tromey <tromey@redhat.com>
13638 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13639 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13640 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13641 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13642 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13643 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13644 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13645 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13646 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13647 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13648 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13649 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13650 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13651 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13652 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13653 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13654 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13655 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13656 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13657 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13658 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13659 (tree-ssa-pre.o, tree-ssa-sccvn.o)
13660 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13661 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13662 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13663 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13664 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13665 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13666 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13667 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13668 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13669 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13670 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13671 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13672 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13673 (graphite-clast-to-gimple.o, graphite-dependences.o)
13674 (graphite-interchange.o, graphite-poly.o)
13675 (graphite-scop-detection.o, graphite-sese-to-poly.o)
13676 (graphite-optimize-isl.o, tree-vect-loop.o)
13677 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13678 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13679 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13680 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13681 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13682 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13683 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13684 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13685 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13686 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13687 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13688 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13689 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13690 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13691 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13692 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13693 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13694 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13695 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13696 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13697 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13698 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13699 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13700 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13701 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13702 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13703 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13704 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13705 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13706 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13707 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13708 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13709 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13710 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13711 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13712 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13713 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13714 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13715 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13716 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13717 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13718 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13719 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13720 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13721 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13722 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13723 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13724 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13725 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13726 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13727 (gcov-dump.o): Remove.
13728 (default-c.o): Use COMPILE and POSTCOMPILE.
13729 (CFLAGS-gcc.o): New variable.
13730 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13732 2013-09-25 Tom Tromey <tromey@redhat.com>
13734 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13735 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13736 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13737 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13738 (c-family/c-pragma.o, c-family/c-pretty-print.o)
13739 (c-family/c-semantics.o, c-family/c-ada-spec.o)
13740 (c-family/array-notation-common.o, c-family/stub-objc.o)
13741 (c-family/c-ubsan.o): Remove.
13743 2013-09-25 Tom Tromey <tromey@redhat.com>
13745 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13747 2013-09-25 Tom Tromey <tromey@redhat.com>
13749 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13750 to add -DENABLE_SHARED_LIBGCC.
13751 (gcc.o): Don't use subshell.
13753 2013-09-25 Tom Tromey <tromey@redhat.com>
13755 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13756 * configure.ac: Don't invoke AM_PROG_CC_C_O.
13757 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13758 * configure, config.in: Rebuild.
13760 2013-09-25 Tom Tromey <tromey@redhat.com>
13762 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13763 (COMPILE, POSTCOMPILE): New variables.
13764 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13765 (DEPFILES): New variable.
13766 Include ".Po" files.
13767 * configure.ac: Add checks for dependency checking.
13768 * configure, aclocal.m4: Regenerate.
13770 2013-09-25 Tom Tromey <tromey@redhat.com>
13772 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13773 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13775 2013-09-25 Tom Tromey <tromey@redhat.com>
13777 * Makefile.in (generated_files): Add options.h,
13778 target-hooks-def.h, insn-opinit.h,
13779 common/common-target-hooks-def.h, pass-instances.def,
13780 c-family/c-target-hooks-def.h.
13782 2013-09-25 Jeff Law <law@redhat.com>
13784 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13785 than foo[foo.length () - 1] to access last member in a vec.
13786 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13788 2013-09-25 Richard Biener <rguenther@suse.de>
13790 PR middle-end/58521
13791 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13793 2013-09-25 Jan Hubicka <jh@suse.cz>
13795 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13798 2013-09-25 Marek Polacek <polacek@redhat.com>
13801 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13802 when determining the type name.
13804 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
13806 * config/sh/sh.md: Fix formatting.
13808 2013-09-24 Xinliang David Li <davidxl@google.com>
13810 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13811 max peel iterations parameter.
13812 * param.def: New parameter.
13813 * doc/invoke.texi: Document New parameter.
13815 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
13817 * gimple-pretty-print.c: Various whitespace tweaks.
13818 * tree-core.h: Likewise.
13819 * tree-pretty-print.c: Likewise.
13820 * tree-ssa-alias.c: Likewise.
13821 * tree-ssa-copy.c: Likewise.
13822 * tree-ssanames.c: Likewise.
13823 * tree-ssanames.h: Likewise.
13824 * tree-vrp.c: Likewise.
13826 2013-09-24 Alan Modra <amodra@gmail.com>
13828 PR middle-end/57134
13829 PR middle-end/57586
13830 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13831 for output operands that disallow regs. Don't use EXPAND_WRITE on
13834 2013-09-24 Richard Biener <rguenther@suse.de>
13836 PR middle-end/58513
13837 * tree.c (reference_alias_ptr_type): Move ...
13838 * alias.c (reference_alias_ptr_type): ... here and implement
13839 in terms of the new reference_alias_ptr_type_1.
13840 (ref_all_alias_ptr_type_p): New helper.
13841 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13842 use ref_all_alias_ptr_type_p.
13843 (get_deref_alias_set): Add flag_strict_aliasing check here.
13844 (reference_alias_ptr_type_1): New function, split out from ...
13845 (get_alias_set): ... here.
13846 (alias_ptr_types_compatible_p): New function.
13847 * alias.h (reference_alias_ptr_type): Declare.
13848 (alias_ptr_types_compatible_p): Likewise.
13849 * tree.h (reference_alias_ptr_type): Remove.
13850 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13851 to compare MEM_REF alias types.
13853 2013-09-24 Richard Biener <rguenther@suse.de>
13855 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13857 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13859 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13860 reload helper function arrays into a single array reg_addr.
13861 (reload_fpr_gpr): Likewise.
13862 (reload_gpr_vsx): Likewise.
13863 (reload_vsx_gpr): Likewise.
13864 (struct rs6000_reg_addr): Likewise.
13865 (reg_addr): Likewise.
13866 (rs6000_debug_reg_global): Change rs6000_vector_reload,
13867 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13868 (rs6000_init_hard_regno_mode_ok): Likewise.
13869 (rs6000_secondary_reload_direct_move): Likewise.
13870 (rs6000_secondary_reload): Likewise.
13872 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13873 constraints: wu, ww, and wy. Repurpose wv constraint added during
13874 power8 changes. Put wg constraint in alphabetical order.
13876 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13877 for future work to add ISA 2.07 VSX single precision support.
13878 (-mvsx-scalar-double): Change default from -1 to 1, update
13879 documentation comment.
13880 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13881 (-mupper-regs-df): New debug switch to control whether DF values
13882 can go in the traditional Altivec registers.
13883 (-mupper-regs-sf): New debug switch to control whether SF values
13884 can go in the traditional Altivec registers.
13886 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13887 and wy constraints.
13888 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13889 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
13890 Add new constraints, wu/ww/wy. Repurpose wv constraint.
13891 (rs6000_debug_legitimate_address_p): Print if we are running
13892 before, during, or after reload.
13893 (rs6000_secondary_reload): Add a comment.
13894 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13896 * config/rs6000/constraints.md (wa constraint): Sort w<x>
13897 constraints. Update documentation string.
13898 (wd constraint): Likewise.
13899 (wf constraint): Likewise.
13900 (wg constraint): Likewise.
13901 (wn constraint): Likewise.
13902 (ws constraint): Likewise.
13903 (wt constraint): Likewise.
13904 (wx constraint): Likewise.
13905 (wz constraint): Likewise.
13906 (wu constraint): New constraint for ISA 2.07 SFmode scalar
13908 (ww constraint): Likewise.
13909 (wy constraint): Likewise.
13910 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13911 in the previous submissions.
13912 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13914 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
13916 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13917 (REG_BR_PROB): Say that the probability is stored in an int_list.
13918 * reg-notes.def: Update commentary to mention INT_LIST.
13919 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13920 (INT_LIST): New rtx.
13921 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13922 * rtlanal.c (int_reg_note_p): New function.
13923 (alloc_reg_note): Assert that the note does not have an int argument.
13924 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13925 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13926 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13927 rather than an INSN_LIST. Handle INT_LIST.
13928 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13929 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13930 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13931 Manipulate them as ints rather than rtxes.
13932 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13933 * regmove.c (copy_src_to_dest): Likewise.
13934 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13936 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13937 into the cases that need it.
13938 * config/arm/arm.c (arm_unwind_emit): Likewise.
13940 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13941 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13942 * loop-doloop.c (add_test, doloop_modify): Likewise.
13943 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13944 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13945 * predict.c (combine_predictions_for_insn): Likewise.
13946 * print-rtl.c (print_rtx): Handle INT_LIST.
13947 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13948 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13949 * config/arm/arm.c (emit_unlikely_jump): Likewise.
13950 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13951 (ix86_split_fp_branch, predict_jump): Likewise.
13952 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13953 * config/sh/sh.c (expand_cbranchsi4): Likewise.
13954 * config/spu/spu.c (ea_load_store_inline): Likewise.
13956 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13957 value of a REG_BR_PROB note.
13958 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13959 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13960 * emit-rtl.c (try_split): Likewise.
13961 * predict.c (br_prob_note_reliable_p): Likewise.
13962 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13963 * reorg.c (mostly_true_jump): Likewise.
13964 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13965 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13966 * config/i386/i386.c (ix86_print_operand): Likewise.
13967 * config/ia64/ia64.c (ia64_print_operand): Likewise.
13968 * config/mmix/mmix.c (mmix_print_operand): Likewise.
13969 * config/rs6000/rs6000.c (output_cbranch): Likewise.
13970 * config/s390/s390.c (s390_expand_tbegin): Likewise.
13971 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13972 * config/sparc/sparc.c (output_cbranch): Likewise.
13973 * config/spu/spu.c (get_branch_target): Likewise.
13974 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13975 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13977 2013-09-23 Jan Hubicka <jh@suse.cz>
13979 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13981 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13982 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13984 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13985 (gimple_fold_call): Dump inconsistent devirtualizations; add
13986 sanity check for type based devirtualizations.
13987 * ipa-prop.c: Include ipa-utils.h
13988 (ipa_intraprocedural_devirtualization): Add sanity check.
13989 (try_make_edge_direct_virtual_call): Likewise.
13991 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
13993 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13994 assignment statements.
13996 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13998 * gimple-pretty-print.c (dump_ssaname_info): New function.
13999 (dump_gimple_phi): Call it.
14000 (pp_gimple_stmt_1): Likewise.
14001 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14002 (range_info_def): Declare.
14003 * tree-pretty-print.c (pp_double_int): New function.
14004 (dump_generic_node): Call it.
14005 * tree-pretty-print.h (pp_double_int): Declare.
14006 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14007 * tree-ssanames.h (range_info_def): New structure.
14008 (value_range_type): Move definition here.
14009 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14011 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14013 (set_range_info): New function.
14014 (get_range_info): Likewise.
14015 (duplicate_ssa_name_range_info): Likewise.
14016 (duplicate_ssa_name_fn): Check pointer type and call
14017 duplicate_ssa_name_range_info.
14018 * tree-ssa-copy.c (fini_copy_prop): Likewise.
14019 * tree-vrp.c (value_range_type): Remove definition, now in
14021 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14022 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14023 (SSA_NAME_RANGE_INFO): New macro.
14025 2013-09-23 Richard Biener <rguenther@suse.de>
14027 PR tree-optimization/58464
14028 * tree-ssa-pre.c (phi_trans_lookup): Remove.
14029 (phi_trans_add): Change to add conditionally on being not present.
14030 (phi_translate_1): Remove recursion detection here.
14031 (phi_translate): Pre-seed the cache with NULL to catch
14032 recursion here in a more generic way.
14033 (bitmap_find_leader): Adjust comment.
14034 (get_representative_for): Dump value-numbers.
14035 (create_expression_by_pieces): Likewise.
14036 (insert_into_preds_of_block): Likewise.
14038 2013-09-23 Christian Bruel <christian.bruel@st.com>
14041 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14042 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14044 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14047 2013-09-20 Renlin Li <renlin.li@arm.com>
14049 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14051 (aarch64_expand_epilogue): Likewise.
14052 (aarch64_legitimize_reload_address): Likewise.
14054 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
14056 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14057 NULL_TREE before pushing them onto the vector. Likewise for labels.
14059 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
14061 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14062 comparison operators when -fno-trapping-math is in effect.
14063 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14064 comparison operators in TFmode and assert that unsupported operators
14066 (ia64_print_operand): Likewise.
14068 2013-09-21 Jan Hubicka <jh@suse.cz>
14070 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14071 (sse_typeless_stores): Enable for core
14072 (sse_load0_by_pxor): Likewise.
14073 (four_jump_limit): Disable for core.
14074 (pad_returns): Likewise.
14075 (avoid_vector_decode): Likewise.
14076 (fuse_cmp_and_branch): Enable for cores.
14077 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14079 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14081 PR middle-end/56791
14082 * config/pa/pa.c (pa_option_override): Disable auto increment and
14083 decrement instructions until reload is completed.
14085 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14086 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14087 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14089 2013-09-20 DJ Delorie <dj@redhat.com>
14090 Nick Clifton <nickc@redhat.com>
14092 * config/rl78/rl78.c: Various whitespace and comment tweaks.
14093 (need_to_save): Save bank 0 on interrupts.
14094 (characterize_address): Strip far address wrappers.
14095 (rl78_as_legitimate_address): Likewise.
14096 (transcode_memory_rtx): Likewise.
14097 (rl78_peep_movhi_p): Disable this peephole after devirt.
14098 (rl78_propogate_register_origins): Forget all origins when a
14100 * config/rl78/rl78-virt.md: Various whitespace tweaks.
14101 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
14103 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14104 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14105 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14107 * config/rl78/constraints.md: Various whitespace and paren tweaks.
14109 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14111 * config/pa/pa.md: In "scc" insn patterns, change output template to
14112 handle const0_rtx in reg_or_0_operand operands.
14114 2013-09-20 Martin Husemann <martin@NetBSD.org>
14117 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14118 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14120 2013-09-20 Richard Biener <rguenther@suse.de>
14122 PR middle-end/58484
14123 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14124 remembering SSA name version and block index.
14125 (new_scev_info_str): Adjust.
14126 (hash_scev_info): Likewise. Also hash the block index.
14127 (eq_scev_info): Adjust.
14128 (find_var_scev_info): Likewise.
14129 (struct instantiate_cache_entry): Remove.
14130 (struct instantiate_cache_type): Use a htab to map name, block
14132 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14133 (get_instantiated_value_entry): Likewise.
14134 (hash_idx_scev_info, eq_idx_scev_info): New functions.
14135 (instantiate_scev_name): Adjust.
14137 2013-09-20 Jeff Law <law@redhat.com>
14139 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14141 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
14143 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14144 Call aarch64_simd_expand_args to update op[argc].
14146 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14148 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14151 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14153 * gengtype.c (file_rules): Added rule for *.cc files.
14154 (get_output_file_with_visibility): Give fatal message when no
14157 2013-09-20 Renlin Li <renlin.li@arm.com>
14159 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14160 (aarch64_expand_epilogue): Likewise.
14161 (aarch64_legitimize_reload_address): Likewise.
14163 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14165 PR middle-end/57748
14166 * expr.c (expand_assignment): Remove misalignp code path.
14168 2013-09-20 Marek Polacek <polacek@redhat.com>
14171 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14172 TYPE_PRECISION. Add asserts.
14174 2013-09-20 Richard Biener <rguenther@suse.de>
14176 PR tree-optimization/58453
14177 * tree-loop-distribution.c (distribute_loop): Apply the cost
14178 model for -ftree-loop-distribute-patterns, too.
14180 2013-09-20 Richard Biener <rguenther@suse.de>
14182 PR middle-end/58473
14183 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14184 make type comparison less strict.
14186 2013-09-20 Alan Modra <amodra@gmail.com>
14188 * configure: Regenerate.
14189 * aclocal.m4: Regenerate.
14191 2013-09-20 Marek Polacek <polacek@redhat.com>
14194 * doc/extend.texi: Document that attribute used is meant to be used
14195 on variables with static storage duration.
14197 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14199 PR tree-optimization/58472
14200 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14201 simd_lane_access set inv_p = false.
14202 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14203 the simduid magic VAR_DECL.
14205 2013-09-19 Jan Hubicka <jh@suse.cz>
14207 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14209 2013-09-17 Jeff Law <law@redhat.com>
14211 * tree-ssa-dom.c (record_temporary_equivalences): New function
14212 split out of dom_opt_dom_walker::after_dom_children.
14213 (dom_opt_dom_walker::thread_across_edge): Move common code
14214 in here from dom_opt_dom_walker::after_dom_children.
14215 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14217 2013-09-19 Jan Hubicka <jh@suse.cz>
14219 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14220 (TARGET_GENERIC): Use PROCESOR_GENERIC
14221 (enum processor_type): Unify generic32 and 64.
14222 * i386.md (cpu): Likewise.
14223 * x86-tune.def (use_leave): Enable for generic32.
14224 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14225 * athlon.md: Change generic64 to generic in all occurences.
14226 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14227 (ix86_target_macros_internal): Likewise.
14228 * driver-i386.c (host_detect_local_cpu): Likewise.
14229 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14231 (generic_memcpy, generic_memset, generic_cost): This one.
14232 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14233 (m_GENERIC32, m_GENERIC64): Remove.
14234 (m_GENERIC): Turn into one flag.
14235 (processor_target): Unify generic tunnings.
14236 (ix86_option_override_internal): Replace generic32/64 by generic.
14237 (ix86_issue_rate): Likewise.
14238 (ix86_adjust_cost): Likewise.
14240 2013-09-19 Jan Hubicka <jh@suse.cz>
14242 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14243 of speculative flag.
14245 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14247 * omp-low.c (expand_omp_sections): Always pass len - 1 to
14248 GOMP_sections_start, even if !exit_reachable.
14250 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14252 * lra-constraints.c (need_for_all_save_p): Use macro
14253 HARD_REGNO_CALL_PART_CLOBBERED.
14254 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14255 set up pseudo conflict hard regs.
14257 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14260 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14263 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14265 PR rtl-optimization/58438
14266 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14267 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14268 from previous subpasses.
14270 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
14272 * arm.c (arm_get_frame_offsets): Validate architecture supports
14273 LDRD/STRD before accepting the tuning preference.
14274 (arm_expand_prologue): Likewise.
14275 (arm_expand_epilogue): Likewise.
14277 2013-09-18 Richard Biener <rguenther@suse.de>
14279 PR tree-optimization/58417
14280 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14281 have chrecs with symbols defined in the loop as operands.
14282 (chrec_fold_multiply): Likewise.
14283 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14284 parameters before folding binary operations.
14285 (struct instantiate_cache_entry_hasher): Remove.
14286 (struct instantiate_cache_type): Use a pointer-map.
14287 (instantiate_cache_type::instantiate_cache_type): New function.
14288 (instantiate_cache_type::get): Likewise.
14289 (instantiate_cache_type::set): Likewise.
14290 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14291 (get_instantiated_value_entry): Likewise.
14292 (global_cache): New global.
14293 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14294 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14295 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14296 (instantiate_scev_name): Adjust.
14297 (instantiate_scev): Construct global instead of local cache.
14298 (resolve_mixers): Likewise.
14300 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
14301 Paolo Carlini <paolo.carlini@oracle.com>
14304 * doc/implement-cxx.texi: Fix references to the C++ standards.
14306 2013-09-18 Jakub Jelinek <jakub@redhat.com>
14308 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14309 * tree-vect-data-refs.c (vect_analyze_data_refs): For
14310 simd_lane_access drs, update also DR_ALIGNED_TO.
14312 2013-09-18 Marek Polacek <polacek@redhat.com>
14315 * doc/extend.texi: Document no_sanitize_undefined attribute.
14316 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14317 no_sanitize_undefined attribute.
14319 2013-09-18 Nick Clifton <nickc@redhat.com>
14321 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14322 (ASM_DECLARE_FUNCTION_NAME): Define.
14324 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
14326 * compare-elim.c (find_comparison_dom_walker): New class
14327 (find_comparisons_in_bb): Rename to
14328 find_comparison_dom_walker::before_dom_children
14329 (find_comparisons): Adjust
14330 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14332 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14333 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14334 (init_walk_dominator_tree): Remove declaration.
14335 (fini_walk_dominator_tree): Remove declaration.
14336 * fwprop.c (single_def_use_dom_walker): New class
14337 (single_def_use_enter_block): Convert to
14338 single_def_use_dom_walker::before_dom_children.
14339 (single_def_use_leave_block): Convert to
14340 single_def_use_dom_walker::after_dom_children.
14341 (build_single_def_use_links): Adjust.
14342 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14344 (find_candidates_in_block): Convert to
14345 find_candidates_dom_walker::before_dom_children.
14346 (execute_strength_reduction): Adjust.
14347 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14348 (sese_dom_walker): New class.
14349 (sese_dom_walker::sese_dom_walker): New constructor.
14350 (sese_dom_walker::~sese_dom_walker): New destructor.
14351 (build_sese_conditions_before): Convert to
14352 sese_dom_walker::before_dom_children.
14353 (build_sese_conditions_after): Convert to
14354 sese_dom_walker::after_dom_children.
14355 (build_poly_scop): Adjust
14356 * tree-into-ssa.c (rewrite_dom_walker): New class
14357 (rewrite_enter_block): Convert to
14358 rewrite_dom_walker::before_dom_children.
14359 (rewrite_leave_block): Convert to
14360 rewrite_dom_walker::after_dom_children.
14361 (rewrite_update_dom_walker): New class.
14362 (rewrite_update_enter_block): Convert to
14363 rewrite_update_dom_walker::before_dom_children.
14364 (rewrite_update_leave_block): Convert to
14365 rewrite_update_dom_walker::after_dom_children.
14366 (rewrite_blocks, rewrite_into_ssa): Adjust.
14367 (mark_def_dom_walker): New class.
14368 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14369 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14370 (mark_def_sites_blocks): Convert to
14371 mark_def_dom_walker::before_dom_children.
14372 (mark_def_site_blocks): Remove.
14373 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14374 (tree_ssa_dominator_optimize): Adjust.
14375 (dom_thread_across_edge): Convert to method
14376 dom_opt_dom_walker::thread_across_edge.
14377 (dom_opt_enter_block): Convert to member function
14378 dom_opt_dom_walker::before_dom_children.
14379 (dom_opt_leave_block): Convert to member function
14380 dom_opt_dom_walker::after_dom_children.
14381 * tree-ssa-dse.c (dse_dom_walker): New class.
14382 (dse_enter_block): Convert to member function
14383 dse_dom_walker::before_dom_children.
14384 (tree_ssa_dse): Adjust.
14385 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14386 (determine_invariantness_stmt): Convert to method
14387 invariantness_dom_walker::before_dom_children.
14388 (determine_invariantness): Remove
14389 (move_computations_dom_walker): New class.
14390 (move_computations_stmt): Convert to method
14391 move_computations_dom_walker::before_dom_children.
14392 (move_computations, tree_ssa_lim): Adjust.
14393 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14394 (nt_init_block): Convert to method
14395 notrappping_dom_walker::before_dom_children.
14396 (nt_fini_block): Convert to method
14397 method nontrapping_dom_walker::after_dom_children.
14398 (get_non_trapping): Adjust.
14399 * tree-ssa-pre.c (eliminate_dom_walker): New class.
14400 (eliminate_bb): Convert to method
14401 eliminate_dom_walker::before_dom_children.
14402 (eliminate_leave_block): Convert to method
14403 eliminate_dom_walker::after_dom_children.
14404 (eliminate): Adjust.
14405 * tree-ssa-strlen.c (strlen_dom_walker): New class.
14406 (strlen_enter_block): Convert to method
14407 strlen_dom_walker::before_dom_children.
14408 (strlen_leave_block): Convert to method
14409 method strlen_dom_walker::after_dom_children.
14410 (tree_ssa_strlen): Adjust.
14411 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14412 (tree_ssa_uncprop): Adjust.
14413 (uncprop_leave_block): Convert to method
14414 uncprop_dom_walker::after_dom_children.
14415 (uncprop_leave_block): Convert to method
14416 uncprop_dom_walker::before_dom_children.
14418 2013-09-18 Bin Cheng <bin.cheng@arm.com>
14420 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14421 branch in same basic block. Check both src and dest of the move insn.
14423 2013-09-17 Nick Clifton <nickc@redhat.com>
14425 * config/rl78/rl78-real.md (bf): New pattern.
14427 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14428 (rl78_print_operand): Do not put a # before a %B.
14429 * config/rl78/rl78.opt: Tweak doc strings.
14431 2013-09-17 DJ Delorie <dj@redhat.com>
14433 * config/rl78/constraints.md (Wcv): Allow up to $r31.
14434 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14435 (rl78_option_override): Likewise, if -mallregs.
14436 (is_virtual_register): Likewise.
14437 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14438 (REGNO_OK_FOR_BASE_P): Likewise.
14439 * config/rl78/rl78.opt (-mallregs): New.
14441 2013-09-17 Nick Clifton <nickc@redhat.com>
14443 * config/rl78/rl78.c (need_to_save): Change return type to bool.
14444 For interrupt functions: save all call clobbered registers if the
14445 interrupt handler is not a leaf function.
14446 (rl78_expand_prologue): Always recompute the frame information.
14447 For interrupt functions: only select bank 0 if one of the bank 0
14448 registers is going to be psuhed.
14450 2013-09-17 DJ Delorie <dj@redhat.com>
14452 * config/rl78/constraints.md: For each W* constraint, rename to C*
14453 and create a W* constraint that checks for an optional ES: prefix
14455 * config/rl78/rl78.md (UNS_ES_ADDR): New.
14456 (es_addr): New. Used to wrap far addresses.
14457 * config/rl78/rl78-protos.h (rl78_es_addr): New.
14458 (rl78_es_base): New.
14459 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14460 wrapped far addresses.
14461 (rl78_print_operand_1): Unwrap far addresses before processing.
14462 (rl78_lo16): Wrap far addresses in unspecs.
14463 (rl78_es_addr): New.
14464 (rl78_es_base): New.
14465 (insn_ok_now): Check for not-yet-wrapped far addresses.
14466 (transcode_memory_rtx): Properly re-wrap far addresses.
14468 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
14470 * config/sparc/t-rtems: Add leon3 multilibs.
14472 2013-09-17 Cong Hou <congh@google.com>
14474 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14475 when checking the dot production pattern. The type of rhs operand
14476 of multiply is now checked correctly.
14478 2013-09-17 Jeff Law <law@redhat.com>
14480 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14481 edge implied equivalences into successor phis.
14482 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14483 here from tree-ssa-threadedge.c.
14484 (mark_threaded_blocks): When threading through a joiner, if both
14485 successors of the joiner's clone reach the same block, verify the
14486 PHI arguments are equal. If not, cancel the jump threading request.
14487 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14488 tree-ssa-threadupdate.c
14489 (thread_across_edge): Don't check PHI argument equality when
14490 threading through joiner block here.
14492 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
14494 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14495 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14496 (warn_uninit, warn_uninitialized_vars,
14497 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14498 Move to tree-ssa-uninit.c.
14499 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14500 (has_undefined_value_p): New. Pass dependant parts of
14501 ssa_undefined_value_p.
14502 (uninit_undefined_value_p): Use has_undefined_value_p.
14503 (warn_uninit, warn_uninitialized_vars,
14504 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14505 Move from tree-ssa.c.
14506 * tree-ssa.h: Adjust prototypes.
14508 2013-09-17 Jan Hubicka <jh@suse.cz>
14510 PR middle-end/58332
14511 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14512 * ipa-inline.c (can_inline_edge_p): Do not downgrade
14513 FUNCTION_NOT_OPTIMIZED.
14514 * ipa-inline-analysis.c (compute_inline_parameters): Function
14515 not optimized is not inlinable unless it is alwaysinline.
14516 (inline_analyze_function): Force calls in not optimized
14517 function not inlinable.
14519 2013-09-17 Jan Hubicka <jh@suse.cz>
14521 PR middle-end/58329
14522 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14524 * ipa.c (function_and_variable_visibility): Likewise.
14525 * ipa-profile.c (ipa_profile): Likewise.
14527 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
14530 * cgraph.c (cgraph_function_body_availability): Check for ifunc
14531 attribute, and don't inline the resolver in this case.
14533 2013-09-17 Teresa Johnson <tejohnson@google.com>
14535 * coverage.c (get_coverage_counts): Add missing newline.
14537 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14539 PR tree-optimization/58088
14540 * fold-const.c (mask_with_trailing_zeros): New function.
14541 (fold_binary_loc): Make sure we don't recurse infinitely
14542 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14543 Use mask_with_trailing_zeros where appropriate.
14545 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
14547 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14548 of 'prev' var to get better distance estimation.
14550 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
14552 * tree-inline.h (struct copy_body_data): Add transform_parameter.
14553 * tree-inline.c (is_parameter_of): New predicate.
14554 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14555 a parameter has been remapped.
14556 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14557 (optimize_inline_calls): Initialize transform_parameter.
14558 (copy_gimple_seq_and_replace_locals): Likewise.
14559 (tree_function_versioning): Likewise.
14560 (maybe_inline_call_in_expr): Likewise.
14562 2013-09-17 Nick Clifton <nickc@redhat.com>
14564 * config/msp430/msp430-protos.h: Add prototypes for new functions.
14565 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14566 interrupt handlers.
14567 (is_attr_func): New function.
14568 (msp430_is_interrupt_func): New function.
14569 (is_naked_func): New function.
14570 (is_reentrant_func): New function.
14571 (is_critical_func): New function.
14572 (msp430_start_function): Add annotations for function attributes.
14573 (msp430_attr): New function.
14574 (msp430_attribute_table): New.
14575 (msp430_function_section): New function.
14576 (TARGET_ASM_FUNCTION_SECTION): Define.
14577 (msp430_builtin): New enum.
14578 (msp430_init_builtins): New function.
14579 (msp430_builtin_devl): New function.
14580 (msp430_expand_builtin): New function.
14581 (TARGET_INIT_BUILTINS): Define.
14582 (TARGET_EXPAND_BUILTINS): Define.
14583 (TARGET_BUILTIN_DECL): Define.
14584 (msp430_expand_prologue): Add support for naked, interrupt,
14585 critical and reentrant functions.
14586 (msp430_expand_epilogue): Likewise.
14587 (msp430_print_operand): Handle 'O' character.
14588 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14590 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14591 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14592 (pushm): Use a 'n' rather than an 'i' constraint.
14593 (msp_return): Add generation of the interrupt return instruction.
14594 (disable_interrupts): New pattern.
14595 (enable_interrupts): New pattern.
14596 (push_intr_state): New pattern.
14597 (pop_intr_state): New pattern.
14598 (bic_SR): New pattern.
14599 (bis_SR): New pattern.
14600 * doc/extend.texi: Document MSP430 function attributes and builtin
14603 2013-09-17 Richard Biener <rguenther@suse.de>
14605 PR tree-optimization/58432
14606 * tree-loop-distribution.c (tree_loop_distribution): Also
14607 scan PHIs for outside loop uses and seed a partition from them.
14609 2013-09-17 Bin Cheng <bin.cheng@arm.com>
14611 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14612 (restructure_reference): Call backtrace_base_for_ref.
14614 2013-09-17 Alan Modra <amodra@gmail.com>
14617 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14620 2013-09-16 DJ Delorie <dj@redhat.com>
14622 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14623 vregs location for RL78/G10.
14624 (rl78_expand_prologue): Avoid SEL on G10.
14625 (rl78_expand_epilogue): Likewise.
14626 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14627 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14628 __RL78_G10__ when appropriate.
14629 (ASM_SPEC): Pass -mg10 along to the assembler.
14630 * config/rl78/rl78.md (sel_rb): Disable for G10.
14631 * config/rl78/rl78.opt: Add -mg10 option.
14632 * config/rl78/t-rl78: Add -mg10 multilib.
14634 2013-09-16 Xinliang David Li <davidxl@google.com>
14636 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14637 * omp-low.c (omp_max_vf): Ditto.
14638 (expand_omp_simd): Ditto.
14639 * tree-vectorizer.c (vectorize_loops): Ditto.
14640 (gate_vect_slp): Ditto.
14641 (gate_increase_alignment): Ditto.
14642 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14643 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14644 (gate_tree_vectorize): Name change.
14645 (tree_vectorize): Ditto.
14646 (pass_vectorize::gate): Call new function.
14647 (pass_vectorize::execute): Ditto.
14648 * opts.c: O3 default setting change.
14649 (finish_options): Check new flag.
14650 * doc/invoke.texi: Document new flags.
14651 * common.opt: New flags.
14653 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
14655 * doc/tm.texi.in (Cond Exec Macros): Remove node.
14656 (Condition Code): Don't reference it.
14657 * doc/tm.texi: Regenerate.
14659 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
14661 PR middle-end/58418
14662 * lra-constraints.c (undo_optional_reloads): Consider all optional
14663 reload even if it did not get a hard reg.
14665 2013-09-16 Teresa Johnson <tejohnson@google.com>
14667 * dumpfile.c (dump_loc): Remove newline emission.
14668 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14669 emission to dump_printf_loc calls where missing.
14670 (vect_mark_for_runtime_alias_test): Ditto.
14671 (vect_analyze_data_ref_dependence): Ditto.
14672 (vect_analyze_data_ref_dependences): Ditto.
14673 (vect_slp_analyze_data_ref_dependence): Ditto.
14674 (vect_slp_analyze_data_ref_dependences): Ditto.
14675 (vect_compute_data_ref_alignment): Ditto.
14676 (vect_update_misalignment_for_peel): Ditto.
14677 (vect_verify_datarefs_alignment): Ditto.
14678 (vector_alignment_reachable_p): Ditto.
14679 (vect_get_data_access_cost): Ditto.
14680 (vect_enhance_data_refs_alignment): Ditto.
14681 (vect_find_same_alignment_drs): Ditto.
14682 (vect_analyze_data_refs_alignment): Ditto.
14683 (vect_analyze_group_access): Ditto.
14684 (vect_analyze_data_ref_access): Ditto.
14685 (vect_analyze_data_ref_accesses): Ditto.
14686 (vect_prune_runtime_alias_test_list): Ditto.
14687 (vect_analyze_data_refs): Ditto.
14688 (vect_create_addr_base_for_vector_ref): Ditto.
14689 (vect_create_data_ref_ptr): Ditto.
14690 (vect_grouped_store_supported): Ditto.
14691 (vect_grouped_load_supported): Ditto.
14692 * value-prof.c (check_counter): Ditto.
14693 (check_ic_target): Ditto.
14694 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14695 (vect_recog_widen_mult_pattern): Ditto.
14696 (vect_recog_widen_sum_pattern): Ditto.
14697 (vect_recog_over_widening_pattern): Ditto.
14698 (vect_recog_widen_shift_pattern): Ditto.
14699 (vect_recog_rotate_pattern): Ditto.
14700 (vect_recog_vector_vector_shift_pattern): Ditto.
14701 (vect_recog_divmod_pattern): Ditto.
14702 (vect_recog_mixed_size_cond_pattern): Ditto.
14703 (vect_recog_bool_pattern): Ditto.
14704 (vect_pattern_recog_1): Ditto.
14705 (vect_pattern_recog): Ditto.
14706 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14707 (vect_is_simple_iv_evolution): Ditto.
14708 (vect_analyze_scalar_cycles_1): Ditto.
14709 (vect_get_loop_niters): Ditto.
14710 (vect_analyze_loop_1): Ditto.
14711 (vect_analyze_loop_form): Ditto.
14712 (vect_analyze_loop_operations): Ditto.
14713 (vect_analyze_loop_2): Ditto.
14714 (vect_analyze_loop): Ditto.
14715 (report_vect_op): Ditto.
14716 (vect_is_slp_reduction): Ditto.
14717 (vect_is_simple_reduction_1): Ditto.
14718 (vect_get_known_peeling_cost): Ditto.
14719 (vect_estimate_min_profitable_iters): Ditto.
14720 (vect_model_reduction_cost): Ditto.
14721 (vect_model_induction_cost): Ditto.
14722 (get_initial_def_for_induction): Ditto.
14723 (vect_create_epilog_for_reduction): Ditto.
14724 (vectorizable_reduction): Ditto.
14725 (vectorizable_induction): Ditto.
14726 (vectorizable_live_operation): Ditto.
14727 (vect_loop_kill_debug_uses): Ditto.
14728 (vect_transform_loop): Ditto.
14729 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14730 (vect_stmt_relevant_p): Ditto.
14731 (process_use): Ditto.
14732 (vect_mark_stmts_to_be_vectorized): Ditto.
14733 (vect_model_simple_cost): Ditto.
14734 (vect_model_promotion_demotion_cost): Ditto.
14735 (vect_model_store_cost): Ditto.
14736 (vect_get_store_cost): Ditto.
14737 (vect_model_load_cost): Ditto.
14738 (vect_get_load_cost): Ditto.
14739 (vect_init_vector_1): Ditto.
14740 (vect_get_vec_def_for_operand): Ditto.
14741 (vect_finish_stmt_generation): Ditto.
14742 (vectorizable_call): Ditto.
14743 (vectorizable_conversion): Ditto.
14744 (vectorizable_assignment): Ditto.
14745 (vectorizable_shift): Ditto.
14746 (vectorizable_operation): Ditto.
14747 (vectorizable_store): Ditto.
14748 (vectorizable_load): Ditto.
14749 (vectorizable_condition): Ditto.
14750 (vect_analyze_stmt): Ditto.
14751 (vect_transform_stmt): Ditto.
14752 (vect_is_simple_use): Ditto.
14753 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14754 (vect_can_advance_ivs_p): Ditto.
14755 (vect_update_ivs_after_vectorizer): Ditto.
14756 (vect_do_peeling_for_loop_bound): Ditto.
14757 (vect_gen_niters_for_prolog_loop): Ditto.
14758 (vect_update_inits_of_drs): Ditto.
14759 (vect_create_cond_for_alias_checks): Ditto.
14760 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14761 (vect_build_slp_tree_1): Ditto.
14762 (vect_supported_load_permutation_p): Ditto.
14763 (vect_analyze_slp_instance): Ditto.
14764 (vect_analyze_slp): Ditto.
14765 (vect_make_slp_decision): Ditto.
14766 (vect_detect_hybrid_slp): Ditto.
14767 (vect_bb_vectorization_profitable_p): Ditto.
14768 (vect_slp_analyze_bb_1): Ditto.
14769 (vect_update_slp_costs_according_to_vf): Ditto.
14770 (vect_get_mask_element): Ditto.
14771 (vect_transform_slp_perm_load): Ditto.
14772 (vect_schedule_slp_instance): Ditto.
14773 (vect_schedule_slp): Ditto.
14774 (vect_slp_transform_bb): Ditto.
14775 * profile.c (read_profile_edge_counts): Ditto.
14776 (compute_branch_probabilities): Ditto.
14777 * coverage.c (get_coverage_counts): Ditto.
14779 2013-09-16 Diego Novillo <dnovillo@google.com>
14781 * tree-core.h: Add missing comment lines from refactoring of tree.h.
14783 2013-09-16 Jan Hubicka <jh@suse.cz>
14785 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14786 abstract functions; for static functions check the presence of body.
14788 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14790 * config/aarch64/aarch64-simd-builtins.def (fma): New.
14791 * config/aarch64/aarch64-simd.md
14792 (aarch64_mla_elt<mode>): New.
14793 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14794 (aarch64_mls_elt<mode>): Likewise.
14795 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14796 (aarch64_fma4_elt<mode>): Likewise.
14797 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14798 (aarch64_fma4_elt_to_128v2df): Likewise.
14799 (aarch64_fma4_elt_to_64df): Likewise.
14800 (fnma<mode>4): Likewise.
14801 (aarch64_fnma4_elt<mode>): Likewise.
14802 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14803 (aarch64_fnma4_elt_to_128v2df): Likewise.
14804 (aarch64_fnma4_elt_to_64df): Likewise.
14805 * config/aarch64/iterators.md (VDQSF): New.
14806 * config/aarch64/arm_neon.h
14807 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14808 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14810 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14812 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14813 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14814 (aarch64_mul3_elt_to_128df): Likewise.
14815 (aarch64_mul3_elt_to_64v2df): Likewise.
14816 * config/aarch64/iterators.md (VEL): Also handle DFmode.
14818 (VMUL_CHANGE_NLANES) Likewise.
14821 * config/aarch64/arm_neon.h
14822 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14824 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14826 * config/aarch64/arm_neon.h
14827 (vcvtx_high_f32_f64): Fix parameters.
14829 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14830 Uros Bizjak <ubizjak@gmail.com>
14832 * config/alpha.c: Include tree-ssanames.h.
14834 2013-09-16 Richard Biener <rguenther@suse.de>
14836 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14837 (dot_rdg_1): Handle control_dd.
14838 (create_edge_for_control_dependence): New function.
14839 (create_rdg_edges): Add control dependences if asked for.
14840 (build_rdg): Likewise.
14841 (generate_loops_for_partition): If there are not necessary
14842 control stmts remove all their dependencies.
14843 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14844 (distribute_loop): Pass on control dependences.
14845 (tree_loop_distribution): Compute control dependences and remove
14846 restriction on number of loop nodes.
14848 2013-09-16 Jakub Jelinek <jakub@redhat.com>
14850 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14851 for internal calls.
14853 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
14855 * cse.c (try_const_anchors): Punt on CC modes.
14857 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14859 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14861 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
14864 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14865 calls to word_mode.
14867 2013-09-14 Iain Sandoe <iain@codesourcery.com>
14870 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14872 (darwin_objc1_section): Likewise.
14873 (darwin_file_end): Emit Image Info section when required.
14875 2013-09-14 Jan Hubicka <jh@suse.cz>
14877 * tree-into-ssa.c (gate_into_ssa): New.
14878 (pass_data_build_ssa): Use it.
14879 * cgraph.h (expand_thunk): Update prototype.
14880 * cgraphunit.c (analyze_function): Expand thunks early.
14881 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14882 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14883 set lowered flag; do not add new function.
14884 (assemble_thunks_and_aliases): Update.
14885 * tree-ssa.c (gate_init_datastructures): New gate.
14886 (pass_data_init_datastructures): Use it.
14888 2013-09-14 Iain Sandoe <iain@codesourcery.com>
14891 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14892 xmm register set described in the psABI.
14894 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
14896 * dwarf2out.c (should_emit_struct_debug): Add check
14897 for type_decl variable is not NULL.
14899 2013-09-13 Jacek Caban <jacek@codeweavers.com>
14901 * config.gcc: Use new winnt-c.c target hooks
14902 * config/t-winnt: New file
14903 * config/winnt-c.c: New file
14904 * doc/tm.texi.in: Document new hook
14905 * doc/tm.texi: Regenerated
14907 2013-09-13 Jan Hubicka <jh@suse.cz>
14909 PR middle-end/58094
14910 * ipa-inline.c (check_callers): New function.
14911 (check_caller_edge): Remove.
14912 (want_inline_function_to_all_callers_p): Also permit alises that are
14914 (inline_to_all_callers): Terminate the walk when devirtualization
14915 introduce new calls.
14917 2013-09-13 Jan Hubicka <jh@suse.cz>
14919 * ipa-inline-analysis.c (struct growth_data): Add node.
14920 (do_estimate_growth_1): Fix detection of recursion.
14922 2013-09-13 Jakub Jelinek <jakub@redhat.com>
14924 PR tree-optimization/58392
14925 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14926 to avoid shadowing of outer loop variable. If
14927 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14928 replace_by_duplicate_decl simduid of loops that have it set and
14929 set dest_cfun->has_simduid_loops and/or
14930 dest_cfun->has_force_vect_loops.
14931 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14932 instead of maybe_lookup_decl.
14933 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14934 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
14935 call. Copy over force_vect and copy and remap simduid. Set
14936 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14937 (copy_cfg_body): Remove blocks_to_copy argument. Use
14938 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
14939 caller. Don't set cfun->has_simduid_loops and/or
14940 cfun->has_force_vect_loops here.
14941 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
14943 (expand_call_inline, tree_function_versioning): Adjust copy_body
14946 2013-09-13 Martin Jambor <mjambor@suse.cz>
14949 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14950 the assert if the edge was a speculative one.
14952 2013-09-13 Richard Biener <rguenther@suse.de>
14954 * tree-data-ref.h (known_dependences_p): Move here ...
14955 * tree-loop-distribution.c (known_dependences_p): ... from here.
14956 (dump_rdg_component, debug_rdg_component): Remove.
14957 (dump_rdg): Adjust.
14958 (generate_loops_for_partition): Use gimple_uid instead of
14959 relying on matching stmt visit order.
14960 (rdg_build_partitions): Take starting stmt vector.
14961 (ldist_gen): Merge into ...
14962 (distribute_loop): ... this function. Do not compute starting
14964 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14966 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14968 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14969 Set type attribute correctly. Set predicable_short_it attribute.
14970 (cmpsi_shiftsi): Remove %? from output template.
14972 2013-09-13 Richard Biener <rguenther@suse.de>
14974 * tree-loop-distribution.c (struct rdg_component,
14975 rdg_defs_used_in_other_loops_p, free_rdg_components,
14976 rdg_build_components): Remove.
14977 (stmts_from_loop): Do not record virtual PHIs.
14978 (generate_loops_for_partition): Skip virtual PHIs.
14979 (build_rdg_partition_for_component): Rename to ...
14980 (build_rdg_partition_for_vertex): ... this and adjust.
14981 (rdg_build_partitions): Take a vector of starting vertices
14982 instead of components. Remove unnecessary leftover handling.
14983 (ldist_gen): Do not build components or record other stores.
14984 (distribute_loop): Do not distribute loops containing stmts
14987 2013-09-13 Christian Bruel <christian.bruel@st.com>
14990 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14992 2013-09-13 Kai Tietz <ktietz@redhat.com>
14994 * config.gcc: Separate cases for mingw and cygwin targets,
14995 and add 64-bit cygwin target case.
14997 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14998 dll-export inline-functions.
14999 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15001 2013-09-13 Jeff Law <law@redhat.com>
15003 PR middle-end/58387
15005 2013-09-06 Jeff Law <law@redhat.com>
15007 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15008 edge implied equivalences into successor phis.
15010 2013-09-12 DJ Delorie <dj@redhat.com>
15012 * config/rl78/rl78-virt.md: Change from | to \; for asm line
15015 2013-09-12 Brooks Moses <bmoses@google.com>
15018 * Makefile.in: Do not install driver binaries in $(target)/bin.
15020 2013-09-12 DJ Delorie <dj@redhat.com>
15022 * config/rl78/rl78.opt (mrelax): New.
15023 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15024 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15026 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15028 (rl78_expand_epilogue): Likewise.
15030 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
15032 PR middle-end/58335
15033 * lra-eliminations.c (remove_reg_equal_offset_note): New.
15034 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15035 pointer elimination with using remove_reg_equal_offset_note.
15037 2013-09-12 DJ Delorie <dj@redhat.com>
15039 * config/msp430/: New port.
15040 * config.gcc (msp430): Added.
15041 * doc/invoke.texi: Document MSP430 options.
15042 * doc/install.texi: Document msp430-elf
15043 * doc/md.texi: Document msp430-elf
15044 * doc/contrib.texi: Document msp430-elf
15046 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15049 2013-09-12 Martin Jambor <mjambor@suse.cz>
15052 * ipa-prop.c (remove_described_reference): Give up if the edge in the
15053 reference descriptor is NULL.
15054 (ipa_edge_removal_hook): If owning a reference descriptor, set its
15057 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15059 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15060 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15061 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15062 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15063 make_temp_ssa_name): move to tree-ssanames.h
15064 * tree-ssa-alias.h: Move prototype.
15065 * tree-ssa.h: Include tree-ssanames.h.
15066 * tree-ssanames.c (FREE_SSANAMES): Move to here.
15067 * tree-ssanames.h: New. Move items from tree-flow*.h
15068 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15070 2013-09-12 Richard Biener <rguenther@suse.de>
15072 PR tree-optimization/58404
15073 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15074 propagate non-invariant addresses into dereferences wrapped
15075 in component references.
15077 2013-09-12 Richard Biener <rguenther@suse.de>
15079 PR tree-optimization/58402
15080 * passes.def: Move pass_late_warn_uninitialized later.
15082 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15084 * tree-ssa.h: New. Move content from tree-flow.h and
15085 tree-flow-inline.h.
15086 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15087 Move prototypes belonging to tree-ssa.c.
15088 * tree-flow-inline.h (redirect_edge_var_map_def,
15089 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15091 * gimple.h: Adjust prototypes.
15092 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15094 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15095 * tree.h: Move prototype to tree-ssa.h.
15096 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15097 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15098 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15099 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15100 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15101 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15102 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15103 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15104 graphite-blocking.c, graphite-clast-to-gimple.c,
15105 graphite-dependences.c, graphite-interchange.c,
15106 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15107 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15108 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15109 ipa-reference.c, ipa-split.c, ipa-utils.c,
15110 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15111 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15112 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15113 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15114 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15115 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15116 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15117 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15118 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15119 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15120 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15121 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15122 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15123 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15124 value-prof.c, var-tracking.c,
15125 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15127 2013-09-12 Richard Biener <rguenther@suse.de>
15129 PR tree-optimization/58396
15130 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15131 (build_rdg): Take a loop-nest parameter, fix memleaks.
15132 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15134 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15136 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15139 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
15141 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15142 The FMA instruction names should have a 'v' prefix.
15144 2013-09-12 Richard Biener <rguenther@suse.de>
15146 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15147 (dot_rdg): Use popen instead of system in optional code.
15148 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15149 (already_processed_vertex_p): Adjust.
15150 (has_anti_or_output_dependence, predecessor_has_mem_write,
15151 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15152 rdg_flag_uses): Remove.
15153 (rdg_flag_vertex): Simplify.
15154 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15156 (build_rdg_partition_for_component): Process the first vertex
15157 of a component only.
15158 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15160 2013-09-12 Alan Modra <amodra@gmail.com>
15162 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15164 2013-09-11 DJ Delorie <dj@redhat.com>
15165 Nick Clifton <nickc@redhat.com>
15167 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15168 (rl78_stack_based_mem): New.
15169 * config/rl78/constraints.md (Iv08): New.
15178 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15180 (movsi): Change from expand to insn-and-split.
15181 (ashrsi3): Clobber AX.
15185 * config/rl78/rl78.md (CC_REG): Fix.
15186 (addsi3): Allow memory and immediate operands.
15187 (addsi3_internal): Split into...
15188 (addsi3_internal_virt): ...new, and ...
15189 (addsi3_internal_real): ...new.
15191 (subsi3_internal_virt): New.
15192 (subsi3_internal_real): New.
15193 (mulsi3): Add memory operand.
15194 (mulsi3_rl78): Likewise.
15195 (mulsi3_g13): Likewise.
15196 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15197 (cbranchqi4_real): Add more constraint options.
15198 (cbranchhi4_real): Expand pattern.
15199 (cbranchhi4_real_signed): New.
15200 (cbranchhi4_real_inverted): New.
15201 (cbranchsi4_real_lt): New.
15202 (cbranchsi4_real_ge): New.
15203 (cbranchsi4_real_signed): New.
15204 (cbranchsi4_real): New.
15206 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15208 (lshrsi3_virt): Likewise.
15209 (ashlsi3_virt): Likewise.
15210 (cbranchqi4_virt_signed): New.
15211 (cbranchhi4_virt_signed): New.
15212 (cbranchsi4_virt): New.
15213 * config/rl78/rl78.c: Whitespace fixes throughout.
15214 (move_elim_pass): New.
15215 (pass_data_rl78_move_elim): New.
15216 (pass_rl78_move_elim): New.
15217 (make_pass_rl78_move_elim): New.
15218 (rl78_devirt_info): Run devirt earlier.
15219 (rl78_move_elim_info): New.
15220 (rl78_asm_file_start): Register it.
15221 (rl78_split_movsi): New.
15222 (rl78_as_legitimate_address): Allow virtual base registers when
15224 (rl78_addr_space_convert): Remove spurious debug stuff.
15225 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15226 (rl78_print_operand): More cases for not printing '#'.
15227 (rl78_expand_compare): Remove most of the logic.
15228 (content_memory): New.
15229 (clear_content_memory): New.
15230 (get_content_index): New.
15231 (get_content_name): New.
15232 (display_content_memory): New.
15233 (update_content): New.
15234 (record_content): New.
15235 (already_contains): New.
15236 (insn_ok_now): Re-recog insns with virtual registers.
15237 (add_postponed_content_update): New.
15238 (process_postponed_content_update): New.
15239 (gen_and_emit_move): New.
15240 (transcode_memory_rtx): Record new location content.
15241 Use gen_and_emit_move.
15242 (force_into_acc): New.
15243 (move_to_acc): Use gen_and_emit_move.
15244 (move_from_acc): Likewise.
15245 (move_acc_to_reg): Likewise.
15246 (move_to_x): Likewise.
15247 (move_to_hl): Likewise.
15248 (move_to_de): Likewise.
15249 (rl78_alloc_physical_registers_op1): Record location content.
15250 (has_constraint): New.
15251 (rl78_alloc_physical_registers_op2): Record location content.
15252 Optimize use of HL.
15253 (rl78_alloc_physical_registers_ro1): Likewise.
15254 (rl78_alloc_physical_registers_cmp): Likewise.
15255 (rl78_alloc_physical_registers_umul): Likewise.
15256 (rl78_alloc_address_registers_macax): New.
15257 (rl78_alloc_physical_registers): Initialize and set location
15258 content memory as needed.
15259 (rl78_reorg): Make sure split2 is called.
15260 (rl78_rtx_costs): New.
15262 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
15264 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15265 for (not (neg ...)) and (neg (not ...)) cases.
15267 2013-09-11 Richard Biener <rguenther@suse.de>
15269 PR middle-end/58377
15270 * passes.def: Split critical edges before late uninit warning passes.
15271 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15273 2013-09-11 Jakub Jelinek <jakub@redhat.com>
15275 PR tree-optimization/58385
15276 * fold-const.c (build_range_check): If both low and high are NULL,
15277 use omit_one_operand_loc to preserve exp side-effects.
15279 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15281 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15283 2013-09-11 Richard Biener <rguenther@suse.de>
15285 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15286 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15287 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15288 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15289 stmts_from_loop, known_dependences_p, build_empty_rdg,
15290 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15291 * tree-loop-distribution.c: ... here.
15292 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15293 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15294 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15295 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15296 * tree-loop-distribution.c: ... here.
15297 * tree-loop-distribution.c: Include gimple-pretty-print.h.
15298 (struct partition_s): Add loops member.
15299 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15300 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15301 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15303 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15304 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15305 Sergey Lega <sergey.s.lega@intel.com>
15306 Anna Tikhonova <anna.tikhonova@intel.com>
15307 Ilya Tocar <ilya.tocar@intel.com>
15308 Andrey Turetskiy <andrey.turetskiy@intel.com>
15309 Ilya Verbin <ilya.verbin@intel.com>
15310 Kirill Yukhin <kirill.yukhin@intel.com>
15311 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15313 * config/i386/constraints.md (k): New.
15315 * config/i386/i386.c (const regclass_map): Add new mask registers.
15316 (dbx_register_map): Ditto.
15317 (dbx64_register_map): Ditto.
15318 (svr4_dbx_register_map): Ditto.
15319 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15321 (ix86_preferred_reload_class): Disable constants for mask registers.
15322 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15323 (ix86_hard_regno_mode_ok): Support new mask registers.
15324 (x86_order_regs_for_local_alloc): Ditto.
15325 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15326 (FIXED_REGISTERS): Add new mask registers.
15327 (CALL_USED_REGISTERS): Ditto.
15328 (REG_ALLOC_ORDER): Ditto.
15329 (VALID_MASK_REG_MODE): New.
15330 (FIRST_MASK_REG): Ditto.
15331 (LAST_MASK_REG): Ditto.
15332 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15333 (MAYBE_MASK_CLASS_P): New.
15334 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15335 (REG_CLASS_CONTENTS): Ditto.
15336 (MASK_REGNO_P): New.
15337 (ANY_MASK_REG_P): Ditto.
15338 (HI_REGISTER_NAMES): Add new mask registers.
15339 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15340 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15342 (attribute "type"): Add mskmov, msklog.
15343 (attribute "length_immediate"): Support them.
15344 (attribute "memory"): Ditto.
15345 (attribute "prefix_0f"): Ditto.
15346 (*movhi_internal): Support new mask registers.
15347 (*movqi_internal): Ditto.
15348 (define_split): Split out clobber pattern is a logic
15349 insn on mask registers.
15350 (*k<logic><mode>): New.
15351 (*andhi_1): Extend to support mask regs.
15352 (*andqi_1): Extend to support mask regs.
15353 (kandn<mode>): New.
15354 (define_split): Split and-not to and and not if operands
15356 (*<code><mode>_1): Separate HI mode to new pattern...
15357 (*<code>hi_1): This.
15358 (*<code>qi_1): Extend to support mask regs.
15359 (kxnor<mode>): New.
15360 (kortestzhi): Ditto.
15361 (kortestchi): Ditto.
15363 (*one_cmpl<mode>2_1): Remove HImode and handle it...
15364 (*one_cmplhi2_1): ...Here, now with mask registers support.
15365 (*one_cmplqi2_1): Support new mask registers.
15366 (HI/QImode arithmetics splitter): Don't split if mask registers
15368 (HI/QImode not splitter): Ditto.
15369 * config/i386/predicated.md (mask_reg_operand): New.
15370 (general_reg_operand): Ditto.
15372 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15374 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15375 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15377 2013-09-10 Jeff Law <law@redhat.com>
15379 PR tree-optimization/58380
15380 * tree-ssa-threadupdate.c (thread_block): Recognize another case
15381 of threading through a buried loop header.
15383 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15384 return value for single successor case.
15386 2013-09-10 Jan Hubicka <jh@suse.cz>
15388 * ipa-devirt.c (ipa_devirt): Enable with LTO.
15390 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
15393 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15394 support conditional execution.
15395 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15397 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
15399 * lra.c (lra): Clear lra_optional_reload_pseudos before every
15401 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15402 Check destination too to check move insn.
15403 (undo_optional_reloads): Add check that the original peudo did not
15404 changed its allocation and the optional reload was inherited on last
15405 inheritance pass. Break loop after deciding to keep optional reload.
15406 (lra_undo_inheritance): Add check that inherited pseudo still in
15409 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
15411 * config/aarch64/aarch64.md (generic_sched): New.
15412 * config/aarch64/aarch64-generic.md (load): Make conditional
15413 on generic_sched attribute.
15414 (nonload): Likewise.
15416 2013-09-10 Jan Hubicka <jh@suse.cz>
15418 * lto-cgraph.c: Include ipa-utils.h.
15419 (compute_ltrans_boundary): Also add possible targets into the boundary.
15421 2013-09-10 Jan Hubicka <jh@suse.cz>
15423 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15424 VAR_DECL of vtable rather than full expression.
15426 2013-09-10 Jan Hubicka <jh@suse.cz>
15427 Paolo Carlini <paolo.carlini@oracle.com>
15429 * cgraphunit.c (analyze_functions): Save input_location, set it
15430 to UNKNOWN_LOCATION and restore it at the end.
15432 2013-09-10 Martin Jambor <mjambor@suse.cz>
15434 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15435 represented by a thunk.
15437 2013-09-10 Jeff Law <law@redhat.com>
15439 PR tree-optimization/58343
15440 * tree-ssa-threadupdate.c (thread_block): Identify and disable
15441 jump threading requests through loop headers buried in the middle
15442 of a jump threading path.
15444 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15445 in return value/type.
15447 2013-09-10 Jakub Jelinek <jakub@redhat.com>
15449 PR rtl-optimization/58365
15450 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15451 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15454 2013-09-10 Richard Biener <rguenther@suse.de>
15456 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15457 * tree-data-ref.c (create_rdg_vertices): Collect all data
15458 references, signal failure to the caller, use data-ref API.
15459 (build_rdg): Compute data references only once. Maintain lifetime
15460 of data references and data dependences from within RDG.
15461 (free_rdg): Free dependence relations.
15462 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15463 inventing extra dependences.
15464 (distribute_loop): Update for RDG API changes.
15466 2013-09-10 Kai Tietz <ktietz@redhat.com>
15468 * doc/invoke.texi (fms-extensions): Document changed
15469 behavior for ms-abi targets.
15470 * config/i386/i386.c (ix86_option_override_internal):
15471 Set default value of option -fms-extension for ms-abi targets.
15473 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
15475 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15477 2013-09-10 Alan Modra <amodra@gmail.com>
15480 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15482 2013-09-10 Alan Modra <amodra@gmail.com>
15484 * config/rs6000/predicates.md (add_cint_operand): New.
15485 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15486 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15487 using add_cint_operand.
15488 (largetoc_high_plus_aix): Likewise.
15490 2013-09-09 Jakub Jelinek <jakub@redhat.com>
15492 PR tree-optimization/58364
15493 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15494 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15495 the current range can't be an unconditional true or false.
15497 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
15499 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15501 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
15503 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15505 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15508 * doc/invoke.texi (-Wdelete-incomplete): Document it.
15510 2013-09-09 Ian Bolton <ian.bolton@arm.com>
15512 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15513 NO_REGS for immediate that can't be moved directly into FP_REGS.
15515 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15517 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15518 comparison with negated operand.
15519 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15522 2013-09-09 Richard Biener <rguenther@suse.de>
15524 PR middle-end/58326
15525 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15526 of a subloop record all its block as affecting loop-closed SSA form.
15528 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15530 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15531 of an rtx/bitpos pair.
15532 (store_fixed_bit_field): Update accordingly.
15534 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15536 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15538 * builtins.c (expand_errno_check): Likewise.
15539 * dwarf2cfi.c (init_return_column_size): Likewise.
15540 * except.c (sjlj_mark_call_sites): Likewise.
15541 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15542 * lra-constraints.c (emit_inc): Likewise.
15543 * ree.c (combine_set_extension): Likewise.
15544 * regmove.c (fixup_match_2): Likewise.
15545 * reload1.c (inc_for_reload): Likewise.
15547 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15549 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15550 (force_to_mode, simplify_shift_const_1, simplify_comparison):
15551 Use gen_int_mode with the mode of the associated simplify_* call.
15552 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15553 * expmed.c (expand_shift_1): Likewise.
15554 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15555 * loop-iv.c (iv_number_of_iterations): Likewise.
15556 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15557 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15559 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15561 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15562 of the associated expand_* call.
15563 (asan_emit_stack_protection): Likewise.
15564 * builtins.c (round_trampoline_addr): Likewise.
15565 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15566 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15567 (emit_store_flag): Likewise.
15568 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15569 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15571 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15572 * ifcvt.c (noce_try_store_flag_constants): Likewise.
15573 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15574 * modulo-sched.c (generate_prolog_epilog): Likewise.
15575 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15576 (expand_ctz, expand_ffs, expand_unop): Likewise.
15578 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15580 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15581 of the associated gen_rtx_* call.
15582 * caller-save.c (init_caller_save): Likewise.
15583 * combine.c (find_split_point, make_extraction): Likewise.
15584 (make_compound_operation): Likewise.
15585 * dwarf2out.c (mem_loc_descriptor): Likewise.
15586 * explow.c (plus_constant, probe_stack_range): Likewise.
15587 * expmed.c (expand_mult_const): Likewise.
15588 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15589 * reload1.c (init_reload): Likewise.
15590 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15591 * var-tracking.c (adjust_mems): Likewise.
15592 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15593 rather than gen_rtx_fmt_ee.
15595 2013-09-09 Jan Hubicka <jh@suse.cz>
15597 PR middle-end/58294
15598 * value-prof.c (gimple_ic): Copy also abnormal edges.
15600 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15602 * asan.c (asan_shadow_cst): Use gen_int_mode.
15604 2013-09-08 Jan Hubicka <jh@suse.cz>
15606 * ipa-profile.c: Add toplevel comment.
15607 (ipa_propagate_frequency_1): Be more conservative when profile is read.
15608 (contains_hot_call_p): New function.
15609 (ipa_propagate_frequency): Set frequencies based on counts when
15611 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15612 profile; do not tamper with profile after inlining if it is read.
15614 2013-09-08 Jan Hubicka <jh@suse.cz>
15616 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15619 2013-09-08 Jan Hubicka <jh@suse.cz>
15621 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15622 summary generation.
15624 2013-09-08 Jeff Law <law@redhat.com>
15627 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15630 2013-09-08 Andi Kleen <ak@linux.intel.com>
15632 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15634 2013-09-08 Jan Hubicka <jh@suse.cz>
15636 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15638 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
15640 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15641 for non-debug insns.
15642 * lra.c (new_insn_reg): Take the containing insn as a parameter.
15643 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15644 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15647 2013-09-08 Jan Hubicka <jh@suse.cz>
15649 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15650 targets and devirtualize to BUILT_IN_UNREACHABLE.
15651 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15652 * ipa.c (walk_polymorphic_call_targets): New function.
15653 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15654 functions; use the new timevar.
15655 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15656 was removed from the program.
15657 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15658 not consider it in the walk when its vtable is dead.
15659 (possible_polymorphic_call_targets_1): Pass anonymous flag to
15661 (devirt_variable_node_removal_hook): New function.
15662 (possible_polymorphic_call_targets): Also register
15663 devirt_variable_node_removal_hook.
15664 (ipa_devirt): Do not do non-speculative devirtualization.
15665 (gate_ipa_devirt): One execute if devirtualizing speculatively.
15667 2013-09-08 Jan Hubicka <jh@suse.cz>
15669 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15670 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15671 varpool_remove_variable_insertion_hook): Declare.
15672 * varpool.c (varpool_node_hook_list): New structure.
15673 (first_varpool_node_removal_hook,
15674 first_varpool_variable_insertion_hook): New variables.
15675 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15676 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15677 varpool_remove_variable_insertion_hook,
15678 varpool_call_variable_insertion_hooks): New functions.
15679 (varpool_remove_node): Use it.
15681 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
15684 * diagnostic.c (diagnostic_build_prefix): When s.file is
15685 "<built-in>" don't output line and column numbers.
15687 2013-09-06 Jan Hubicka <jh@suse.cz>
15689 * cgraphunit.c (expand_thunk): Get body before touching arguments.
15690 * lto-streamer-out.c: Stream thunks, too.
15691 * lto-streamer-in.c (input_function): Pop cfun here
15692 (lto_read_body): Instead of here.
15694 2013-09-06 Caroline Tice <cmtice@google.com>
15696 * doc/install.texi: Add documentation for the --enable-vtable-verify
15697 and the --disable-libvtv configure options.
15699 2013-09-06 Jeff Law <law@redhat.com>
15701 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15702 edge implied equivalences into successor phis.
15704 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
15706 * resource.c (mark_referenced_resources): Handle COND_EXEC.
15708 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
15710 * resource.c (mark_target_live_regs): Compute resources taking
15711 into account if a call is predicated or not.
15713 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
15715 * toplev.c (output_stack_usage): Be prepared for suffixes created by
15716 the compiler in the function names.
15718 2013-09-06 Jan Hubicka <jh@suse.cz>
15720 PR middle-end/58094
15721 * ipa-inline.c (has_caller_p): New function.
15722 (want_inline_function_to_all_callers_p): Use it.
15723 (sum_callers, inline_to_all_callers): Break out from ...
15724 (ipa_inline): ... here.
15726 2013-09-06 Jan Hubicka <jh@suse.cz>
15728 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15729 only when AVX is enabled.
15731 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15733 * config/aarch64/aarch64.md
15734 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15735 is fpsimd_<load/store>2.
15736 (load_pair<mode>): Likewise.
15737 (store_pair<mode>): Likewise.
15739 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15741 * config/arm/types.md (type): Add "mrs" type.
15742 * config/aarch64/aarch64.md
15743 (aarch64_load_tp_hard): Make type "mrs".
15744 * config/arm/arm.md
15745 (load_tp_hard): Make type "mrs".
15746 * config/arm/cortex-a15.md: Update with new attributes.
15747 * config/arm/cortex-a5.md: Update with new attributes.
15748 * config/arm/cortex-a53.md: Update with new attributes.
15749 * config/arm/cortex-a7.md: Update with new attributes.
15750 * config/arm/cortex-a8.md: Update with new attributes.
15751 * config/arm/cortex-a9.md: Update with new attributes.
15752 * config/arm/cortex-m4.md: Update with new attributes.
15753 * config/arm/cortex-r4.md: Update with new attributes.
15754 * config/arm/fa526.md: Update with new attributes.
15755 * config/arm/fa606te.md: Update with new attributes.
15756 * config/arm/fa626te.md: Update with new attributes.
15757 * config/arm/fa726te.md: Update with new attributes.
15759 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15761 * config/aarch64/aarch64.md
15762 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15763 (*movtf_aarch64): Likewise.
15764 * config/arm/arm.md
15765 (thumb1_movdi_insn): Use "multiple" for type where more than one
15766 instruction is used for a move.
15767 (*arm32_movhf): Likewise.
15768 (*thumb_movdf_insn): Likewise.
15770 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15772 * config/arm/types.md (type): Rename fcpys to fmov.
15773 * config/arm/vfp.md
15774 (*arm_movsi_vfp): Rename type fcpys as fmov.
15775 (*thumb2_movsi_vfp): Likewise
15776 (*movhf_vfp_neon): Likewise
15777 (*movhf_vfp): Likewise
15778 (*movsf_vfp): Likewise
15779 (*thumb2_movsf_vfp): Likewise
15780 (*movsfcc_vfp): Likewise
15781 (*thumb2_movsfcc_vfp): Likewise
15782 * config/aarch64/aarch64-simd.md
15783 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15784 * config/aarch64/aarch64.md
15785 (*movsi_aarch64): Replace type mov_reg with fmovs.
15786 (*movdi_aarch64): Likewise
15787 (*movsf_aarch64): Likewise
15788 (*movdf_aarch64): Likewise
15790 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15791 * config/arm/iwmmxt.md
15792 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15793 * config/arm/arm1020e.md: Update with new attributes.
15794 * config/arm/cortex-a15-neon.md: Update with new attributes.
15795 * config/arm/cortex-a5.md: Update with new attributes.
15796 * config/arm/cortex-a53.md: Update with new attributes.
15797 * config/arm/cortex-a7.md: Update with new attributes.
15798 * config/arm/cortex-a8-neon.md: Update with new attributes.
15799 * config/arm/cortex-a9.md: Update with new attributes.
15800 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15801 * config/arm/cortex-r4f.md: Update with new attributes.
15802 * config/arm/marvell-pj4.md: Update with new attributes.
15803 * config/arm/vfp11.md: Update with new attributes.
15805 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15807 * config/aarch64/aarch64.md
15808 (*madd<mode>): Fix type attribute.
15809 (*maddsi_uxtw): Likewise.
15810 (*msub<mode>): Likewise.
15811 (*msubsi_uxtw): Likewise.
15812 (<su_optab>maddsidi4): Likewise.
15813 (<su_optab>msubsidi4): Likewise.
15815 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15817 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15818 * config/arm/arm.md (core_cycles): Remove fdiv.
15819 * config/arm/vfp.md:
15820 (*sqrtsf2_vfp): Update for attribute changes.
15821 (*sqrtdf2_vfp): Likewise.
15822 * config/aarch64/aarch64.md:
15823 (sqrt<mode>2): Update for attribute changes.
15824 * config/arm/arm1020e.md: Update with new attributes.
15825 * config/arm/cortex-a15-neon.md: Update with new attributes.
15826 * config/arm/cortex-a5.md: Update with new attributes.
15827 * config/arm/cortex-a53.md: Update with new attributes.
15828 * config/arm/cortex-a7.md: Update with new attributes.
15829 * config/arm/cortex-a8-neon.md: Update with new attributes.
15830 * config/arm/cortex-a9.md: Update with new attributes.
15831 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15832 * config/arm/cortex-r4f.md: Update with new attributes.
15833 * config/arm/marvell-pj4.md: Update with new attributes.
15834 * config/arm/vfp11.md: Update with new attributes.
15836 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15838 * config/arm/types.md
15839 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15840 * config/aarch64/aarch64.md
15841 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15843 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15844 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15845 (float<GPI:mode><GPF:mode>2): Likewise.
15846 * config/arm/vfp.md
15847 (*truncsisf2_vfp): Update with new attributes.
15848 (*truncsidf2_vfp): Likewise.
15849 (fixuns_truncsfsi2): Likewise.
15850 (fixuns_truncdfsi2): Likewise.
15851 (*floatsisf2_vfp): Likewise.
15852 (*floatsidf2_vfp): Likewise.
15853 (floatunssisf2): Likewise.
15854 (floatunssidf2): Likewise.
15855 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15856 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15857 * config/arm/arm1020e.md: Update with new attributes.
15858 * config/arm/cortex-a15-neon.md: Update with new attributes.
15859 * config/arm/cortex-a5.md: Update with new attributes.
15860 * config/arm/cortex-a53.md: Update with new attributes.
15861 * config/arm/cortex-a7.md: Update with new attributes.
15862 * config/arm/cortex-a8-neon.md: Update with new attributes.
15863 * config/arm/cortex-a9.md: Update with new attributes.
15864 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15865 * config/arm/cortex-r4f.md: Update with new attributes.
15866 * config/arm/marvell-pj4.md: Update with new attributes.
15867 * config/arm/vfp11.md: Update with new attributes.
15869 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15871 * config/aarch64/arm_neon.h
15872 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15873 (vqtbx<1,2,3,4><q>_s8): Likewise.
15875 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15877 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15878 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15879 (add<mode>3): Add type attribute.
15880 (add<mode>3): Likewise.
15881 (usadd<mode>3): Likewise.
15882 (ssadd<mode>3): Likewise.
15883 (sub<mode>3): Likewise.
15884 (sub<mode>3): Likewise.
15885 (ussub<mode>3): Likewise.
15886 (sssub<mode>3): Likewise.
15887 (ssmulsa3): Likewise.
15888 (usmulusa3): Likewise.
15889 (arm_usatsihi): Likewise.
15890 * config/arm/vfp.md
15891 (*movdi_vfp): Add types for all instructions.
15892 (*movdi_vfp_cortexa8): Likewise.
15893 (*movhf_vfp_neon): Likewise.
15894 (*movhf_vfp): Likewise.
15895 (*movdf_vfp): Likewise.
15896 (*thumb2_movdf_vfp): Likewise.
15897 (*thumb2_movdfcc_vfp): Likewise.
15898 * config/arm/arm.md: Add type attribute to all insn patterns.
15899 (*thumb1_adddi3): Add type attribute.
15900 (*arm_adddi3): Likewise.
15901 (*adddi_sesidi_di): Likewise.
15902 (*adddi_zesidi_di): Likewise.
15903 (*thumb1_addsi3): Likewise.
15904 (addsi3_compare0): Likewise.
15905 (*addsi3_compare0_scratch): Likewise.
15906 (*compare_negsi_si): Likewise.
15907 (cmpsi2_addneg): Likewise.
15908 (*addsi3_carryin_<optab>): Likewise.
15909 (*addsi3_carryin_alt2_<optab>): Likewise.
15910 (*addsi3_carryin_clobercc_<optab>): Likewise.
15911 (*subsi3_carryin): Likewise.
15912 (*subsi3_carryin_const): Likewise.
15913 (*subsi3_carryin_compare): Likewise.
15914 (*subsi3_carryin_compare_const): Likewise.
15915 (*arm_subdi3): Likewise.
15916 (*thumb_subdi3): Likewise.
15917 (*subdi_di_zesidi): Likewise.
15918 (*subdi_di_sesidi): Likewise.
15919 (*subdi_zesidi_di): Likewise.
15920 (*subdi_sesidi_di): Likewise.
15921 (*subdi_zesidi_ze): Likewise.
15922 (thumb1_subsi3_insn): Likewise.
15923 (*arm_subsi3_insn): Likewise.
15924 (*anddi3_insn): Likewise.
15925 (*anddi_zesidi_di): Likewise.
15926 (*anddi_sesdi_di): Likewise.
15927 (*ne_zeroextracts): Likewise.
15928 (*ne_zeroextracts): Likewise.
15929 (*ite_ne_zeroextr): Likewise.
15930 (*ite_ne_zeroextr): Likewise.
15931 (*anddi_notdi_di): Likewise.
15932 (*anddi_notzesidi): Likewise.
15933 (*anddi_notsesidi): Likewise.
15934 (andsi_notsi_si): Likewise.
15935 (thumb1_bicsi3): Likewise.
15936 (*iordi3_insn): Likewise.
15937 (*iordi_zesidi_di): Likewise.
15938 (*iordi_sesidi_di): Likewise.
15939 (*thumb1_iorsi3_insn): Likewise.
15940 (*xordi3_insn): Likewise.
15941 (*xordi_zesidi_di): Likewise.
15942 (*xordi_sesidi_di): Likewise.
15943 (*arm_xorsi3): Likewise.
15944 (*andsi_iorsi3_no): Likewise.
15945 (*smax_0): Likewise.
15946 (*smax_m1): Likewise.
15947 (*arm_smax_insn): Likewise.
15948 (*smin_0): Likewise.
15949 (*arm_smin_insn): Likewise.
15950 (*arm_umaxsi3): Likewise.
15951 (*arm_uminsi3): Likewise.
15952 (*minmax_arithsi): Likewise.
15953 (*minmax_arithsi_): Likewise.
15954 (*satsi_<SAT:code>): Likewise.
15955 (arm_ashldi3_1bit): Likewise.
15956 (arm_ashrdi3_1bit): Likewise.
15957 (arm_lshrdi3_1bit): Likewise.
15958 (*arm_negdi2): Likewise.
15959 (*thumb1_negdi2): Likewise.
15960 (*arm_negsi2): Likewise.
15961 (*thumb1_negsi2): Likewise.
15962 (*negdi_extendsid): Likewise.
15963 (*negdi_zero_extend): Likewise.
15964 (*arm_abssi2): Likewise.
15965 (*thumb1_abssi2): Likewise.
15966 (*arm_neg_abssi2): Likewise.
15967 (*thumb1_neg_abss): Likewise.
15968 (one_cmpldi2): Likewise.
15969 (extend<mode>di2): Likewise.
15970 (*compareqi_eq0): Likewise.
15971 (*arm_extendhisi2addsi): Likewise.
15972 (*arm_movdi): Likewise.
15973 (*thumb1_movdi_insn): Likewise.
15974 (*arm_movt): Likewise.
15975 (*thumb1_movsi_insn): Likewise.
15976 (pic_add_dot_plus_four): Likewise.
15977 (pic_add_dot_plus_eight): Likewise.
15978 (tls_load_dot_plus_eight): Likewise.
15979 (*thumb1_movhi_insn): Likewise.
15980 (*thumb1_movsf_insn): Likewise.
15981 (*movdf_soft_insn): Likewise.
15982 (*thumb_movdf_insn): Likewise.
15983 (cbranchsi4_insn): Likewise.
15984 (cbranchsi4_scratch): Likewise.
15985 (*negated_cbranchsi4): Likewise.
15986 (*tbit_cbranch): Likewise.
15987 (*tlobits_cbranch): Likewise.
15988 (*tstsi3_cbranch): Likewise.
15989 (*cbranchne_decr1): Likewise.
15990 (*addsi3_cbranch): Likewise.
15991 (*addsi3_cbranch_scratch): Likewise.
15992 (*arm_cmpdi_insn): Likewise.
15993 (*arm_cmpdi_unsig): Likewise.
15994 (*arm_cmpdi_zero): Likewise.
15995 (*thumb_cmpdi_zero): Likewise.
15996 (*deleted_compare): Likewise.
15997 (*mov_scc): Likewise.
15998 (*mov_negscc): Likewise.
15999 (*mov_notscc): Likewise.
16000 (*cstoresi_eq0_thumb1_insn): Likewise.
16001 (cstoresi_nltu_thumb1): Likewise.
16002 (cstoresi_ltu_thu): Likewise.
16003 (thumb1_addsi3_addgeu): Likewise.
16004 (*arm_jump): Likewise.
16005 (*thumb_jump): Likewise.
16006 (*check_arch2): Likewise.
16007 (arm_casesi_internal): Likewise.
16008 (thumb1_casesi_dispatch): Likewise.
16009 (*arm_indirect_jump): Likewise.
16010 (*thumb1_indirect_jump): Likewise.
16012 (*and_scc): Likewise.
16013 (*ior_scc): Likewise.
16014 (*compare_scc): Likewise.
16015 (*cond_move): Likewise.
16016 (*cond_arith): Likewise.
16017 (*cond_sub): Likewise.
16018 (*cmp_ite0): Likewise.
16019 (*cmp_ite1): Likewise.
16020 (*cmp_and): Likewise.
16021 (*cmp_ior): Likewise.
16022 (*ior_scc_scc): Likewise.
16023 (*ior_scc_scc_cmp): Likewise.
16024 (*and_scc_scc): Likewise.
16025 (*and_scc_scc_cmp): Likewise.
16026 (*and_scc_scc_nod): Likewise.
16027 (*negscc): Likewise.
16028 (movcond_addsi): Likewise.
16029 (movcond): Likewise.
16030 (*ifcompare_plus_move): Likewise.
16031 (*if_plus_move): Likewise.
16032 (*ifcompare_move_plus): Likewise.
16033 (*if_move_plus): Likewise.
16034 (*ifcompare_arith_arith): Likewise.
16035 (*if_arith_arith): Likewise.
16036 (*ifcompare_arith_move): Likewise.
16037 (*if_arith_move): Likewise.
16038 (*ifcompare_move_arith): Likewise.
16039 (*if_move_arith): Likewise.
16040 (*ifcompare_move_not): Likewise.
16041 (*if_move_not): Likewise.
16042 (*ifcompare_not_move): Likewise.
16043 (*if_not_move): Likewise.
16044 (*ifcompare_shift_move): Likewise.
16045 (*if_shift_move): Likewise.
16046 (*ifcompare_move_shift): Likewise.
16047 (*if_move_shift): Likewise.
16048 (*ifcompare_shift_shift): Likewise.
16049 (*ifcompare_not_arith): Likewise.
16050 (*ifcompare_arith_not): Likewise.
16051 (*if_arith_not): Likewise.
16052 (*ifcompare_neg_move): Likewise.
16053 (*if_neg_move): Likewise.
16054 (*ifcompare_move_neg): Likewise.
16055 (*if_move_neg): Likewise.
16056 (prologue_thumb1_interwork): Likewise.
16057 (*cond_move_not): Likewise.
16058 (*sign_extract_onebit): Likewise.
16059 (*not_signextract_onebit): Likewise.
16060 (stack_tie): Likewise.
16061 (align_4): Likewise.
16062 (align_8): Likewise.
16063 (consttable_end): Likewise.
16064 (consttable_1): Likewise.
16065 (consttable_2): Likewise.
16066 (consttable_4): Likewise.
16067 (consttable_8): Likewise.
16068 (consttable_16): Likewise.
16069 (*thumb1_tablejump): Likewise.
16070 (prefetch): Likewise.
16071 (force_register_use): Likewise.
16072 (thumb_eh_return): Likewise.
16073 (load_tp_hard): Likewise.
16074 (load_tp_soft): Likewise.
16075 (tlscall): Likewise.
16076 (*arm_movtas_ze): Likewise.
16077 (*arm_rev): Likewise.
16078 (*arm_revsh): Likewise.
16079 (*arm_rev16): Likewise.
16080 * config/arm/thumb2.md
16081 (*thumb2_smaxsi3): Likewise.
16082 (*thumb2_sminsi3): Likewise.
16083 (*thumb32_umaxsi3): Likewise.
16084 (*thumb2_uminsi3): Likewise.
16085 (*thumb2_negdi2): Likewise.
16086 (*thumb2_abssi2): Likewise.
16087 (*thumb2_neg_abss): Likewise.
16088 (*thumb2_movsi_insn): Likewise.
16089 (tls_load_dot_plus_four): Likewise.
16090 (*thumb2_movhi_insn): Likewise.
16091 (*thumb2_mov_scc): Likewise.
16092 (*thumb2_mov_negs): Likewise.
16093 (*thumb2_mov_negs): Likewise.
16094 (*thumb2_mov_nots): Likewise.
16095 (*thumb2_mov_nots): Likewise.
16096 (*thumb2_movsicc_): Likewise.
16097 (*thumb2_movsfcc_soft_insn): Likewise.
16098 (*thumb2_indirect_jump): Likewise.
16099 (*thumb2_and_scc): Likewise.
16100 (*thumb2_ior_scc): Likewise.
16101 (*thumb2_ior_scc_strict_it): Likewise.
16102 (*thumb2_cond_move): Likewise.
16103 (*thumb2_cond_arith): Likewise.
16104 (*thumb2_cond_ari): Likewise.
16105 (*thumb2_cond_sub): Likewise.
16106 (*thumb2_negscc): Likewise.
16107 (*thumb2_movcond): Likewise.
16108 (thumb2_casesi_internal): Likewise.
16109 (thumb2_casesi_internal_pic): Likewise.
16110 (*thumb2_alusi3_short): Likewise.
16111 (*thumb2_mov<mode>_shortim): Likewise.
16112 (*thumb2_addsi_short): Likewise.
16113 (*thumb2_subsi_short): Likewise.
16114 (thumb2_addsi3_compare0): Likewise.
16115 (*thumb2_cbz): Likewise.
16116 (*thumb2_cbnz): Likewise.
16117 (*thumb2_one_cmplsi2_short): Likewise.
16118 (*thumb2_negsi2_short): Likewise.
16119 (*orsi_notsi_si): Likewise.
16120 * config/arm/arm1020e.md: Update with new attributes.
16121 * config/arm/arm1026ejs.md: Update with new attributes.
16122 * config/arm/arm1136jfs.md: Update with new attributes.
16123 * config/arm/arm926ejs.md: Update with new attributes.
16124 * config/arm/cortex-a15.md: Update with new attributes.
16125 * config/arm/cortex-a5.md: Update with new attributes.
16126 * config/arm/cortex-a53.md: Update with new attributes.
16127 * config/arm/cortex-a7.md: Update with new attributes.
16128 * config/arm/cortex-a8.md: Update with new attributes.
16129 * config/arm/cortex-a9.md: Update with new attributes.
16130 * config/arm/cortex-m4.md: Update with new attributes.
16131 * config/arm/cortex-r4.md: Update with new attributes.
16132 * config/arm/fa526.md: Update with new attributes.
16133 * config/arm/fa606te.md: Update with new attributes.
16134 * config/arm/fa626te.md: Update with new attributes.
16135 * config/arm/fa726te.md: Update with new attributes.
16137 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16139 * config/aarch64/aarch64-simd.md
16140 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16141 <vwx> iterator to ensure correct register choice.
16142 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16143 (aarch64_sqdmull_n<mode>): Likewise.
16144 (aarch64_sqdmull2_n<mode>_internal): Likewise.
16145 * config/aarch64/arm_neon.h
16146 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16147 (vml<as><q>_n_<su>16): Likewise.
16148 (vml<as>l_high_lane<q>_<su>16): Likewise.
16149 (vml<as>l_high_n_<su>16): Likewise.
16150 (vml<as>l_lane<q>_<su>16): Likewise.
16151 (vml<as>l_n_<su>16): Likewise.
16152 (vmul<q>_lane<q>_<su>16): Likewise.
16153 (vmul<q>_n_<su>16): Likewise.
16154 (vmull_lane<q>_<su>16): Likewise.
16155 (vmull_n_<su>16): Likewise.
16156 (vmull_high_lane<q>_<su>16): Likewise.
16157 (vmull_high_n_<su>16): Likewise.
16158 (vqrdmulh<q>_n_s16): Likewise.
16160 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
16162 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16163 have the correct lane parameter.
16165 2013-09-06 Richard Biener <rguenther@suse.de>
16167 * cfganal.c (control_dependences::~control_dependences):
16168 Properly free all of the vector.
16170 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
16173 * config/i386/i386.c (ix86_conditional_register_usage):
16174 Proper initialize extended SSE registers.
16176 2013-09-06 Jan Hubicka <jh@suse.cz>
16178 PR tree-optimization/58311
16179 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16181 2013-09-06 Jan Hubicka <jh@suse.cz>
16183 * Makefile.in (tree-sra.o): Update dependencies.
16184 * tree-sra.c: Include ipa-utils.h
16185 (scan_function): Use recursive_call_p.
16186 (has_caller_p): New function.
16187 (cgraph_for_node_and_aliases): Count also callers of aliases.
16189 2013-09-06 Jan Hubicka <jh@suse.cz>
16191 PR middle-end/58094
16192 * cgraph.h (symtab_semantically_equivalent_p): Declare.
16193 * tree-tailcall.c: Include ipa-utils.h.
16194 (find_tail_calls): Use it.
16195 * ipa-pure-const.c (check_call): Likewise.
16196 * ipa-utils.c (recursive_call_p): New function.
16197 * ipa-utils.h (recursive_call_p): Dclare.
16198 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16199 (symtab_semantically_equivalent_p): New function.
16200 * Makefile.in (tree-tailcall.o): Update dependencies.
16202 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16204 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16205 non-inlinable part.
16207 2013-09-06 Richard Biener <rguenther@suse.de>
16209 * lto-streamer.h (lto_global_var_decls): Remove.
16210 * Makefile.in (OBJS): Remove lto-symtab.o.
16211 (lto-symtab.o): Remove.
16212 (GTFILES): Remove lto-symtab.c
16213 * lto-symtab.c: Move to lto/
16215 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16217 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16218 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16219 (UNSPEC_FPINT_RINT): New constant definitions.
16220 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16221 definition with 2 attributes.
16222 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16223 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16226 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16228 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16229 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16230 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
16231 attribute to "z196_alone".
16232 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16235 2013-09-06 Richard Biener <rguenther@suse.de>
16237 * basic-block.h (class control_dependences): New.
16238 * tree-ssa-dce.c (control_dependence_map): Remove.
16240 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16241 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16242 find_pdom, find_control_dependence, find_all_control_dependences):
16244 (mark_control_dependent_edges_necessary,
16245 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16246 tree_dce_done, perform_tree_ssa_dce): Adjust.
16247 * cfganal.c (set_control_dependence_map_bit,
16248 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16249 find_all_control_dependences): Move from tree-ssa-dce.c and
16250 implement as methods of control_dependences class.
16251 (control_dependences::control_dependences): New.
16252 (control_dependences::~control_dependences): Likewise.
16253 (control_dependences::get_edges_dependent_on): Likewise.
16254 (control_dependences::get_edge): Likewise.
16256 2013-09-04 Jan Hubicka <jh@suse.cz>
16258 * tree.c (types_same_for_odr): Drop overactive check.
16259 * ipa-devirt.c (hash_type_name): Likewise.
16261 2013-09-04 Jan Hubicka <jh@suse.cz>
16263 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16264 (analyze_functions): ... here.
16266 2013-09-04 Jan Hubicka <jh@suse.cz>
16268 PR middle-end/58201
16269 * cgraphunit.c (analyze_functions): Clear AUX fields
16270 after processing; initialize assembler name has.
16272 2013-09-05 Jeff Law <law@redhat.com>
16274 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16275 from thread_around_empty_block. Record threading path into PATH.
16276 Recurse if threading through the initial block is successful.
16277 (thread_across_edge): Corresponding changes to slightly simplify.
16279 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16281 * config/aarch64/aarch64.md
16282 (type): Remove frecpe, frecps, frecpx.
16283 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16284 fix to be a TARGET_SIMD instruction.
16285 (aarch64_frecps): Remove.
16286 * config/aarch64/aarch64-simd.md
16287 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16288 (aarch64_frecps<mode>): Handle all float/vector of float modes.
16290 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16291 Sofiane Naci <sofiane.naci@arm.com>
16293 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16294 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16295 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16296 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16297 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
16298 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16299 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
16300 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
16301 into "clz, "rbit". Rename "shift" to "shift_imm".
16302 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16303 changes. Update for attribute changes all occurrences of arlo_* and
16305 * config/arm/arm-fixed.md: Update for attribute changes
16306 all occurrences of arlo_* types.
16307 * config/arm/thumb2.md: Update for attribute changes all occurrences
16309 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
16310 (cortexa7_older_only): Likewise.
16311 (cortexa7_younger): Likewise.
16312 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16313 (1020alu_shift_op): Likewise.
16314 (1020alu_shift_reg_op): Likewise.
16315 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16316 (alu_shift_op): Likewise.
16317 (alu_shift_reg_op): Likewise.
16318 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16319 (11_alu_shift_op): Likewise.
16320 (11_alu_shift_reg_op): Likewise.
16321 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16322 (9_alu_shift_reg_op): Likewise.
16323 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16325 (cortex_a15_alu_shift): Likewise.
16326 (cortex_a15_alu_shift_reg): Likewise.
16327 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16329 (cortex_a5_alu_shift): Likewise.
16330 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16332 (cortex_a53_alu_shift): Likewise.
16333 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16335 (cortex_a7_alu_reg): Likewise.
16336 (cortex_a7_alu_shift): Likewise.
16337 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16339 (cortex_a8_alu_shift): Likewise.
16340 (cortex_a8_alu_shift_reg): Likewise.
16341 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16342 (cortex_a9_dp_shift): Likewise.
16343 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16345 * config/arm/cortex-r4.md
16346 (cortex_r4_alu): Update for attribute changes.
16347 (cortex_r4_mov): Likewise.
16348 (cortex_r4_alu_shift_reg): Likewise.
16349 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16350 (526_alu_shift_op): Likewise.
16351 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16352 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16353 (626te_alu_shift_op): Likewise.
16354 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16355 (726te_alu_shift_op): Likewise.
16356 (726te_alu_shift_reg_op): Likewise.
16357 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16358 (mp626_alu_shift_op): Likewise.
16359 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16360 (pj4_alu_conds): Likewise.
16361 (pj4_shift): Likewise.
16362 (pj4_shift_conds): Likewise.
16363 (pj4_alu_shift): Likewise.
16364 (pj4_alu_shift_conds): Likewise.
16365 * config/aarch64/aarch64.md: Update for attribute change
16366 all occurrences of arlo_* and shift* types.
16368 2013-09-05 Mike Stump <mikestump@comcast.net>
16370 * tree.h: Move documentation for tree_function_decl to tree-core.h
16371 with the declaration.
16373 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
16376 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16377 looking for widest mode.
16379 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
16381 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16383 2013-09-05 Richard Biener <rguenther@suse.de>
16385 PR tree-optimization/58137
16386 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16387 Do not create vectors of pointers.
16388 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16389 types for the components of the vector initializer.
16390 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16391 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16393 2013-09-05 Martin Jambor <mjambor@suse.cz>
16395 * ipa-prop.c (remove_described_reference): Accept missing references,
16396 return false if that hppens, otherwise return true.
16397 (cgraph_node_for_jfunc): New function.
16398 (try_decrement_rdesc_refcount): Likewise.
16399 (try_make_edge_direct_simple_call): Use them.
16400 (ipa_edge_removal_hook): Remove references from rdescs.
16401 (ipa_edge_duplication_hook): Clone rdescs and their references
16402 when the new edge has the same caller as the old one.
16403 * cgraph.c (cgraph_resolve_speculation): Remove speculative
16404 reference before removing any edges.
16406 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
16408 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16410 * thumb2.md (thumb2_storewb_parisi): New pattern.
16412 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
16414 * config/aarch64/aarch64-option-extensions.def: Add
16415 AARCH64_OPT_EXTENSION of 'crc'.
16416 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16417 (AARCH64_ISA_CRC): Ditto.
16418 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16419 description of the CRC extension.
16421 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
16423 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16424 * config/rs6000/linux.h: Ditto.
16425 * alpha/linux.h: Ditto.
16426 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16427 no_c99_libc_has_function.
16428 * config/c6x/uclinux-elf.h: Ditto.
16429 * config/lm32/uclinux-elf.h: Ditto.
16430 * config/m68k/uclinux.h: Ditto.
16431 * config/moxie/uclinux.h: Ditto.
16432 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16433 (crisv32-*-linux*, cris-*-linux*): Ditto.
16434 * config/bfin/bfin.c: Include "tm_p.h".
16436 2013-09-05 Richard Biener <rguenther@suse.de>
16438 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16439 check for a definition without a basic-block.
16441 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16442 Sofiane Naci <sofiane.naci@arm.com>
16444 * config/aarch64/aarch64.md
16445 (*movti_aarch64): Rename r_2_f and f_2_r.
16446 (*movsf_aarch64): Likewise.
16447 (*movdf_aarch64): Likewise.
16448 (*movtf_aarch64): Likewise.
16449 (aarch64_movdi_<mode>low): Likewise.
16450 (aarch64_movdi_<mode>high): Likewise.
16451 (aarch64_mov<mode>high_di): Likewise.
16452 (aarch64_mov<mode>low_di): Likewise.
16453 (aarch64_movtilow_tilow): Likewise.
16454 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
16455 values to config/arm/types.md
16456 (attribute "conds"): Update for attribute change.
16457 (anddi3_insn): Likewise.
16458 (iordi3_insn): Likewise.
16459 (xordi3_insn): Likewise.
16460 (one_cmpldi2): Likewise.
16461 * config/arm/types.md (type): Add Neon types.
16462 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16463 use "type" attribute.
16464 (movmisalign<mode>_neon_store): Likewise.
16465 (movmisalign<mode>_neon_load): Likewise.
16466 (vec_set<mode>_internal): Likewise.
16467 (vec_setv2di_internal): Likewise.
16468 (vec_extract<mode>): Likewise.
16469 (vec_extractv2di): Likewise.
16470 (add<mode>3_neon): Likewise.
16471 (adddi3_neon): Likewise.
16472 (sub<mode>3_neon): Likewise.
16473 (subdi3_neon): Likewise.
16474 (mul<mode>3_neon): Likewise.
16475 (mul<mode>3add<mode>_neon): Likewise.
16476 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16477 (fma<VCVTF:mode>4)): Likewise.
16478 (fma<VCVTF:mode>4_intrinsic): Likewise.
16479 (fmsub<VCVTF:mode>4)): Likewise.
16480 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16481 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16482 (ior<mode>3): Likewise.
16483 (and<mode>3): Likewise.
16484 (anddi3_neon): Likewise.
16485 (orn<mode>3_neon): Likewise.
16486 (orndi3_neon): Likewise.
16487 (bic<mode>3_neon): Likewise.
16488 (bicdi3_neon): Likewise.
16489 (xor<mode>3): Likewise.
16490 (one_cmpl<mode>2): Likewise.
16491 (abs<mode>2): Likewise.
16492 (neg<mode>2): Likewise.
16493 (umin<mode>3_neon): Likewise.
16494 (umax<mode>3_neon): Likewise.
16495 (smin<mode>3_neon): Likewise.
16496 (smax<mode>3_neon): Likewise.
16497 (vashl<mode>3): Likewise.
16498 (vashr<mode>3_imm): Likewise.
16499 (vlshr<mode>3_imm): Likewise.
16500 (ashl<mode>3_signed): Likewise.
16501 (ashl<mode>3_unsigned): Likewise.
16502 (neon_load_count): Likewise.
16503 (ashldi3_neon_noclobber): Likewise.
16504 (signed_shift_di3_neon): Likewise.
16505 (unsigned_shift_di3_neon): Likewise.
16506 (ashrdi3_neon_imm_noclobber): Likewise.
16507 (lshrdi3_neon_imm_noclobber): Likewise.
16508 (widen_ssum<mode>3): Likewise.
16509 (widen_usum<mode>3): Likewise.
16510 (quad_halves_<code>v4si): Likewise.
16511 (quad_halves_<code>v4sf): Likewise.
16512 (quad_halves_<code>v8hi): Likewise.
16513 (quad_halves_<code>v16qi): Likewise.
16514 (reduc_splus_v2di): Likewise.
16515 (neon_vpadd_internal<mode>): Likewise.
16516 (neon_vpsmin<mode>): Likewise.
16517 (neon_vpsmax<mode>): Likewise.
16518 (neon_vpumin<mode>): Likewise.
16519 (neon_vpumax<mode>): Likewise.
16520 (ss_add<mode>_neon): Likewise.
16521 (us_add<mode>_neon): Likewise.
16522 (ss_sub<mode>_neon): Likewise.
16523 (us_sub<mode>_neon): Likewise.
16524 (neon_vadd<mode>_unspec): Likewise.
16525 (neon_vaddl<mode>): Likewise.
16526 (neon_vaddw<mode>): Likewise.
16527 (neon_vhadd<mode>): Likewise.
16528 (neon_vqadd<mode>): Likewise.
16529 (neon_vaddhn<mode>): Likewise.
16530 (neon_vmul<mode>): Likewise.
16531 (neon_vmla<mode>): Likewise.
16532 (neon_vmlal<mode>): Likewise.
16533 (neon_vmls<mode>): Likewise.
16534 (neon_vmlsl<mode>): Likewise.
16535 (neon_vqdmulh<mode>): Likewise.
16536 (neon_vqdmlal<mode>): Likewise.
16537 (neon_vqdmlsl<mode>): Likewise.
16538 (neon_vmull<mode>): Likewise.
16539 (neon_vqdmull<mode>): Likewise.
16540 (neon_vsub<mode>_unspec): Likewise.
16541 (neon_vsubl<mode>): Likewise.
16542 (neon_vsubw<mode>): Likewise.
16543 (neon_vqsub<mode>): Likewise.
16544 (neon_vhsub<mode>): Likewise.
16545 (neon_vsubhn<mode>): Likewise.
16546 (neon_vceq<mode>): Likewise.
16547 (neon_vcge<mode>): Likewise.
16548 (neon_vcgeu<mode>): Likewise.
16549 (neon_vcgt<mode>): Likewise.
16550 (neon_vcgtu<mode>): Likewise.
16551 (neon_vcle<mode>): Likewise.
16552 (neon_vclt<mode>): Likewise.
16553 (neon_vcage<mode>): Likewise.
16554 (neon_vcagt<mode>): Likewise.
16555 (neon_vtst<mode>): Likewise.
16556 (neon_vabd<mode>): Likewise.
16557 (neon_vabdl<mode>): Likewise.
16558 (neon_vaba<mode>): Likewise.
16559 (neon_vabal<mode>): Likewise.
16560 (neon_vmax<mode>): Likewise.
16561 (neon_vmin<mode>): Likewise.
16562 (neon_vpaddl<mode>): Likewise.
16563 (neon_vpadal<mode>): Likewise.
16564 (neon_vpmax<mode>): Likewise.
16565 (neon_vpmin<mode>): Likewise.
16566 (neon_vrecps<mode>): Likewise.
16567 (neon_vrsqrts<mode>): Likewise.
16568 (neon_vqabs<mode>): Likewise.
16569 (neon_vqneg<mode>): Likewise.
16570 (neon_vcls<mode>): Likewise.
16571 (clz<mode>2): Likewise.
16572 (popcount<mode>2): Likewise.
16573 (neon_vrecpe): Likewise.
16574 (neon_vrsqrte): Likewise.
16575 (neon_vget_lane<mode>_sext_internal): Likewise.
16576 (neon_vget_lane<mode>_zext_internal): Likewise.
16577 (neon_vdup_n<mode>): Likewise.
16578 (neon_vdup_nv2di): Likewise.
16579 (neon_vdpu_lane<mode>_internal): Likewise.
16580 (neon_vswp<mode>): Likewise.
16581 (float<mode><V_cvtto>2): Likewise.
16582 (floatuns<mode><V_cvtto>2): Likewise.
16583 (fix_trunc<mode><V_cvtto>)2): Likewise
16584 (fixuns_trunc<mode><V_cvtto)2): Likewise.
16585 (neon_vcvt<mode>): Likewise.
16586 (neon_vcvtv4sfv4hf): Likewise.
16587 (neon_vcvtv4hfv4sf): Likewise.
16588 (neon_vcvt_n<mode>): Likewise.
16589 (neon_vmovn<mode>): Likewise.
16590 (neon_vqmovn<mode>): Likewise.
16591 (neon_vqmovun<mode>): Likewise.
16592 (neon_vmovl<mode>): Likewise.
16593 (neon_vmul_lane<mode>): Likewise.
16594 (neon_vmull_lane<mode>): Likewise.
16595 (neon_vqdmull_lane<mode>): Likewise.
16596 (neon_vqdmulh_lane<mode>): Likewise.
16597 (neon_vmla_lane<mode>): Likewise.
16598 (neon_vmlal_lane<mode>): Likewise.
16599 (neon_vqdmlal_lane<mode>): Likewise.
16600 (neon_vmls_lane<mode>): Likewise.
16601 (neon_vmlsl_lane<mode>): Likewise.
16602 (neon_vqdmlsl_lane<mode>): Likewise.
16603 (neon_vext<mode>): Likewise.
16604 (neon_vrev64<mode>): Likewise.
16605 (neon_vrev32<mode>): Likewise.
16606 (neon_vrev16<mode>): Likewise.
16607 (neon_vbsl<mode>_internal): Likewise.
16608 (neon_vshl<mode>): Likewise.
16609 (neon_vqshl<mode>): Likewise.
16610 (neon_vshr_n<mode>): Likewise.
16611 (neon_vshrn_n<mode>): Likewise.
16612 (neon_vqshrn_n<mode>): Likewise.
16613 (neon_vqshrun_n<mode>): Likewise.
16614 (neon_vshl_n<mode>): Likewise.
16615 (neon_vqshl_n<mode>): Likewise.
16616 (neon_vqshlu_n<mode>): Likewise.
16617 (neon_vshll_n<mode>): Likewise.
16618 (neon_vsra_n<mode>): Likewise.
16619 (neon_vsri_n<mode>): Likewise.
16620 (neon_vsli_n<mode>): Likewise.
16621 (neon_vtbl1v8qi): Likewise.
16622 (neon_vtbl2v8qi): Likewise.
16623 (neon_vtbl3v8qi): Likewise.
16624 (neon_vtbl4v8qi): Likewise.
16625 (neon_vtbx1v8qi): Likewise.
16626 (neon_vtbx2v8qi): Likewise.
16627 (neon_vtbx3v8qi): Likewise.
16628 (neon_vtbx4v8qi): Likewise.
16629 (neon_vtrn<mode>_internal): Likewise.
16630 (neon_vzip<mode>_internal): Likewise.
16631 (neon_vuzp<mode>_internal): Likewise.
16632 (neon_vld1<mode>): Likewise.
16633 (neon_vld1_lane<mode>): Likewise.
16634 (neon_vld1_dup<mode>): Likewise.
16635 (neon_vld1_dupv2di): Likewise.
16636 (neon_vst1<mode>): Likewise.
16637 (neon_vst1_lane<mode>): Likewise.
16638 (neon_vld2<mode>): Likewise.
16639 (neon_vld2_lane<mode>): Likewise.
16640 (neon_vld2_dup<mode>): Likewise.
16641 (neon_vst2<mode>): Likewise.
16642 (neon_vst2_lane<mode>): Likewise.
16643 (neon_vld3<mode>): Likewise.
16644 (neon_vld3qa<mode>): Likewise.
16645 (neon_vld3qb<mode>): Likewise.
16646 (neon_vld3_lane<mode>): Likewise.
16647 (neon_vld3_dup<mode>): Likewise.
16648 (neon_vst3<mode>): Likewise.
16649 (neon_vst3qa<mode>): Likewise.
16650 (neon_vst3qb<mode>): Likewise.
16651 (neon_vst3_lane<mode>): Likewise.
16652 (neon_vld4<mode>): Likewise.
16653 (neon_vld4qa<mode>): Likewise.
16654 (neon_vld4qb<mode>): Likewise.
16655 (neon_vld4_lane<mode>): Likewise.
16656 (neon_vld4_dup<mode>): Likewise.
16657 (neon_vst4<mode>): Likewise.
16658 (neon_vst4qa<mode>): Likewise.
16659 (neon_vst4qb<mode>): Likewise.
16660 (neon_vst4_lane<mode>): Likewise.
16661 (neon_vec_unpack<US>_lo_<mode>): Likewise.
16662 (neon_vec_unpack<US>_hi_<mode>): Likewise.
16663 (neon_vec_<US>mult_lo_<mode>): Likewise.
16664 (neon_vec_<US>mult_hi_<mode>): Likewise.
16665 (neon_vec_<US>shiftl_<mode>): Likewise.
16666 (neon_unpack<US>_<mode>): Likewise.
16667 (neon_vec_<US>mult_<mode>): Likewise.
16668 (vec_pack_trunc_<mode>): Likewise.
16669 (neon_vec_pack_trunk_<mode>): Likewise.
16670 (neon_vabd<mode>_2): Likewise.
16671 (neon_vabd<mode>_3): Likewise.
16672 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16673 (thumb2_movsi_vfp): Likewise.
16674 (movdi_vfp): Likewise.
16675 (movdi_vfp_cortexa8): Likewise.
16676 (movhf_vfp_neon): Likewise.
16677 (movhf_vfp): Likewiwse.
16678 (movsf_vfp): Likewiwse.
16679 (thumb2_movsf_vfp): Likewiwse.
16680 (movdf_vfp): Likewise.
16681 (thumb2_movdf_vfp): Likewise.
16682 (movsfcc_vfp): Likewise.
16683 (thumb2_movsfcc_vfp): Likewise.
16684 (movdfcc_vfp): Likewise.
16685 (thumb2_movdfcc_vfp): Likewise.
16686 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16687 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16688 (v10_v2c): Likewise.
16689 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16691 (cortex_a15_neon_int_2): Likewise.
16692 (cortex_a15_neon_int_3): Likewise.
16693 (cortex_a15_neon_int_4): Likewise.
16694 (cortex_a15_neon_int_5): Likewise.
16695 (cortex_a15_neon_vqneg_vqabs): Likewise.
16696 (cortex_a15_neon_vmov): Likewise.
16697 (cortex_a15_neon_vaba): Likewise.
16698 (cortex_a15_neon_vaba_qqq): Likewise.
16699 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16700 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16701 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16702 scalar_64_32_long_scalar): Likewise.
16703 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16704 (cortex_a15_neon_mla_qqq_8_16): Likewise.
16705 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16706 lotype_qdd_64_32_long): Likewise.
16707 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16708 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16709 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16710 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16711 (cortex_a15_neon_shift_1): Likewise.
16712 (cortex_a15_neon_shift_2): Likewise.
16713 (cortex_a15_neon_shift_3): Likewise.
16714 (cortex_a15_neon_vshl_ddd): Likewise.
16715 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16716 (cortex_a15_neon_vsra_vrsra): Likewise.
16717 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16718 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16719 (cortex_a15_neon_fp_vmul_ddd): Likewise.
16720 (cortex_a15_neon_fp_vmul_qqd): Likewise.
16721 (cortex_a15_neon_fp_vmla_ddd): Likewise.
16722 (cortex_a15_neon_fp_vmla_qqq): Likewise.
16723 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16724 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16725 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16726 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16727 (cortex_a15_neon_bp_simple): Likewise.
16728 (cortex_a15_neon_bp_2cycle): Likewise.
16729 (cortex_a15_neon_bp_3cycle): Likewise.
16730 (cortex_a15_neon_vld1_1_2_regs): Likewise.
16731 (cortex_a15_neon_vld1_3_4_regs): Likewise.
16732 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16733 (cortex_a15_neon_vld2_4_regs): Likewise.
16734 (cortex_a15_neon_vld3_vld4): Likewise.
16735 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16736 (cortex_a15_neon_vst1_3_4_regs): Likewise.
16737 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16738 (cortex_a15_neon_vst3_vst4): Likewise.
16739 (cortex_a15_neon_vld1_vld2_lane): Likewise.
16740 (cortex_a15_neon_vld3_vld4_lane" 10
16741 (cortex_a15_neon_vst1_vst2_lane): Likewise.
16742 (cortex_a15_neon_vst3_vst4_lane): Likewise.
16743 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16744 (cortex_a15_neon_ldm_2): Likewise.0
16745 (cortex_a15_neon_stm_2): Likewise.
16746 (cortex_a15_neon_mcr): Likewise.
16747 (cortex_a15_neon_mcr_2_mcrr): Likewise.
16748 (cortex_a15_neon_mrc): Likewise.
16749 (cortex_a15_neon_mrrc): Likewise.
16750 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16752 (cortex_a15_alu_shift): Likewise.
16753 (cortex_a15_alu_shift_reg): Likewise.
16754 (cortex_a15_mult32): Likewise.
16755 (cortex_a15_mult64): Likewise.
16756 (cortex_a15_block): Likewise.
16757 (cortex_a15_branch): Likewise.
16758 (cortex_a15_load1): Likewise.
16759 (cortex_a15_load3): Likewise.
16760 (cortex_a15_store1): Likewise.
16761 (cortex_a15_store3): Likewise.
16762 (cortex_a15_call): Likewise.
16763 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16764 (cortex_a5_f2r): Likewise.
16765 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16767 (cortex_a53_f2r): Likewise.
16768 * config/arm/cortex-a7.md
16769 (cortex_a7_branch): Update for attribute change.
16770 (cortex_a7_call): Likewise.
16771 (cortex_a7_alu_imm): Likewise.
16772 (cortex_a7_alu_reg): Likewise.
16773 (cortex_a7_alu_shift): Likewise.
16774 (cortex_a7_mul): Likewise.
16775 (cortex_a7_load1): Likewise.
16776 (cortex_a7_store1): Likewise.
16777 (cortex_a7_load2): Likewise.
16778 (cortex_a7_store2): Likewise.
16779 (cortex_a7_load3): Likewise.
16780 (cortex_a7_store3): Likewise.
16781 (cortex_a7_load4): Likewise.
16782 (cortex_a7_store4): Likewise.
16783 (cortex_a7_fpalu): Likewise.
16784 (cortex_a7_fconst): Likewise.
16785 (cortex_a7_fpmuls): Likewise.
16786 (cortex_a7_neon_mul): Likewise.
16787 (cortex_a7_fpmacs): Likewise.
16788 (cortex_a7_neon_mla: Likewise.
16789 (cortex_a7_fpmuld: Likewise.
16790 (cortex_a7_fpmacd: Likewise.
16791 (cortex_a7_fpfmad: Likewise.
16792 (cortex_a7_fdivs: Likewise.
16793 (cortex_a7_fdivd: Likewise.
16794 (cortex_a7_r2f: Likewise.
16795 (cortex_a7_f2r: Likewise.
16796 (cortex_a7_f_flags: Likewise.
16797 (cortex_a7_f_loads: Likewise.
16798 (cortex_a7_f_loadd: Likewise.
16799 (cortex_a7_f_stores: Likewise.
16800 (cortex_a7_f_stored: Likewise.
16801 (cortex_a7_neon): Likewise.
16802 * config/arm/cortex-a8-neon.md
16803 (cortex_a8_neon_mrc): Update for attribute change.
16804 (cortex_a8_neon_mrrc): Likewise.
16805 (cortex_a8_neon_int_1): Likewise.
16806 (cortex_a8_neon_int_2): Likewise.
16807 (cortex_a8_neon_int_3): Likewise.
16808 (cortex_a8_neon_int_4): Likewise.
16809 (cortex_a8_neon_int_5): Likewise.
16810 (cortex_a8_neon_vqneg_vqabs): Likewise.
16811 (cortex_a8_neon_vmov): Likewise.
16812 (cortex_a8_neon_vaba): Likewise.
16813 (cortex_a8_neon_vaba_qqq): Likewise.
16814 (cortex_a8_neon_vsma): Likewise.
16815 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16816 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16817 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16818 long_scalar): Likewise.
16819 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16820 (cortex_a8_neon_mla_qqq_8_16): Likewise.
16821 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16822 long_scalar_qdd_64_32_long): Likewise.
16823 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16824 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16825 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16826 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16827 (cortex_a8_neon_shift_1): Likewise.
16828 (cortex_a8_neon_shift_2): Likewise.
16829 (cortex_a8_neon_shift_3): Likewise.
16830 (cortex_a8_neon_vshl_ddd): Likewise.
16831 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16832 (cortex_a8_neon_vsra_vrsra): Likewise.
16833 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16834 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16835 (cortex_a8_neon_fp_vsum): Likewise.
16836 (cortex_a8_neon_fp_vmul_ddd): Likewise.
16837 (cortex_a8_neon_fp_vmul_qqd): Likewise.
16838 (cortex_a8_neon_fp_vmla_ddd): Likewise.
16839 (cortex_a8_neon_fp_vmla_qqq): Likewise.
16840 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16841 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16842 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16843 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16844 (cortex_a8_neon_bp_simple): Likewise.
16845 (cortex_a8_neon_bp_2cycle): Likewise.
16846 (cortex_a8_neon_bp_3cycle): Likewise.
16847 (cortex_a8_neon_ldr): Likewise.
16848 (cortex_a8_neon_str): Likewise.
16849 (cortex_a8_neon_vld1_1_2_regs): Likewise.
16850 (cortex_a8_neon_vld1_3_4_regs): Likewise.
16851 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16852 (cortex_a8_neon_vld2_4_regs): Likewise.
16853 (cortex_a8_neon_vld3_vld4): Likewise.
16854 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16855 (cortex_a8_neon_vst1_3_4_regs): Likewise.
16856 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16857 (cortex_a8_neon_vst3_vst4): Likewise.
16858 (cortex_a8_neon_vld1_vld2_lane): Likewise.
16859 (cortex_a8_neon_vld3_vld4_lane): Likewise.
16860 (cortex_a8_neon_vst1_vst2_lane): Likewise.
16861 (cortex_a8_neon_vst3_vst4_lane): Likewise.
16862 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16863 (cortex_a8_neon_mcr): Likewise.
16864 (cortex_a8_neon_mcr_2_mcrr): Likewise.
16865 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16866 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16868 (ca9_neon_mrrc): Likewise.
16869 (cortex_a9_neon_int_1): Likewise.
16870 (cortex_a9_neon_int_2): Likewise.
16871 (cortex_a9_neon_int_3): Likewise.
16872 (cortex_a9_neon_int_4): Likewise.
16873 (cortex_a9_neon_int_5): Likewise.
16874 (cortex_a9_neon_vqneg_vqabs): Likewise.
16875 (cortex_a9_neon_vmov): Likewise.
16876 (cortex_a9_neon_vaba): Likewise.
16877 (cortex_a9_neon_vaba_qqq): Likewise.
16878 (cortex_a9_neon_vsma): Likewise.
16879 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16880 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16881 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16882 long_scalar): Likewise.
16883 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16884 (cortex_a9_neon_mla_qqq_8_16): Likewise.
16885 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16886 long_scalar_qdd_64_32_long): Likewise.
16887 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16888 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16889 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16890 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16891 (cortex_a9_neon_shift_1): Likewise.
16892 (cortex_a9_neon_shift_2): Likewise.
16893 (cortex_a9_neon_shift_3): Likewise.
16894 (cortex_a9_neon_vshl_ddd): Likewise.
16895 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16896 (cortex_a9_neon_vsra_vrsra): Likewise.
16897 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16898 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16899 (cortex_a9_neon_fp_vsum): Likewise.
16900 (cortex_a9_neon_fp_vmul_ddd): Likewise.
16901 (cortex_a9_neon_fp_vmul_qqd): Likewise.
16902 (cortex_a9_neon_fp_vmla_ddd): Likewise.
16903 (cortex_a9_neon_fp_vmla_qqq): Likewise.
16904 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16905 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16906 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16907 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16908 (cortex_a9_neon_bp_simple): Likewise.
16909 (cortex_a9_neon_bp_2cycle): Likewise.
16910 (cortex_a9_neon_bp_3cycle): Likewise.
16911 (cortex_a9_neon_ldr): Likewise.
16912 (cortex_a9_neon_str): Likewise.
16913 (cortex_a9_neon_vld1_1_2_regs): Likewise.
16914 (cortex_a9_neon_vld1_3_4_regs): Likewise.
16915 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16916 (cortex_a9_neon_vld2_4_regs): Likewise.
16917 (cortex_a9_neon_vld3_vld4): Likewise.
16918 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16919 (cortex_a9_neon_vst1_3_4_regs): Likewise.
16920 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16921 (cortex_a9_neon_vst3_vst4): Likewise.
16922 (cortex_a9_neon_vld1_vld2_lane): Likewise.
16923 (cortex_a9_neon_vld3_vld4_lane): Likewise.
16924 (cortex_a9_neon_vst1_vst2_lane): Likewise.
16925 (cortex_a9_neon_vst3_vst4_lane): Likewise.
16926 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16927 (cortex_a9_neon_mcr): Likewise.
16928 (cortex_a9_neon_mcr_2_mcrr): Likewise.
16929 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16930 (cortex_a9_fps): Likewise.
16931 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16933 (cortex_m4_fmuls): Likewise.
16934 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16936 (cortex_r4_mrc): Likewise.
16937 * config/arm/iterators.md: Update comment referring to neon_type.
16938 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16939 (iwmmxt_movsi_insn): Likewise.
16940 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16942 (pj4_core_to_vfp): Likewise.
16943 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16945 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16946 (vfp_fstore): Likewise.
16947 * doc/md.texi: Change references to neon_type to refer to type.
16949 2013-09-04 Dodji Seketeli <dodji@redhat.com>
16951 * tree.h (DECL_BUILT_IN): Fix typo in comment.
16953 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
16955 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16956 lglobl if not weak.
16958 2013-09-04 Easwaran Raman <eraman@google.com>
16960 PR middle-end/57370
16961 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16962 (build_and_add_sum): Use it.
16963 (appears_later_in_bb): Simplify code.
16965 2013-09-04 Teresa Johnson <tejohnson@google.com>
16967 * dumpfile.c (dump_finish): Don't close stderr/stdout.
16969 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
16971 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16973 2013-09-04 Jan Hubicka <jh@suse.cz>
16975 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16976 * ipa-devirt.c: Include diganostic.h
16977 (odr_type_d): Add types and types_set.
16978 (hash_type_name): Work for types with vtables during LTO.
16979 (odr_hasher::remove): Fix comment; destroy types_set.
16980 (add_type_duplicate): New function,
16981 (get_odr_type): Use it.
16982 (dump_type_inheritance_graph): Dump type duplicates.
16983 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16985 * tree.c (types_same_for_odr): Give exact answers on types with
16988 2013-09-04 Dodji Seketeli <dodji@redhat.com>
16990 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16991 explaining their differences.
16993 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16995 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16997 2013-09-03 Jeff Law <law@redhat.com>
16999 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17000 when not threading through a joiner block. Pass joiner/no joiner
17001 state to register_jump_thread.
17002 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17003 state from argument rather than implying on path length.
17004 Dump the entire jump thread path into debugging dump.
17005 * tree-flow.h (register_jump_thread): Update prototype.
17007 2013-08-29 Xinliang David Li <davidxl@google.com>
17009 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17010 Remove a trivial gcc_assert.
17012 2013-08-29 Xinliang David Li <davidxl@google.com>
17014 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17015 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17016 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17017 Delay base decl alignment adjustment.
17018 * tree-vectorizer.c (vect_destroy_datarefs): New function.
17019 * tree-vectorizer.h: New data structure.
17020 (set_dr_misalignment): New function.
17021 (dr_misalignment): Ditto.
17022 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17023 (vectorizable_load): Ditto.
17024 (ensure_base_align): New function.
17025 (vectorize_loops): Add dbg_cnt support.
17026 (execute_vect_slp): Ditto.
17027 * dbgcnt.def: New debug counter.
17028 * Makefile: New dependency.
17030 2013-09-03 Meador Inge <meadori@codesourcery.com>
17034 2013-08-30 Meador Inge <meadori@codesourcery.com>
17036 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17038 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
17040 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17041 function descriptor.
17043 2013-09-03 Richard Biener <rguenther@suse.de>
17045 * tree-affine.c (add_elt_to_tree): Fix association issue,
17046 avoid useless converts and make sure to always return a
17047 properly typed result.
17049 2013-09-03 Richard Biener <rguenther@suse.de>
17051 PR middle-end/57656
17052 * fold-const.c (negate_expr_p): Fix division case.
17053 (negate_expr): Likewise.
17055 2013-09-03 Richard Biener <rguenther@suse.de>
17058 * tree-streamer-out.c: Include tm.h.
17059 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17061 2013-09-03 Jan Hubicka <jh@suse.cz>
17063 * tree-profile.c (tree_profiling): Cleanup CFG when done.
17065 2013-09-03 Alan Modra <amodra@gmail.com>
17067 * config.gcc (powerpc*-*-linux*): Add support for little-endian
17068 multilibs to big-endian target and vice versa.
17069 * config/rs6000/t-linux64: Use := assignment on all vars.
17070 (MULTILIB_EXTRA_OPTS): Remove fPIC.
17071 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17072 * config/rs6000/t-linux64le: New file.
17073 * config/rs6000/t-linux64bele: New file.
17074 * config/rs6000/t-linux64lebe: New file.
17076 2013-09-02 Jan Hubicka <jh@suse.cz>
17078 * ipa-inline-transform.c (inline_transform): Do not
17079 optimize_inline_calls when not optimizing.
17081 2013-09-02 Jan Hubicka <jh@suse.cz>
17083 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17084 duplicated nodes for assembler names.
17085 * symtab.c (symtab_unregister_node): Do not attempt to unlink
17086 hard registers from assembler name hash.
17088 2013-09-02 Jan Hubicka <jh@suse.cz>
17090 * ipa-split.c (execute_split_functions): Split externally visible
17091 functions called once.
17093 2013-09-02 Martin Jambor <mjambor@suse.cz>
17096 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17097 linked list. When finding the correct duplicate, also consider also
17098 the caller in additon to its inlined_to node.
17100 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
17102 * config/aarch64/aarch64-simd-builtins.def
17103 (dup_lane_scalar): Remove.
17104 * config/aarch64/aarch64-simd.md
17105 (aarch64_simd_dup): Add 'w->w' alternative.
17106 (aarch64_dup_lane<mode>): Allow for VALL.
17107 (aarch64_dup_lane_scalar<mode>): Remove.
17108 (aarch64_dup_lane_<vswap_width_name><mode>): New.
17109 (aarch64_get_lane_signed<mode>): Add w->w altenative.
17110 (aarch64_get_lane_unsigned<mode>): Likewise.
17111 (aarch64_get_lane<mode>): Likewise.
17112 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17113 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17114 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17115 (VCON): Change container of V2SF.
17116 (vswap_width_name): Likewise.
17117 * config/aarch64/arm_neon.h
17118 (__aarch64_vdup_lane_any): New.
17119 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17120 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17121 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17123 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
17125 PR middle-end/56382
17126 * expr.c (emit_move_complex): Do not move complex FP values as parts if
17127 the source or the destination is a single hard register.
17129 2013-09-02 Richard Biener <rguenther@suse.de>
17131 PR middle-end/57511
17132 * tree-scalar-evolution.c (instantiate_scev_name): Allow
17135 2013-09-02 Richard Biener <rguenther@suse.de>
17137 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17138 arithmetic to sizetype.
17140 2013-09-02 Bin Cheng <bin.cheng@arm.com>
17142 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17143 Find auto-increment use both before and after candidate.
17145 2013-09-02 Marek Polacek <polacek@redhat.com>
17147 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17149 2013-09-01 Jan Hubicka <jh@suse.cz>
17151 * Makefile.in: Add ipa-profile.o
17152 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17153 * cgraph.c (struct cgraph_propagate_frequency_data,
17154 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17155 ipa-profile.c; replace cgraph_ by ipa_ prefix.
17156 * cgraph.h (cgraph_propagate_frequency): Remove.
17157 * ipa-inline-analysis.c: Include ipa-utils.h;
17158 drop duplicated cfgloop.h.
17159 (inline_update_callee_summaries): Update.
17160 * ipa-profile.c: New file.
17161 * ipa-utils.h (ipa_propagate_frequency): Declare.
17162 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17163 data-streamer.h, value-prof.h.
17164 (symtab_remove_unreachable_nodes): Update profile.
17165 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17166 account_time_size, cmp_counts, dump_histogram,
17167 ipa_profile_generate_summary, ipa_profile_write_summary,
17168 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17169 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17170 Move to ipa-profile.c.
17172 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
17174 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17176 2013-09-01 Jan Hubicka <jh@suse.cz>
17178 * common.opt (fdevirtualize-speculatively): New function.
17179 * invoke.texi (fdevirtualize-speculatively): Document.
17180 * ipa-devirt.c: Include ipa-inline.h
17181 (likely_target_p): New function.
17182 (ipa_devirt): New function.
17183 (gate_ipa_devirt): New function.
17184 (pass_data_ipa_devirt): New static var.
17185 (pass_ipa_devirt): Likewise.
17186 (make_pass_ipa_devirt): New function.
17187 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17188 (common_handle_option): Disable devirtualization when
17189 value range profiling is available.
17190 * passes.def (pass_ipa_devirt): Add.
17191 * timever.def (TV_IPA_DEVIRT): New timevar.
17192 * tree-pass.h (make_pass_ipa_devirt):
17194 2013-09-01 Iain Sandoe <iain@codesourcery.com>
17196 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17197 include sanitize(undefined).
17199 2013-08-31 Diego Novillo <dnovillo@google.com>
17201 * Makefile.in (TREE_CORE_H): Define.
17203 (GTFILES): Add tree-core.h.
17204 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17206 * tree-core.h: New file.
17207 Move all data structures, enum, typedefs, global
17208 declarations and constants from ...
17209 * tree.h: ... here.
17211 2013-08-31 Jan Hubicka <jh@suse.cz>
17213 * bulitins.c (expand_builtin): Do not early exit for gcov
17214 instrumented functions.
17216 2013-08-31 Marek Polacek <polacek@redhat.com>
17218 * ubsan.c: Include tm_p.h.
17220 2013-08-31 Jan Hubicka <jh@suse.cz>
17222 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17225 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17226 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17227 * tree-cfg.c (verify_gimple_label): ... here.
17228 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17229 (ipa_merge_profiles): New function.
17230 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17231 (lto_input_function_body): Likewise.
17232 * ipa-utils.h (ipa_merge_profiles): Declare.
17233 * lto-streamer.h (lto_input_function_body): Update prototype.
17234 (emit_label_in_global_context_p): Remove.
17235 * lto-symtab.c: Include ipa-utils.h
17236 (lto_cgraph_replace_node): Use ipa_merge_profiles.
17238 2013-08-31 Jan Hubicka <jh@suse.cz>
17240 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17242 2013-08-31 Jan Hubicka <jh@suse.cz>
17244 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17246 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
17248 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17249 "cmp" RTX before signed_comparison_operator check to account
17250 for "code" changes.
17252 2013-08-30 Jan Hubicka <jh@suse.cz>
17254 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17255 (detect_type_change_1): Rename to ...
17256 (detect_type_change): ... this one; early return on non-polymorphic
17258 (detect_type_change_ssa): Add comp_type parameter; update
17259 use of detect_type_change.
17260 (compute_complex_assign_jump_func): Add param_type parameter;
17261 update use of detect_type_change_ssa.
17262 (compute_complex_ancestor_jump_func): Likewise.
17263 (ipa_get_callee_param_type): New function.
17264 (ipa_compute_jump_functions_for_edge): Compute parameter type;
17265 update calls to the jump function computation functions.
17267 2013-08-30 Teresa Johnson <tejohnson@google.com>
17268 Steven Bosscher <steven@gcc.gnu.org>
17270 * cfgrtl.c (fixup_new_cold_bb): New routine.
17271 (commit_edge_insertions): Invoke fixup_partitions.
17272 (find_partition_fixes): New routine.
17273 (fixup_partitions): Ditto.
17274 (verify_hot_cold_block_grouping): Update comments.
17275 (rtl_verify_edges): Invoke find_partition_fixes.
17276 (rtl_verify_bb_pointers): Update comments.
17277 (rtl_verify_bb_layout): Ditto.
17278 * basic-block.h (probably_never_executed_edge_p): Declare.
17279 (fixup_partitions): Ditto.
17280 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17281 * bb-reorder.c (sanitize_hot_paths): New function.
17282 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17283 sanitize_hot_paths.
17284 * predict.c (probably_never_executed_edge_p): New routine.
17285 * cfg.c (check_bb_profile): Add partition insanity warnings.
17287 2013-08-30 Meador Inge <meadori@codesourcery.com>
17289 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17291 2013-08-30 Marek Polacek <polacek@redhat.com>
17293 * Makefile.in (ubsan.o): Add.
17294 (c-family/c-ubsan.o): Add.
17295 (builtins.o): Add ubsan.h dependency.
17296 * ubsan.h: New file.
17297 * ubsan.c: New file.
17298 * common.opt: Add -fsanitize=undefined option.
17299 (flag_sanitize): Add variable.
17300 (fsanitize=): Add option. Add Driver.
17301 (fsanitize=thread): Remove option.
17302 (fsanitize=address): Likewise.
17303 (static-libubsan): New option.
17304 * doc/invoke.texi: Document the new flag and -static-libubsan.
17305 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17306 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17307 * builtin-attrs.def (ATTR_COLD): Define.
17308 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17309 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17310 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17311 * flag-types.h (sanitize_code): New enum.
17312 * opts.c (common_handle_option): Parse command line arguments
17313 of -fsanitize=. Add -fsanitize=unreachable option.
17314 * varasm.c (get_variable_section): Adjust.
17315 (assemble_noswitch_variable): Likewise.
17316 (assemble_variable): Likewise.
17317 (output_constant_def_contents): Likewise.
17318 (categorize_decl_for_section): Likewise.
17319 (place_block_symbol): Likewise.
17320 (output_object_block): Likewise.
17321 * builtins.def: Likewise.
17322 * toplev.c (compile_file): Likewise.
17323 (process_options): Likewise.
17324 * cppbuiltin.c: Likewise.
17325 * tsan.c (tsan_pass): Likewise.
17326 (tsan_gate): Likewise.
17327 (tsan_gate_O0): Likewise.
17328 * cfgexpand.c (partition_stack_vars): Likewise.
17329 (expand_stack_vars): Likewise.
17330 (defer_stack_allocation): Likewise.
17331 (expand_used_vars): Likewise.
17332 * cfgcleanup.c (old_insns_match_p): Likewise.
17333 * asan.c (asan_finish_file): Likewise.
17334 (asan_instrument): Likewise.
17335 (gate_asan): Likewise.
17336 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17337 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17338 (asan_global_struct): Use pointer_sized_int_node instead
17339 calling build_nonstandard_integer_type.
17340 (initialize_sanitizer_builtins): Likewise.
17341 (asan_finish_file): Likewise.
17342 * gcc.c: Document %{%:function(args):X}.
17343 (static_spec_functions): Add sanitize.
17344 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17345 store funcval != NULL there.
17346 (do_spec_1): Adjust handle_spec_function caller.
17347 (handle_braces): Allow %:function(args) as condition.
17348 (sanitize_spec_function): New function.
17349 (ADD_STATIC_LIBUBSAN_LIBS): Define.
17350 (LIBUBSAN_SPEC): Likewise.
17351 (LIBUBSAN_EARLY_SPEC): Likewise.
17352 (SANITIZER_SPEC): Handle libubsan.
17353 (SANITIZER_EARLY_SPEC): Likewise.
17354 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17355 instead of fsanitize=address.
17356 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17357 instead of fsanitize=address*.
17358 * builtins.c: Include ubsan.h.
17359 (fold_builtin_0): Instrument __builtin_unreachable.
17360 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17361 instead of flag_asan.
17362 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17363 (pointer_sized_int_node): Define.
17364 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17366 2013-08-30 Mike Stump <mikestump@comcast.net>
17368 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17371 2013-08-29 Jan Hubicka <jh@suse.cz>
17373 * cgraph.c (cgraph_function_body_availability): Handle weakref
17375 * passes.def: Remove pass_fixup_cfg.
17376 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17377 track when we need to remove functions.
17378 (gate_ipa_inline): Execute inlining always; add comment why.
17379 (pass_data_ipa_inline): Remove TODO_remove_functions.
17380 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17381 do not produce summaries.
17382 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17383 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17384 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17385 constant pool and vtable.
17387 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
17389 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17390 New arm_neon.h's internal macros to specify 64-bit constants.
17391 Avoid using stdint.h's macros.
17393 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
17395 * recog.c (verify_changes): Verify that changes[i].old is non-zero
17396 before applying REG_P.
17398 2013-08-30 Jakub Jelinek <jakub@redhat.com>
17400 PR tree-optimization/58277
17401 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17402 after seeing too many stmts with vdef in between dombb and current
17403 bb, invalidate everything.
17405 2013-08-30 Richard Biener <rguenther@suse.de>
17407 * fold-const.c (fold_single_bit_test): Fix overflow test.
17409 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
17411 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17412 and which can live in a register, always retrieve the value on entry.
17413 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17414 passed by invisible reference specially.
17415 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17416 (vt_add_function_parameter): Correctly deal with a parameter passed by
17417 invisible reference.
17419 2013-08-30 Jan Hubicka <jh@suse.cz>
17421 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17423 2013-08-30 Richard Biener <rguenther@suse.de>
17425 PR tree-optimization/58228
17426 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17427 allow invariant loads in nested loop vectorization.
17429 2013-08-30 Richard Biener <rguenther@suse.de>
17431 PR tree-optimization/58223
17432 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17433 (has_anti_or_output_dependence): ... this and adjust to also
17434 look for output dependences.
17435 (mark_nodes_having_upstream_mem_writes): Adjust.
17436 (rdg_flag_uses): Likewise.
17438 2013-08-30 Richard Biener <rguenther@suse.de>
17440 PR tree-optimization/58010
17441 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17442 assert that we have a loop-closed PHI.
17444 2013-08-29 Jan Hubicka <jh@suse.cz>
17446 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17447 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17448 * lto-section-in.c (lto_free_function_in_decl_state): New function.
17449 (lto_free_function_in_decl_state_for_node): New function.
17451 2013-08-29 Xinliang David Li <davidxl@google.com>
17453 * loop-unroll.c (report_unroll_peel): Minor message change.
17454 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17455 Emit alignment peeling message with default -fopt-info.
17456 (vect_loop_versioning): Emit loop version info message.
17457 * tree-vectorizer.c (vectorize_loops): Minor message change.
17458 (execute_vect_slp): Ditto.
17460 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
17462 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17463 of the clone from the DECL_NAME of the original function.
17465 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
17467 * passes.c (register_pass): Add overload.
17468 * tree-pass.h (register_pass): Forward declare it. Add comment.
17470 2013-08-29 Jan Hubicka <jh@suse.cz>
17472 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17473 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17474 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17475 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17476 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17477 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17478 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17479 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17481 2013-08-29 Teresa Johnson <tejohnson@google.com>
17483 * dumpfile.c (dump_loc): Output column number.
17484 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17485 * doc/invoke.texi: Document optall -fopt-info flag.
17486 * profile.c (read_profile_edge_counts): Use new dump framework.
17487 (compute_branch_probabilities): Ditto.
17488 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17489 when pass not in any opt group.
17490 * pass_manager.h (pass_manager::get_pass_profile): New method.
17491 * value-prof.c (check_counter): Use new dump framework.
17492 (check_ic_target): Ditto.
17493 * coverage.c (get_coverage_counts): Ditto.
17494 (coverage_init): Setup new dump framework.
17496 2013-08-29 Richard Biener <rguenther@suse.de>
17498 PR tree-optimization/58246
17499 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17500 handle the dominance check inside a basic-block.
17502 2013-08-29 Richard Biener <rguenther@suse.de>
17504 PR middle-end/57287
17505 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17506 of default defs that appear in abnormal PHI nodes.
17508 2013-08-29 Richard Biener <rguenther@suse.de>
17510 PR tree-optimization/57685
17511 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17512 single-use operands to avoid exponential complexity.
17514 2013-08-28 Dehao Chen <dehao@google.com>
17516 * ipa-inline.c (edge_badness): Fix integer underflow.
17518 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
17520 * gtm-builtins.def (_ITM_free): Declare leaf.
17522 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17525 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17526 (*tls_local_dynamic_base_64_largepic): Likewise.
17527 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17528 Remove predicate from call operand.
17529 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17530 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17532 2013-08-28 Jeff Law <law@redhat.com>
17534 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17535 checks for the number of predecessors and successors allowed.
17536 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17537 which require copying a joiner block if there is a request which
17538 is a subpath that requires no joiner block copying.
17540 2013-08-28 Jan Hubicka <jh@suse.cz>
17542 * lto-streamer-out.c (DFS_write_tree_body): Drop
17543 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17544 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17545 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17546 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17547 Do not read DECL_ERROR_ISSUED.
17548 (unpack_ts_decl_with_vis_value_fields): Do not read
17550 (lto_input_ts_binfo_tree_pointers): Do not read
17551 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17552 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17553 write DECL_ERROR_ISSUED..
17554 (pack_ts_decl_with_vis_value_fields): Do not write
17556 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17557 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17558 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17559 * tree.h (tree_decl_common): Update comment.
17560 (DECL_ERROR_ISSUED): Remove.
17562 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17564 PR middle-end/58257
17565 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17567 2013-08-28 Jan Hubicka <jh@suse.cz>
17569 * builtins.def (free): Declare leaf.
17571 2013-08-27 David Malcolm <dmalcolm@redhat.com>
17573 * gdbhooks.py: New.
17574 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17575 * configure: Regenerate.
17577 2013-08-27 Martin Jambor <mjambor@suse.cz>
17579 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17580 (ipa_ancestor_jf_data): Likewise.
17581 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17582 (ipa_get_jf_pass_through_type_preserved): New function.
17583 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17584 (ipa_get_jf_ancestor_type_preserved): New function.
17585 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17586 (ipa_get_jf_ancestor_result): Likewise.
17587 (propagate_vals_accross_pass_through): Use
17588 ipa_get_jf_pass_through_result to do all the value mappings.
17589 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17590 type_preserved flag.
17591 (ipa_set_jf_cst_copy): New function.
17592 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17593 (ipa_set_jf_arith_pass_through): Likewise.
17594 (ipa_set_ancestor_jf): Likewise.
17595 (compute_complex_assign_jump_func): Set type_preserved instead of
17597 (ipa_compute_jump_functions_for_edge): Likewise.
17598 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17599 (update_jump_functions_after_inlining): Update type_preserved.
17600 Explicitely create jump functions when combining one with pass_through.
17601 (ipa_write_jump_function): Stream the type_preserved flags.
17602 (ipa_read_jump_function): Likewise.
17604 2013-08-27 Jakub Jelinek <jakub@redhat.com>
17605 Aldy Hernandez <aldyh@redhat.com>
17607 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17608 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17609 * function.h (struct function): Add has_force_vect_loops and
17611 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17612 * gimple.c (gimple_build_omp_critical): Add KIND argument and
17614 * gimple.def: Update CLAUSES comments.
17615 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17616 (gimple_build_omp_for): Add argument to prototype.
17617 (gimple_omp_for_kind): New.
17618 (gimple_omp_for_set_kind): New.
17619 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17620 GOVD_DATA_SHARE_CLASS.
17621 (enum omp_region_type): Add ORT_SIMD.
17622 (gimple_add_tmp_var): Handle ORT_SIMD.
17623 (gimplify_var_or_parm_decl): Same.
17624 (is_gimple_stmt): Same.
17625 (omp_firstprivatize_variable): Same.
17626 (omp_add_variable): Only use splay_tree_insert if lookup failed.
17627 (omp_notice_variable): Handle ORT_SIMD.
17628 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17629 (omp_check_private): Handle ORT_SIMD.
17630 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17631 OMP_CLAUSE_SAFELEN.
17632 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17633 Handle OMP_CLAUSE_LASTPRIVATE.
17634 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17635 OMP_CLAUSE_SAFELEN.
17636 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17637 (gimplify_expr): Handle OMP_SIMD.
17638 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17639 (expand_GOMP_SIMD_VF): New.
17640 (expand_GOMP_SIMD_LAST_LANE): New.
17641 * internal-fn.def (GOMP_SIMD_LANE): New.
17642 (GOMP_SIMD_VF): New.
17643 (GOMP_SIMD_LAST_LANE): New.
17644 * omp-low.c: Include target.h.
17645 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17646 OMP_CLAUSE_SAFELEN.
17647 (check_omp_nesting_restrictions): Same.
17649 (lower_rec_simd_input_clauses): New.
17650 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17652 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17653 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17654 (expand_omp_build_assign): New.
17655 (expand_omp_for_init_counts): New.
17656 (expand_omp_for_init_vars): New.
17657 (extract_omp_for_update_vars): New.
17658 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17659 and rewrite accordingly.
17660 (expand_omp_simd): New.
17661 (expand_omp_for): Use expand_omp_simd.
17662 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17663 (lower_omp_for): Do not lower the body.
17664 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17665 in their own loops.
17666 * tree-flow.h (find_omp_clause): Remove prototype.
17667 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17668 forcing vectorization of the loop, or if flag_tree_vectorize.
17669 (gate_tree_if_conversion): Similarly.
17670 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17671 gimple_build_omp_for.
17672 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17673 * tree-parloops (create_parallel_loop): Pass kind argument to
17674 gimple_build_omp_for.
17675 * tree-pretty-print.c (dump_omp_clause): Add cases for
17676 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17677 OMP_CLAUSE__SIMDUID_.
17678 (dump_generic_node): Handle OMP_SIMD.
17679 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17680 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17681 unroll OMP_SIMD loops here.
17682 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17683 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17685 (vect_analyze_data_refs): Handle simd loops.
17686 * tree-vect-loop.c (vectorizable_live_operation): Handle
17688 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17689 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17690 (vectorizable_load): Same.
17691 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17692 (struct simduid_to_vf): New.
17693 (simduid_to_vf::hash): New.
17694 (simduid_to-vf::equal): New.
17695 (struct simd_array_to_simduid): New.
17696 (simd_array_to_simduid::hash): New.
17697 (simd_array_to_simduid::equal): New.
17698 (adjust_simduid_builtins): New.
17699 (struct note_simd_array_uses_struct): New.
17700 (note_simd_array_uses_cb): New.
17701 (note_simd_array_uses): New.
17702 (vectorize_loops): Handle simd hints and adjust simd builtins
17704 * tree-vectorizer.h (struct _stmt_vec_info): Add
17705 simd_lane_access_p field.
17706 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17707 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17708 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17709 (omp_clause_code_name): Same.
17710 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17711 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17712 * tree.def (OMP_SIMD): New entry.
17713 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17714 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17715 (OMP_CLAUSE_DECL): Adjust range for new clauses.
17716 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17717 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17718 (OMP_CLAUSE_LINEAR_STEP): New.
17719 (OMP_CLAUSE_SAFELEN_EXPR): New.
17720 (OMP_CLAUSE__SIMDUID__DECL): New.
17721 (find_omp_clause): New prototype.
17723 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
17725 * config/i386/driver-i386.c (host_detect_local_cpu): Update
17726 Haswell processor detection.
17728 2013-08-27 Christian Widmer <shadow@umbrox.de>
17731 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17732 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
17733 AVX2 capable processors.
17735 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
17737 * config/aarch64/arm_neon.h: Replace all inline asm implementations
17738 of vget_low_* with implementations in terms of other intrinsics.
17740 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
17742 PR middle-end/57219
17743 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17744 values to -1, 0 and 1.
17746 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
17748 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17749 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17750 (<optab><mode>3_insn): Remove.
17751 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17752 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17753 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17754 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17755 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17756 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17757 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17758 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17759 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17760 (ror<mode>3_insn): Likewise.
17761 * config/aarch64/predicates.md (aarch64_simd_register): New.
17763 2013-08-27 Richard Biener <rguenther@suse.de>
17765 PR tree-optimization/57521
17766 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17767 one edge is non-critical.
17768 (find_phi_replacement_condition): Make sure to use a non-critical
17769 edge. Cleanup and remove old bug workarounds.
17770 (bb_postdominates_preds): Remove.
17771 (if_convertible_loop_p_1): Do not compute post-dominators.
17772 (combine_blocks): Do not free post-dominators.
17773 (main_tree_if_conversion): Likewise.
17774 (pass_data_if_conversion): Add TODO_verify_ssa.
17776 2013-08-27 DJ Delorie <dj@redhat.com>
17778 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17780 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
17782 * function.c (assign_parm_find_data_types): Set passed_mode and
17783 nominal_mode to the TYPE_MODE of nominal_type for the built
17784 pointer type in case of the struct-pass-by-reference.
17786 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17788 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17789 (UINT16_TYPE): Change default to "unsigned int".
17791 * config/avr/avr.opt (mfract-convert-truncate): New option.
17792 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17793 is set, round negative fractional integers according to n1169
17794 when converting to integer types.
17796 2013-08-26 Jan Hubicka <jh@suse.cz>
17798 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17799 methods can not be called indirectly when their address is not taken.
17801 2013-08-26 Jan Hubicka <jh@suse.cz>
17803 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17806 2013-08-26 Jan Hubicka <jh@suse.cz>
17808 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17811 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17813 * reload.c (find_valid_class): Allow classes that do not include
17814 FIRST_PSEUDO_REGISTER - 1.
17816 2013-08-26 Jan Hubicka <jh@suse.cz>
17818 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17819 fix edge count/frequency when speculation failed; fix type check
17820 for the direct call.
17822 2013-08-26 Jan Hubicka <jh@suse.cz>
17824 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17826 2013-08-26 Jan Hubicka <jh@suse.cz>
17828 * ipa-inline-transform.c (inline_transform): Be ready for basic block
17829 to be changed by edge redirection.
17831 2013-08-26 Jan Hubicka <jh@suse.cz>
17833 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17834 formating; add sanity check.
17835 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17836 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17837 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17838 (resolve_noninline_speculation): Update callee keys, too.
17840 2013-08-26 Jan Hubicka <jh@suse.cz>
17842 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17843 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17845 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17847 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17850 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
17852 * config/i386/i386.c (ix86_debug_options): Remove prototype.
17853 (x86_64_elf_select_section): Ditto.
17854 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17856 (ix86_pass_by_reference): Ditto.
17857 (output_set_got): Ditto.
17858 (ix86_unary_operator_ok): Ditto.
17859 (ix86_expand_builtin): Ditto.
17861 2013-08-23 Jan Hubicka <jh@suse.cz>
17863 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17865 2013-08-23 Jan Hubicka <jh@suse.cz>
17867 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17868 (tree_decl_with_vis): Add FINAL field.
17870 2013-08-23 Jeff Law <law@redhat.com>
17872 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17873 the debugging dump when the expression is fully redundant.
17875 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
17877 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17878 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17879 * pretty-print.c (pp_formatted_text_data): Likewise.
17880 (pp_write_text_to_stream): Likewise.
17881 (pp_write_text_as_dot_label_to_stream): Likewise.
17882 (pp_append_r): Likewise.
17883 (pp_format): Likewise.
17884 (pp_flush): Likewise.
17885 (pp_clear_output_area): Likewise.
17886 (pp_append_text): Likewise.
17887 (pp_formatted_text): Likewise.
17888 (pp_remaining_character_count_for_line): Likewise.
17889 (pp_newline): Likewise.
17890 (pp_character): Likewise.
17891 (output_buffer::~output_buffer): Define.
17892 (pretty_printer::~pretty_printer): Destruct output buffer.
17893 * pretty-print.h (output_buffer::~output_buffer): Declare.
17894 (pretty_printer::~pretty_printer): Declare virtual.
17896 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
17899 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17900 HOST_WIDE_INT_M1U): New macros.
17901 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17902 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17903 unsigned -1 for lshift.
17904 * cse.c (cse_insn): Likewise.
17905 * double-int.c (rshift_double, lshift_double): Likewise.
17906 * builtins.c (fold_builtin_bitop): Likewise.
17907 * combine.c (force_to_mode): Likewise.
17908 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17909 * simplify-rtx.c (simplify_const_unary_operation,
17910 simplify_const_binary_operation): Likewise.
17911 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17912 check_va_list_escapes): Likewise.
17913 * rtlanal.c (nonzero_bits1): Likewise.
17914 * expmed.c (expand_smod_pow2): Likewise.
17915 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17917 2013-08-23 Jan Hubicka <jh@suse.cz>
17919 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17920 as having address taken.
17922 2013-08-23 Jan Hubicka <jh@suse.cz>
17924 * ipa-utils.h (method_class_type): Declare.
17925 * ipa-devirt.c (method_class_type): Export.
17927 * cgraphunit.c (analyze_functions): Do basic devirtualization;
17928 do not walk base classes of anonymous types.
17930 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
17932 PR rtl-optimization/58220
17933 PR regression/58221
17934 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17935 handle SEQUENCE insns properly.
17937 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
17939 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
17941 (pp_newline_and_indent): Likewise.
17942 (pp_separate_with): Likewise.
17943 * pretty-print.c (pp_newline_and_flush): Define.
17944 (pp_newline_and_indent): Likewise.
17945 (pp_separate_with): Likewise.
17947 2013-08-23 Jakub Jelinek <jakub@redhat.com>
17950 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17951 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17953 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
17955 * config/i386/predicates.md (ext_sse_reg_operand): New.
17956 * config/i386/i386.md (*movti_internal): Use
17957 predicate to determine if EVEX is needed.
17958 (*movsi_internal): Ditto.
17959 (*movdf_internal): Ditto.
17960 (*movsf_internal): Ditto.
17961 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17963 2013-08-23 Jakub Jelinek <jakub@redhat.com>
17965 PR tree-optimization/58209
17966 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17967 (find_tail_calls): Give up for pointer result types if m is non-NULL.
17968 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17969 emit POINTER_PLUS_EXPR.
17970 (create_tailcall_accumulator): For pointer result type accumulate in
17973 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
17975 * configure.ac: Add backslashes missing from the last change.
17976 * configure: Regenerate.
17978 2013-08-22 Jan Hubicka <jh@susue.cz>
17980 * ipa.c (function_and_variable_visibility): First remember function
17981 was global and then make it local.
17983 2013-08-22 Julian Brown <julian@codesourcery.com>
17985 * configure.ac: Add aarch64 to list of arches which use "nop" in
17987 * configure: Regenerate.
17989 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17991 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17992 gnu_libc_has_function.
17993 * config/s390/tpf.h: Likewise.
17995 2013-08-22 Jan Hubicka <jh@susue.cz>
17997 * timevar.c (validate_phases): Add cast.
17999 2013-08-22 Jan Hubicka <jh@susue.cz>
18001 * timevar.c (validate_phases): Use size_t for memory.
18002 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18004 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
18006 * pretty-print.h (output_buffer::output_buffer): Declare.
18007 (pretty_printer::pretty_printer): Likewise.
18008 (pp_construct): Remove.
18009 * pretty-print.c (output_buffer::output_buffer): Define.
18010 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
18011 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18012 (print_gimple_expr): Likewise.
18013 (print_gimple_seq): Likewise.
18014 (gimple_dump_bb): Likewise.
18015 * sched-vis.c (dump_value_slim): Likewise.
18016 (dump_insn_slim): Likewise.
18017 (dump_rtl_slim): Likewise.
18018 (str_pattern_slim): Likewise.
18019 * tree-mudflap.c (mf_varname_tree): Likewise.
18020 * graph.c (print_graph_cfg): Likewise.
18021 (start_graph_dump): Likewise.
18022 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
18024 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18025 pretty printer initialization.
18026 * coretypes.h (diagnostic_context): Remove superflous type alias
18028 (pretty_printer): Likewise. Declare directly as a class.
18029 (pretty_print_info): Remove declaration as class.
18030 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18031 and pp_clear_output_area.
18032 (asan_add_global): Likewise.
18034 2013-08-22 Jan Hubicka <jh@suse.cz>
18036 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18037 * ipa-utils.h (update_type_inheritance_graph): Declare.
18038 (possible_polymorphic_call_target_p): Declare.
18039 (possible_polymorphic_call_target_p): New.
18040 * ipa-devirt.c: Update toplevel comments.
18041 (cached_polymorphic_call_targets): Move up.
18042 (odr_type_d): Move ID down.
18043 (polymorphic_type_binfo_p): Update comment.
18044 (odr_hasher::remove): Likewise;
18045 (get_odr_type): Set anonymous_namespace.
18046 (dump_odr_type): Dump it.
18047 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18048 (maybe_record_node): Record node in cached_polymorphic_call_targets.
18049 (record_binfo): Add comment.
18050 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18052 (devirt_node_removal_hook): Do not iCE when cache is freed.
18053 (possible_polymorphic_call_target_p): New predicate.
18054 (update_type_inheritance_graph): New function.
18056 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18057 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18058 Sergey Lega <sergey.s.lega@intel.com>
18059 Anna Tikhonova <anna.tikhonova@intel.com>
18060 Ilya Tocar <ilya.tocar@intel.com>
18061 Andrey Turetskiy <andrey.turetskiy@intel.com>
18062 Ilya Verbin <ilya.verbin@intel.com>
18063 Kirill Yukhin <kirill.yukhin@intel.com>
18064 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18066 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18067 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18068 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18069 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18070 (OPTION_MASK_ISA_AVX2_UNSET): Update.
18071 (OPTION_MASK_ISA_AVX512F_UNSET): New.
18072 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18073 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18074 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18075 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18076 OPT_mavx512pf, OPT_mavx512er cases.
18077 * config/i386/constraints.md (v): New constraint.
18078 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18079 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18080 (bit_AVX512CD): New.
18081 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18082 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18083 * config/i386/i386-c.c (ix86_target_macros_internal):
18084 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18086 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18087 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18088 * config/i386/i386.c (regclass_map, dbx_register_map)
18089 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18090 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18091 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18092 -mavx512pf options.
18093 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18094 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
18095 -mavx512pf options. Fix formatting.
18096 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18097 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
18098 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18099 -mavx512cd, -mavx512pf options.
18100 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18101 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18102 (ix86_preferred_output_reload_class): Replace SSE_REGS with
18104 (ix86_hard_regno_mode_ok): Support 512-bit registers.
18105 (ix86_set_reg_reg_cost): Ditto.
18106 (x86_order_regs_for_local_alloc): Ditto.
18107 (MAX_VECT_LEN): Extend to 64-byte.
18108 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18109 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18110 (TARGET_AVX512ER, TARGET_AVX512CD): New.
18111 (BIGGEST_ALIGNMENT): Extend to 512-bits.
18112 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18113 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18114 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18115 (SSE_REG_MODE_P): Support new modes.
18116 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18117 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18118 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18119 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18120 (REG_CLASS_CONTENTS): Add new registers.
18121 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18122 (EXT_REX_SSE_REGNO_P): New.
18123 (HI_REGISTER_NAMES): Add new registers.
18124 * config/i386/i386.md: Define constants for new registers.
18125 (mode): Add new 512-bit modes.
18126 (prefix): Support evex prefix.
18127 (isa): Support avx512f, noavx512f, fma_avx512f.
18128 (ssemodesuffix): Add new 512-bit modes.
18130 (*movxi_internal_avx512f): Ditto.
18131 (*movdi_internal): Replace constraint "x" with the new constraint "v".
18133 (*movsi_internal): Likewise.
18134 (*movdf_internal): Likewise.
18135 (*movsf_internal): Likewise.
18136 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18137 (<code><mode>3): Likewise.
18138 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18140 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18141 with the new constraint "v".
18142 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18144 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18145 with the new constraint "v".
18146 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18147 (<sse2>_storedqu<avxsizesuffix>): Likewise.
18148 (*<plusminus_insn><mode>3): Likewise.
18149 (<sse>_vm<plusminus_insn><mode>3): Likewise.
18150 (*mul<mode>3): Likewise.
18151 (<sse>_vmmul<mode>3): Likewise.
18152 (<sse>_div<mode>3): Likewise.
18153 (<sse>_vmdiv<mode>3): Likewise.
18154 (<sse>_sqrt<mode>2): Likewise.
18155 (<sse>_vmsqrt<mode>2): Likewise.
18156 (*<code><mode>3_finite): Likewise.
18157 (*<code><mode>3) <smaxmin>: Likewise.
18158 (<sse>_vm<code><mode>3): Likewise.
18159 (*<code><mode>3) <any_logic>: Likewise.
18160 (*fma_fmadd_<mode>): Likewise.
18161 (*fma_fmsub_<mode>): Likewise.
18162 (*fma_fnmadd_<mode>): Likewise.
18163 (*fma_fnmsub_<mode>): Likewise.
18164 (*fma_fmaddsub_<mode>): Likewise.
18165 (*fma_fmsubadd_<mode>): Likewise.
18166 (*fmai_fmadd_<mode>): Likewise.
18167 (*fmai_fmsub_<mode>): Likewise.
18168 (*fmai_fnmadd_<mode>): Likewise.
18169 (*fmai_fnmsub_<mode>): Likewise.
18170 (sse_cvtsi2ss): Likewise.
18171 (sse_cvtsi2ssq): Likewise.
18172 (sse_cvtss2si): Likewise.
18173 (sse_cvtss2si_2): Likewise.
18174 (sse_cvtss2siq): Likewise.
18175 (sse_cvtss2siq_2): Likewise.
18176 (sse_cvttss2si): Likewise.
18177 (sse_cvtss2siq_2): Likewise.
18178 (float<sseintvecmodelower><mode>2): Likewise.
18179 (sse2_cvtsd2si_2): Likewise.
18180 (sse2_cvtsd2siq_2): Likewise.
18181 (*<plusminus_insn><mode>3): Likewise.
18182 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18183 (*<sse4_1_avx2>_mul<mode>3): Likewise.
18184 (ashr<mode>3): Likewise.
18185 (<shift_insn><mode>3): Likewise.
18186 (avx2_<code><mode>3): Likewise.
18187 (*avx2_<code><mode>3): Likewise.
18188 (*andnot<mode>3): Likewise.
18189 (*<code><mode>3) <any_logic>: Likewise.
18190 (abs<mode>2): Likewise.
18191 (avx2_permvar<mode>): Likewise.
18192 (avx2_perm<mode>_1): Likewise.
18193 (*avx_vpermilp<mode>): Likewise.
18194 (avx_vpermilvar<mode>3): Likewise.
18195 (avx2_ashrv<mode>): Likewise.
18196 (avx2_<shift_insn>v<mode>): Likewise.
18197 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18199 * doc/rtl.texi: Document XImode.
18201 2013-08-21 Jeff Law <law@redhat.com>
18203 * tree-flow.h (register_jump_thread): Pass vector of edges
18204 instead of each important edge.
18205 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18206 thread path into a vector and pass that to register_jump_thread.
18207 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18208 passed in edge vector to the current 3-edge form.
18211 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18213 * dce.c (fini_dce): Call df_analyze again just in case
18214 delete_unmarked_insns removed anything.
18216 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
18218 * reload.h (struct reg_equivs): Rename to ..
18219 (struct reg_equivs_s): .. this.
18221 2013-08-20 Martin Liska <marxin.liska@gmail.com>
18223 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18225 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18227 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18229 2013-08-21 Jeff Law <law@redhat.com>
18231 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18232 simplify assignments too. If the RHS collapses to a singleton
18233 range, then return the value for the range.
18235 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
18237 * config/i386/sse.md (V16): Rename to...
18239 (mov<mode>): Update iterator name.
18240 (*mov<mode>_internal): Ditto.
18241 (push<mode>1): Ditto.
18242 (movmisalign<mode>): Ditto.
18244 2013-08-20 Jan Hubicka <jh@suse.cz>
18247 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18248 entry for direct edges.
18249 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18251 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18253 Revert my last two changes, r201865 and r201864:
18256 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18258 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18259 instances can own GC refs.
18261 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18262 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18263 (gcc::context::gt_pch_nx): Likewise.
18264 (gcc::context::gt_pch_nx): Likewise.
18265 * ggc.h (gt_ggc_mx <T>): New.
18266 (gt_pch_nx_with_op <T>): New.
18267 (gt_pch_nx <T>): New.
18268 * passes.c (opt_pass::gt_ggc_mx): New.
18269 (opt_pass::gt_pch_nx): New.
18270 (opt_pass::gt_pch_nx_with_op): New.
18271 (pass_manager::gt_ggc_mx): New.
18272 (pass_manager::gt_pch_nx): New.
18273 (pass_manager::gt_pch_nx_with_op): New.
18274 (pass_manager::operator new): Use
18275 ggc_internal_cleared_alloc_stat rather than xcalloc.
18276 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18277 (pass_manager::gt_ggc_mx): New.
18278 (pass_manager::gt_pch_nx): New.
18279 (pass_manager::gt_pch_nx_with_op): New.
18280 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18281 (opt_pass::operator new): New.
18282 (opt_pass::gt_ggc_mx): New.
18283 (opt_pass::gt_pch_nx): New.
18284 (opt_pass::gt_pch_nx_with_op): New.
18287 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18289 * Makefile.in (GTFILES): Add context.h.
18290 * context.c (gcc::context::operator new): New.
18291 (gcc::context::gt_ggc_mx): New.
18292 (gcc::context::gt_pch_nx): New.
18293 (gcc::context::gt_pch_nx): New.
18294 * context.h (gcc::context): Add GTY((user)) marking.
18295 (gcc::context::operator new): New.
18296 (gcc::context::gt_ggc_mx): New.
18297 (gcc::context::gt_pch_nx): New.
18298 (gcc::context::gt_pch_nx): New.
18299 (g): Add GTY marking.
18300 (gt_ggc_mx (gcc::context *)): New.
18301 (gt_pch_nx (gcc::context *)): New.
18302 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18303 void *cookie)): New.
18304 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18306 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18308 * dce.c (fini_dce): Call df_analyze again just in case
18309 delete_unmarked_insns removed anything.
18311 2013-08-20 Teresa Johnson <tejohnson@google.com>
18313 PR rtl-optimizations/57451
18314 * final.c (reemit_insn_block_notes): Prevent lexical blocks
18315 from crossing split section boundaries.
18317 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
18319 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18320 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18321 with MULTLIB_DEFAULTS.
18323 2013-08-20 Nick Clifton <nickc@redhat.com>
18325 * target.def (narrow_volatile_bitfield): Note that the default
18326 value is false, not !TARGET_STRICT_ALIGN.
18327 * doc/tm.texi: Regenerate.
18329 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
18331 Fix LIB_SPEC for systems without libpthread.
18333 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18334 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18336 * config/i386/linux-common.h: Likewise.
18337 * config/mips/linux-common.h: Likewise.
18339 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18341 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18344 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18346 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18347 instances can own GC refs.
18349 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18350 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18351 (gcc::context::gt_pch_nx): Likewise.
18352 (gcc::context::gt_pch_nx): Likewise.
18353 * ggc.h (gt_ggc_mx <T>): New.
18354 (gt_pch_nx_with_op <T>): New.
18355 (gt_pch_nx <T>): New.
18356 * passes.c (opt_pass::gt_ggc_mx): New.
18357 (opt_pass::gt_pch_nx): New.
18358 (opt_pass::gt_pch_nx_with_op): New.
18359 (pass_manager::gt_ggc_mx): New.
18360 (pass_manager::gt_pch_nx): New.
18361 (pass_manager::gt_pch_nx_with_op): New.
18362 (pass_manager::operator new): Use
18363 ggc_internal_cleared_alloc_stat rather than xcalloc.
18364 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18365 (pass_manager::gt_ggc_mx): New.
18366 (pass_manager::gt_pch_nx): New.
18367 (pass_manager::gt_pch_nx_with_op): New.
18368 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18369 (opt_pass::operator new): New.
18370 (opt_pass::gt_ggc_mx): New.
18371 (opt_pass::gt_pch_nx): New.
18372 (opt_pass::gt_pch_nx_with_op): New.
18374 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18376 * Makefile.in (GTFILES): Add context.h.
18377 * context.c (gcc::context::operator new): New.
18378 (gcc::context::gt_ggc_mx): New.
18379 (gcc::context::gt_pch_nx): New.
18380 (gcc::context::gt_pch_nx): New.
18381 * context.h (gcc::context): Add GTY((user)) marking.
18382 (gcc::context::operator new): New.
18383 (gcc::context::gt_ggc_mx): New.
18384 (gcc::context::gt_pch_nx): New.
18385 (gcc::context::gt_pch_nx): New.
18386 (g): Add GTY marking.
18387 (gt_ggc_mx (gcc::context *)): New.
18388 (gt_pch_nx (gcc::context *)): New.
18389 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18390 void *cookie)): New.
18391 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18393 2013-08-20 Alan Modra <amodra@gmail.com>
18396 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18397 (rs6000_emit_epilogue): Likewise.
18399 2013-08-19 Dehao Chen <dehao@google.com>
18401 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18403 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
18404 Jakub Jelinek <jakub@redhat.com>
18406 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18407 (BUILT_IN_FABSD64): Likewise.
18408 (BUILT_IN_FABSD128): Likewise.
18409 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18410 (fold_builtin_1): Likewise.
18411 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18412 destination and source operands.
18413 (*abstd2_fpr): Likewise.
18414 (*nabstd2_fpr): Likewise.
18416 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
18418 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18421 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
18423 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18426 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
18428 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18429 * builtins.c (default_libc_has_function): New.
18430 (gnu_libc_has_function): Ditto.
18431 (no_c99_libc_has_function): Ditto.
18432 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18433 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18434 (fold_builtin_sincos): Likewise.
18435 (fold_builtin_cexp): Likewise.
18436 * builtins.def (DEF_C94_BUILTIN): Likewise.
18437 (DEF_C99_BUILTIN): Likewise.
18438 (DEF_C99_C90RES_BUILTIN): Likewise.
18439 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18440 definitions to using this define.
18441 * config/darwin-protos.h (darwin_libc_has_function): New.
18442 * config/darwin.c (darwin_libc_has_function): Ditto.
18443 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18444 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18445 * config/darwin.h: Ditto.
18446 * config/elfos.h: Ditto.
18447 * config/freebsd.h: Ditto.
18448 * config/i386/cygming.h: Ditto.
18449 * config/i386/djgpp.h: Ditto.
18450 * config/i386/i386-interix.h: Ditto.
18451 * config/microblaze/microblaze.h: Ditto.
18452 * config/mmix/mmix.h: Ditto.
18453 * config/gnu-user.h: Ditto.
18454 * config/ia64/hpux.h: Ditto.
18455 * config/pa/pa-hpux.h: Ditto.
18456 * config/pdp11/pdp11.h: Ditto.
18457 * config/picochip/picochip.h: Ditto.
18458 * config/linux.h: Ditto.
18459 * config/netbsd.h: Ditto.
18460 * config/openbsd.h: Ditto.
18461 * config/rs6000/aix43.h: Ditto.
18462 * config/rs6000/aix51.h: Ditto.
18463 * config/rs6000/aix52.h: Ditto.
18464 * config/rs6000/aix53.h: Ditto.
18465 * config/rs6000/aix61.h: Ditto.
18466 * config/rs6000/darwin.h: Ditto.
18467 * config/rs6000/linux.h: Ditto.
18468 * config/rs6000/linux64.h: Ditto.
18469 * config/s390/tpf.h: Ditto.
18470 * config/sol2-10.h: Ditto.
18471 * config/sol2.h: Ditto.
18472 * config/vms/vms.h: Ditto.
18473 * config/vxworks.h: Ditto.
18474 * config/linux-android.c (linux_android_libc_has_function):
18475 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18476 * config/linux-protos.h (linux_android_libc_has_function):
18478 * config/i386/i386.c (ix86_libc_has_function): New.
18479 * config/i386/i386-protos.h
18480 (ix86_libc_has_function): New declaration.
18481 * config/i386/i386.md
18482 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18483 ("isinf<mode>2): Likewise.
18484 * convert.c (convert_to_integer): Using new target hook
18485 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18486 TARGET_C99_FUNCTIONS.
18487 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18488 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18489 * coretypes.h (function_class): New enum for different
18490 classes of functions.
18491 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18492 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18493 (TARGET_HAS_SINCOS): Likewise.
18494 (TARGET_LIBC_HAS_FUNCTION): New.
18495 * doc/tm.texi: Regenerated.
18496 * targhooks.h (default_libc_has_function): New declaration.
18497 (no_c99_libc_has_function): Ditto.
18498 (gnu_libc_has_function): Ditto.
18499 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18500 and TARGET_HAS_SINCOS.
18502 2013-08-18 Jan Hubicka <jh@suse.cz>
18504 * Makeifle-in (ipa-devirt.o): New.
18505 (GTFILES): Add ipa-utils.h and ipa-devirt.c
18506 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18507 (analyze_functions): Look into possible targets of polymorphic call.
18508 * dumpfile.c (dump_files): Add type-inheritance dump.
18509 * dumpfile.h (TDI_inheritance): New.
18510 * ipa-devirt.c: New file.
18511 * ipa-utils.h (odr_type_d): Forward declare.
18512 (odr_type): New type.
18513 (build_type_inheritance_graph): Declare.
18514 (possible_polymorphic_call_targets): Declare and introduce inline
18515 variant when only edge is pased.
18516 (dump_possible_polymorphic_call_targets): Likewise.
18517 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18518 * tree.c (type_in_anonymous_namespace_p): Break out from ...
18519 (types_same_for_odr): ... here.
18520 * tree.h (type_in_anonymous_namespace_p): Declare.
18522 2013-08-18 Jakub Jelinek <jakub@redhat.com>
18524 PR tree-optimization/58006
18525 * tree-parloops.c (take_address_of): Don't ICE if get_name
18527 (eliminate_local_variables_stmt): Remove clobber stmts.
18529 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
18531 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18532 error message is issued for an alias to undefined symbol.
18534 2013-08-18 Jan Hubicka <jh@suse.cz>
18536 * cgraph.c (cgraph_create_indirect_edge): Discover
18537 polymorphic calls and record basic info into indirect_info.
18538 * gimple-fold.c (gimple_fold_call): When doing BINFO based
18539 devirtualization, ignore objc function calls.
18540 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18541 call with no parm index info.
18542 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18543 * tree.c (virtual_method_call_p): New function.
18544 * tree.h (virtual_method_call_p): Declare.
18546 2013-08-16 Jan Hubicka <jh@suse.cz>
18548 PR middle-end/58179
18549 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18551 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
18553 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18556 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18558 * gengtype.c (type_for_name): Add special-case support for
18559 locating types within the "gcc::" namespace.
18560 (open_base_files): Emit a "using namespace gcc" directive.
18562 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
18565 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18566 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18568 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18569 array instead of each individual operand as a separate argument.
18570 (emit_fusion_gpr_load): Likewise.
18571 (expand_fusion_gpr_load): Add new function declaration.
18573 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18574 signature to have the operands passed as an array, instead of as
18575 separate arguments. Allow ZERO_EXTEND to be in the memory
18576 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
18577 depend on the register live/dead flags when peepholes are run.
18578 (expand_fusion_gpr_load): New function to be called from the
18579 peephole2 pass, to change the register that addis sets to be the
18581 (emit_fusion_gpr_load): Change the calling signature to have the
18582 operands passed as an array, instead of as separate arguments.
18583 Allow ZERO_EXTEND to be in the memory address, and also
18584 SIGN_EXTEND if -mpower8-fusion-sign.
18586 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18587 unspec enumeration.
18588 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18589 adjust the register addis loads up in the peephole2 pass. Do not
18590 depend on the register live/dead state when the peephole pass is done.
18592 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18594 * gengtype.c (create_user_defined_type): Ensure that the kind
18595 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18596 declaration is seen before the GTY((user)) marking.
18598 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
18601 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18603 2013-08-16 Jan Hubicka <jh@suse.cz>
18605 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18606 arugment expected_type.
18607 (gimple_fold_call): Use it.
18608 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18609 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18610 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18611 (try_make_edge_direct_virtual_call): Likewise.
18612 * tree.c (obj_type_ref_class): New.
18613 * tree.h (obj_type_ref_class): Use it.
18615 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
18617 * sched-vis.c (rtl_slim_pp_initialized): Remove.
18618 (rtl_slim_pp): Likewise.
18619 (init_rtl_slim_pretty_print): Likewise.
18620 (dump_value_slim): Don't call it. Use local pretty printer.
18621 (dump_insn_slim): Likewise.
18622 (dump_rtl_slim): Likewise.
18623 (str_pattern_slim): Likewise.
18624 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18627 2013-08-16 Jakub Jelinek <jakub@redhat.com>
18629 PR tree-optimization/58164
18630 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18631 walk gimple_goto_dest of GIMPLE_GOTO.
18633 PR tree-optimization/58165
18634 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18635 bi_call must be the last stmt in a bb, don't split_block, instead
18636 use fallthru edge from it and give up if there is none.
18637 Release conds vector when returning early.
18639 2013-08-14 Xinliang David Li <davidxl@google.com>
18641 * config/i386/i386.c (ix86_option_override_internal):
18642 Remove unused variable and field.
18644 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18647 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18648 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18649 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18650 and Linux, correct BLKmode alignment when 128-bit alignment is
18651 required and compatibility flag is not set.
18652 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18653 for zero-size arguments when compatibility flag is not set.
18655 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18657 PR tree-optimization/58145
18658 * tree-sra.c (build_ref_for_offset): If prev_base has
18659 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18661 2013-08-14 Xinliang David Li <davidxl@google.com>
18663 * config/i386/i386.c (ix86_option_override_internal):
18664 Fix uninitialized variable error.
18666 2013-08-14 Xinliang David Li <davidxl@google.com>
18668 * config/i386/i386.opt: Define two new options.
18669 * config/i386/x86-tune.def: Add arch selector field in macros.
18670 * config/i386/i386.h: Adjust macro definition.
18671 * config/i386/i386.c (ix86_option_override_internal):
18673 (parse_mtune_ctrl_str): New function.
18674 (set_ix86_tune_features): New function.
18675 (ix86_function_specific_restore): Call the new helper function.
18677 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
18679 PR rtl-optimization/57662
18680 * sel-sched.c (code_motion_process_successors): When the current insn
18681 is removed after the recursive traversal, break from the loop.
18682 Add comments and debug printouts.
18684 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18685 Alexandre Oliva <aoliva@redhat.com>
18688 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18689 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18690 there also UNSPEC_PLTOFF.
18692 2013-08-14 Marek Polacek <polacek@redhat.com>
18694 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18695 NUM_CONDITIONS bit positions.
18697 2013-08-13 Cary Coutant <ccoutant@google.com>
18699 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18700 (attr_checksum): Hash vector contents instead of pointer.
18701 (attr_checksum_ordered): Likewise.
18703 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
18705 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18706 when Pmode != word_mode. Add length_address attribute.
18707 (sse3_monitor_<mode>): Merge from sse3_monitor and
18708 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
18709 Pmode != word_mode. Update insn length attribute.
18710 * config/i386/i386.c (ix86_option_override_internal): Update
18711 ix86_gen_monitor selection for merged sse3_monitor insn.
18713 2013-08-13 Julian Brown <julian@codesourcery.com>
18715 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18716 perform invalid legitimization on greater-than-word-size modes for
18717 TARGET_E500_DOUBLE.
18719 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
18721 * ira.c (setup_class_translate_array): Use aclass instead of cl
18722 for classes not fully covered by allocno classes.
18724 2013-08-13 Jakub Jelinek <jakub@redhat.com>
18726 PR tree-optimization/57661
18727 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18728 * tree-inline.c (tree_function_versioning): Initialize it.
18729 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18730 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18731 that is not being copied.
18734 * asan.c (instrument_strlen_call): Fix typo in comment.
18735 Use char * type even for the lhs of POINTER_PLUS_EXPR.
18737 2013-08-13 Steve Ellcey <sellcey@mips.com>
18739 * config/mips/mips.md (prefetch): Use lw instead of ld on
18740 loongson in 32bit mode.
18742 2013-08-13 Nick Clifton <nickc@redhat.com>
18744 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18746 2013-08-13 Jan Hubicka <jh@suse.cz>
18748 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18749 introduced edge; fix typo in sanity check.
18750 (cgraph_resolve_speculation): Export; improve diagnostic.
18751 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18752 speculation at type mismatch.
18753 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18754 (cgraph_resolve_speculation): Declare.
18755 (symtab_can_be_discarded): New function.
18756 * value-prof.c (gimple_ic_transform): Remove actual transform code.
18757 * ipa-inline-transform.c (speculation_removed): New global var.
18758 (clone_inlined_nodes): See if speculation can be removed.
18759 (inline_call): If speculations was removed, we growths may not match.
18760 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18761 (speculation_useful_p): New function.
18762 (resolve_noninline_speculation): New function.
18763 (inline_small_functions): Resolve useless speculations.
18764 * ipa-inline.h (speculation_useful_p): Declare
18765 * ipa.c (can_replace_by_local_alias): Simplify.
18766 (ipa_profile): Produce speculative calls in non-lto, too;
18767 add simple cost model; produce local aliases.
18769 2013-08-13 David Malcolm <dmalcolm@redhat.com>
18771 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18774 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
18776 * config/i386/i386.c (ix86_function_versions): Use error + inform.
18778 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
18780 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18781 iterator instead of X87MODEF.
18783 2013-08-12 Perez Read <netfirewall@gmail.com>
18786 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
18787 operand 0 for intel asm alternative.
18788 (*movabs<mode>_2): Ditto for operand 1.
18790 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
18792 * config/aarch64/arm_none.h
18793 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18795 2013-08-12 Nick Clifton <nickc@redhat.com>
18797 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18799 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18801 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18802 expand for QI/HImode operand to produce more effictive code for
18803 unsigned char(short) --> float(double) conversion.
18805 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
18807 * doc/invoke.texi: Mention that -ftls-model does not force the final
18810 2013-08-12 Marek Polacek <polacek@redhat.com>
18811 Marc Glisse <marc.glisse@inria.fr>
18813 PR tree-optimization/57980
18814 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18815 when creating -1 constant.
18817 2013-08-10 Jan Hubicka <jh@suse.cz>
18819 Workaround binutils PR14342.
18820 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18821 (gimple_init_edge_profiler): Likewise.
18822 (gimple_gen_ic_func_profiler): Likewise.
18824 2013-08-09 Jan Hubicka <jh@suse.cz>
18826 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18828 2013-08-09 Xinliang David Li <davidxl@google.com>
18830 * config/i386/stringop.def: New file.
18831 * config/i386/stringop.opt: New file.
18832 * config/i386/i386-opts.h: Include stringopt.def.
18833 * config/i386/i386.opt: Include stringopt.opt.
18834 * config/i386/i386.c (ix86_option_override_internal):
18835 Override default size based stringop inline strategies with options.
18836 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18839 2013-08-09 Jan Hubicka <jh@suse.cz>
18841 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18843 2013-08-09 Jan Hubicka <jh@suse.cz>
18845 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18847 (dump_cgraph_node): Dump profile-id.
18848 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18849 and common_target_probability.
18850 * lto-cgraph.c (lto_output_edge): Stream common targets.
18851 (lto_output_node): Stream profile ids.
18852 (input_node): Stream profile ids.
18853 (input_edge): Stream common targets.
18854 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18855 * ipa.c: Include value-prof.h
18856 (ipa_profile_generate_summary): Turn indirect call statement histograms
18857 into common targets.
18858 (ipa_profile): Turn common targets into speculative edges.
18860 2013-08-09 Jan Hubicka <jh@suse.cz>
18862 * cgraph.h (cgraph_node): Add profile_id.
18863 * value-prof.c (cgraph_node_map): Turn into pointer_map.
18864 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18865 (del_node_map): Update.
18866 (find_func_by_funcdef_no): Replace by ...
18867 (find_func_by_profile_id): ... this one.
18868 (gimple_ic_transform): Do not remove useful histograms when
18869 speculation is not done; dump info when indirect call removal
18871 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18872 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18873 (__gcov_indirect_call_profiler_v2): .. this one.
18874 * profile.h (init_node_map): Update.
18875 * coverage.c (coverage_compute_profile_id): New function.
18876 * coverage.h (coverage_compute_profile_id): Declare.
18877 * tree-profile.c (init_ic_make_global_vars): Make
18878 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
18879 (gimple_init_edge_profiler): Update prototype of
18880 __gcov_indirect_call_profiler.
18881 (gimple_gen_ic_func_profiler): Simplify.
18882 (tree_profiling): Use init_node_map
18884 2013-08-09 Jan Hubicka <jh@suse.cz>
18886 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18887 non-speculative refs.
18888 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18889 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18890 (cgraph_set_call_stmt): Likewise.
18891 (cgraph_create_edge_1): Fix release checking compilatoin;
18892 clear lto_stmt_uid.
18893 (cgraph_free_edge): Free indirect info.
18894 (cgraph_turn_edge_to_speculative): New function.
18895 (cgraph_speculative_call_info): New function.
18896 (cgraph_make_edge_direct): Return direct edge; handle speculation.
18897 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18898 (dump_cgraph_node): Dump speculation.
18899 (verify_edge_count_and_frequency): Accept speculative edges.
18900 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18901 (verify_cgraph_node): Handle speculation.
18902 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18903 (cgraph_set_call_stmt): Update prototype.
18904 (cgraph_make_edge_direct): Update prototype.
18905 (cgraph_speculative_call_info): Declare.
18906 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18907 to change; update call of ipa_find_references.
18908 * ipa-ref.c (ipa_record_reference): Fix return value; clear
18909 lto_stmt_uid and speculative flags.
18910 (ipa_dump_references): Dump speculation.
18911 (ipa_clone_references): Clone speculative flag.
18912 (ipa_clone_referring): Likewise.
18913 (ipa_clone_ref): New function.
18914 (ipa_find_reference): Look into lto_stmt_uids
18915 (ipa_clear_stmts_in_references): Do not clear speculative calls.
18916 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18917 (ipa_find_reference): Update declaration.
18918 (ipa_clone_ref): Declare.
18919 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18920 stream speculative flag.
18921 (lto_output_ref): Stream statements uids and speculation.
18922 (input_ref): Likewise.
18923 (input_edge): Stream speuclation.
18924 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18925 (cgraph_set_call_stmt_including_clones): Handle speculation.
18926 * ipa-inline.c (heap_edge_removal_hook): New function.
18927 (inline_small_functions): Register it.
18928 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18929 also initialize refs.
18930 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18932 (try_make_edge_direct_simple_call): Likewise.
18933 (try_make_edge_direct_simple_call): Likewise.
18934 (update_indirect_edges_after_inlining): Likewise.
18935 (remove_described_reference): Look proper lto_stmt_uid.
18936 (propagate_controlled_uses): Likewise.
18937 (propagate_controlled_uses): Liekwise.
18938 * tree-inline.c (copy_bb): Copy speculative edges.
18939 (redirect_all_calls): New function.
18940 (copy_cfg_body): Do redirection after loop info is updated.
18941 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18943 2013-08-09 Jan Hubicka <jh@suse.cz>
18945 * lto-streamer-out.c (output_function): Renumber PHIs.
18946 * lto-streamer-in.c (input_function): Likewise.
18948 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
18950 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18951 (get_lane_unsigned): Likewise.
18952 (dup_lane_scalar): Likewise.
18953 (get_lane): enable for VALL.
18954 * config/aarch64/aarch64-simd.md
18955 (aarch64_dup_lane_scalar<mode>): Remove.
18956 (aarch64_get_lane_signed<mode>): Likewise.
18957 (aarch64_get_lane_unsigned<mode>): Likewise.
18958 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18959 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18960 (aarch64_get_lane<mode>): Enable for all vector modes.
18961 (aarch64_get_lanedi): Remove misleading constraints.
18962 * config/aarch64/arm_neon.h
18963 (__aarch64_vget_lane_any): Define.
18964 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18965 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18966 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18967 * config/aarch64/iterators.md (VDQQH): New.
18968 (VDQQHS): Likewise.
18969 (vwcore): Likewise.
18971 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
18973 * configure.ac: Add GAS check for LEON instructions on SPARC.
18974 * configure: Regenerate.
18975 * config.in: Likewise.
18976 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18978 * config/sparc/sparc.opt (LEON, LEON3): New masks.
18979 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18981 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18982 (AS_LEON_FLAG): New macro.
18983 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18984 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18985 Deal with LEON and LEON3 for the memory model.
18986 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18987 (atomic_compare_and_swap<mode>_1): Likewise.
18988 (*atomic_compare_and_swap<mode>_1): Likewise.
18990 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18992 * config/arm/neon.md (vcond): Fix floating-point vector
18993 comparisons against 0.
18995 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
18997 * lra-constraints.c (emit_spill_move): Remove assert.
18998 (process_alt_operands): Add more debugging
18999 output. Increase reject for spilling into memory. Decrease
19000 reject for reloading scratch.
19001 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19003 2013-08-08 Steve Ellcey <sellcey@mips.com>
19005 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19006 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19007 micromips incompatible. Add nan2008.
19008 (MULTILIB_DIRNAMES): Add nan2008.
19009 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19010 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19011 and micromips incompatible. Add nan2008.
19012 (MULTILIB_DIRNAMES): Add nan2008.
19013 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19015 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
19017 PR rtl-optimization/58079
19018 * combine.c (combine_simplify_rtx): Avoid using SUBST if
19019 simplify_comparison has widened a comparison with an integer.
19021 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19023 * config/arm/neon.md (movmisalign<mode>): Disable when we
19024 don't allow unaligned accesses.
19025 (*movmisalign<mode>_neon_store): Likewise.
19026 (*movmisalign<mode>_neon_load): Likewise.
19027 (*movmisalign<mode>_neon_store): Likewise.
19028 (*movmisalign<mode>_neon_load): Likewise.
19030 2013-08-08 Jan Hubicka <jh@suse.cz>
19032 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19033 (make_pass_rebuild_cgraph_edges): Also clear references.
19034 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19035 * ipa-inline-transform.c (inline_transform): Remove all references
19037 * cgraphunit.c (expand_function): Remove all references after
19039 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19040 (ipa_find_reference): Rewrite to iterator.
19041 (remove_stmt_references): Likewise.
19042 (ipa_clear_stmts_in_references): New function.
19043 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19044 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19046 * ipa-split.c (split_function): Remove references in split function.
19048 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19051 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19052 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19054 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19057 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19058 suggested mode for the assignment isn't compatible with the
19059 registers required.
19061 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
19064 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19066 2013-08-07 Xinliang David Li <davidxl@google.com>
19068 * config/i386/i386.opt: New option -mtune-ctrl=.
19069 * config/i386/x86-tune.def: New file.
19070 * config/i386/i386.h: include x86-tune.def.
19071 * config/i386/i386.c (ix86_option_override_internal):
19072 Parsing -mtune-ctrl= option and set tune features.
19074 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
19077 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19078 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19081 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19083 * rtl.h (update_alignments): Declare.
19084 * final.c (grow_label_align): New function extracted from...
19085 (shorten_branches): ...here. Call it.
19086 (update_alignments): New function.
19087 * reorg.c (sibling_labels): New variable.
19088 (get_label_before): Add SIBLING parameter. If it is non-zero, push
19089 the new label along with it onto the sibling_labels vector.
19090 (fill_simple_delay_slots): Adjust call to get_label_before.
19091 (fill_slots_from_thread): Likewise.
19092 (relax_delay_slots): Likewise.
19093 (make_return_insns): Likewise.
19094 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19096 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19098 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19099 document its semantics.
19100 (diagnostic_report_diagnostic): Adjust accordingly.
19102 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19104 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19105 (sparc_option_override): ...and port to new C++ pass API.
19106 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19108 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
19110 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19112 2013-08-06 Caroline Tice <cmtice@google.com>
19114 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19115 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19116 * tree-pass.h: Add pass_vtable_verify.
19117 * varasm.c (assemble_variable): Add code to properly set the comdat
19118 section and name for the .vtable_map_vars section.
19119 (assemble_vtyv_preinit_initializer): New function.
19120 (default_sectin_type_flags): Make sure .vtable_map_vars section has
19122 * output.h: Add function decl for assemble_vtv_preinit_initializer.
19123 * vtable-verify.c: New file.
19124 * vtable-verify.h: New file.
19125 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19126 initialiation levels.
19127 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19128 * passes.def: Insert pass_vtable_verify.
19129 * aclocal.m4: Reorder includes.
19130 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
19131 -fvtv-counts options.
19132 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19133 as appropriate, if -fvtable-verify=... is used.
19134 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19135 -fvtable-verify=... is used.
19136 * Makefile.in (OBJS): Add vtable-verify.o to list.
19137 (vtable-verify.o): Add new build rule.
19138 (GTFILES): Add vtable-verify.c to list.
19139 * common.opt (fvtable-verify=): New flag.
19140 (vtv_priority): Values for fvtable-verify= flag.
19141 (fvtv-counts): New flag.
19142 (fvtv-debug): New flag.
19143 * tree.h (save_vtable_map_decl): New extern function decl.
19145 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19147 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19148 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19149 (pass_data_rl78_devirt): ...new pass_data instance and...
19150 (make_pass_rl78_devirt): ...new function.
19151 (rl78_asm_file_start): Port pass registration to new C++ API.
19153 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19155 * coretypes.h (rtl_opt_pass): Add.
19156 (gcc::context): Add.
19157 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19158 (epiphany_init): Port to new C++ pass API.
19159 (epiphany_optimize_mode_switching): Likewise.
19160 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19161 (pass_manager::get_pass_mode_switching): New.
19162 (pass_manager::get_pass_peephole2): New.
19163 * mode-switching.c (pass_mode_switching): Add clone method.
19164 * recog.c (pass_peephole2): Add clone method.
19165 (pass_split_all_insns): Add clone method.
19167 2013-08-06 David Malcolm <dmalcolm@redhat.com>
19169 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19170 (mips_option_override): ...here, porting to new C++ API for passes.
19172 2013-08-06 Jan Hubicka <jh@suse.cz>
19174 * cgraph.c (cgraph_get_body): New function based on lto.c
19176 * cgraph.h (cgraph_get_body): Declare.
19177 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19179 * cgraphunit.c (expand_function): Get body prior expanding.
19180 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19181 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19183 * passes.c (do_per_function_toporder): Get body.
19184 * tree-inline.c (expand_call_inline): Get body prior inlining it.
19185 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19187 2013-08-06 Martin Jambor <mjambor@suse.cz>
19190 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19191 is not re-finalized. Rename second parameter to no_collect.
19193 2013-08-06 Martin Jambor <mjambor@suse.cz>
19195 PR middle-end/58041
19196 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19197 MEM_REF has proper alignment information.
19199 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
19202 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19204 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19205 rtx (*) (rtx, ...) with insn_gen_fn.
19206 * genoutput.c (output_insn_data): Cast gen_? function pointers to
19207 insn_gen_fn::stored_funcptr. Add initializer braces.
19209 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19211 Rewrite how instances of passes are cloned to remove assumptions
19212 about their sizes (thus allowing pass subclasses to have
19213 additional data fields, albeit non-GC-managed ones at this point).
19215 * passes.c (make_pass_instance): Now that passes have clone
19216 methods, rewrite this function to eliminate XNEW and memcpy
19217 calls that used hardcoded sizes. Since this function no longer
19218 creates pass instances, rename it to...
19219 (add_pass_instance): ...this. Document the old way that passes were
19220 numbered and flagged, and rework this function to continue using it.
19221 (next_pass_1): Add an initial_pass argument for use by
19223 (position_pass): When adding multiple instances of a pass, use
19224 the pass's clone method, rather than relying on the XNEW/memcpy
19225 within the former make_pass_instance (now add_pass_instance).
19226 (pass_manager::pass_manager): When invoking next_pass_1, also supply
19227 the initial instance of the current pass within the pass manager.
19229 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19231 This is the automated part of the conversion of passes from C
19232 structs to C++ classes.
19234 Patch autogenerated by refactor_passes.py from
19235 https://github.com/davidmalcolm/gcc-refactoring-scripts
19236 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19238 * asan.c (pass_asan): Convert from a global struct to a subclass of
19239 gimple_opt_pass along with...
19240 (pass_data_asan): ...new pass_data instance and...
19241 (make_pass_asan): ...new function.
19242 (pass_asan_O0): Convert from a global struct to a subclass of
19243 gimple_opt_pass along with...
19244 (pass_data_asan_O0): ...new pass_data instance and...
19245 (make_pass_asan_O0): ...new function.
19246 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19247 subclass of rtl_opt_pass along with...
19248 (pass_data_inc_dec): ...new pass_data instance and...
19249 (make_pass_inc_dec): ...new function.
19250 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19251 a subclass of rtl_opt_pass along with...
19252 (pass_data_reorder_blocks): ...new pass_data instance and...
19253 (make_pass_reorder_blocks): ...new function.
19254 (pass_duplicate_computed_gotos): Convert from a global struct to a
19255 subclass of rtl_opt_pass along with...
19256 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19257 (make_pass_duplicate_computed_gotos): ...new function.
19258 (pass_partition_blocks): Convert from a global struct to a subclass of
19259 rtl_opt_pass along with...
19260 (pass_data_partition_blocks): ...new pass_data instance and...
19261 (make_pass_partition_blocks): ...new function.
19262 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19263 struct to a subclass of rtl_opt_pass along with...
19264 (pass_data_branch_target_load_optimize1): ...new pass_data instance
19266 (make_pass_branch_target_load_optimize1): ...new function.
19267 (pass_branch_target_load_optimize2): Convert from a global struct to a
19268 subclass of rtl_opt_pass along with...
19269 (pass_data_branch_target_load_optimize2): ...new pass_data instance
19271 (make_pass_branch_target_load_optimize2): ...new function.
19272 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19273 of rtl_opt_pass along with...
19274 (pass_data_jump): ...new pass_data instance and...
19275 (make_pass_jump): ...new function.
19276 (pass_jump2): Convert from a global struct to a subclass of
19277 rtl_opt_pass along with...
19278 (pass_data_jump2): ...new pass_data instance and...
19279 (make_pass_jump2): ...new function.
19280 * cfgexpand.c (pass_expand): Convert from a global struct to a
19281 subclass of rtl_opt_pass along with...
19282 (pass_data_expand): ...new pass_data instance and...
19283 (make_pass_expand): ...new function.
19284 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19285 of rtl_opt_pass along with...
19286 (pass_data_free_cfg): ...new pass_data instance and...
19287 (make_pass_free_cfg): ...new function.
19288 (pass_into_cfg_layout_mode): Convert from a global struct to a
19289 subclass of rtl_opt_pass along with...
19290 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19291 (make_pass_into_cfg_layout_mode): ...new function.
19292 (pass_outof_cfg_layout_mode): Convert from a global struct to a
19293 subclass of rtl_opt_pass along with...
19294 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19295 (make_pass_outof_cfg_layout_mode): ...new function.
19296 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19297 struct to a subclass of gimple_opt_pass along with...
19298 (pass_data_build_cgraph_edges): ...new pass_data instance and...
19299 (make_pass_build_cgraph_edges): ...new function.
19300 (pass_rebuild_cgraph_edges): Convert from a global struct to a
19301 subclass of gimple_opt_pass along with...
19302 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19303 (make_pass_rebuild_cgraph_edges): ...new function.
19304 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19305 subclass of gimple_opt_pass along with...
19306 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19308 (make_pass_remove_cgraph_callee_edges): ...new function.
19309 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19310 struct to a subclass of rtl_opt_pass along with...
19311 (pass_data_stack_adjustments): ...new pass_data instance and...
19312 (make_pass_stack_adjustments): ...new function.
19313 * combine.c (pass_combine): Convert from a global struct to a subclass
19314 of rtl_opt_pass along with...
19315 (pass_data_combine): ...new pass_data instance and...
19316 (make_pass_combine): ...new function.
19317 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19318 global struct to a subclass of rtl_opt_pass along with...
19319 (pass_data_compare_elim_after_reload): ...new pass_data instance
19321 (make_pass_compare_elim_after_reload): ...new function.
19322 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19323 of rtl_opt_pass along with...
19324 (pass_data_rtl_cprop): ...new pass_data instance and...
19325 (make_pass_rtl_cprop): ...new function.
19326 * cse.c (pass_cse): Convert from a global struct to a subclass of
19327 rtl_opt_pass along with...
19328 (pass_data_cse): ...new pass_data instance and...
19329 (make_pass_cse): ...new function.
19330 (pass_cse2): Convert from a global struct to a subclass of
19331 rtl_opt_pass along with...
19332 (pass_data_cse2): ...new pass_data instance and...
19333 (make_pass_cse2): ...new function.
19334 (pass_cse_after_global_opts): Convert from a global struct to a
19335 subclass of rtl_opt_pass along with...
19336 (pass_data_cse_after_global_opts): ...new pass_data instance and...
19337 (make_pass_cse_after_global_opts): ...new function.
19338 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19339 of rtl_opt_pass along with...
19340 (pass_data_ud_rtl_dce): ...new pass_data instance and...
19341 (make_pass_ud_rtl_dce): ...new function.
19342 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19343 rtl_opt_pass along with...
19344 (pass_data_fast_rtl_dce): ...new pass_data instance and...
19345 (make_pass_fast_rtl_dce): ...new function.
19346 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19347 a subclass of rtl_opt_pass along with...
19348 (pass_data_df_initialize_opt): ...new pass_data instance and...
19349 (make_pass_df_initialize_opt): ...new function.
19350 (pass_df_initialize_no_opt): Convert from a global struct to a
19351 subclass of rtl_opt_pass along with...
19352 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19353 (make_pass_df_initialize_no_opt): ...new function.
19354 (pass_df_finish): Convert from a global struct to a subclass of
19355 rtl_opt_pass along with...
19356 (pass_data_df_finish): ...new pass_data instance and...
19357 (make_pass_df_finish): ...new function.
19358 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19359 rtl_opt_pass along with...
19360 (pass_data_rtl_dse1): ...new pass_data instance and...
19361 (make_pass_rtl_dse1): ...new function.
19362 (pass_rtl_dse2): Convert from a global struct to a subclass of
19363 rtl_opt_pass along with...
19364 (pass_data_rtl_dse2): ...new pass_data instance and...
19365 (make_pass_rtl_dse2): ...new function.
19366 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19367 subclass of rtl_opt_pass along with...
19368 (pass_data_dwarf2_frame): ...new pass_data instance and...
19369 (make_pass_dwarf2_frame): ...new function.
19370 * except.c (pass_set_nothrow_function_flags): Convert from a global
19371 struct to a subclass of rtl_opt_pass along with...
19372 (pass_data_set_nothrow_function_flags): ...new pass_data instance
19374 (make_pass_set_nothrow_function_flags): ...new function.
19375 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19376 subclass of rtl_opt_pass along with...
19377 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19379 (make_pass_convert_to_eh_region_ranges): ...new function.
19380 * final.c (pass_compute_alignments): Convert from a global struct to a
19381 subclass of rtl_opt_pass along with...
19382 (pass_data_compute_alignments): ...new pass_data instance and...
19383 (make_pass_compute_alignments): ...new function.
19384 (pass_final): Convert from a global struct to a subclass of
19385 rtl_opt_pass along with...
19386 (pass_data_final): ...new pass_data instance and...
19387 (make_pass_final): ...new function.
19388 (pass_shorten_branches): Convert from a global struct to a subclass of
19389 rtl_opt_pass along with...
19390 (pass_data_shorten_branches): ...new pass_data instance and...
19391 (make_pass_shorten_branches): ...new function.
19392 (pass_clean_state): Convert from a global struct to a subclass of
19393 rtl_opt_pass along with...
19394 (pass_data_clean_state): ...new pass_data instance and...
19395 (make_pass_clean_state): ...new function.
19396 * function.c (pass_instantiate_virtual_regs): Convert from a global
19397 struct to a subclass of rtl_opt_pass along with...
19398 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19399 (make_pass_instantiate_virtual_regs): ...new function.
19400 (pass_leaf_regs): Convert from a global struct to a subclass of
19401 rtl_opt_pass along with...
19402 (pass_data_leaf_regs): ...new pass_data instance and...
19403 (make_pass_leaf_regs): ...new function.
19404 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19405 subclass of rtl_opt_pass along with...
19406 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19408 (make_pass_thread_prologue_and_epilogue): ...new function.
19409 (pass_match_asm_constraints): Convert from a global struct to a
19410 subclass of rtl_opt_pass along with...
19411 (pass_data_match_asm_constraints): ...new pass_data instance and...
19412 (make_pass_match_asm_constraints): ...new function.
19413 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19414 subclass of rtl_opt_pass along with...
19415 (pass_data_rtl_fwprop): ...new pass_data instance and...
19416 (make_pass_rtl_fwprop): ...new function.
19417 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19418 rtl_opt_pass along with...
19419 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19420 (make_pass_rtl_fwprop_addr): ...new function.
19421 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19422 rtl_opt_pass along with...
19423 (pass_data_rtl_pre): ...new pass_data instance and...
19424 (make_pass_rtl_pre): ...new function.
19425 (pass_rtl_hoist): Convert from a global struct to a subclass of
19426 rtl_opt_pass along with...
19427 (pass_data_rtl_hoist): ...new pass_data instance and...
19428 (make_pass_rtl_hoist): ...new function.
19429 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19430 subclass of gimple_opt_pass along with...
19431 (pass_data_lower_cf): ...new pass_data instance and...
19432 (make_pass_lower_cf): ...new function.
19433 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19434 from a global struct to a subclass of gimple_opt_pass along with...
19435 (pass_data_strength_reduction): ...new pass_data instance and...
19436 (make_pass_strength_reduction): ...new function.
19437 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19438 of rtl_opt_pass along with...
19439 (pass_data_rtl_ifcvt): ...new pass_data instance and...
19440 (make_pass_rtl_ifcvt): ...new function.
19441 (pass_if_after_combine): Convert from a global struct to a subclass of
19442 rtl_opt_pass along with...
19443 (pass_data_if_after_combine): ...new pass_data instance and...
19444 (make_pass_if_after_combine): ...new function.
19445 (pass_if_after_reload): Convert from a global struct to a subclass of
19446 rtl_opt_pass along with...
19447 (pass_data_if_after_reload): ...new pass_data instance and...
19448 (make_pass_if_after_reload): ...new function.
19449 * init-regs.c (pass_initialize_regs): Convert from a global struct to
19450 a subclass of rtl_opt_pass along with...
19451 (pass_data_initialize_regs): ...new pass_data instance and...
19452 (make_pass_initialize_regs): ...new function.
19453 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19454 of ipa_opt_pass_d along with...
19455 (pass_data_ipa_cp): ...new pass_data instance and...
19456 (make_pass_ipa_cp): ...new function.
19457 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19458 global struct to a subclass of gimple_opt_pass along with...
19459 (pass_data_inline_parameters): ...new pass_data instance and...
19460 (make_pass_inline_parameters): ...new function.
19461 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19462 subclass of gimple_opt_pass along with...
19463 (pass_data_early_inline): ...new pass_data instance and...
19464 (make_pass_early_inline): ...new function.
19465 (pass_ipa_inline): Convert from a global struct to a subclass of
19466 ipa_opt_pass_d along with...
19467 (pass_data_ipa_inline): ...new pass_data instance and...
19468 (make_pass_ipa_inline): ...new function.
19469 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19470 struct to a subclass of gimple_opt_pass along with...
19471 (pass_data_local_pure_const): ...new pass_data instance and...
19472 (make_pass_local_pure_const): ...new function.
19473 (pass_ipa_pure_const): Convert from a global struct to a subclass of
19474 ipa_opt_pass_d along with...
19475 (pass_data_ipa_pure_const): ...new pass_data instance and...
19476 (make_pass_ipa_pure_const): ...new function.
19477 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19478 to a subclass of ipa_opt_pass_d along with...
19479 (pass_data_ipa_reference): ...new pass_data instance and...
19480 (make_pass_ipa_reference): ...new function.
19481 * ipa-split.c (pass_split_functions): Convert from a global struct to
19482 a subclass of gimple_opt_pass along with...
19483 (pass_data_split_functions): ...new pass_data instance and...
19484 (make_pass_split_functions): ...new function.
19485 (pass_feedback_split_functions): Convert from a global struct to a
19486 subclass of gimple_opt_pass along with...
19487 (pass_data_feedback_split_functions): ...new pass_data instance and...
19488 (make_pass_feedback_split_functions): ...new function.
19489 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19490 global struct to a subclass of simple_ipa_opt_pass along with...
19491 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19493 (make_pass_ipa_function_and_variable_visibility): ...new function.
19494 (pass_ipa_free_inline_summary): Convert from a global struct to a
19495 subclass of simple_ipa_opt_pass along with...
19496 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19497 (make_pass_ipa_free_inline_summary): ...new function.
19498 (pass_ipa_whole_program_visibility): Convert from a global struct to a
19499 subclass of ipa_opt_pass_d along with...
19500 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19502 (make_pass_ipa_whole_program_visibility): ...new function.
19503 (pass_ipa_profile): Convert from a global struct to a subclass of
19504 ipa_opt_pass_d along with...
19505 (pass_data_ipa_profile): ...new pass_data instance and...
19506 (make_pass_ipa_profile): ...new function.
19507 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19508 ipa_opt_pass_d along with...
19509 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19510 (make_pass_ipa_cdtor_merge): ...new function.
19511 * ira.c (pass_ira): Convert from a global struct to a subclass of
19512 rtl_opt_pass along with...
19513 (pass_data_ira): ...new pass_data instance and...
19514 (make_pass_ira): ...new function.
19515 (pass_reload): Convert from a global struct to a subclass of
19516 rtl_opt_pass along with...
19517 (pass_data_reload): ...new pass_data instance and...
19518 (make_pass_reload): ...new function.
19519 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19520 subclass of rtl_opt_pass along with...
19521 (pass_data_cleanup_barriers): ...new pass_data instance and...
19522 (make_pass_cleanup_barriers): ...new function.
19523 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19524 of rtl_opt_pass along with...
19525 (pass_data_loop2): ...new pass_data instance and...
19526 (make_pass_loop2): ...new function.
19527 (pass_rtl_loop_init): Convert from a global struct to a subclass of
19528 rtl_opt_pass along with...
19529 (pass_data_rtl_loop_init): ...new pass_data instance and...
19530 (make_pass_rtl_loop_init): ...new function.
19531 (pass_rtl_loop_done): Convert from a global struct to a subclass of
19532 rtl_opt_pass along with...
19533 (pass_data_rtl_loop_done): ...new pass_data instance and...
19534 (make_pass_rtl_loop_done): ...new function.
19535 (pass_rtl_move_loop_invariants): Convert from a global struct to a
19536 subclass of rtl_opt_pass along with...
19537 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19538 (make_pass_rtl_move_loop_invariants): ...new function.
19539 (pass_rtl_unswitch): Convert from a global struct to a subclass of
19540 rtl_opt_pass along with...
19541 (pass_data_rtl_unswitch): ...new pass_data instance and...
19542 (make_pass_rtl_unswitch): ...new function.
19543 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19544 subclass of rtl_opt_pass along with...
19545 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19547 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19548 (pass_rtl_doloop): Convert from a global struct to a subclass of
19549 rtl_opt_pass along with...
19550 (pass_data_rtl_doloop): ...new pass_data instance and...
19551 (make_pass_rtl_doloop): ...new function.
19552 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19553 a subclass of rtl_opt_pass along with...
19554 (pass_data_lower_subreg): ...new pass_data instance and...
19555 (make_pass_lower_subreg): ...new function.
19556 (pass_lower_subreg2): Convert from a global struct to a subclass of
19557 rtl_opt_pass along with...
19558 (pass_data_lower_subreg2): ...new pass_data instance and...
19559 (make_pass_lower_subreg2): ...new function.
19560 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19561 struct to a subclass of ipa_opt_pass_d along with...
19562 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19563 (make_pass_ipa_lto_gimple_out): ...new function.
19564 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19565 of ipa_opt_pass_d along with...
19566 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19567 (make_pass_ipa_lto_finish_out): ...new function.
19568 * mode-switching.c (pass_mode_switching): Convert from a global struct
19569 to a subclass of rtl_opt_pass along with...
19570 (pass_data_mode_switching): ...new pass_data instance and...
19571 (make_pass_mode_switching): ...new function.
19572 * modulo-sched.c (pass_sms): Convert from a global struct to a
19573 subclass of rtl_opt_pass along with...
19574 (pass_data_sms): ...new pass_data instance and...
19575 (make_pass_sms): ...new function.
19576 * omp-low.c (pass_expand_omp): Convert from a global struct to a
19577 subclass of gimple_opt_pass along with...
19578 (pass_data_expand_omp): ...new pass_data instance and...
19579 (make_pass_expand_omp): ...new function.
19580 (pass_lower_omp): Convert from a global struct to a subclass of
19581 gimple_opt_pass along with...
19582 (pass_data_lower_omp): ...new pass_data instance and...
19583 (make_pass_lower_omp): ...new function.
19584 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19585 of gimple_opt_pass along with...
19586 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19587 (make_pass_diagnose_omp_blocks): ...new function.
19588 * passes.c (pass_early_local_passes): Convert from a global struct to
19589 a subclass of simple_ipa_opt_pass along with...
19590 (pass_data_early_local_passes): ...new pass_data instance and...
19591 (make_pass_early_local_passes): ...new function.
19592 (pass_all_early_optimizations): Convert from a global struct to a
19593 subclass of gimple_opt_pass along with...
19594 (pass_data_all_early_optimizations): ...new pass_data instance and...
19595 (make_pass_all_early_optimizations): ...new function.
19596 (pass_all_optimizations): Convert from a global struct to a subclass
19597 of gimple_opt_pass along with...
19598 (pass_data_all_optimizations): ...new pass_data instance and...
19599 (make_pass_all_optimizations): ...new function.
19600 (pass_all_optimizations_g): Convert from a global struct to a subclass
19601 of gimple_opt_pass along with...
19602 (pass_data_all_optimizations_g): ...new pass_data instance and...
19603 (make_pass_all_optimizations_g): ...new function.
19604 (pass_rest_of_compilation): Convert from a global struct to a subclass
19605 of rtl_opt_pass along with...
19606 (pass_data_rest_of_compilation): ...new pass_data instance and...
19607 (make_pass_rest_of_compilation): ...new function.
19608 (pass_postreload): Convert from a global struct to a subclass of
19609 rtl_opt_pass along with...
19610 (pass_data_postreload): ...new pass_data instance and...
19611 (make_pass_postreload): ...new function.
19612 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19613 subclass of rtl_opt_pass along with...
19614 (pass_data_gcse2): ...new pass_data instance and...
19615 (make_pass_gcse2): ...new function.
19616 * postreload.c (pass_postreload_cse): Convert from a global struct to
19617 a subclass of rtl_opt_pass along with...
19618 (pass_data_postreload_cse): ...new pass_data instance and...
19619 (make_pass_postreload_cse): ...new function.
19620 * predict.c (pass_profile): Convert from a global struct to a subclass
19621 of gimple_opt_pass along with...
19622 (pass_data_profile): ...new pass_data instance and...
19623 (make_pass_profile): ...new function.
19624 (pass_strip_predict_hints): Convert from a global struct to a subclass
19625 of gimple_opt_pass along with...
19626 (pass_data_strip_predict_hints): ...new pass_data instance and...
19627 (make_pass_strip_predict_hints): ...new function.
19628 * recog.c (pass_peephole2): Convert from a global struct to a subclass
19629 of rtl_opt_pass along with...
19630 (pass_data_peephole2): ...new pass_data instance and...
19631 (make_pass_peephole2): ...new function.
19632 (pass_split_all_insns): Convert from a global struct to a subclass of
19633 rtl_opt_pass along with...
19634 (pass_data_split_all_insns): ...new pass_data instance and...
19635 (make_pass_split_all_insns): ...new function.
19636 (pass_split_after_reload): Convert from a global struct to a subclass
19637 of rtl_opt_pass along with...
19638 (pass_data_split_after_reload): ...new pass_data instance and...
19639 (make_pass_split_after_reload): ...new function.
19640 (pass_split_before_regstack): Convert from a global struct to a
19641 subclass of rtl_opt_pass along with...
19642 (pass_data_split_before_regstack): ...new pass_data instance and...
19643 (make_pass_split_before_regstack): ...new function.
19644 (pass_split_before_sched2): Convert from a global struct to a subclass
19645 of rtl_opt_pass along with...
19646 (pass_data_split_before_sched2): ...new pass_data instance and...
19647 (make_pass_split_before_sched2): ...new function.
19648 (pass_split_for_shorten_branches): Convert from a global struct to a
19649 subclass of rtl_opt_pass along with...
19650 (pass_data_split_for_shorten_branches): ...new pass_data instance
19652 (make_pass_split_for_shorten_branches): ...new function.
19653 * ree.c (pass_ree): Convert from a global struct to a subclass of
19654 rtl_opt_pass along with...
19655 (pass_data_ree): ...new pass_data instance and...
19656 (make_pass_ree): ...new function.
19657 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19658 subclass of rtl_opt_pass along with...
19659 (pass_data_stack_regs): ...new pass_data instance and...
19660 (make_pass_stack_regs): ...new function.
19661 (pass_stack_regs_run): Convert from a global struct to a subclass of
19662 rtl_opt_pass along with...
19663 (pass_data_stack_regs_run): ...new pass_data instance and...
19664 (make_pass_stack_regs_run): ...new function.
19665 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19666 subclass of rtl_opt_pass along with...
19667 (pass_data_cprop_hardreg): ...new pass_data instance and...
19668 (make_pass_cprop_hardreg): ...new function.
19669 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19670 subclass of rtl_opt_pass along with...
19671 (pass_data_reginfo_init): ...new pass_data instance and...
19672 (make_pass_reginfo_init): ...new function.
19673 * regmove.c (pass_regmove): Convert from a global struct to a subclass
19674 of rtl_opt_pass along with...
19675 (pass_data_regmove): ...new pass_data instance and...
19676 (make_pass_regmove): ...new function.
19677 * regrename.c (pass_regrename): Convert from a global struct to a
19678 subclass of rtl_opt_pass along with...
19679 (pass_data_regrename): ...new pass_data instance and...
19680 (make_pass_regrename): ...new function.
19681 * reorg.c (pass_delay_slots): Convert from a global struct to a
19682 subclass of rtl_opt_pass along with...
19683 (pass_data_delay_slots): ...new pass_data instance and...
19684 (make_pass_delay_slots): ...new function.
19685 (pass_machine_reorg): Convert from a global struct to a subclass of
19686 rtl_opt_pass along with...
19687 (pass_data_machine_reorg): ...new pass_data instance and...
19688 (make_pass_machine_reorg): ...new function.
19689 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19690 of rtl_opt_pass along with...
19691 (pass_data_sched): ...new pass_data instance and...
19692 (make_pass_sched): ...new function.
19693 (pass_sched2): Convert from a global struct to a subclass of
19694 rtl_opt_pass along with...
19695 (pass_data_sched2): ...new pass_data instance and...
19696 (make_pass_sched2): ...new function.
19697 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19698 to a subclass of rtl_opt_pass along with...
19699 (pass_data_stack_ptr_mod): ...new pass_data instance and...
19700 (make_pass_stack_ptr_mod): ...new function.
19701 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19702 to a subclass of rtl_opt_pass along with...
19703 (pass_data_rtl_store_motion): ...new pass_data instance and...
19704 (make_pass_rtl_store_motion): ...new function.
19705 * tracer.c (pass_tracer): Convert from a global struct to a subclass
19706 of gimple_opt_pass along with...
19707 (pass_data_tracer): ...new pass_data instance and...
19708 (make_pass_tracer): ...new function.
19709 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19710 to a subclass of gimple_opt_pass along with...
19711 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19712 (make_pass_diagnose_tm_blocks): ...new function.
19713 (pass_lower_tm): Convert from a global struct to a subclass of
19714 gimple_opt_pass along with...
19715 (pass_data_lower_tm): ...new pass_data instance and...
19716 (make_pass_lower_tm): ...new function.
19717 (pass_tm_init): Convert from a global struct to a subclass of
19718 gimple_opt_pass along with...
19719 (pass_data_tm_init): ...new pass_data instance and...
19720 (make_pass_tm_init): ...new function.
19721 (pass_tm_mark): Convert from a global struct to a subclass of
19722 gimple_opt_pass along with...
19723 (pass_data_tm_mark): ...new pass_data instance and...
19724 (make_pass_tm_mark): ...new function.
19725 (pass_tm_edges): Convert from a global struct to a subclass of
19726 gimple_opt_pass along with...
19727 (pass_data_tm_edges): ...new pass_data instance and...
19728 (make_pass_tm_edges): ...new function.
19729 (pass_tm_memopt): Convert from a global struct to a subclass of
19730 gimple_opt_pass along with...
19731 (pass_data_tm_memopt): ...new pass_data instance and...
19732 (make_pass_tm_memopt): ...new function.
19733 (pass_ipa_tm): Convert from a global struct to a subclass of
19734 simple_ipa_opt_pass along with...
19735 (pass_data_ipa_tm): ...new pass_data instance and...
19736 (make_pass_ipa_tm): ...new function.
19737 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19738 subclass of gimple_opt_pass along with...
19739 (pass_data_call_cdce): ...new pass_data instance and...
19740 (make_pass_call_cdce): ...new function.
19741 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19742 subclass of gimple_opt_pass along with...
19743 (pass_data_build_cfg): ...new pass_data instance and...
19744 (make_pass_build_cfg): ...new function.
19745 (pass_split_crit_edges): Convert from a global struct to a subclass of
19746 gimple_opt_pass along with...
19747 (pass_data_split_crit_edges): ...new pass_data instance and...
19748 (make_pass_split_crit_edges): ...new function.
19749 (pass_warn_function_return): Convert from a global struct to a
19750 subclass of gimple_opt_pass along with...
19751 (pass_data_warn_function_return): ...new pass_data instance and...
19752 (make_pass_warn_function_return): ...new function.
19753 (pass_warn_function_noreturn): Convert from a global struct to a
19754 subclass of gimple_opt_pass along with...
19755 (pass_data_warn_function_noreturn): ...new pass_data instance and...
19756 (make_pass_warn_function_noreturn): ...new function.
19757 (pass_warn_unused_result): Convert from a global struct to a subclass
19758 of gimple_opt_pass along with...
19759 (pass_data_warn_unused_result): ...new pass_data instance and...
19760 (make_pass_warn_unused_result): ...new function.
19761 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19762 a subclass of gimple_opt_pass along with...
19763 (pass_data_merge_phi): ...new pass_data instance and...
19764 (make_pass_merge_phi): ...new function.
19765 * tree-complex.c (pass_lower_complex): Convert from a global struct to
19766 a subclass of gimple_opt_pass along with...
19767 (pass_data_lower_complex): ...new pass_data instance and...
19768 (make_pass_lower_complex): ...new function.
19769 (pass_lower_complex_O0): Convert from a global struct to a subclass of
19770 gimple_opt_pass along with...
19771 (pass_data_lower_complex_O0): ...new pass_data instance and...
19772 (make_pass_lower_complex_O0): ...new function.
19773 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19774 subclass of gimple_opt_pass along with...
19775 (pass_data_lower_eh): ...new pass_data instance and...
19776 (make_pass_lower_eh): ...new function.
19777 (pass_refactor_eh): Convert from a global struct to a subclass of
19778 gimple_opt_pass along with...
19779 (pass_data_refactor_eh): ...new pass_data instance and...
19780 (make_pass_refactor_eh): ...new function.
19781 (pass_lower_resx): Convert from a global struct to a subclass of
19782 gimple_opt_pass along with...
19783 (pass_data_lower_resx): ...new pass_data instance and...
19784 (make_pass_lower_resx): ...new function.
19785 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19786 of gimple_opt_pass along with...
19787 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19788 (make_pass_lower_eh_dispatch): ...new function.
19789 (pass_cleanup_eh): Convert from a global struct to a subclass of
19790 gimple_opt_pass along with...
19791 (pass_data_cleanup_eh): ...new pass_data instance and...
19792 (make_pass_cleanup_eh): ...new function.
19793 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19794 to a subclass of simple_ipa_opt_pass along with...
19795 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19796 (make_pass_ipa_lower_emutls): ...new function.
19797 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19798 a subclass of gimple_opt_pass along with...
19799 (pass_data_if_conversion): ...new pass_data instance and...
19800 (make_pass_if_conversion): ...new function.
19801 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19802 subclass of gimple_opt_pass along with...
19803 (pass_data_build_ssa): ...new pass_data instance and...
19804 (make_pass_build_ssa): ...new function.
19805 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19806 global struct to a subclass of gimple_opt_pass along with...
19807 (pass_data_loop_distribution): ...new pass_data instance and...
19808 (make_pass_loop_distribution): ...new function.
19809 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19810 subclass of gimple_opt_pass along with...
19811 (pass_data_mudflap_1): ...new pass_data instance and...
19812 (make_pass_mudflap_1): ...new function.
19813 (pass_mudflap_2): Convert from a global struct to a subclass of
19814 gimple_opt_pass along with...
19815 (pass_data_mudflap_2): ...new pass_data instance and...
19816 (make_pass_mudflap_2): ...new function.
19817 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19818 subclass of gimple_opt_pass along with...
19819 (pass_data_mudflap_1): ...new pass_data instance and...
19820 (make_pass_mudflap_1): ...new function.
19821 (pass_mudflap_2): Convert from a global struct to a subclass of
19822 gimple_opt_pass along with...
19823 (pass_data_mudflap_2): ...new pass_data instance and...
19824 (make_pass_mudflap_2): ...new function.
19825 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19826 gimple_opt_pass along with...
19827 (pass_data_nrv): ...new pass_data instance and...
19828 (make_pass_nrv): ...new function.
19829 (pass_return_slot): Convert from a global struct to a subclass of
19830 gimple_opt_pass along with...
19831 (pass_data_return_slot): ...new pass_data instance and...
19832 (make_pass_return_slot): ...new function.
19833 * tree-object-size.c (pass_object_sizes): Convert from a global struct
19834 to a subclass of gimple_opt_pass along with...
19835 (pass_data_object_sizes): ...new pass_data instance and...
19836 (make_pass_object_sizes): ...new function.
19837 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19838 global struct to a subclass of gimple_opt_pass along with...
19839 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19841 (make_pass_cleanup_cfg_post_optimizing): ...new function.
19842 (pass_fixup_cfg): Convert from a global struct to a subclass of
19843 gimple_opt_pass along with...
19844 (pass_data_fixup_cfg): ...new pass_data instance and...
19845 (make_pass_fixup_cfg): ...new function.
19846 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19847 (make_pass_mudflap_1): ...new function.
19848 (pass_mudflap_2): Replace declaration with that of...
19849 (make_pass_mudflap_2): ...new function.
19850 (pass_asan): Replace declaration with that of...
19851 (make_pass_asan): ...new function.
19852 (pass_asan_O0): Replace declaration with that of...
19853 (make_pass_asan_O0): ...new function.
19854 (pass_tsan): Replace declaration with that of...
19855 (make_pass_tsan): ...new function.
19856 (pass_tsan_O0): Replace declaration with that of...
19857 (make_pass_tsan_O0): ...new function.
19858 (pass_lower_cf): Replace declaration with that of...
19859 (make_pass_lower_cf): ...new function.
19860 (pass_refactor_eh): Replace declaration with that of...
19861 (make_pass_refactor_eh): ...new function.
19862 (pass_lower_eh): Replace declaration with that of...
19863 (make_pass_lower_eh): ...new function.
19864 (pass_lower_eh_dispatch): Replace declaration with that of...
19865 (make_pass_lower_eh_dispatch): ...new function.
19866 (pass_lower_resx): Replace declaration with that of...
19867 (make_pass_lower_resx): ...new function.
19868 (pass_build_cfg): Replace declaration with that of...
19869 (make_pass_build_cfg): ...new function.
19870 (pass_early_tree_profile): Replace declaration with that of...
19871 (make_pass_early_tree_profile): ...new function.
19872 (pass_cleanup_eh): Replace declaration with that of...
19873 (make_pass_cleanup_eh): ...new function.
19874 (pass_sra): Replace declaration with that of...
19875 (make_pass_sra): ...new function.
19876 (pass_sra_early): Replace declaration with that of...
19877 (make_pass_sra_early): ...new function.
19878 (pass_early_ipa_sra): Replace declaration with that of...
19879 (make_pass_early_ipa_sra): ...new function.
19880 (pass_tail_recursion): Replace declaration with that of...
19881 (make_pass_tail_recursion): ...new function.
19882 (pass_tail_calls): Replace declaration with that of...
19883 (make_pass_tail_calls): ...new function.
19884 (pass_tree_loop): Replace declaration with that of...
19885 (make_pass_tree_loop): ...new function.
19886 (pass_tree_loop_init): Replace declaration with that of...
19887 (make_pass_tree_loop_init): ...new function.
19888 (pass_lim): Replace declaration with that of...
19889 (make_pass_lim): ...new function.
19890 (pass_tree_unswitch): Replace declaration with that of...
19891 (make_pass_tree_unswitch): ...new function.
19892 (pass_predcom): Replace declaration with that of...
19893 (make_pass_predcom): ...new function.
19894 (pass_iv_canon): Replace declaration with that of...
19895 (make_pass_iv_canon): ...new function.
19896 (pass_scev_cprop): Replace declaration with that of...
19897 (make_pass_scev_cprop): ...new function.
19898 (pass_empty_loop): Replace declaration with that of...
19899 (make_pass_empty_loop): ...new function.
19900 (pass_record_bounds): Replace declaration with that of...
19901 (make_pass_record_bounds): ...new function.
19902 (pass_graphite): Replace declaration with that of...
19903 (make_pass_graphite): ...new function.
19904 (pass_graphite_transforms): Replace declaration with that of...
19905 (make_pass_graphite_transforms): ...new function.
19906 (pass_if_conversion): Replace declaration with that of...
19907 (make_pass_if_conversion): ...new function.
19908 (pass_loop_distribution): Replace declaration with that of...
19909 (make_pass_loop_distribution): ...new function.
19910 (pass_vectorize): Replace declaration with that of...
19911 (make_pass_vectorize): ...new function.
19912 (pass_slp_vectorize): Replace declaration with that of...
19913 (make_pass_slp_vectorize): ...new function.
19914 (pass_complete_unroll): Replace declaration with that of...
19915 (make_pass_complete_unroll): ...new function.
19916 (pass_complete_unrolli): Replace declaration with that of...
19917 (make_pass_complete_unrolli): ...new function.
19918 (pass_parallelize_loops): Replace declaration with that of...
19919 (make_pass_parallelize_loops): ...new function.
19920 (pass_loop_prefetch): Replace declaration with that of...
19921 (make_pass_loop_prefetch): ...new function.
19922 (pass_iv_optimize): Replace declaration with that of...
19923 (make_pass_iv_optimize): ...new function.
19924 (pass_tree_loop_done): Replace declaration with that of...
19925 (make_pass_tree_loop_done): ...new function.
19926 (pass_ch): Replace declaration with that of...
19927 (make_pass_ch): ...new function.
19928 (pass_ccp): Replace declaration with that of...
19929 (make_pass_ccp): ...new function.
19930 (pass_phi_only_cprop): Replace declaration with that of...
19931 (make_pass_phi_only_cprop): ...new function.
19932 (pass_build_ssa): Replace declaration with that of...
19933 (make_pass_build_ssa): ...new function.
19934 (pass_build_alias): Replace declaration with that of...
19935 (make_pass_build_alias): ...new function.
19936 (pass_build_ealias): Replace declaration with that of...
19937 (make_pass_build_ealias): ...new function.
19938 (pass_dominator): Replace declaration with that of...
19939 (make_pass_dominator): ...new function.
19940 (pass_dce): Replace declaration with that of...
19941 (make_pass_dce): ...new function.
19942 (pass_dce_loop): Replace declaration with that of...
19943 (make_pass_dce_loop): ...new function.
19944 (pass_cd_dce): Replace declaration with that of...
19945 (make_pass_cd_dce): ...new function.
19946 (pass_call_cdce): Replace declaration with that of...
19947 (make_pass_call_cdce): ...new function.
19948 (pass_merge_phi): Replace declaration with that of...
19949 (make_pass_merge_phi): ...new function.
19950 (pass_split_crit_edges): Replace declaration with that of...
19951 (make_pass_split_crit_edges): ...new function.
19952 (pass_pre): Replace declaration with that of...
19953 (make_pass_pre): ...new function.
19954 (pass_profile): Replace declaration with that of...
19955 (make_pass_profile): ...new function.
19956 (pass_strip_predict_hints): Replace declaration with that of...
19957 (make_pass_strip_predict_hints): ...new function.
19958 (pass_lower_complex_O0): Replace declaration with that of...
19959 (make_pass_lower_complex_O0): ...new function.
19960 (pass_lower_complex): Replace declaration with that of...
19961 (make_pass_lower_complex): ...new function.
19962 (pass_lower_vector): Replace declaration with that of...
19963 (make_pass_lower_vector): ...new function.
19964 (pass_lower_vector_ssa): Replace declaration with that of...
19965 (make_pass_lower_vector_ssa): ...new function.
19966 (pass_lower_omp): Replace declaration with that of...
19967 (make_pass_lower_omp): ...new function.
19968 (pass_diagnose_omp_blocks): Replace declaration with that of...
19969 (make_pass_diagnose_omp_blocks): ...new function.
19970 (pass_expand_omp): Replace declaration with that of...
19971 (make_pass_expand_omp): ...new function.
19972 (pass_expand_omp_ssa): Replace declaration with that of...
19973 (make_pass_expand_omp_ssa): ...new function.
19974 (pass_object_sizes): Replace declaration with that of...
19975 (make_pass_object_sizes): ...new function.
19976 (pass_strlen): Replace declaration with that of...
19977 (make_pass_strlen): ...new function.
19978 (pass_fold_builtins): Replace declaration with that of...
19979 (make_pass_fold_builtins): ...new function.
19980 (pass_stdarg): Replace declaration with that of...
19981 (make_pass_stdarg): ...new function.
19982 (pass_early_warn_uninitialized): Replace declaration with that of...
19983 (make_pass_early_warn_uninitialized): ...new function.
19984 (pass_late_warn_uninitialized): Replace declaration with that of...
19985 (make_pass_late_warn_uninitialized): ...new function.
19986 (pass_cse_reciprocals): Replace declaration with that of...
19987 (make_pass_cse_reciprocals): ...new function.
19988 (pass_cse_sincos): Replace declaration with that of...
19989 (make_pass_cse_sincos): ...new function.
19990 (pass_optimize_bswap): Replace declaration with that of...
19991 (make_pass_optimize_bswap): ...new function.
19992 (pass_optimize_widening_mul): Replace declaration with that of...
19993 (make_pass_optimize_widening_mul): ...new function.
19994 (pass_warn_function_return): Replace declaration with that of...
19995 (make_pass_warn_function_return): ...new function.
19996 (pass_warn_function_noreturn): Replace declaration with that of...
19997 (make_pass_warn_function_noreturn): ...new function.
19998 (pass_cselim): Replace declaration with that of...
19999 (make_pass_cselim): ...new function.
20000 (pass_phiopt): Replace declaration with that of...
20001 (make_pass_phiopt): ...new function.
20002 (pass_forwprop): Replace declaration with that of...
20003 (make_pass_forwprop): ...new function.
20004 (pass_phiprop): Replace declaration with that of...
20005 (make_pass_phiprop): ...new function.
20006 (pass_tree_ifcombine): Replace declaration with that of...
20007 (make_pass_tree_ifcombine): ...new function.
20008 (pass_dse): Replace declaration with that of...
20009 (make_pass_dse): ...new function.
20010 (pass_nrv): Replace declaration with that of...
20011 (make_pass_nrv): ...new function.
20012 (pass_rename_ssa_copies): Replace declaration with that of...
20013 (make_pass_rename_ssa_copies): ...new function.
20014 (pass_sink_code): Replace declaration with that of...
20015 (make_pass_sink_code): ...new function.
20016 (pass_fre): Replace declaration with that of...
20017 (make_pass_fre): ...new function.
20018 (pass_check_data_deps): Replace declaration with that of...
20019 (make_pass_check_data_deps): ...new function.
20020 (pass_copy_prop): Replace declaration with that of...
20021 (make_pass_copy_prop): ...new function.
20022 (pass_vrp): Replace declaration with that of...
20023 (make_pass_vrp): ...new function.
20024 (pass_uncprop): Replace declaration with that of...
20025 (make_pass_uncprop): ...new function.
20026 (pass_return_slot): Replace declaration with that of...
20027 (make_pass_return_slot): ...new function.
20028 (pass_reassoc): Replace declaration with that of...
20029 (make_pass_reassoc): ...new function.
20030 (pass_rebuild_cgraph_edges): Replace declaration with that of...
20031 (make_pass_rebuild_cgraph_edges): ...new function.
20032 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20033 (make_pass_remove_cgraph_callee_edges): ...new function.
20034 (pass_build_cgraph_edges): Replace declaration with that of...
20035 (make_pass_build_cgraph_edges): ...new function.
20036 (pass_local_pure_const): Replace declaration with that of...
20037 (make_pass_local_pure_const): ...new function.
20038 (pass_tracer): Replace declaration with that of...
20039 (make_pass_tracer): ...new function.
20040 (pass_warn_unused_result): Replace declaration with that of...
20041 (make_pass_warn_unused_result): ...new function.
20042 (pass_diagnose_tm_blocks): Replace declaration with that of...
20043 (make_pass_diagnose_tm_blocks): ...new function.
20044 (pass_lower_tm): Replace declaration with that of...
20045 (make_pass_lower_tm): ...new function.
20046 (pass_tm_init): Replace declaration with that of...
20047 (make_pass_tm_init): ...new function.
20048 (pass_tm_mark): Replace declaration with that of...
20049 (make_pass_tm_mark): ...new function.
20050 (pass_tm_memopt): Replace declaration with that of...
20051 (make_pass_tm_memopt): ...new function.
20052 (pass_tm_edges): Replace declaration with that of...
20053 (make_pass_tm_edges): ...new function.
20054 (pass_split_functions): Replace declaration with that of...
20055 (make_pass_split_functions): ...new function.
20056 (pass_feedback_split_functions): Replace declaration with that of...
20057 (make_pass_feedback_split_functions): ...new function.
20058 (pass_strength_reduction): Replace declaration with that of...
20059 (make_pass_strength_reduction): ...new function.
20060 (pass_ipa_lower_emutls): Replace declaration with that of...
20061 (make_pass_ipa_lower_emutls): ...new function.
20062 (pass_ipa_function_and_variable_visibility): Replace declaration with
20064 (make_pass_ipa_function_and_variable_visibility): ...new function.
20065 (pass_ipa_tree_profile): Replace declaration with that of...
20066 (make_pass_ipa_tree_profile): ...new function.
20067 (pass_early_local_passes): Replace declaration with that of...
20068 (make_pass_early_local_passes): ...new function.
20069 (pass_ipa_whole_program_visibility): Replace declaration with that
20071 (make_pass_ipa_whole_program_visibility): ...new function.
20072 (pass_ipa_lto_gimple_out): Replace declaration with that of...
20073 (make_pass_ipa_lto_gimple_out): ...new function.
20074 (pass_ipa_increase_alignment): Replace declaration with that of...
20075 (make_pass_ipa_increase_alignment): ...new function.
20076 (pass_ipa_inline): Replace declaration with that of...
20077 (make_pass_ipa_inline): ...new function.
20078 (pass_ipa_free_lang_data): Replace declaration with that of...
20079 (make_pass_ipa_free_lang_data): ...new function.
20080 (pass_ipa_free_inline_summary): Replace declaration with that of...
20081 (make_pass_ipa_free_inline_summary): ...new function.
20082 (pass_ipa_cp): Replace declaration with that of...
20083 (make_pass_ipa_cp): ...new function.
20084 (pass_ipa_reference): Replace declaration with that of...
20085 (make_pass_ipa_reference): ...new function.
20086 (pass_ipa_pure_const): Replace declaration with that of...
20087 (make_pass_ipa_pure_const): ...new function.
20088 (pass_ipa_pta): Replace declaration with that of...
20089 (make_pass_ipa_pta): ...new function.
20090 (pass_ipa_lto_finish_out): Replace declaration with that of...
20091 (make_pass_ipa_lto_finish_out): ...new function.
20092 (pass_ipa_tm): Replace declaration with that of...
20093 (make_pass_ipa_tm): ...new function.
20094 (pass_ipa_profile): Replace declaration with that of...
20095 (make_pass_ipa_profile): ...new function.
20096 (pass_ipa_cdtor_merge): Replace declaration with that of...
20097 (make_pass_ipa_cdtor_merge): ...new function.
20098 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20100 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20101 (pass_init_datastructures): Replace declaration with that of...
20102 (make_pass_init_datastructures): ...new function.
20103 (pass_fixup_cfg): Replace declaration with that of...
20104 (make_pass_fixup_cfg): ...new function.
20105 (pass_expand): Replace declaration with that of...
20106 (make_pass_expand): ...new function.
20107 (pass_instantiate_virtual_regs): Replace declaration with that of...
20108 (make_pass_instantiate_virtual_regs): ...new function.
20109 (pass_rtl_fwprop): Replace declaration with that of...
20110 (make_pass_rtl_fwprop): ...new function.
20111 (pass_rtl_fwprop_addr): Replace declaration with that of...
20112 (make_pass_rtl_fwprop_addr): ...new function.
20113 (pass_jump): Replace declaration with that of...
20114 (make_pass_jump): ...new function.
20115 (pass_jump2): Replace declaration with that of...
20116 (make_pass_jump2): ...new function.
20117 (pass_lower_subreg): Replace declaration with that of...
20118 (make_pass_lower_subreg): ...new function.
20119 (pass_cse): Replace declaration with that of...
20120 (make_pass_cse): ...new function.
20121 (pass_fast_rtl_dce): Replace declaration with that of...
20122 (make_pass_fast_rtl_dce): ...new function.
20123 (pass_ud_rtl_dce): Replace declaration with that of...
20124 (make_pass_ud_rtl_dce): ...new function.
20125 (pass_rtl_dce): Replace declaration with that of...
20126 (make_pass_rtl_dce): ...new function.
20127 (pass_rtl_dse1): Replace declaration with that of...
20128 (make_pass_rtl_dse1): ...new function.
20129 (pass_rtl_dse2): Replace declaration with that of...
20130 (make_pass_rtl_dse2): ...new function.
20131 (pass_rtl_dse3): Replace declaration with that of...
20132 (make_pass_rtl_dse3): ...new function.
20133 (pass_rtl_cprop): Replace declaration with that of...
20134 (make_pass_rtl_cprop): ...new function.
20135 (pass_rtl_pre): Replace declaration with that of...
20136 (make_pass_rtl_pre): ...new function.
20137 (pass_rtl_hoist): Replace declaration with that of...
20138 (make_pass_rtl_hoist): ...new function.
20139 (pass_rtl_store_motion): Replace declaration with that of...
20140 (make_pass_rtl_store_motion): ...new function.
20141 (pass_cse_after_global_opts): Replace declaration with that of...
20142 (make_pass_cse_after_global_opts): ...new function.
20143 (pass_rtl_ifcvt): Replace declaration with that of...
20144 (make_pass_rtl_ifcvt): ...new function.
20145 (pass_into_cfg_layout_mode): Replace declaration with that of...
20146 (make_pass_into_cfg_layout_mode): ...new function.
20147 (pass_outof_cfg_layout_mode): Replace declaration with that of...
20148 (make_pass_outof_cfg_layout_mode): ...new function.
20149 (pass_loop2): Replace declaration with that of...
20150 (make_pass_loop2): ...new function.
20151 (pass_rtl_loop_init): Replace declaration with that of...
20152 (make_pass_rtl_loop_init): ...new function.
20153 (pass_rtl_move_loop_invariants): Replace declaration with that of...
20154 (make_pass_rtl_move_loop_invariants): ...new function.
20155 (pass_rtl_unswitch): Replace declaration with that of...
20156 (make_pass_rtl_unswitch): ...new function.
20157 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20158 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20159 (pass_rtl_doloop): Replace declaration with that of...
20160 (make_pass_rtl_doloop): ...new function.
20161 (pass_rtl_loop_done): Replace declaration with that of...
20162 (make_pass_rtl_loop_done): ...new function.
20163 (pass_web): Replace declaration with that of...
20164 (make_pass_web): ...new function.
20165 (pass_cse2): Replace declaration with that of...
20166 (make_pass_cse2): ...new function.
20167 (pass_df_initialize_opt): Replace declaration with that of...
20168 (make_pass_df_initialize_opt): ...new function.
20169 (pass_df_initialize_no_opt): Replace declaration with that of...
20170 (make_pass_df_initialize_no_opt): ...new function.
20171 (pass_reginfo_init): Replace declaration with that of...
20172 (make_pass_reginfo_init): ...new function.
20173 (pass_inc_dec): Replace declaration with that of...
20174 (make_pass_inc_dec): ...new function.
20175 (pass_stack_ptr_mod): Replace declaration with that of...
20176 (make_pass_stack_ptr_mod): ...new function.
20177 (pass_initialize_regs): Replace declaration with that of...
20178 (make_pass_initialize_regs): ...new function.
20179 (pass_combine): Replace declaration with that of...
20180 (make_pass_combine): ...new function.
20181 (pass_if_after_combine): Replace declaration with that of...
20182 (make_pass_if_after_combine): ...new function.
20183 (pass_ree): Replace declaration with that of...
20184 (make_pass_ree): ...new function.
20185 (pass_partition_blocks): Replace declaration with that of...
20186 (make_pass_partition_blocks): ...new function.
20187 (pass_match_asm_constraints): Replace declaration with that of...
20188 (make_pass_match_asm_constraints): ...new function.
20189 (pass_regmove): Replace declaration with that of...
20190 (make_pass_regmove): ...new function.
20191 (pass_split_all_insns): Replace declaration with that of...
20192 (make_pass_split_all_insns): ...new function.
20193 (pass_fast_rtl_byte_dce): Replace declaration with that of...
20194 (make_pass_fast_rtl_byte_dce): ...new function.
20195 (pass_lower_subreg2): Replace declaration with that of...
20196 (make_pass_lower_subreg2): ...new function.
20197 (pass_mode_switching): Replace declaration with that of...
20198 (make_pass_mode_switching): ...new function.
20199 (pass_sms): Replace declaration with that of...
20200 (make_pass_sms): ...new function.
20201 (pass_sched): Replace declaration with that of...
20202 (make_pass_sched): ...new function.
20203 (pass_ira): Replace declaration with that of...
20204 (make_pass_ira): ...new function.
20205 (pass_reload): Replace declaration with that of...
20206 (make_pass_reload): ...new function.
20207 (pass_clean_state): Replace declaration with that of...
20208 (make_pass_clean_state): ...new function.
20209 (pass_branch_prob): Replace declaration with that of...
20210 (make_pass_branch_prob): ...new function.
20211 (pass_value_profile_transformations): Replace declaration with that
20213 (make_pass_value_profile_transformations): ...new function.
20214 (pass_postreload_cse): Replace declaration with that of...
20215 (make_pass_postreload_cse): ...new function.
20216 (pass_gcse2): Replace declaration with that of...
20217 (make_pass_gcse2): ...new function.
20218 (pass_split_after_reload): Replace declaration with that of...
20219 (make_pass_split_after_reload): ...new function.
20220 (pass_branch_target_load_optimize1): Replace declaration with that
20222 (make_pass_branch_target_load_optimize1): ...new function.
20223 (pass_thread_prologue_and_epilogue): Replace declaration with that
20225 (make_pass_thread_prologue_and_epilogue): ...new function.
20226 (pass_stack_adjustments): Replace declaration with that of...
20227 (make_pass_stack_adjustments): ...new function.
20228 (pass_peephole2): Replace declaration with that of...
20229 (make_pass_peephole2): ...new function.
20230 (pass_if_after_reload): Replace declaration with that of...
20231 (make_pass_if_after_reload): ...new function.
20232 (pass_regrename): Replace declaration with that of...
20233 (make_pass_regrename): ...new function.
20234 (pass_cprop_hardreg): Replace declaration with that of...
20235 (make_pass_cprop_hardreg): ...new function.
20236 (pass_reorder_blocks): Replace declaration with that of...
20237 (make_pass_reorder_blocks): ...new function.
20238 (pass_branch_target_load_optimize2): Replace declaration with that
20240 (make_pass_branch_target_load_optimize2): ...new function.
20241 (pass_leaf_regs): Replace declaration with that of...
20242 (make_pass_leaf_regs): ...new function.
20243 (pass_split_before_sched2): Replace declaration with that of...
20244 (make_pass_split_before_sched2): ...new function.
20245 (pass_compare_elim_after_reload): Replace declaration with that of...
20246 (make_pass_compare_elim_after_reload): ...new function.
20247 (pass_sched2): Replace declaration with that of...
20248 (make_pass_sched2): ...new function.
20249 (pass_stack_regs): Replace declaration with that of...
20250 (make_pass_stack_regs): ...new function.
20251 (pass_stack_regs_run): Replace declaration with that of...
20252 (make_pass_stack_regs_run): ...new function.
20253 (pass_df_finish): Replace declaration with that of...
20254 (make_pass_df_finish): ...new function.
20255 (pass_compute_alignments): Replace declaration with that of...
20256 (make_pass_compute_alignments): ...new function.
20257 (pass_duplicate_computed_gotos): Replace declaration with that of...
20258 (make_pass_duplicate_computed_gotos): ...new function.
20259 (pass_variable_tracking): Replace declaration with that of...
20260 (make_pass_variable_tracking): ...new function.
20261 (pass_free_cfg): Replace declaration with that of...
20262 (make_pass_free_cfg): ...new function.
20263 (pass_machine_reorg): Replace declaration with that of...
20264 (make_pass_machine_reorg): ...new function.
20265 (pass_cleanup_barriers): Replace declaration with that of...
20266 (make_pass_cleanup_barriers): ...new function.
20267 (pass_delay_slots): Replace declaration with that of...
20268 (make_pass_delay_slots): ...new function.
20269 (pass_split_for_shorten_branches): Replace declaration with that of...
20270 (make_pass_split_for_shorten_branches): ...new function.
20271 (pass_split_before_regstack): Replace declaration with that of...
20272 (make_pass_split_before_regstack): ...new function.
20273 (pass_convert_to_eh_region_ranges): Replace declaration with that
20275 (make_pass_convert_to_eh_region_ranges): ...new function.
20276 (pass_shorten_branches): Replace declaration with that of...
20277 (make_pass_shorten_branches): ...new function.
20278 (pass_set_nothrow_function_flags): Replace declaration with that of...
20279 (make_pass_set_nothrow_function_flags): ...new function.
20280 (pass_dwarf2_frame): Replace declaration with that of...
20281 (make_pass_dwarf2_frame): ...new function.
20282 (pass_final): Replace declaration with that of...
20283 (make_pass_final): ...new function.
20284 (pass_rtl_seqabstr): Replace declaration with that of...
20285 (make_pass_rtl_seqabstr): ...new function.
20286 (pass_release_ssa_names): Replace declaration with that of...
20287 (make_pass_release_ssa_names): ...new function.
20288 (pass_early_inline): Replace declaration with that of...
20289 (make_pass_early_inline): ...new function.
20290 (pass_inline_parameters): Replace declaration with that of...
20291 (make_pass_inline_parameters): ...new function.
20292 (pass_update_address_taken): Replace declaration with that of...
20293 (make_pass_update_address_taken): ...new function.
20294 (pass_convert_switch): Replace declaration with that of...
20295 (make_pass_convert_switch): ...new function.
20296 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20297 to a subclass of simple_ipa_opt_pass along with...
20298 (pass_data_ipa_tree_profile): ...new pass_data instance and...
20299 (make_pass_ipa_tree_profile): ...new function.
20300 * tree-sra.c (pass_sra_early): Convert from a global struct to a
20301 subclass of gimple_opt_pass along with...
20302 (pass_data_sra_early): ...new pass_data instance and...
20303 (make_pass_sra_early): ...new function.
20304 (pass_sra): Convert from a global struct to a subclass of
20305 gimple_opt_pass along with...
20306 (pass_data_sra): ...new pass_data instance and...
20307 (make_pass_sra): ...new function.
20308 (pass_early_ipa_sra): Convert from a global struct to a subclass of
20309 gimple_opt_pass along with...
20310 (pass_data_early_ipa_sra): ...new pass_data instance and...
20311 (make_pass_early_ipa_sra): ...new function.
20312 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20313 subclass of gimple_opt_pass along with...
20314 (pass_data_ccp): ...new pass_data instance and...
20315 (make_pass_ccp): ...new function.
20316 (pass_fold_builtins): Convert from a global struct to a subclass of
20317 gimple_opt_pass along with...
20318 (pass_data_fold_builtins): ...new pass_data instance and...
20319 (make_pass_fold_builtins): ...new function.
20320 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20321 subclass of gimple_opt_pass along with...
20322 (pass_data_copy_prop): ...new pass_data instance and...
20323 (make_pass_copy_prop): ...new function.
20324 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20325 global struct to a subclass of gimple_opt_pass along with...
20326 (pass_data_rename_ssa_copies): ...new pass_data instance and...
20327 (make_pass_rename_ssa_copies): ...new function.
20328 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20329 subclass of gimple_opt_pass along with...
20330 (pass_data_dce): ...new pass_data instance and...
20331 (make_pass_dce): ...new function.
20332 (pass_dce_loop): Convert from a global struct to a subclass of
20333 gimple_opt_pass along with...
20334 (pass_data_dce_loop): ...new pass_data instance and...
20335 (make_pass_dce_loop): ...new function.
20336 (pass_cd_dce): Convert from a global struct to a subclass of
20337 gimple_opt_pass along with...
20338 (pass_data_cd_dce): ...new pass_data instance and...
20339 (make_pass_cd_dce): ...new function.
20340 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20341 subclass of gimple_opt_pass along with...
20342 (pass_data_dominator): ...new pass_data instance and...
20343 (make_pass_dominator): ...new function.
20344 (pass_phi_only_cprop): Convert from a global struct to a subclass of
20345 gimple_opt_pass along with...
20346 (pass_data_phi_only_cprop): ...new pass_data instance and...
20347 (make_pass_phi_only_cprop): ...new function.
20348 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20349 subclass of gimple_opt_pass along with...
20350 (pass_data_dse): ...new pass_data instance and...
20351 (make_pass_dse): ...new function.
20352 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20353 a subclass of gimple_opt_pass along with...
20354 (pass_data_forwprop): ...new pass_data instance and...
20355 (make_pass_forwprop): ...new function.
20356 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20357 struct to a subclass of gimple_opt_pass along with...
20358 (pass_data_tree_ifcombine): ...new pass_data instance and...
20359 (make_pass_tree_ifcombine): ...new function.
20360 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20361 subclass of gimple_opt_pass along with...
20362 (pass_data_ch): ...new pass_data instance and...
20363 (make_pass_ch): ...new function.
20364 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20365 subclass of gimple_opt_pass along with...
20366 (pass_data_tree_loop): ...new pass_data instance and...
20367 (make_pass_tree_loop): ...new function.
20368 (pass_tree_loop_init): Convert from a global struct to a subclass of
20369 gimple_opt_pass along with...
20370 (pass_data_tree_loop_init): ...new pass_data instance and...
20371 (make_pass_tree_loop_init): ...new function.
20372 (pass_lim): Convert from a global struct to a subclass of
20373 gimple_opt_pass along with...
20374 (pass_data_lim): ...new pass_data instance and...
20375 (make_pass_lim): ...new function.
20376 (pass_tree_unswitch): Convert from a global struct to a subclass of
20377 gimple_opt_pass along with...
20378 (pass_data_tree_unswitch): ...new pass_data instance and...
20379 (make_pass_tree_unswitch): ...new function.
20380 (pass_predcom): Convert from a global struct to a subclass of
20381 gimple_opt_pass along with...
20382 (pass_data_predcom): ...new pass_data instance and...
20383 (make_pass_predcom): ...new function.
20384 (pass_vectorize): Convert from a global struct to a subclass of
20385 gimple_opt_pass along with...
20386 (pass_data_vectorize): ...new pass_data instance and...
20387 (make_pass_vectorize): ...new function.
20388 (pass_graphite): Convert from a global struct to a subclass of
20389 gimple_opt_pass along with...
20390 (pass_data_graphite): ...new pass_data instance and...
20391 (make_pass_graphite): ...new function.
20392 (pass_graphite_transforms): Convert from a global struct to a subclass
20393 of gimple_opt_pass along with...
20394 (pass_data_graphite_transforms): ...new pass_data instance and...
20395 (make_pass_graphite_transforms): ...new function.
20396 (pass_check_data_deps): Convert from a global struct to a subclass of
20397 gimple_opt_pass along with...
20398 (pass_data_check_data_deps): ...new pass_data instance and...
20399 (make_pass_check_data_deps): ...new function.
20400 (pass_iv_canon): Convert from a global struct to a subclass of
20401 gimple_opt_pass along with...
20402 (pass_data_iv_canon): ...new pass_data instance and...
20403 (make_pass_iv_canon): ...new function.
20404 (pass_scev_cprop): Convert from a global struct to a subclass of
20405 gimple_opt_pass along with...
20406 (pass_data_scev_cprop): ...new pass_data instance and...
20407 (make_pass_scev_cprop): ...new function.
20408 (pass_record_bounds): Convert from a global struct to a subclass of
20409 gimple_opt_pass along with...
20410 (pass_data_record_bounds): ...new pass_data instance and...
20411 (make_pass_record_bounds): ...new function.
20412 (pass_complete_unroll): Convert from a global struct to a subclass of
20413 gimple_opt_pass along with...
20414 (pass_data_complete_unroll): ...new pass_data instance and...
20415 (make_pass_complete_unroll): ...new function.
20416 (pass_complete_unrolli): Convert from a global struct to a subclass of
20417 gimple_opt_pass along with...
20418 (pass_data_complete_unrolli): ...new pass_data instance and...
20419 (make_pass_complete_unrolli): ...new function.
20420 (pass_parallelize_loops): Convert from a global struct to a subclass
20421 of gimple_opt_pass along with...
20422 (pass_data_parallelize_loops): ...new pass_data instance and...
20423 (make_pass_parallelize_loops): ...new function.
20424 (pass_loop_prefetch): Convert from a global struct to a subclass of
20425 gimple_opt_pass along with...
20426 (pass_data_loop_prefetch): ...new pass_data instance and...
20427 (make_pass_loop_prefetch): ...new function.
20428 (pass_iv_optimize): Convert from a global struct to a subclass of
20429 gimple_opt_pass along with...
20430 (pass_data_iv_optimize): ...new pass_data instance and...
20431 (make_pass_iv_optimize): ...new function.
20432 (pass_tree_loop_done): Convert from a global struct to a subclass of
20433 gimple_opt_pass along with...
20434 (pass_data_tree_loop_done): ...new pass_data instance and...
20435 (make_pass_tree_loop_done): ...new function.
20436 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20437 struct to a subclass of gimple_opt_pass along with...
20438 (pass_data_cse_reciprocals): ...new pass_data instance and...
20439 (make_pass_cse_reciprocals): ...new function.
20440 (pass_cse_sincos): Convert from a global struct to a subclass of
20441 gimple_opt_pass along with...
20442 (pass_data_cse_sincos): ...new pass_data instance and...
20443 (make_pass_cse_sincos): ...new function.
20444 (pass_optimize_bswap): Convert from a global struct to a subclass of
20445 gimple_opt_pass along with...
20446 (pass_data_optimize_bswap): ...new pass_data instance and...
20447 (make_pass_optimize_bswap): ...new function.
20448 (pass_optimize_widening_mul): Convert from a global struct to a
20449 subclass of gimple_opt_pass along with...
20450 (pass_data_optimize_widening_mul): ...new pass_data instance and...
20451 (make_pass_optimize_widening_mul): ...new function.
20452 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20453 subclass of gimple_opt_pass along with...
20454 (pass_data_phiopt): ...new pass_data instance and...
20455 (make_pass_phiopt): ...new function.
20456 (pass_cselim): Convert from a global struct to a subclass of
20457 gimple_opt_pass along with...
20458 (pass_data_cselim): ...new pass_data instance and...
20459 (make_pass_cselim): ...new function.
20460 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20461 subclass of gimple_opt_pass along with...
20462 (pass_data_phiprop): ...new pass_data instance and...
20463 (make_pass_phiprop): ...new function.
20464 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20465 subclass of gimple_opt_pass along with...
20466 (pass_data_pre): ...new pass_data instance and...
20467 (make_pass_pre): ...new function.
20468 (pass_fre): Convert from a global struct to a subclass of
20469 gimple_opt_pass along with...
20470 (pass_data_fre): ...new pass_data instance and...
20471 (make_pass_fre): ...new function.
20472 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20473 subclass of gimple_opt_pass along with...
20474 (pass_data_reassoc): ...new pass_data instance and...
20475 (make_pass_reassoc): ...new function.
20476 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20477 subclass of gimple_opt_pass along with...
20478 (pass_data_sink_code): ...new pass_data instance and...
20479 (make_pass_sink_code): ...new function.
20480 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20481 subclass of gimple_opt_pass along with...
20482 (pass_data_strlen): ...new pass_data instance and...
20483 (make_pass_strlen): ...new function.
20484 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20485 struct to a subclass of gimple_opt_pass along with...
20486 (pass_data_build_alias): ...new pass_data instance and...
20487 (make_pass_build_alias): ...new function.
20488 (pass_build_ealias): Convert from a global struct to a subclass of
20489 gimple_opt_pass along with...
20490 (pass_data_build_ealias): ...new pass_data instance and...
20491 (make_pass_build_ealias): ...new function.
20492 (pass_ipa_pta): Convert from a global struct to a subclass of
20493 simple_ipa_opt_pass along with...
20494 (pass_data_ipa_pta): ...new pass_data instance and...
20495 (make_pass_ipa_pta): ...new function.
20496 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20497 subclass of gimple_opt_pass along with...
20498 (pass_data_uncprop): ...new pass_data instance and...
20499 (make_pass_uncprop): ...new function.
20500 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20501 global struct to a subclass of gimple_opt_pass along with...
20502 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20503 (make_pass_late_warn_uninitialized): ...new function.
20504 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20505 to a subclass of gimple_opt_pass along with...
20506 (pass_data_init_datastructures): ...new pass_data instance and...
20507 (make_pass_init_datastructures): ...new function.
20508 (pass_early_warn_uninitialized): Convert from a global struct to a
20509 subclass of gimple_opt_pass along with...
20510 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20511 (make_pass_early_warn_uninitialized): ...new function.
20512 (pass_update_address_taken): Convert from a global struct to a
20513 subclass of gimple_opt_pass along with...
20514 (pass_data_update_address_taken): ...new pass_data instance and...
20515 (make_pass_update_address_taken): ...new function.
20516 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20517 struct to a subclass of gimple_opt_pass along with...
20518 (pass_data_release_ssa_names): ...new pass_data instance and...
20519 (make_pass_release_ssa_names): ...new function.
20520 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20521 subclass of gimple_opt_pass along with...
20522 (pass_data_stdarg): ...new pass_data instance and...
20523 (make_pass_stdarg): ...new function.
20524 * tree-switch-conversion.c (pass_convert_switch): Convert from a
20525 global struct to a subclass of gimple_opt_pass along with...
20526 (pass_data_convert_switch): ...new pass_data instance and...
20527 (make_pass_convert_switch): ...new function.
20528 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20529 to a subclass of gimple_opt_pass along with...
20530 (pass_data_tail_recursion): ...new pass_data instance and...
20531 (make_pass_tail_recursion): ...new function.
20532 (pass_tail_calls): Convert from a global struct to a subclass of
20533 gimple_opt_pass along with...
20534 (pass_data_tail_calls): ...new pass_data instance and...
20535 (make_pass_tail_calls): ...new function.
20536 * tree-vect-generic.c (pass_lower_vector): Convert from a global
20537 struct to a subclass of gimple_opt_pass along with...
20538 (pass_data_lower_vector): ...new pass_data instance and...
20539 (make_pass_lower_vector): ...new function.
20540 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20541 gimple_opt_pass along with...
20542 (pass_data_lower_vector_ssa): ...new pass_data instance and...
20543 (make_pass_lower_vector_ssa): ...new function.
20544 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20545 to a subclass of gimple_opt_pass along with...
20546 (pass_data_slp_vectorize): ...new pass_data instance and...
20547 (make_pass_slp_vectorize): ...new function.
20548 (pass_ipa_increase_alignment): Convert from a global struct to a
20549 subclass of simple_ipa_opt_pass along with...
20550 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20551 (make_pass_ipa_increase_alignment): ...new function.
20552 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20553 gimple_opt_pass along with...
20554 (pass_data_vrp): ...new pass_data instance and...
20555 (make_pass_vrp): ...new function.
20556 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20557 subclass of simple_ipa_opt_pass along with...
20558 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20559 (make_pass_ipa_free_lang_data): ...new function.
20560 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20561 gimple_opt_pass along with...
20562 (pass_data_tsan): ...new pass_data instance and...
20563 (make_pass_tsan): ...new function.
20564 (pass_tsan_O0): Convert from a global struct to a subclass of
20565 gimple_opt_pass along with...
20566 (pass_data_tsan_O0): ...new pass_data instance and...
20567 (make_pass_tsan_O0): ...new function.
20568 * var-tracking.c (pass_variable_tracking): Convert from a global
20569 struct to a subclass of rtl_opt_pass along with...
20570 (pass_data_variable_tracking): ...new pass_data instance and...
20571 (make_pass_variable_tracking): ...new function.
20572 * web.c (pass_web): Convert from a global struct to a subclass of
20573 rtl_opt_pass along with...
20574 (pass_data_web): ...new pass_data instance and...
20575 (make_pass_web): ...new function.
20576 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20577 declaration with that of...
20578 (make_pass_mode_switch_use): ...new function.
20579 (pass_resolve_sw_modes): Replace declaration with that of...
20580 (make_pass_resolve_sw_modes): ...new function.
20581 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20582 from a global struct to a subclass of rtl_opt_pass along with...
20583 (pass_data_mode_switch_use): ...new pass_data instance and...
20584 (make_pass_mode_switch_use): ...new function.
20585 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20586 from a global struct to a subclass of rtl_opt_pass along with...
20587 (pass_data_resolve_sw_modes): ...new pass_data instance and...
20588 (make_pass_resolve_sw_modes): ...new function.
20589 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20590 struct to a subclass of rtl_opt_pass along with...
20591 (pass_data_insert_vzeroupper): ...new pass_data instance and...
20592 (make_pass_insert_vzeroupper): ...new function.
20593 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20594 global struct to a subclass of rtl_opt_pass along with...
20595 (pass_data_work_around_errata): ...new pass_data instance and...
20596 (make_pass_work_around_errata): ...new function.
20597 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20598 struct to a subclass of rtl_opt_pass along with...
20599 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20600 (make_pass_mips_machine_reorg2): ...new function.
20602 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20604 * passes.c (pass_manager::operator new): New.
20606 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20608 Handwritten part of conversion of passes to C++ classes.
20610 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20611 (toplev.o): Add dep on PASS_MANAGER_H.
20612 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20613 of early local pases to reflect this moving from a global to a
20614 member of gcc::pass_manager.
20615 (cgraph_add_new_function): Likewise.
20616 * lto-cgraph.c (lto_output_node): Update for conversion of
20617 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20618 * passes.c (opt_pass::clone): New.
20619 (opt_pass::gate): New.
20620 (opt_pass::execute): New.
20621 (opt_pass::opt_pass): New.
20622 (pass_manager::execute_early_local_passes): New.
20623 (pass_manager::execute_pass_mode_switching): new.
20624 (finish_optimization_passes): Convert to...
20625 (pass_manager::finish_optimization_passes): ...this.
20626 (finish_optimization_passes): Update for conversion of passes to
20628 (register_dump_files_1): Use has_gate since we cannot portably
20629 check a vtable entry against NULL.
20630 (dump_one_pass): Likewise.
20631 (ipa_write_summaries_2): Likewise.
20632 (ipa_write_optimization_summaries_1): Likewise.
20633 (ipa_read_summaries_1): Likewise.
20634 (ipa_read_optimization_summaries_1): Likewise.
20635 (execute_ipa_stmt_fixups): Likewise.
20636 (pass_manager::pass_manager): Rewrite pass-creation, invoking
20637 pass-creation functions rather than wiring up globals, and
20638 storing the results in fields of pass_manager generated using
20639 pass-instances.def.
20640 (pass_manager::dump_profile_report): Update for conversion of
20641 passes to C++ classes.
20642 (pass_manager::execute_ipa_summary_passes): Likewise.
20643 (execute_one_ipa_transform_pass): Likewise.
20644 (execute_one_pass): Use has_gate and has_execute since we cannot
20645 portably check a vtable entry against NULL.
20646 * pass_manager.h (pass_manager::finish_optimization_passes): New.
20647 (pass_manager): Use pass-instances.def to add fields for the
20648 various pass instances.
20649 * toplev.c (finalize): Update for move of
20650 finish_optimization_passes to a method of gcc::pass_manager.
20651 * toplev.h (finish_optimization_passes): Move to method of class
20653 * tree-pass.h (struct pass_data): New.
20654 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20655 (opt_pass::gate): Convert to virtual function.
20656 (opt_pass::~opt_pass): New.
20657 (opt_pass::clone): New.
20658 (opt_pass::execute): Convert to virtual function.
20659 (opt_pass::opt_pass): New.
20660 (opt_pass::ctxt_): new.
20661 (gimple_opt_pass): Convert to subclass of opt_pass.
20662 (gimple_opt_pass::gimple_opt_pass): New.
20663 (rtl_opt_pass): Convert to subclass of opt_pass.
20664 (rtl_opt_pass::rtl_opt_pass): New.
20665 (ipa_opt_pass_d): Convert to subclass of opt_pass.
20666 (ipa_opt_pass_d::ipa_opt_pass_d): New.
20667 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20668 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20669 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20670 invocation of pass_mode_switching to reflect this moving from a
20671 global to a member of gcc::pass_manager.
20672 (ix86_option_override): Rework how pass_insert_vzeroupper is
20673 added to the pass_manager to reflect autogenerated changes.
20674 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20676 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
20678 PR rtl-optimization/57708
20679 * recog.c (peep2_find_free_register): Validate all regs in a
20682 2013-08-05 Jan Hubicka <jh@suse.cz>
20685 * cgraph.c (verify_cgraph_node): Accept local flags from other
20687 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20688 (function_and_variable_visibility): Likewise.
20689 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20691 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20693 * graph.c (init_graph_slim_pretty_print): Remove.
20694 (print_graph_cfg): Do not call it. Use local pretty printer.
20695 (start_graph_dump): Likewise.
20697 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20699 * gimple-pretty-print.c (buffer): Remove.
20700 (initialized): Likewise.
20701 (maybe_init_pretty_print): Likewise.
20702 (print_gimple_stmt): Do not call it. Use non-static local
20703 pretty_printer variable.
20704 (print_gimple_expr): Likewise.
20705 (print_gimple_seq): Likewise.
20706 (gimple_dump_bb): Likewise.
20708 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20710 * asan.c (asan_pp): Remove.
20711 (asan_pp_initialized): Likewise.
20712 (asan_pp_initialize): Likewise.
20713 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
20714 (asan_emit_stack_protection): Tidy. Use local pretty printer.
20715 (asan_add_global): Likewise.
20717 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
20719 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
20720 * diagnostic.h (diagnostic_flush_buffer): Adjust.
20721 * pretty-print.c (pp_formatted_text_data): Likewise.
20722 (pp_indent): Rename from pp_base_indent.
20723 (pp_format): Rename from pp_base_format.
20724 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20725 (pp_format_verbatim): Rename from pp_base_format_verbatim.
20726 (pp_flush): Rename from pp_base_flush.
20727 (pp_set_line_maximum_length): Rename from
20728 pp_base_set_line_maximum_length.
20729 (pp_clear_output_area): Rename from pp_base_clear_output_area.
20730 (pp_set_prefix): Rename from pp_base_set_prefix.
20731 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20732 (pp_emit_prefix): Rename from pp_base_emit_prefix.
20733 (pp_append_text): Rename from pp_base_append_text.
20734 (pp_formatted_text): Rename from pp_base_formatted_text.
20735 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20736 (pp_remaining_character_count_for_line): Rename from
20737 pp_base_remaining_character_count_for_line.
20738 (pp_newline): Rename from pp_base_newline.
20739 (pp_character): Rename from pp_base_character.
20740 (pp_string): Rename from pp_base_string.
20741 (pp_maybe_space): Rename from pp_base_maybe_space.
20742 * asan.c (asan_pp_string): Adjust.
20743 (asan_emit_stack_protection): Likewise.
20744 (asan_add_global): Likewise.
20745 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20746 * tree-mudflap.c (mf_varname_tree): Likewise.
20747 * tree-pretty-print.c (pp_tree_identifier): Rename from
20748 pp_base_tree_identifier.
20749 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20750 Declare as function.
20752 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20754 * pretty-print.h (pp_bar_bar): New.
20755 (pp_ampersand_ampersand): Likewise.
20756 (pp_less_equal): Likewise.
20757 (pp_greater_equal): Likewise.
20758 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20759 printer functions instead of pp_string or operators and punctuators.
20760 (dump_gimple_call): Likewise.
20761 (dump_gimple_omp_for): Likewise.
20762 (dump_gimple_transaction): Likewise.
20763 (dump_gimple_phi): Likewise.
20764 (pp_gimple_stmt_1): Likewise.
20765 * sched-vis.c (print_insn): Likewise.
20766 * tree-mudflap.c (mf_varname_tree): Likewise.
20767 * tree-pretty-print.c (dump_block_node): Likewise.
20768 (dump_generic_node): Likewise.
20770 2013-08-02 Jan Hubicka <jh@suse.cz>
20772 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20774 * lto-streamer-out.c (tree_is_indexable): Results decls and
20775 parm decls are not indexable.
20776 (DFS_write_tree_body): Do not follow args and results.
20777 (hash_tree): Likewise.
20778 (output_functions): Rearrange so struct function is needed
20779 only when real body is output; be able to also ouptut abstract
20780 functions; output DECL_ARGUMENTS and DECL_RESULT.
20781 (lto_output): When not in WPA, ale store abstract functions.
20782 (write_symbol): Do not care about RESULT_DECL.
20783 (output_symbol_p): Handle correctly sbtract decls.
20784 * lto-streamer-in.c (input_function): Rearrange so struct
20785 function can be NULL at entry; allow streaming of
20786 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20787 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20788 sanity check during LTO.
20789 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20790 RESULT_DECl and DECL_ARGUMENTS.
20791 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20794 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20796 * pretty-print.h (pp_underscore): New.
20798 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20799 printer functions instead of pp_character.
20800 (dump_binary_rhs): Likewise.
20801 (dump_ternary_rhs): Likewise.
20802 (dump_gimple_call_args): Likewise.
20803 (pp_points_to_solution): Likewise.
20804 (dump_gimple_call): Likewise.
20805 (dump_gimple_switch): Likewise.
20806 (dump_gimple_cond): Likewise.
20807 (dump_gimple_bind): Likewise.
20808 (dump_gimple_try): Likewise.
20809 (dump_gimple_omp_for): Likewise.
20810 (dump_gimple_omp_continue): Likewise.
20811 (dump_gimple_omp_single): Likewise.
20812 (dump_gimple_omp_sections): Likewise.
20813 (dump_gimple_omp_block): Likewise.
20814 (dump_gimple_omp_critical): Likewise.
20815 (dump_gimple_transaction): Likewise.
20816 (dump_gimple_asm): Likewise.
20817 (dump_gimple_phi): Likewise.
20818 (dump_gimple_omp_parallel): Likewise.
20819 (dump_gimple_omp_task): Likewise.
20820 (dump_gimple_omp_atomic_load): Likewise.
20821 (dump_gimple_omp_atomic_store): Likewise.
20822 (dump_gimple_mem_ops): Likewise.
20823 (pp_gimple_stmt_1): Likewise.
20824 (pp_cfg_jump): Likewise.
20825 (dump_implicit_edges): Likewise.
20826 (gimple_dump_bb_for_graph): Likewise.
20827 * graph.c (draw_cfg_node): Likewise.
20828 * langhooks.c (lhd_print_error_function): Likewise.
20829 * sched-vis.c (print_exp): Likewise.
20830 (print_value): Likewise.
20831 (print_pattern): Likewise.
20832 (print_insn): Likewise.
20833 (rtl_dump_bb_for_graph): Likewise.
20834 * tree-pretty-print.c (dump_function_declaration): Likewise.
20835 (dump_array_domain): Likewise.
20836 (dump_omp_clause): Likewise.
20837 (dump_location): Likewise.
20838 (dump_generic_node): Likewise.
20839 (print_struct_decl): Likewise.
20840 * diagnostic.c (diagnostic_show_locus): Use pp_space.
20842 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20844 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20845 candidate table when replacing a candidate statement.
20846 (replace_rhs_if_not_dup): Likewise.
20847 (replace_one_candidate): Likewise.
20849 2013-08-02 Jan Hubicka <jh@suse.cz>
20850 Martin Liska <marxin.liska@gmail.com>
20852 * cgraphunit.c (add_new_function): Fix logic when adding from
20854 (assemble_thunk): Rename to ...
20855 (expand_thunk); .. this one; export; get it working with
20856 general functions; make produced gimple valid.
20857 * cgraph.h (expand_thunk): Declare.
20859 2013-08-02 Jan Hubicka <jh@suse.cz>
20861 * ipa-cp.c (gather_context_independent_values): Use
20862 ipa_get_param_move_cost.
20863 (get_replacement_map): Remove PARAM; move parameter folding
20865 (create_specialized_node): Update.
20866 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20867 assert that we have gimple body; update move_cost.
20868 (count_formal_params): Assert that we have gimple body.
20869 (ipa_dump_param): New function.
20870 (ipa_alloc_node_params): Break out from ...
20871 (ipa_initialize_node_params): ... here.
20872 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20873 (ipa_write_node_info): Stream move costs.
20874 (ipa_read_node_info): Read move costs.
20875 (ipa_update_after_lto_read): Do not recompute node params.
20876 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20877 (ipa_get_param): Check we are not in WPA.
20878 (ipa_get_param_move_cost): New.
20879 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20880 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20881 parm numbers to be present.
20883 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
20885 PR rtl-optimization/58048
20886 * lra-constraints.c (process_alt_operands): Don't check asm
20887 operand on register.
20889 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
20891 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20892 the implied StoreLoad barrier for atomic operations if before.
20894 2013-08-02 Jan Hubicka <jh@suse.cz>
20895 Martin Liska <marxin.liska@gmail.com>
20897 * cgraph.c (cgraph_function_body_availability): Do not check
20899 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20900 symtab_node_availability): Declare.
20901 * ipa.c (can_replace_by_local_alias): New.
20902 (function_and_variable_visibility): Use it.
20903 * symtab.c (symtab_for_node_and_aliases,
20904 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20906 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
20908 PR rtl-optimization/57963
20909 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20910 (lra_constraints): Use them.
20912 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
20914 * config/arm/types.md (define_attr "type"): Add "load_acq"
20916 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20918 (cortex_a53_store1): Likewise.
20920 2013-08-01 Jan Hubicka <jh@suse.cz>
20922 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20923 partitions are not needed.
20925 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
20927 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20928 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20929 MAYBE_NON_Q_CLASS_P where appropriate.
20931 2013-08-01 Jan Hubicka <jh@suse.cz>
20933 * cgraph.h (release_function_body): Declare.
20934 * tree.c (free_lang_data_in_decl): Free, parameters and return values
20935 of unused delcarations.
20937 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20939 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20940 RTL form when subtracting a constant.
20942 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20944 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20945 Generate canonical plus rtx with negated immediate instead of minus
20947 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20949 2013-08-01 Jan Hubicka <jh@suse.cz>
20951 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20952 (cgraph_release_function_body): Likewise.
20953 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20954 * cgraph.h (cgrpah_node): Rename abstract_and_needed
20955 to used_as_abstract_origin.
20956 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20957 symbols used as abstract origins.
20958 * cgraphunit.c (analyze_functions): Update.
20959 * ipa.c (symtab_remove_unreachable_nodes): Recompute
20960 used_as_abstract_origin.
20961 * tree-inline.c (tree_function_versioning): Update
20962 used_as_abstract_origin; be ready for DECL_RESULT and
20963 DECL_ARGUMENTS to be NULL.
20965 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20966 for abstract functions.
20967 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20970 2013-08-01 Jan Hubicka <jh@suse.cz>
20972 * profile.c (compute_value_histograms): Fix thinko.
20974 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
20976 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
20977 aarch-common-protos.h to extra_headers.
20978 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20979 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20980 * config/aarch64/t-aarch64 (aarch-common.o): Define.
20982 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
20984 * config/aarch64/aarch64.md (define_attr "type"): Delete.
20985 Include "../arm/types.md". Define "type" attribute for all patterns.
20986 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20989 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20991 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20992 to support power8 load fusion.
20993 (fusion_gpr_mem_load): Likewise.
20995 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20997 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20998 declarations for power8 load fusion.
20999 (emit_fusion_gpr_load): Likewise.
21001 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21002 tuning for power8, turn on fusion mode by default. Turn on sign
21003 extending fusion mode if normal fusion mode is on, and we are at
21005 (fusion_gpr_load_p): New function, return true if we can fuse an
21006 addis instruction with a dependent load to a GPR.
21007 (emit_fusion_gpr_load): Emit the instructions for power8 load
21010 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21011 (VSX load fusion peepholes): New peepholes to fuse together an
21012 addi instruction with a VSX load instruction.
21014 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21015 peepholes to fuse an addis instruction with a load to a GPR base
21016 register. If we are supporting sign extending fusions, convert
21017 sign extending loads to zero extending loads and add an explicit
21020 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21022 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
21023 aarch-common-protos.h to extra_headers.
21024 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21025 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21026 (arm_early_store_addr_dep): Likewise.
21027 (arm_no_early_alu_shift_dep): Likewise.
21028 (arm_no_early_alu_shift_value_dep): Likewise.
21029 (arm_no_early_mul_dep): Likewise.
21030 (arm_no_early_store_addr_dep): Likewise.
21031 (arm_mac_accumulator_is_mul_result): Likewise.
21032 (arm_mac_accumulator_is_result): Likewise.
21033 * config/arm/aarch-common.c: ... here. New file.
21034 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21036 (arm_early_store_addr_dep): Likewise.
21037 (arm_no_early_alu_shift_dep): Likewise.
21038 (arm_no_early_alu_shift_value_dep): Likewise.
21039 (arm_no_early_mul_dep): Likewise.
21040 (arm_no_early_store_addr_dep): Likewise.
21041 (arm_mac_accumulator_is_mul_result): Likewise.
21042 (arm_mac_accumulator_is_result): Likewise.
21043 * config/arm/aarch-common-protos.h: ... here. New file.
21044 * config/arm/t-arm (aarch-common.o): Define.
21046 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21048 * config/arm/arm.md: Include new file "types.md".
21049 (define_attr "type"): Move from here to ...
21050 (define_attr "mul32"): Likewise.
21051 (define_attr "mul64"): Likewise.
21052 * config/arm/types.md: ... here. New file.
21054 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
21056 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21057 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21059 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21061 * gen-pass-instances.awk: Fix offset of substr().
21063 2013-07-31 David Malcolm <dmalcolm@redhat.com>
21065 * Makefile.in (pass-instances.def): New.
21066 (passes.o): Replace dependency on passes.def with one on
21069 * gen-pass-instances.awk: New.
21071 * passes.c (pass_manager::pass_manager): Use pass-instances.def
21072 rather than passes.def, updating local definition of NEXT_PASS
21073 macro to add an extra NUM parameter (currently unused).
21075 2013-07-30 David Malcolm <dmalcolm@redhat.com>
21077 * Makefile.in (PASS_MANAGER_H): New.
21078 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21079 (passes.o): Likewise.
21080 (statistics.o): Likewise.
21081 (cgraphunit.o): Likewise.
21082 (context.o): Depend on PASS_MANAGER_H.
21084 * pass_manager.h: New.
21086 * cgraphunit.c (cgraph_add_new_function): Update for moves
21087 of globals to fields of pass_manager.
21088 (analyze_function): Likewise.
21089 (expand_function): Likewise.
21090 (ipa_passes): Likewise.
21091 (compile): Likewise.
21093 * context.c (context::context): New.
21094 * context.h (context::context): New.
21095 (context::get_passes): New.
21096 (context::passes_): New.
21098 * lto-cgraph.c (input_node): Update for moves of globals to
21099 fields of pass_manager.
21101 * passes.c (all_passes): Remove, in favor of a field of the
21102 same name within the new class pass_manager.
21103 (all_small_ipa_passes): Likewise.
21104 (all_lowering_passes): Likewise.
21105 (all_regular_ipa_passes): Likewise.
21106 (all_late_ipa_passes): Likewise.
21107 (all_lto_gen_passes): Likewise.
21108 (passes_by_id): Likewise.
21109 (passes_by_id_size): Likewise.
21110 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21111 the new class pass_manager.
21112 (set_pass_for_id): Convert to...
21113 (pass_manager::set_pass_for_id): ...method.
21114 (get_pass_for_id): Convert to...
21115 (pass_manager::get_pass_for_id): ...method.
21116 (register_one_dump_file): Move body of implementation into...
21117 (pass_manager::register_one_dump_file): ...here.
21118 (register_dump_files_1): Convert to...
21119 (pass_manager::register_dump_files_1): ...method.
21120 (register_dump_files): Convert to...
21121 (pass_manager::register_dump_files): ...method.
21122 (create_pass_tab): Update for moves of globals to fields of
21124 (dump_passes): Move body of implementation into...
21125 (pass_manager::dump_passes): ...here.
21126 (register_pass): Move body of implementation into...
21127 (pass_manager::register_pass): ...here.
21128 (init_optimization_passes): Convert into...
21129 (pass_manager::pass_manager): ...constructor for new
21130 pass_manager class, and initialize the pass_lists array.
21131 (check_profile_consistency): Update for moves of globals to
21132 fields of pass_manager.
21133 (dump_profile_report): Move body of implementation into...
21134 (pass_manager::dump_profile_report): ...here.
21135 (ipa_write_summaries_1): Update for moves of pass lists from
21136 being globals to fields of pass_manager.
21137 (ipa_write_optimization_summaries): Likewise.
21138 (ipa_read_summaries): Likewise.
21139 (ipa_read_optimization_summaries): Likewise.
21140 (execute_all_ipa_stmt_fixups): Likewise.
21142 * statistics.c (statistics_fini): Update for moves of globals to
21143 fields of pass_manager.
21145 * toplev.c (general_init): Replace call to
21146 init_optimization_passes with construction of the pass_manager
21149 * tree-pass.h (all_passes): Remove, in favor of a field of the
21150 same name within the new class pass_manager.
21151 (all_small_ipa_passes): Likewise.
21152 (all_lowering_passes): Likewise.
21153 (all_regular_ipa_passes): Likewise.
21154 (all_lto_gen_passes): Likewise.
21155 (all_late_ipa_passes): Likewise.
21156 (passes_by_id): Likewise.
21157 (passes_by_id_size): Likewise.
21158 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21159 the new class pass_manager.
21160 (get_pass_for_id): Remove.
21162 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21164 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21167 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21169 * arm.md (mulhi3): New expand pattern.
21171 2013-07-30 Jan Hubicka <jh@suse.cz>
21172 Martin Liska <marxin.liska@gmail.com>
21174 * profile.c (compute_value_histograms): Do not ICE when
21175 there is mismatch only on some counters.
21177 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21179 PR rtl-optimization/57637
21180 * function.c (move_insn_for_shrink_wrap): Also check the
21181 GEN set of the LIVE problem for the liveness analysis
21182 if it exists, otherwise give up.
21184 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21186 PR tree-optimization/57993
21187 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21188 replaced statement in the candidate table.
21189 (phi_add_costs): Return infinite cost when the hidden basis does
21190 not dominate all phis on which the candidate is dependent.
21191 (replace_one_candidate): Record replaced statement in the
21194 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
21196 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21197 (ashlv2si3): New expander.
21198 (*ashlv2si3_i): New define_insn_and_split.
21199 * predicates.md (float_operation): Allow patterns with three
21200 basic sub-patterns.
21202 PR rtl-optimization/58021
21203 * mode-switching.c (create_pre_exit): Always split off preceding
21204 insns if we are not at the basic block head.
21206 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
21208 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21209 (UCLIBC_DYNAMIC_LINKER): New macro.
21210 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21212 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21213 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
21215 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21216 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21217 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21218 for SF and DF modes. Use ieee_quad_format for TF mode.
21219 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21220 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21221 (mips_option_override): Handle `-mnan=legacy'.
21222 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21223 `-mabs=2008' and `-mnan=2008'.
21224 (OPTION_DEFAULT_SPECS): Add "nan" default.
21225 (ASM_SPEC): Handle `-mnan='.
21226 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21227 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21228 comment accordingly.
21229 (neg<mode>2): Likewise.
21230 * config/mips/mips.opt (mabs, mnan): New options.
21231 * doc/install.texi (Configuration): Document `--with-nan=' option.
21232 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21234 (MIPS Options): Document them.
21235 * config.gcc <mips*-*-*>: Handle `--with-nan='.
21236 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21237 * configure: Regenerate.
21238 * config.in: Regenerate.
21240 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21242 * config/i386/i386.md (float post-reload splitters): Do not check
21243 for subregs of SSE registers.
21245 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21246 H.J. Lu <hongjiu.lu@intel.com>
21250 * config/i386/i386.md (post-reload splitter
21251 to avoid partial SSE reg dependency stalls): New pattern.
21253 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21255 * config/s390/s390.md ("movcc"): Swap load and store instructions.
21257 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
21259 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21260 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21262 2013-07-26 Cary Coutant <ccoutant@google.com>
21264 * dwarf2out.c (die_checksum_ordered): Don't include template
21265 instantiations in signature.
21266 (is_template_parameter): New function.
21267 (is_template_instantiation): New function.
21268 (generate_skeleton_bottom_up): Don't include template instantiations
21270 (generate_skeleton): Likewise.
21271 (break_out_comdat_types): Move recursive call to break out nested
21273 (prune_unused_types_mark_generic_parms_dies): Call
21274 is_template_parameter.
21276 2013-07-26 Ian Bolton <ian.bolton@arm.com>
21278 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21279 uses vector registers.
21280 * config/aarch64/iterators.md: Add attributes rtn and vas.
21282 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21283 Richard Earnshaw <richard.earnshaw@arm.com>
21285 * combine.c (simplify_comparison): Re-canonicalize operands
21287 * config/arm/arm.md (movcond_addsi): New splitter.
21289 2013-07-25 Sterling Augustine <saugustine@google.com>
21291 * dwarf2out.c (size_of_pubnames): Move code to...
21292 (include_pubname_in_output): ...here. New.
21293 (want_pubnames): Rearrange.
21294 (output_pubnames): Call include_pubname_in_output. Move assertion.
21296 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21298 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21300 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21303 * doc/extend.texi: Remove obsolete builtins. Fix
21304 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21306 2013-07-25 Jan Hubicka <jh@suse.cz>
21308 * cgraph.c (release_function_body): Break out from ...
21309 (cgraph_release_function_body): ... this one; also release DECL_RESULT
21310 and DECL_ARGUMENTS.
21311 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21312 old_tree in the map.
21313 (create_specialized_node): Update.
21314 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21316 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21317 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21318 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21319 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21322 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21324 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21325 addsi3_carryin_alt2_<optab>): Correct output template.
21327 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21329 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21330 Adjust for arm_restrict_it.
21331 Remove trailing whitespace.
21333 2013-07-25 Mark Kettenis <kettenis@openbsd.org>
21335 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21336 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21338 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21340 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
21342 PR rtl-optimization/57960
21343 * lra-constraints.c (process_alt_operands): Use the right mode
21344 when checking strict_low.
21346 2013-07-25 Jan Hubicka <jh@suse.cz>
21348 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21349 * cgraph.c (cgraph_remove_node): Do not release function body
21350 when in cgraph streaming.
21351 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21352 in other partitions are not considered reachable; fix handling of
21355 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21357 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21359 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21364 * config/arm/arm.md ("*sibcall_insn): Replace use of
21365 Ss with US. Adjust output for v5 and v4t.
21366 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21368 * config/arm/constraints.md ("Ss"): Rename to US.
21370 2013-07-25 Terry Guo <terry.guo@arm.com>
21372 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21373 shift_add/shift_sub0/shift_sub1 RTXs.
21375 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
21376 Anton Blanchard <anton@au1.ibm.com>
21378 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21379 (altivec_vpks<VI_char>ss): Likewise.
21380 (altivec_vpks<VI_char>us): Likewise.
21381 (altivec_vpku<VI_char>us): Likewise.
21382 (altivec_vpku<VI_char>um): Likewise.
21384 2013-07-24 David Malcolm <dmalcolm@redhat.com>
21386 Introduce context class.
21388 * Makefile.in (CONTEXT_H): New.
21389 (OBJS): Add context.o.
21390 (toplev.o): Add CONTEXT_H to dependencies.
21393 * toplev.c (general_init): Create the singleton gcc::context instance.
21399 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
21401 PR rtl-optimization/57968
21402 * mode-switching.c (create_pre_exit): Allow instructions that
21403 don't set a return register to need a non-exit mode.
21405 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21406 Anton Blanchard <anton@au1.ibm.com>
21408 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21409 operands to vperm for little endian.
21410 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21411 of lvsl to create the control mask for a vperm for little endian.
21413 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21414 Anton Blanchard <anton@au1.ibm.com>
21416 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21417 two operands for little-endian.
21419 2013-07-23 Steve Ellcey <sellcey@mips.com>
21421 * config/mips/mips.c (mips_case_values_threshold): New.
21422 (TARGET_CASE_VALUES_THRESHOLD): Define.
21424 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21425 Anton Blanchard <anton@au1.ibm.com>
21427 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21428 selection of field for vector splat in little endian mode.
21430 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21432 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21433 expanders to rs6000.md.
21434 (ior<mode>3): Likewise.
21435 (and<mode>3): Likewise.
21436 (one_cmpl<mode>2): Likewise.
21437 (nor<mode>3): Likewise.
21438 (andc<mode>3): Likewise.
21439 (eqv<mode>3): Likewise.
21440 (nand<mode>3): Likewise.
21441 (orc<mode>3): Likewise.
21443 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21446 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21447 to split multi-word logical operations.
21448 (rs6000_split_logical_di): Likewise.
21449 (rs6000_split_logical): Likewise.
21451 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21452 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21453 and allow TImode operations in 32-bit.
21454 (vsx_and<mode>3_64bit): Likewise.
21455 (vsx_ior<mode>3_32bit): Likewise.
21456 (vsx_ior<mode>3_64bit): Likewise.
21457 (vsx_xor<mode>3_32bit): Likewise.
21458 (vsx_xor<mode>3_64bit): Likewise.
21459 (vsx_one_cmpl<mode>2_32bit): Likewise.
21460 (vsx_one_cmpl<mode>2_64bit): Likewise.
21461 (vsx_nor<mode>3_32bit): Likewise.
21462 (vsx_nor<mode>3_64bit): Likewise.
21463 (vsx_andc<mode>3_32bit): Likewise.
21464 (vsx_andc<mode>3_64bit): Likewise.
21465 (vsx_eqv<mode>3_32bit): Likewise.
21466 (vsx_eqv<mode>3_64bit): Likewise.
21467 (vsx_nand<mode>3_32bit): Likewise.
21468 (vsx_nand<mode>3_64bit): Likewise.
21469 (vsx_orc<mode>3_32bit): Likewise.
21470 (vsx_orc<mode>3_64bit): Likewise.
21472 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21473 logical types in GPRs.
21475 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21476 logical insns to rs6000.md, and allow TImode operations in
21478 (altivec_ior<mode>3): Likewise.
21479 (altivec_xor<mode>3): Likewise.
21480 (altivec_one_cmpl<mode>2): Likewise.
21481 (altivec_nor<mode>3): Likewise.
21482 (altivec_andc<mode>3): Likewise.
21484 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21485 attributes for moving the 128-bit logical operations into
21487 (BOOL_REGS_OUTPUT): Likewise.
21488 (BOOL_REGS_OP1): Likewise.
21489 (BOOL_REGS_OP2): Likewise.
21490 (BOOL_REGS_UNARY): Likewise.
21491 (BOOL_REGS_AND_CR0): Likewise.
21492 (one_cmpl<mode>2): Add support for DI logical operations on
21493 32-bit, splitting the operations to 32-bit.
21494 (anddi3): Likewise.
21495 (iordi3): Likewise.
21496 (xordi3): Likewise.
21497 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21498 changes to combine the 32/64-bit code, allow logical operations on
21499 TI mode in 32-bit, and to use similar match_operator patterns like
21500 scalar mode uses. Combine the Altivec and VSX code for logical
21501 operations, and move it here.
21502 (ior<mode>3, 128-bit types): Likewise.
21503 (xor<mode>3, 128-bit types): Likewise.
21504 (one_cmpl<mode>3, 128-bit types): Likewise.
21505 (nor<mode>3, 128-bit types): Likewise.
21506 (andc<mode>3, 128-bit types): Likewise.
21507 (eqv<mode>3, 128-bit types): Likewise.
21508 (nand<mode>3, 128-bit types): Likewise.
21509 (orc<mode>3, 128-bit types): Likewise.
21510 (and<mode>3_internal): Likewise.
21511 (bool<mode>3_internal): Likewise.
21512 (boolc<mode>3_internal1): Likewise.
21513 (boolc<mode>3_internal2): Likewise.
21514 (boolcc<mode>3_internal1): Likewise.
21515 (boolcc<mode>3_internal2): Likewise.
21516 (eqv<mode>3_internal1): Likewise.
21517 (eqv<mode>3_internal2): Likewise.
21518 (one_cmpl1<mode>3_internal): Likewise.
21520 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21522 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21523 Rename flag_stack_usage to flag_stack_usage_info.
21525 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21527 * config/microblaze/sync.md: New file.
21528 * config/microblaze/microblaze.md: Include sync.md
21529 * config/microblaze/microblaze.c: Add print_operand 'y'.
21530 * config/microblaze/constraints.md: Add memory_contraint
21531 'Q' which is a single register.
21533 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
21535 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21537 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21539 * reload.c (find_reloads): Exit loop once we find this operand
21540 cannot be reloaded somehow for this alternative.
21542 * reload.c (find_reloads): Exit loop once we find a hard register.
21544 * rtlanal.c (computed_jump_p): Exit loop once we find label
21547 * i386.c (ix86_pad_returns): Exit loop after setting replace.
21549 * cfgloopmanip.c (remove_path): Exit loop after setting
21552 * gensupport.c (subst_dup): Avoid loop if code is not
21553 MATCH_DUP nor MATCH_OP_DUP.
21555 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
21557 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21559 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21561 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21562 true for SP_REGNUM if mode == ptr_mode.
21563 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21564 with value R0_REGNUM + 31.
21566 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21568 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21569 pad pointer-typed argument downward.
21571 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21573 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21574 and __ILP32__ when the ILP32 model is in use.
21576 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21578 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21579 (aarch64_load_symref_appropriately): In the case of
21580 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21581 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21582 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21583 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21584 if 'mode' doesn't equal to 'ptr_mode'.
21585 (aarch64_output_mi_thunk): Add an assertion on the alignment of
21586 'vcall_offset'; change to call aarch64_emit_move differently depending
21587 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21588 to calculate the upper bound of 'vcall_offset'.
21589 (aarch64_cannot_force_const_mem): Change to also return true if
21591 (aarch64_legitimize_reload_address): In the case of large
21592 displacements, add new local variable 'xmode' and an assertion
21593 based on it; change to use 'xmode' to generate the new rtx and
21595 (aarch64_asm_trampoline_template): Change to generate the template
21596 differently depending on TARGET_ILP32 or not; change to use
21597 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21598 (aarch64_trampoline_size): Removed.
21599 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21600 and replace immediate literals with it. Change to use 'ptr_mode'
21601 instead of 'DImode' and call convert_memory_address if the mode
21602 of 'fnaddr' doesn't equal to 'ptr_mode'.
21603 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21605 (aarch64_elf_asm_destructor): Likewise.
21606 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21607 on TARGET_ILP32 instead of aarch64_trampoline_size.
21608 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21609 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21610 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21611 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
21612 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21613 (storewb_pair<GPI:mode>_<P:mode>): ... this.
21614 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21615 depending on the value of 'mode'.
21616 (add_losym_<mode>): New.
21617 (ldr_got_small_<mode>): New, based on ldr_got_small.
21618 (ldr_got_small): Remove.
21619 (ldr_got_small_sidi): New.
21620 * config/aarch64/iterators.md (P): New.
21621 (PTR): Change to 'ptr_mode' in the condition.
21623 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21625 * config.gcc (aarch64*-*-*): Support --with-abi.
21626 (aarch64*-*-elf): Support --with-multilib-list.
21627 (aarch64*-*-linux*): Likewise.
21628 (supported_defaults): Add abi to aarch64*-*-*.
21629 * configure.ac: Mention AArch64 for --with-multilib-list.
21630 * configure: Re-generated.
21631 * config/aarch64/biarchilp32.h: New file.
21632 * config/aarch64/biarchlp64.h: New file.
21633 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21635 (MULTILIB_DEFAULTS): Ditto.
21636 (DRIVER_SELF_SPECS): Ditto.
21637 (ASM_SPEC): Update to also substitute -mabi.
21638 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21639 file whose name depends on -mabi= and -mbig-endian.
21640 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21642 (POINTER_SIZE): New define.
21643 (POINTERS_EXTEND_UNSIGNED): Ditto.
21644 (enum aarch64_abi_type): New enumeration tag.
21645 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21646 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21647 (TARGET_ILP32): New define.
21648 * config/aarch64/aarch64.opt (mabi): New.
21649 (aarch64_abi): New.
21650 (ilp32, lp64): New values for -mabi.
21651 * config/aarch64/t-aarch64 (comma): New define.
21652 (MULTILIB_OPTIONS): Ditto.
21653 (MULTILIB_DIRNAMES): Ditto.
21654 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21655 * doc/invoke.texi: Document -mabi for AArch64.
21657 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
21659 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21661 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21662 Anton Blanchard <anton@au1.ibm.com>
21664 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21665 endianness when selecting field to splat.
21667 2013-07-22 Eric Christopher <echristo@gmail.com>
21669 * dwarf2out.c (die_odr_checksum): New function to use
21670 CHECKSUM_ macros and ULEB128 for DIE tag.
21671 (generate_type_signature): Use.
21673 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
21675 * config.gcc (sparc*-*-*): Accept leon3 processor.
21676 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21677 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21678 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21679 * config/sparc/sparc.opt (enum processor_type): Add leon3.
21680 (mfix-ut699): Adjust comment.
21681 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21682 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21683 (CPP_CPU_SPEC): Likewise.
21684 (ASM_CPU_SPEC): Likewise.
21685 * config/sparc/sparc.c (leon3_cost): New constant.
21686 (sparc_option_override): Add leon3 support.
21687 (mem_ref): New function.
21688 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21689 (sparc_do_work_around_errata): Look into the instruction in the delay
21690 slot and adjust accordingly. Add fix for the data cache nullify issues
21691 of the UT699. Change insertion position for the NOP.
21692 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21693 (leon3_load): New reservation.
21694 (leon_store): Bump latency to 2.
21695 (grfpu): New automaton.
21696 (grfpu_alu): New unit.
21697 (grfpu_ds): Likewise.
21698 (leon_fp_alu): Adjust.
21699 (leon_fp_mult): Delete.
21700 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21701 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21702 * config/sparc/sparc.md (cpu): Add leon3.
21703 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21704 (swapsi): Likewise.
21705 (atomic_test_and_set): Likewise.
21706 (ldstub): Likewise.
21708 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
21710 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
21711 default for R5900 targets.
21712 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21713 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21714 * config/mips/mips.c (mips_option_override): Report an error for
21715 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
21716 for -march=r5900 -mhard-float.
21718 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21720 * df-problems.c (can_move_insns_across): Exit loop once we
21721 find a non-fixed, non-global register.
21723 * ipa-pure-const.c (propagate_nothrow): Exit loop after
21726 * omega.c (omega_eliminate_red): Break after setting red_found.
21727 (omega_problem_has_red_equations): Similarly after setting found.
21728 (omega_query_variable): Similarly after setting coupled.
21730 2013-07-22 Marek Polacek <polacek@redhat.com>
21732 * gimplify.c: Don't include gimple.h twice.
21734 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21736 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21737 instead of TARGET_THUMB1.
21738 (Pz): New constraint.
21739 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21741 (compare_negsi_si): Likewise.
21742 (compare_addsi2_op0): Likewise.
21743 (compare_addsi2_op1): Likewise.
21744 (addsi3_carryin_<optab>): Likewise.
21745 (addsi3_carryin_alt2_<optab>): Likewise.
21746 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21747 for arm_restrict_it.
21748 (subsi3_carryin): Likewise.
21749 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21750 (minmax_arithsi): Disable for arm_restrict_it.
21751 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21752 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21753 (satsi_<SAT:code>_shift): Likewise.
21754 (arm_shiftsi3): Add alternative for 16-bit encoding.
21755 (arm32_movhf): Disable for arm_restrict_it.
21756 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21757 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21759 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
21761 * config/arm/arm.md (attribute "insn"): Delete.
21762 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21763 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21764 (not_shiftsi): Update for attribute change.
21765 (not_shiftsi_compare0): Likewise.
21766 (not_shiftsi_compare0_scratch): Likewise.
21767 (arm_one_cmplsi2): Likewise.
21768 (thumb1_one_cmplsi2): Likewise.
21769 (notsi_compare0): Likewise.
21770 (notsi_compare0_scratch): Likewise.
21771 (thumb1_movdi_insn): Likewise.
21772 (arm_movsi_insn): Likewise.
21773 (movhi_insn_arch4): Likewise.
21774 (movhi_bytes): Likewise.
21775 (arm_movqi_insn): Likewise.
21776 (thumb1_movqi_insn): Likewise.
21777 (arm32_movhf): Likewise.
21778 (thumb1_movhf): Likewise.
21779 (arm_movsf_soft_insn): Likewise.
21780 (thumb1_movsf_insn): Likewise.
21781 (thumb_movdf_insn): Likewise.
21782 (movsicc_insn): Likewise.
21783 (movsfcc_soft_insn): Likewise.
21784 (and_scc): Likewise.
21785 (cond_move): Likewise.
21786 (if_move_not): Likewise.
21787 (if_not_move): Likewise.
21788 (if_shift_move): Likewise.
21789 (if_move_shift): Likewise.
21790 (if_shift_shift): Likewise.
21791 (if_not_arith): Likewise.
21792 (if_arith_not): Likewise.
21793 (cond_move_not): Likewise.
21794 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21795 (neon_mov<mode>): Likewise.
21796 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21797 (thumb2_movsi_vfp): Likewise.
21798 (movsf_vfp): Likewise.
21799 (thumb2_movsf_vfp): Likewise.
21800 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21802 (cortexa7_older_only): Likewise.
21803 (cortexa7_younger): Likewise.
21804 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21805 (1020alu_shift_op): Likewise.
21806 (1020alu_shift_reg_op): Likewise.
21807 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21808 (alu_shift_op): Likewise.
21809 (alu_shift_reg_op): Likewise.
21810 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21811 (11_alu_shift_op): Likewise.
21812 (11_alu_shift_reg_op): Likewise.
21813 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21814 (9_alu_shift_reg_op): Likewise.
21815 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21817 (cortex_a15_alu_shift): Likewise.
21818 (cortex_a15_alu_shift_reg): Likewise.
21819 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21820 (cortex_a5_alu_shift): Likewise.
21821 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21823 (cortex_a53_alu_shift): Likewise.
21824 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21826 (cortex_a7_alu_reg): Likewise.
21827 (cortex_a7_alu_shift): Likewise.
21828 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21829 (cortex_a8_alu_shift): Likewise.
21830 (cortex_a8_alu_shift_reg): Likewise.
21831 (cortex_a8_mov): Likewise.
21832 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21833 (cortex_a9_dp_shift): Likewise.
21834 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21835 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21836 (cortex_r4_mov): Likewise.
21837 (cortex_r4_alu_shift): Likewise.
21838 (cortex_r4_alu_shift_reg): Likewise.
21839 * config/arm/fa526.md (526_alu_op): Update for attribute change.
21840 (526_alu_shift_op): Likewise.
21841 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21842 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21843 (626te_alu_shift_op): Likewise.
21844 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21845 (726te_alu_op): Likewise.
21846 (726te_alu_shift_op): Likewise.
21847 (726te_alu_shift_reg_op): Likewise.
21848 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21849 (mp626_alu_shift_op): Likewise.
21850 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21851 (pj4_alu_e1_conds): Likewise.
21852 (pj4_alu): Likewise.
21853 (pj4_alu_conds): Likewise.
21854 (pj4_shift): Likewise.
21855 (pj4_shift_conds): Likewise.
21856 (pj4_alu_shift): Likewise.
21857 (pj4_alu_shift_conds): Likewise.
21859 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21861 * config/arm/predicates.md (shiftable_operator_strict_it):
21863 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21864 Disable cond_exec version for arm_restrict_it.
21865 (thumb2_smaxsi3): Convert to generate cond_exec.
21866 (thumb2_sminsi3): Likewise.
21867 (thumb32_umaxsi3): Likewise.
21868 (thumb2_uminsi3): Likewise.
21869 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21870 (thumb2_neg_abssi2): Likewise.
21871 (thumb2_mov_scc): Add alternative for 16-bit encoding.
21872 (thumb2_movsicc_insn): Adjust alternatives.
21873 (thumb2_mov_negscc): Disable for arm_restrict_it.
21874 (thumb2_mov_negscc_strict_it): New pattern.
21875 (thumb2_mov_notscc_strict_it): New pattern.
21876 (thumb2_mov_notscc): Disable for arm_restrict_it.
21877 (thumb2_ior_scc): Likewise.
21878 (thumb2_ior_scc_strict_it): New pattern.
21879 (thumb2_cond_move): Adjust for arm_restrict_it.
21880 (thumb2_cond_arith): Disable for arm_restrict_it.
21881 (thumb2_cond_arith_strict_it): New pattern.
21882 (thumb2_cond_sub): Adjust for arm_restrict_it.
21883 (thumb2_movcond): Likewise.
21884 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21885 (thumb2_zero_extendhisi2_v6): Likewise.
21886 (thumb2_zero_extendqisi2_v6): Likewise.
21887 (orsi_notsi_si): Likewise.
21888 (orsi_not_shiftsi_si): Likewise.
21890 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
21892 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21893 instruction sequence is 1 byte shorter.
21895 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
21897 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21898 it is not needed after split.
21900 2013-07-20 Iain Sandoe <iain@codesourcery.com>
21903 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21904 second label for nonlocal goto receivers. Don't output pic base labels
21905 unless we're producing PIC; mark that action unreachable().
21906 (ix86_save_reg): If the function contains a nonlocal label, save the
21908 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21909 * config/darwin.c (emitted_pic_label_num): New GTY.
21910 (update_pic_label_number_if_needed): New.
21911 (machopic_output_function_base_name): Adjust for nonlocal receiver
21913 (machopic_should_output_picbase_label): New.
21914 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21915 (nonlocal_goto_receiver): New insn and split.
21917 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
21919 * config/aarch64/aarch64-builtins.c
21920 (aarch64_fold_builtin): Fold abs in all modes.
21921 * config/aarch64/aarch64-simd-builtins.def
21922 (abs): Enable for all modes.
21923 * config/aarch64/arm_neon.h
21924 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21925 (vabs_f64): Add missing intrinsic.
21927 2013-07-19 Ian Bolton <ian.bolton@arm.com>
21929 * config/aarch64/arm_neon.h (vabs_s64): New function
21931 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
21934 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21935 * config/avr/avr.md (adjust_len): Add `round'.
21936 * config/avr/avr-protos.h (avr_out_round): New prototype.
21937 (avr_out_plus): Add `out_label' argument.
21938 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21939 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21940 Handle the case where `insn' is just a pattern.
21941 (avr_out_bitop): Handle the case where `insn' is just a pattern.
21942 (avr_out_round): New function.
21943 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21945 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
21947 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21948 Add check for flag_stack_usage to handle -fstack-usage support
21950 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
21952 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21953 interaction for new Power8 flags and VSX.
21955 2013-07-18 Sriraman Tallam <tmsriram@google.com>
21957 PR middle-end/57698
21958 * tree-inline.c (expand_call_inline): Emit errors during
21959 early_inlining only if optimization is not turned on.
21961 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21965 * passes.c (init_optimization_passes): Move the construction of
21966 the pass hierarchy into a new passes.def file.
21968 * Makefile.in (passes.o): Add dependency on passes.def.
21970 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21972 * passes.c (init_optimization_passes): Introduce macros for
21973 constructing the tree of passes (INSERT_PASSES_AFTER,
21974 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21975 TERMINATE_PASS_LIST).
21977 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
21978 Wei Mi <wmi@google.com>
21980 PR rtl-optimization/57878
21981 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21983 (reload_pseudo_compare_func): Check nregs first for reload
21986 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21988 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21990 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
21992 * read-rtl.c (validate_const_int): Once an invalid character is
21993 seen, quit the loop.
21995 * gengtype.c (write_roots): Similarly once we find the "deletable"
21996 or "if_marked" option.
21998 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22000 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22001 "xtab" and "sat". Move value "clz" from here to ...
22002 (attriubte "type"): ... here.
22003 (satsi_<SAT:code>): Delete "insn" attribute.
22004 (satsi_<SAT:code>_shift): Likewise.
22005 (arm_zero_extendqisi2addsi): Likewise.
22006 (arm_extendqisi2addsi): Likewise.
22007 (clzsi2): Update for attribute changes.
22008 (rbitsi2): Likewise.
22009 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22011 (arm_usatsihi): Likewise.
22012 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22014 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22016 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22017 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
22018 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
22019 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
22020 in alphabetical order.
22021 (attribute "core_cycles"): Update for attribute changes.
22022 (arm_addsi3): Likewise.
22023 (addsi3_compare0): Likewise.
22024 (addsi3_compare0_scratch): Likewise.
22025 (addsi3_compare_op1): Likewise.
22026 (addsi3_compare_op2): Likewise.
22027 (compare_addsi2_op0): Likewise.
22028 (compare_addsi2_op1): Likewise.
22029 (addsi3_carryin_shift_<optab>): Likewise.
22030 (subsi3_carryin_shift): Likewise.
22031 (rsbsi3_carryin_shift): Likewise.
22032 (arm_subsi3_insn): Likewise.
22033 (subsi3_compare0): Likewise.
22034 (subsi3_compare): Likewise.
22035 (arm_andsi3_insn): Likewise.
22036 (thumb1_andsi3_insn): Likewise.
22037 (andsi3_compare0): Likewise.
22038 (andsi3_compare0_scratch): Likewise.
22039 (zeroextractsi_compare0_scratch
22040 (andsi_not_shiftsi_si): Likewise.
22041 (iorsi3_insn): Likewise.
22042 (iorsi3_compare0): Likewise.
22043 (iorsi3_compare0_scratch): Likewise.
22044 (arm_xorsi3): Likewise.
22045 (thumb1_xorsi3_insn): Likewise.
22046 (xorsi3_compare0): Likewise.
22047 (xorsi3_compare0_scratch): Likewise.
22048 (satsi_<SAT:code>_shift): Likewise.
22050 (arm_shiftsi3): Likewise.
22051 (shiftsi3_compare0): Likewise.
22052 (not_shiftsi): Likewise.
22053 (not_shiftsi_compare0): Likewise.
22054 (not_shiftsi_compare0_scratch): Likewise.
22055 (arm_one_cmplsi2): Likewise.
22056 (thumb_one_complsi2): Likewise.
22057 (notsi_compare0): Likewise.
22058 (notsi_compare0_scratch): Likewise.
22059 (thumb1_zero_extendhisi2): Likewise.
22060 (arm_zero_extendhisi2): Likewise.
22061 (arm_zero_extendhisi2_v6): Likewise.
22062 (arm_zero_extendhisi2addsi): Likewise.
22063 (thumb1_zero_extendqisi2): Likewise.
22064 (thumb1_zero_extendqisi2_v6): Likewise.
22065 (arm_zero_extendqisi2): Likewise.
22066 (arm_zero_extendqisi2_v6): Likewise.
22067 (arm_zero_extendqisi2addsi): Likewise.
22068 (thumb1_extendhisi2): Likewise.
22069 (arm_extendhisi2): Likewise.
22070 (arm_extendhisi2_v6): Likewise.
22071 (arm_extendqisi): Likewise.
22072 (arm_extendqisi_v6): Likewise.
22073 (arm_extendqisi2addsi): Likewise.
22074 (thumb1_extendqisi2): Likewise.
22075 (thumb1_movdi_insn): Likewise.
22076 (arm_movsi_insn): Likewise.
22077 (movsi_compare0): Likewise.
22078 (movhi_insn_arch4): Likewise.
22079 (movhi_bytes): Likewise.
22080 (arm_movqi_insn): Likewise.
22081 (thumb1_movqi_insn): Likewise.
22082 (arm32_movhf): Likewise.
22083 (thumb1_movhf): Likewise.
22084 (arm_movsf_soft_insn): Likewise.
22085 (thumb1_movsf_insn): Likewise.
22086 (movdf_soft_insn): Likewise.
22087 (thumb_movdf_insn): Likewise.
22088 (arm_cmpsi_insn): Likewise.
22089 (cmpsi_shiftsi): Likewise.
22090 (cmpsi_shiftsi_swp): Likewise.
22091 (arm_cmpsi_negshiftsi_si): Likewise.
22092 (movsicc_insn): Likewise.
22093 (movsfcc_soft_insn): Likewise.
22094 (arith_shiftsi): Likewise.
22095 (arith_shiftsi_compare0
22096 (arith_shiftsi_compare0_scratch
22097 (sub_shiftsi): Likewise.
22098 (sub_shiftsi_compare0
22099 (sub_shiftsi_compare0_scratch
22100 (and_scc): Likewise.
22101 (cond_move): Likewise.
22102 (if_plus_move): Likewise.
22103 (if_move_plus): Likewise.
22104 (if_move_not): Likewise.
22105 (if_not_move): Likewise.
22106 (if_shift_move): Likewise.
22107 (if_move_shift): Likewise.
22108 (if_shift_shift): Likewise.
22109 (if_not_arith): Likewise.
22110 (if_arith_not): Likewise.
22111 (cond_move_not): Likewise.
22112 (thumb1_ashlsi3): Set type attribute.
22113 (thumb1_ashrsi3): Likewise.
22114 (thumb1_lshrsi3): Likewise.
22115 (thumb1_rotrsi3): Likewise.
22116 (shiftsi3_compare0_scratch): Likewise.
22117 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22118 (neon_mov<mode>): Likewise.
22119 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22121 (thumb2_movsi_insn): Likewise.
22122 (thumb2_cmpsi_neg_shiftsi): Likewise.
22123 (thumb2_extendqisi_v6): Likewise.
22124 (thumb2_zero_extendhisi2_v6): Likewise.
22125 (thumb2_zero_extendqisi2_v6): Likewise.
22126 (thumb2_shiftsi3_short): Likewise.
22127 (thumb2_addsi3_compare0_scratch): Likewise.
22128 (orsi_not_shiftsi_si): Likewise.
22129 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22130 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22132 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22133 (1020alu_shift_op): Likewise.
22134 (1020alu_shift_reg_op): Likewise.
22135 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22136 (alu_shift_op): Likewise.
22137 (alu_shift_reg_op): Likewise.
22138 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22139 (11_alu_shift_op): Likewise.
22140 (11_alu_shift_reg_op): Likewise.
22141 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22142 (9_alu_shift_reg_op): Likewise.
22143 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22145 (cortex_a15_alu_shift): Likewise.
22146 (cortex_a15_alu_shift_reg): Likewise.
22147 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22149 (cortex_a5_alu_shift): Likewise.
22150 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22152 (cortex_a53_alu_shift): Likewise.
22153 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22155 (cortex_a7_alu_reg): Likewise.
22156 (cortex_a7_alu_shift): Likewise.
22157 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22159 (cortex_a8_alu_shift): Likewise.
22160 (cortex_a8_alu_shift_reg): Likewise.
22161 (cortex_a8_mov): Likewise.
22162 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22163 (cortex_a9_dp_shift): Likewise.
22164 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22166 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22168 (cortex_r4_mov): Likewise.
22169 (cortex_r4_alu_shift): Likewise.
22170 (cortex_r4_alu_shift_reg): Likewise.
22171 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22172 (526_alu_shift_op): Likewise.
22173 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22174 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22175 (626te_alu_shift_op): Likewise.
22176 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22177 (726te_alu_op): Likewise.
22178 (726te_alu_shift_op): Likewise.
22179 (726te_alu_shift_reg_op): Likewise.
22180 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22181 (mp626_alu_shift_op): Likewise.
22182 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22183 (pj4_alu_e1_conds): Likewise.
22184 (pj4_alu): Likewise.
22185 (pj4_alu_conds): Likewise.
22186 (pj4_shift): Likewise.
22187 (pj4_shift_conds): Likewise.
22188 (pj4_alu_shift): Likewise.
22189 (pj4_alu_shift_conds): Likewise.
22190 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22192 (cortexa7_older_only): Likewise.
22193 (cortexa7_younger): Likewise.
22195 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22197 * ipa-pure-const.c (generate_summary): Rename to...
22198 (pure_const_generate_summary): ... this.
22200 2013-07-17 Iain Sandoe <iain@codesourcery.com>
22202 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22204 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
22207 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22210 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22212 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22213 enabled without -march=zEC12.
22214 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22217 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22219 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22220 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22221 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22222 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22223 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22224 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22225 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22227 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22228 and ISA_HAS_NMADD3_NMSUB3.
22229 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22230 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22231 (nmsub4<mode>, nmsub3<mode>): Likewise.
22232 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22234 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22236 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22237 TARGET_MIPS5400 checking.
22239 2013-07-16 Jakub Jelinek <jakub@redhat.com>
22240 Peter Bergner <bergner@vnet.ibm.com>
22242 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22243 registers in the comment.
22244 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22245 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22246 rather than FIRST_PSEUDO_REGISTERS.
22248 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
22250 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22251 enable extra ISA flags with TARGET_HTM.
22253 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22255 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22258 2013-07-15 Cong Hou <congh@google.com>
22260 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22261 in compare function for sorting.
22263 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
22265 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22266 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22267 * config/rs6000/rs6000.opt: Add -mhtm option.
22268 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22269 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22270 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22271 __HTM__ if the HTM instructions are available.
22272 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22273 htm_spr_reg_operand): New define_predicates.
22274 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22275 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22277 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22278 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22279 HTM builtin functions.
22280 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22281 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22282 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22283 (rs6000_builtin_mask_calculate): Likewise.
22284 (rs6000_option_override_internal): Likewise.
22285 (bdesc_htm): Add new HTM builtin support.
22286 (htm_spr_num): New function.
22287 (htm_spr_regno): Likewise.
22288 (rs6000_htm_spr_icode): Likewise.
22289 (htm_expand_builtin): Likewise.
22290 (htm_init_builtins): Likewise.
22291 (rs6000_expand_builtin): Add support for HTM builtin functions.
22292 (rs6000_init_builtins): Likewise.
22293 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22295 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22296 (TARGET_HTM, MASK_HTM): Define macros.
22297 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22298 (FIXED_REGISTERS): Likewise.
22299 (CALL_USED_REGISTERS): Likewise.
22300 (CALL_REALLY_USED_REGISTERS): Likewise.
22301 (REG_ALLOC_ORDER): Likewise.
22302 (enum reg_class): Likewise.
22303 (REG_CLASS_NAMES): Likewise.
22304 (REG_CLASS_CONTENTS): Likewise.
22305 (REGISTER_NAMES): Likewise.
22306 (ADDITIONAL_REGISTER_NAMES): Likewise.
22307 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22308 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22309 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22310 * config/rs6000/htm.md: New file.
22311 * config/rs6000/htmintrin.h: New file.
22312 * config/rs6000/htmxlintrin.h: New file.
22314 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
22316 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22317 Define SYMBOL_TINY_GOT, update comment.
22318 * config/aarch64/aarch64.c
22319 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22320 (aarch64_expand_mov_immediate): Likewise.
22321 (aarch64_print_operand): Likewise.
22322 (aarch64_classify_symbol): Likewise.
22323 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22324 (ldr_got_tiny): Define.
22326 2013-07-13 Tobias Grosser <tobias@grosser.es>
22328 PR tree-optimization/54094
22329 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22330 scheduling dimension for the parallelism check from the polyhedral
22331 information in the AST.
22332 * graphite-dependences.c (carries_deps): Do not assume the schedule is
22335 2013-07-13 Jason Merrill <jason@redhat.com>
22337 * print-tree.c (debug_vec_tree): Use debug_raw.
22338 (debug_raw (vec<tree, va_gc> &)): New.
22339 (debug_raw (vec<tree, va_gc> *)): New.
22340 * tree.h: Declare them.
22342 2013-07-13 Bin Cheng <bin.cheng@arm.com>
22344 * ifcvt.c (ifcvt_after_combine): New static variable.
22345 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22347 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
22348 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22349 rest_of_handle_if_after_reload): Pass new argument for if_convert.
22351 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
22353 * config/mips/mips.c (mips_expand_call): Remove empty statement.
22355 2013-07-12 Michael Matz <matz@suse.de>
22357 PR middle-end/55771
22358 * convert.c (convert_to_real): Reject non-float inner types.
22360 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
22362 * config/aarch64/aarch64-protos.h
22363 (aarch64_simd_immediate_valid_for_move): Remove.
22364 * config/aarch64/aarch64.c (simd_immediate_info): New member.
22365 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22367 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22369 2013-07-11 Steve Ellcey <sellcey@mips.com>
22371 * config/mips/mips.c (mips_conditional_register_usage): Do not
22372 use t[0-7] registers in MIPS16 mode when optimizing for size.
22374 2013-07-11 Sriraman Tallam <tmsriram@google.com>
22376 * config/i386/i386.c (dispatch_function_versions): Fix array
22377 indexing of function_version_info to match actual_versions.
22379 2013-07-11 Teresa Johnson <tejohnson@google.com>
22381 * vec.h (struct va_gc): Move release out-of-line.
22382 (va_gc::release): Call ggc_free on released vec.
22384 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22386 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22387 Require GOT register as additional operand in UNSPEC.
22388 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22389 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22390 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22391 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22392 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22393 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22394 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22396 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
22399 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22400 name seen by assembler/linker rather if available.
22402 2013-07-11 Andreas Schwab <schwab@suse.de>
22404 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22406 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
22408 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22410 2013-07-10 Joseph Myers <joseph@codesourcery.com>
22412 * doc/tm.texi.in: Move hook documentation to ....
22413 * target.def: ... here.
22415 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22416 text on @hook line.
22417 * doc/tm.texi: Regenerate.
22419 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
22422 * doc/invoke.texi: Document -Wconditionally-supported.
22424 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22427 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22430 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22433 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22434 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22435 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22436 Remove duplicate devices.
22437 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22438 * config/avr/t-multilib: Regenerate.
22439 * config/avr/avr-tables.opt: Regenerate.
22440 * doc/avr-mmcu.texi: Regenerate.
22442 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22445 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22447 2013-07-10 Graham Stott <graham.stott@btinternet.com>
22449 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22450 the cost of MULT when optimizing for size.
22452 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22454 * config/cr16/cr16-protos.h: Don't include target.h.
22456 2013-07-09 Joseph Myers <joseph@codesourcery.com>
22458 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22459 adjust register size for TDmode and TFmode for VSX registers.
22461 2013-07-08 Kai Tietz <ktietz@redhat.com>
22464 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22465 hook_bool_const_tree_true.
22467 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22469 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22470 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22471 * config/s390/s390.md: Define FPR*_REGNUM constants.
22472 Fix FPR2_REGNUM constant (18 -> 17).
22473 ("*trunc<BFP:mode><DFP_ALL:mode>2")
22474 ("*trunc<DFP_ALL:mode><BFP:mode>2")
22475 ("trunc<BFP:mode><DFP_ALL:mode>2")
22476 ("trunc<DFP_ALL:mode><BFP:mode>2")
22477 ("*extend<BFP:mode><DFP_ALL:mode>2")
22478 ("*extend<DFP_ALL:mode><BFP:mode>2")
22479 ("extend<BFP:mode><DFP_ALL:mode>2")
22480 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22483 2013-07-08 Graham Stott <graham.stott@btinternet.com>
22485 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22487 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22489 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22490 and cfun_fpr_bit_p to cfun_fpr_save_p.
22491 (s390_frame_area, s390_register_info, s390_frame_info)
22492 (s390_emit_prologue, s390_emit_epilogue)
22493 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22495 * config/s390/s390.h: Define *_REGNUM macros for floating point
22498 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
22500 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22502 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
22504 PR rtl-optimization/57786
22505 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22506 and break out of the loop when it is set to false.
22508 2013-07-08 Jakub Jelinek <jakub@redhat.com>
22511 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22512 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22513 (const_int 63)) 0)).
22514 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22515 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22516 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22518 PR rtl-optimization/57829
22519 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22520 mask bits outside of mode are just sign-extension from mode to HWI.
22522 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
22524 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22525 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22526 adjust_address instead of change_address to keep info about alignment.
22527 (emit_strmov): Remove.
22528 (emit_memmov): New function.
22529 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22530 (expand_movmem_epilogue): Likewise and return updated rtx for
22532 (expand_constant_movmem_prologue): Likewise and return updated rtx for
22533 destination and source.
22534 (decide_alignment): Refactor, handle vector_loop.
22535 (ix86_expand_movmem): Likewise.
22536 (ix86_expand_setmem): Likewise.
22537 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22539 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
22541 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22542 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22544 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22546 * config/i386/sse.md (sse_movlhps): Change alternative 3
22547 of operand 2 to "m".
22549 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22552 * config/i386/sse.md (iptr): New mode attribute.
22553 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22554 (<sse>_vm<plusminus_insn><mode>3): Ditto.
22555 (<sse>_vmmul<mode>3): Ditto.
22556 (<sse>_vmdiv<mode>3): Ditto.
22557 (sse_vmrcpv4sf2): Ditto.
22558 (<sse>_vmsqrt<mode>2): Ditto.
22559 (sse_vmrsqrtv4sf2): Ditto.
22560 (<sse>_vm<code><mode>3): Ditto.
22561 (avx_vmcmp<mode>3): Ditto.
22562 (<sse>_vmmaskcmp<mode>3): Ditto.
22563 (<sse>_comi): Ditto.
22564 (<sse>_ucomi): Ditto.
22565 (*xop_vmfrcz_<mode>): Ditto.
22566 (*fmai_fmadd_<mode>): Ditto.
22567 (*fmai_fmsub_<mode>): Ditto.
22568 (*fmai_fnmadd_<mode>): Ditto.
22569 (*fmai_fnmsub_<mode>): Ditto.
22570 (*fma4i_vmfmadd_<mode>): Ditto.
22571 (*fma4i_vmfmsub_<mode>): Ditto.
22572 (*fma4i_vmfnmadd_<mode>): Ditto.
22573 (*fma4i_vmfnmsub_<mode>): Ditto.
22574 (*xop_vmfrcz_<mode>): Ditto.
22575 (sse_cvtps2pi): Ditto.
22576 (sse_cvttps2pi): Ditto.
22577 (sse_cvtss2si): Ditto.
22578 (sse_cvtss2si_2): Ditto.
22579 (sse_cvtss2siq_2): Ditto.
22580 (sse_cvttss2si): Ditto.
22581 (sse_cvttss2siq): Ditto.
22582 (sse_cvtsd2si): Ditto.
22583 (sse_cvtsd2si_2): Ditto.
22584 (sse_cvtsd2siq_2): Ditto.
22585 (sse_cvttsd2si): Ditto.
22586 (sse_cvttsd2siq): Ditto.
22587 (sse_cvtsd2ss): Ditto.
22588 (sse_cvtss2sd): Ditto.
22589 (avx2_pbroadcast<mode>): Ditto.
22590 (avx2_pbroadcast<mode>_1): Ditto.
22591 (*avx_vperm_broadcast_v4sf): Ditto.
22593 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22594 (sse_movlhps): Ditto.
22595 (sse_storehps): Ditto.
22596 (sse_loadhps): Ditto.
22597 (sse_storelps): Ditto.
22598 (sse_loadlps): Ditto.
22599 (*vec_concatv4sf): Ditto.
22600 (*vec_interleave_highv2df): Ditto.
22601 (*vec_interleave_lowv2df): Ditto.
22602 (*vec_extractv2df_1_sse): Ditto.
22603 (*vec_extractv2df_0_sse): Ditto.
22604 (sse2_storelpd): Ditto.
22605 (sse2_loadlpd): Ditto.
22606 (sse2_movsd): Ditto.
22607 (*vec_concatv4si): Ditto.
22608 (vec_concatv2di): Ditto.
22610 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22611 for Intel asm dialect.
22612 (mmx_punpcklwd): Ditto.
22613 (mmx_punpckldq): Ditto.
22615 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22616 for intel assembler dialect.
22618 2013-07-06 Jakub Jelinek <jakub@redhat.com>
22621 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22622 for BUILT_IN_C{LZ,LRSB}*.
22623 * tree.h (CASE_INT_FN): Add FN##IMAX case.
22624 * tree-vrp.c (extract_range_basic): Handle
22625 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
22626 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22627 fall thru to code calling set_value*.
22628 * builtins.c (expand_builtin): Remove *IMAX cases.
22629 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22630 if width is bigger than 2*HWI.
22632 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
22634 PR rtl-optimization/55342
22635 * lra-int.h (lra_subreg_reload_pseudos): New.
22636 * lra.c: Add undoing optional reloads to the block diagram.
22637 (lra_subreg_reload_pseudos): New.
22638 (lra_optional_reload_pseudos): Change comments.
22639 (lra): Init and clear lra_subreg_reload_pseudos. Clear
22640 lra_optional_reload_pseudos after undo transformations.
22641 * lra-assigns.c (pseudo_prefix_title): New.
22642 (lra_setup_reg_renumber): Use it.
22643 (spill_for): Ditto. Check subreg reload pseudos too.
22644 (assign_by_spills): Consider subreg reload pseudos too.
22645 * lra-constraints.c (simplify_operand_subreg): Use
22646 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22647 (curr_insn_transform): Recognize and do optional reloads.
22648 (undo_optional_reloads): New.
22649 (lra_undo_inheritance): Call undo_optional_reloads.
22651 2013-07-05 Thomas Quinot <quinot@adacore.com>
22653 * tree-complex.c (expand_complex_operations_1): Fix typo.
22655 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
22657 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22658 (tune_params): New member 'const vec_costs'.
22659 * config/aarch64/aarch64.c (generic_vector_cost): New.
22660 (generic_tunings): New member 'generic_vector_cost'.
22661 (aarch64_builtin_vectorization_cost): New.
22662 (aarch64_add_stmt_cost): New.
22663 (TARGET_VECTORIZE_ADD_STMT_COST): New.
22664 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22666 2013-07-03 Jakub Jelinek <jakub@redhat.com>
22669 * config/i386/predicates.md (vsib_address_operand): Disallow
22670 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22672 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
22674 PR middle-end/55030
22675 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22676 expand_builtin_setjmp_receiver.
22677 (expand_label): Adjust, call expand_builtin_setjmp_receiver
22678 with NULL for the label parameter.
22679 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22680 the frame-pointer. Adjust comments.
22681 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22682 only if LABEL is non-NULL.
22684 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
22686 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22687 (ARM_ABI_AAPCS64): Ditto.
22689 (ARM_DEFAULT_ABI): Ditto.
22691 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22693 * config/aarch64/aarch64-builtins.c
22694 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22695 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22697 * config/aarch64/aarch64-simd.md
22698 (aarch64_ld1<VALL:mode>): New.
22699 (aarch64_st1<VALL:mode>): Likewise.
22700 * config/aarch64/arm_neon.h
22701 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22703 2013-07-02 Sriraman Tallam <tmsriram@google.com>
22705 * config/i386/i386.c (gate_insert_vzeroupper): Check if
22707 (ix86_option_override_internal):Turn on all -mavx target flags by
22708 default as they are dependent on AVX anyway.
22710 2013-07-02 Cary Coutant <ccoutant@google.com>
22712 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22713 deterministic hash.
22714 (loc_checksum_ordered): Likewise.
22715 (hash_loc_operands): Remove inline keyword.
22717 2013-07-02 Jakub Jelinek <jakub@redhat.com>
22719 PR tree-optimization/57741
22720 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22721 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22722 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22723 Allow REAL_CST step_exprs if flag_associative_math.
22724 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22726 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22728 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22730 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22732 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22734 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22736 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22738 (iorsi3_insn): Likewise.
22739 (arm_xorsi3): Likewise.
22741 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
22743 * arm.md (attribute "wtype"): Delete. Move attribute values from here
22745 (attribute "type"): ... here, and prefix with "wmmx_".
22746 (attribute "core_cycles"): Update for attribute changes.
22747 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22748 (tbcstv4hi): Likewise.
22749 (tbcstv2si): Likewise.
22750 (iwmmxt_iordi3): Likewise.
22751 (iwmmxt_xordi3): Likewise.
22752 (iwmmxt_anddi3): Likewise.
22753 (iwmmxt_nanddi3): Likewise.
22754 (iwmmxt_arm_movdi): Likewise.
22755 (iwmmxt_movsi_insn): Likewise.
22756 (mov<mode>_internal): Likewise.
22757 (and<mode>3_iwmmxt): Likewise.
22758 (ior<mode>3_iwmmxt): Likewise.
22759 (xor<mode>3_iwmmxt): Likewise.
22760 (add<mode>3_iwmmxt): Likewise.
22761 (ssaddv8qi3): Likewise.
22762 (ssaddv4hi3): Likewise.
22763 (ssaddv2si3): Likewise.
22764 (usaddv8qi3): Likewise.
22765 (usaddv4hi3): Likewise.
22766 (usaddv2si3): Likewise.
22767 (sub<mode>3_iwmmxt): Likewise.
22768 (sssubv8qi3): Likewise.
22769 (sssubv4hi3): Likewise.
22770 (sssubv2si3): Likewise.
22771 (ussubv8qi3): Likewise.
22772 (ussubv4hi3): Likewise.
22773 (ussubv2si3): Likewise.
22774 (mulv4hi3_iwmmxt): Likewise.
22775 (smulv4hi3_highpart): Likewise.
22776 (umulv4hi3_highpart): Likewise.
22777 (iwmmxt_wmacs): Likewise.
22778 (iwmmxt_wmacsz): Likewise.
22779 (iwmmxt_wmacu): Likewise.
22780 (iwmmxt_wmacuz): Likewise.
22781 (iwmmxt_clrdi): Likewise.
22782 (iwmmxt_clrv8qi): Likewise.
22783 (iwmmxt_clr4hi): Likewise.
22784 (iwmmxt_clr2si): Likewise.
22785 (iwmmxt_uavgrndv8qi3): Likewise.
22786 (iwmmxt_uavgrndv4hi3): Likewise.
22787 (iwmmxt_uavgv8qi3): Likewise.
22788 (iwmmxt_uavgv4hi3): Likewise.
22789 (iwmmxt_tinsrb): Likewise.
22790 (iwmmxt_tinsrh): Likewise.
22791 (iwmmxt_tinsrw): Likewise.
22792 (iwmmxt_textrmub): Likewise.
22793 (iwmmxt_textrmsb): Likewise.
22794 (iwmmxt_textrmuh): Likewise.
22795 (iwmmxt_textrmsh): Likewise.
22796 (iwmmxt_textrmw): Likewise.
22797 (iwmxxt_wshufh): Likewise.
22798 (eqv8qi3): Likewise.
22799 (eqv4hi3): Likewise.
22800 (eqv2si3): Likewise.
22801 (gtuv8qi3): Likewise.
22802 (gtuv4hi3): Likewise.
22803 (gtuv2si3): Likewise.
22804 (gtv8qi3): Likewise.
22805 (gtv4hi3): Likewise.
22806 (gtv2si3): Likewise.
22807 (smax<mode>3_iwmmxt): Likewise.
22808 (umax<mode>3_iwmmxt): Likewise.
22809 (smin<mode>3_iwmmxt): Likewise.
22810 (umin<mode>3_iwmmxt): Likewise.
22811 (iwmmxt_wpackhss): Likewise.
22812 (iwmmxt_wpackwss): Likewise.
22813 (iwmmxt_wpackdss): Likewise.
22814 (iwmmxt_wpackhus): Likewise.
22815 (iwmmxt_wpackwus): Likewise.
22816 (iwmmxt_wpackdus): Likewise.
22817 (iwmmxt_wunpckihb): Likewise.
22818 (iwmmxt_wunpckihh): Likewise.
22819 (iwmmxt_wunpckihw): Likewise.
22820 (iwmmxt_wunpckilb): Likewise.
22821 (iwmmxt_wunpckilh): Likewise.
22822 (iwmmxt_wunpckilw): Likewise.
22823 (iwmmxt_wunpckehub): Likewise.
22824 (iwmmxt_wunpckehuh): Likewise.
22825 (iwmmxt_wunpckehuw): Likewise.
22826 (iwmmxt_wunpckehsb): Likewise.
22827 (iwmmxt_wunpckehsh): Likewise.
22828 (iwmmxt_wunpckehsw): Likewise.
22829 (iwmmxt_wunpckelub): Likewise.
22830 (iwmmxt_wunpckeluh): Likewise.
22831 (iwmmxt_wunpckeluw): Likewise.
22832 (iwmmxt_wunpckelsb): Likewise.
22833 (iwmmxt_wunpckelsh): Likewise.
22834 (iwmmxt_wunpckelsw): Likewise.
22835 (ror<mode>3): Likewise.
22836 (ashr<mode>3_iwmmxt): Likewise.
22837 (lshr<mode>3_iwmmxt): Likewise.
22838 (ashl<mode>3_iwmmxt): Likewise.
22839 (ror<mode>3_di): Likewise.
22840 (ashr<mode>3_di): Likewise.
22841 (lshr<mode>3_di): Likewise.
22842 (ashl<mode>3_di): Likewise.
22843 (iwmmxt_wmadds): Likewise.
22844 (iwmmxt_wmaddu): Likewise.
22845 (iwmmxt_tmia): Likewise.
22846 (iwmmxt_tmiaph): Likewise.
22847 (iwmmxt_tmiabb): Likewise.
22848 (iwmmxt_tmiatb): Likewise.
22849 (iwmmxt_tmiabt): Likewise.
22850 (iwmmxt_tmiatt): Likewise.
22851 (iwmmxt_tmovmskb): Likewise.
22852 (iwmmxt_tmovmskh): Likewise.
22853 (iwmmxt_tmovmskw): Likewise.
22854 (iwmmxt_waccb): Likewise.
22855 (iwmmxt_wacch): Likewise.
22856 (iwmmxt_waccw): Likewise.
22857 (iwmmxt_waligni): Likewise.
22858 (iwmmxt_walignr): Likewise.
22859 (iwmmxt_walignr0): Likewise.
22860 (iwmmxt_walignr1): Likewise.
22861 (iwmmxt_walignr2): Likewise.
22862 (iwmmxt_walignr3): Likewise.
22863 (iwmmxt_wsadb): Likewise.
22864 (iwmmxt_wsadh): Likewise.
22865 (iwmmxt_wsadbz): Likewise.
22866 (iwmmxt_wsadhz): Likewise.
22867 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22868 (iwmmxt_wabsdiffb): Likewise.
22869 (iwmmxt_wabsdiffh): Likewise.
22870 (iwmmxt_wabsdiffw): Likewise.
22871 (iwmmxt_waddsubhx): Likewise
22872 (iwmmxt_wsubaddhx): Likewise.
22873 (addc<mode>3): Likewise.
22874 (iwmmxt_avg4): Likewise.
22875 (iwmmxt_avg4r): Likewise.
22876 (iwmmxt_wmaddsx): Likewise.
22877 (iwmmxt_wmaddux): Likewise.
22878 (iwmmxt_wmaddsn): Likewise.
22879 (iwmmxt_wmaddun): Likewise.
22880 (iwmmxt_wmulwsm): Likewise.
22881 (iwmmxt_wmulwum): Likewise.
22882 (iwmmxt_wmulsmr): Likewise.
22883 (iwmmxt_wmulumr): Likewise.
22884 (iwmmxt_wmulwsmr): Likewise.
22885 (iwmmxt_wmulwumr): Likewise.
22886 (iwmmxt_wmulwl): Likewise.
22887 (iwmmxt_wqmulm): Likewise.
22888 (iwmmxt_wqmulwm): Likewise.
22889 (iwmmxt_wqmulmr): Likewise.
22890 (iwmmxt_wqmulwmr): Likewise.
22891 (iwmmxt_waddbhusm): Likewise.
22892 (iwmmxt_waddbhusl): Likewise.
22893 (iwmmxt_wqmiabb): Likewise.
22894 (iwmmxt_wqmiabt): Likewise.
22895 (iwmmxt_wqmiatb): Likewise.
22896 (iwmmxt_wqmiatt): Likewise.
22897 (iwmmxt_wqmiabbn): Likewise.
22898 (iwmmxt_wqmiabtn): Likewise.
22899 (iwmmxt_wqmiatbn): Likewise.
22900 (iwmmxt_wqmiattn): Likewise.
22901 (iwmmxt_wmiabb): Likewise.
22902 (iwmmxt_wmiabt): Likewise.
22903 (iwmmxt_wmiatb): Likewise.
22904 (iwmmxt_wmiatt): Likewise.
22905 (iwmmxt_wmiabbn): Likewise.
22906 (iwmmxt_wmiabtn): Likewise.
22907 (iwmmxt_wmiatbn): Likewise.
22908 (iwmmxt_wmiattn): Likewise.
22909 (iwmmxt_wmiawbb): Likewise.
22910 (iwmmxt_wmiawbt): Likewise.
22911 (iwmmxt_wmiawtb): Likewise.
22912 (iwmmxt_wmiawtt): Likewise.
22913 (iwmmxt_wmiawbbn): Likewise.
22914 (iwmmxt_wmiawbtn): Likewise.
22915 (iwmmxt_wmiawtbn): Likewise.
22916 (iwmmxt_wmiawttn): Likewise.
22917 (iwmmxt_wmerge): Likewise.
22918 (iwmmxt_tandc<mode>3): Likewise.
22919 (iwmmxt_torc<mode>3): Likewise.
22920 (iwmmxt_torvsc<mode>3): Likewise.
22921 (iwmmxt_textrc<mode>3): Likewise.
22922 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22923 (wmmxt_pack): Likewise.
22924 (wmmxt_mult_c1): Likewise.
22925 (wmmxt_mult_c2): Likewise.
22926 (wmmxt_alu_c1): Likewise.
22927 (wmmxt_alu_c2): Likewise.
22928 (wmmxt_alu_c3): Likewise.
22929 (wmmxt_transfer_c1): Likewise.
22930 (wmmxt_transfer_c2): Likewise.
22931 (wmmxt_transfer_c3): Likewise.
22932 (marvell_f_iwmmxt_wstr): Likewise.
22933 (marvell_f_iwmmxt_wldr): Likewise.
22935 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
22937 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22939 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22942 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22943 * lra-constraints.c (need_for_split_p): Check call used hard regs
22944 living through calls.
22946 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22947 call used regs for call insn.
22949 2013-06-28 Jakub Jelinek <jakub@redhat.com>
22952 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22953 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22955 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
22957 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22959 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22961 * lra-constraints.c (need_for_split_p): Check call used hard regs
22962 living through calls.
22964 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
22967 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22968 to tie with any other modes. Eliminate Altivec vector mode tests,
22969 since these are a subset of ALTIVEC or VSX vector modes. Simplify
22970 code, to return 0 if testing MODE2 for a condition, if we've
22971 already tested MODE1 for the same condition.
22973 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22975 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22978 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22980 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22981 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22983 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22985 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22987 (aarch64_symbolic_constant_p): Remove.
22988 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22989 static. Fix line length and white space.
22990 (aarch64_symbolic_constant_p): Remove.
22991 * config/aarch64/predicates.md (aarch64_valid_symref):
22992 Use aarch64_classify_symbol_expression.
22994 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22996 * config/arm/constraints.md (Ts): New constraint.
22997 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22999 (compare_scc): Use "Ts" constraint for operand 0.
23000 (ior_scc_scc): Likewise.
23001 (and_scc_scc): Likewise.
23002 (and_scc_scc_nodom): Likewise.
23003 (ior_scc_scc_cmp): Likewise for operand 7.
23004 (and_scc_scc_cmp): Likewise.
23005 * config/arm/thumb2.md (thumb2_movsi_insn):
23006 Add alternatives for 16-bit encodings.
23007 (thumb2_movhi_insn): Likewise.
23008 (thumb2_movsicc_insn): Likewise.
23009 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
23010 (thumb2_negscc): Use "Ts" constraint.
23011 Move mvn instruction outside cond_exec block.
23012 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23013 for 16-bit encodings.
23015 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23017 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23019 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23020 (mulsi3subsi): Likewise.
23021 (mulsidi3adddi): Likewise.
23022 (mulsidi3_v6): Likewise.
23023 (umulsidi3_v6): Likewise.
23024 (umulsidi3adddi_v6): Likewise.
23025 (smulsi3_highpart_v6): Likewise.
23026 (umulsi3_highpart_v6): Likewise.
23027 (mulhisi3tb): Likewise.
23028 (mulhisi3bt): Likewise.
23029 (mulhisi3tt): Likewise.
23030 (maddhisi4): Likewise.
23031 (maddhisi4tb): Likewise.
23032 (maddhisi4tt): Likewise.
23033 (maddhidi4): Likewise.
23034 (maddhidi4tb): Likewise.
23035 (maddhidi4tt): Likewise.
23036 (zeroextractsi_compare0_scratch): Likewise.
23037 (insv_zero): Likewise.
23038 (insv_t2): Likewise.
23039 (anddi_notzesidi_di): Likewise.
23040 (anddi_notsesidi_di): Likewise.
23041 (andsi_notsi_si): Likewise.
23042 (iordi_zesidi_di): Likewise.
23043 (xordi_zesidi_di): Likewise.
23044 (andsi_iorsi3_notsi): Likewise.
23045 (smax_0): Likewise.
23046 (smax_m1): Likewise.
23047 (smin_0): Likewise.
23048 (not_shiftsi): Likewise.
23049 (unaligned_loadsi): Likewise.
23050 (unaligned_loadhis): Likewise.
23051 (unaligned_loadhiu): Likewise.
23052 (unaligned_storesi): Likewise.
23053 (unaligned_storehi): Likewise.
23054 (extv_reg): Likewise.
23055 (extzv_t2): Likewise.
23056 (divsi3): Likewise.
23057 (udivsi3): Likewise.
23058 (arm_zero_extendhisi2addsi): Likewise.
23059 (arm_zero_extendqisi2addsi): Likewise.
23060 (compareqi_eq0): Likewise.
23061 (arm_extendhisi2_v6): Likewise.
23062 (arm_extendqisi2addsi): Likewise.
23063 (arm_movt): Likewise.
23064 (thumb2_ldrd): Likewise.
23065 (thumb2_ldrd_base): Likewise.
23066 (thumb2_ldrd_base_neg): Likewise.
23067 (thumb2_strd): Likewise.
23068 (thumb2_strd_base): Likewise.
23069 (thumb2_strd_base_neg): Likewise.
23070 (arm_negsi2): Add alternative for 16-bit encoding.
23071 (arm_one_cmplsi2): Likewise.
23073 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23075 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23076 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23077 (movdfcc): Likewise.
23078 * config/arm/vfp.md (*thumb2_movsf_vfp):
23079 Disable predication for arm_restrict_it.
23080 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23081 (*thumb2_movdfcc_vfp): Likewise.
23082 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23083 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23084 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23085 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23086 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23087 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23088 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23089 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23090 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23091 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23092 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23093 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23094 Disable predication for arm_restrict_it.
23096 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
23098 * config/i386/bmiintrin.h (_bextr_u32): New.
23099 (_bextr_u64): Ditto.
23101 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
23103 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23104 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23105 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23106 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23107 * config/mips/n32-elf.h: ...this new file.
23109 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
23112 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23113 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23115 2013-06-27 Catherine Moore <clm@codesourcery.com>
23117 * config/mips/mips-tables.opt: Regenerate.
23118 * config/mips/mips-cpus.def: Add m14ke and m14kec.
23119 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23120 * doc/invoke.texi: Add -m14kc.
23122 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23125 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23126 constraints of operand 1 and 2.
23129 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23130 to match RTL canonicalization. Swap predicates and
23131 constraints of operand 1 and 2.
23133 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
23135 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23136 Process OP_INOUT regs for splitting too.
23138 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23140 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23141 decl before the loop, initialize to NULL.
23142 (vectorizable_load): Initialize ptr_incr to NULL.
23144 2013-06-27 Martin Jambor <mjambor@suse.cz>
23147 * ipa-ref.h (ipa_maybe_record_reference): Declare.
23148 * ipa-ref.c (ipa_maybe_record_reference): New function.
23149 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23150 * ipa-cp.c (create_specialized_node): Record potential references from
23152 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23154 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23156 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23157 parameter 'mode' of type 'enum machine_mode mode'; change to pass
23158 'mode' to force_reg.
23159 (aarch64_add_offset): Update calls to aarch64_force_temporary.
23160 (aarch64_expand_mov_immediate): Likewise.
23162 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23164 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23165 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23167 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23169 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23170 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23171 (struct machine_function): Add tbegin_p.
23172 (s390_canonicalize_comparison): Fold CC mode compares to
23173 conditional jump if possible.
23174 (s390_emit_jump): Return the emitted jump.
23175 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23176 Handle CCRAWmode compares.
23177 (s390_option_override): Default to -mhtm if available.
23178 (s390_reg_clobbered_rtx): Handle floating point regs as well.
23179 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23180 FPRs instead of df_regs_ever_live_p.
23181 (s390_optimize_nonescaping_tx): New function.
23182 (s390_init_frame_layout): Extend clobbered_regs array to cover
23184 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23185 (s390_expand_tbegin): New function.
23186 (enum s390_builtin): New enum definition.
23187 (code_for_builtin): New array definition.
23188 (s390_init_builtins): New function.
23189 (s390_expand_builtin): New function.
23190 (TARGET_INIT_BUILTINS): Define.
23191 (TARGET_EXPAND_BUILTIN): Define.
23192 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23193 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23194 (s390_alc_comparison): Likewise.
23195 * config/s390/s390-modes.def: Add CCRAWmode.
23196 * config/s390/s390.h (processor_flags): Add PF_TX.
23197 (TARGET_CPU_HTM): Define macro.
23198 (TARGET_HTM): Define macro.
23199 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23200 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23201 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23202 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23203 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23204 (TBEGIN_MASK, TBEGINC_MASK): New constants.
23205 ("*cc_to_int"): Move up.
23206 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23207 constants other than 0.
23208 ("*ccraw_to_int"): New insn and splitter definition.
23209 ("tbegin", "tbegin_nofloat", "tbegin_retry")
23210 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23211 ("tx_assist"): New expander.
23212 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23213 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23214 * config/s390/s390.opt: Add -mhtm option.
23215 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23216 * config/s390/htmxlintrin.h: New file.
23217 * config/s390/htmintrin.h: New file.
23218 * config/s390/s390intrin.h: New file.
23219 * doc/extend.texi: Document htm builtins.
23220 * config.gcc: Add the new header files to extra_headers.
23222 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
23224 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23225 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23227 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23228 Pat Haugen <pthaugen@us.ibm.com>
23229 Peter Bergner <bergner@vnet.ibm.com>
23231 * config/rs6000/power8.md: New.
23232 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23233 setting for power8 entry.
23234 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23235 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23236 test for Power4/Power5 only.
23237 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23239 (force_new_group): Adjust comment.
23240 * config/rs6000/rs6000.md: Include power8.md.
23242 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
23244 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23245 * config/arm/arm-protos.h (arm_max_conditional_execute): New
23247 (tune_params): Update comment.
23248 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23249 (arm_max_conditional_execute): New function.
23250 (thumb2_final_prescan_insn): Use max_insn_skipped and
23251 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23253 2013-06-25 Jakub Jelinek <jakub@redhat.com>
23255 PR tree-optimization/57705
23256 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23257 SSA_NAME step, provided that it is not defined inside the loop.
23258 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23259 (get_initial_def_for_induction): Handle SSA_NAME IV step.
23261 2013-06-25 Martin Jambor <mjambor@suse.cz>
23263 PR middle-end/57670
23264 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23265 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23267 (ipa_note_param_call): Initialize member_ptr flag.
23268 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23269 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23270 (ipa_write_indirect_edge_info): Stream member_ptr flag.
23271 (ipa_read_indirect_edge_info): Likewise.
23273 2013-06-25 Richard Biener <rguenther@suse.de>
23275 PR middle-end/56977
23276 * passes.c (init_optimization_passes): Move pass_fold_builtins
23277 and pass_dce earlier with -Og.
23279 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
23281 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23282 <BIT_FIELD_REF>: Remove trailing TAB.
23283 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23286 2013-06-24 Martin Jambor <mjambor@suse.cz>
23288 PR tree-optimization/57358
23289 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23290 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23291 (ipa_analyze_params_uses): Generate pessimistic info when true.
23293 2013-06-24 Martin Jambor <mjambor@suse.cz>
23295 PR tree-optimization/57539
23296 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23297 global.inlined_to of the new node to it. All callers changed.
23298 * ipa-inline-transform.c (clone_inlined_nodes): New variable
23299 inlining_into, pass it to cgraph_clone_node.
23300 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23301 ipa_free_edge_args_substructures.
23302 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23303 rdesc linked list. Do not assert rdesc edges have inlined caller.
23304 Assert we have found an rdesc in the rdesc list.
23306 2013-06-24 Richard Biener <rguenther@suse.de>
23308 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23309 (pointer_set_lookup): Declare.
23310 (class pointer_map): New template class implementing a
23311 generic pointer to T map.
23312 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23313 pointer_map<T>::contains, pointer_map<T>::insert,
23314 pointer_map<T>::traverse): New functions.
23315 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23316 (pointer_set_lookup): New function.
23317 (pointer_set_contains): Use pointer_set_lookup.
23318 (pointer_set_insert): Likewise.
23319 (insert_aux): Remove.
23320 (struct pointer_map_t): Embed a pointer_set_t.
23321 (pointer_map_create): Adjust.
23322 (pointer_map_destroy): Likewise.
23323 (pointer_map_contains): Likewise.
23324 (pointer_map_insert): Likewise.
23325 (pointer_map_traverse): Likewise.
23326 * tree-streamer.h (struct streamer_tree_cache_d): Use a
23327 pointer_map<unsigned> instead of a pointer_map_t.
23328 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23329 (streamer_tree_cache_lookup): Likewise.
23330 (streamer_tree_cache_create): Likewise.
23331 (streamer_tree_cache_delete): Likewise.
23332 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23333 pointer_map<unsigned> instead of a pointer_map_t.
23334 (lto_init_tree_ref_encoder): Adjust.
23335 (lto_destroy_tree_ref_encoder): Likewise.
23336 * lto-section-out.c (lto_output_decl_index): Likewise.
23337 (lto_record_function_out_decl_state): Likewise.
23338 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23340 2013-06-24 Richard Biener <rguenther@suse.de>
23342 PR tree-optimization/57488
23343 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23345 2013-06-24 Alan Modra <amodra@gmail.com>
23347 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23348 (gen_easy_altivec_constant): Likewise.
23349 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23350 easy_vector_constant_msb): Likewise.
23352 2013-06-23 Jakub Jelinek <jakub@redhat.com>
23355 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23356 add missing return true.
23358 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
23361 * config/sh/predicates.md (general_extend_operand): Invoke
23362 general_movsrc_operand for memory operands.
23363 (general_movsrc_operand): Allow reg+reg addressing, do not use
23364 general_operand for memory operands.
23366 2013-06-23 Sriraman Tallam <tmsriram@google.com>
23368 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
23369 when current target options does not apply.
23370 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23371 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23372 * config/i386/bmiintrin.h: Pass appropriate target
23373 attributes to header.
23374 * config/i386/mmintrin.h: Ditto.
23375 * config/i386/nmmintrin.h: Ditto.
23376 * config/i386/avx2intrin.h: Ditto.
23377 * config/i386/fxsrintrin.h: Ditto.
23378 * config/i386/tbmintrin.h: Ditto.
23379 * config/i386/xsaveintrin.h: Ditto.
23380 * config/i386/f16cintrin.h: Ditto.
23381 * config/i386/xtestintrin.h: Ditto.
23382 * config/i386/xsaveoptintrin.h: Ditto.
23383 * config/i386/bmi2intrin.h: Ditto.
23384 * config/i386/lzcntintrin.h: Ditto.
23385 * config/i386/smmintrin.h: Ditto.
23386 * config/i386/wmmintrin.h: Ditto.
23387 * config/i386/x86intrin.h: Remove all header include guards.
23388 * config/i386/prfchwintrin.h: Ditto.
23389 * config/i386/pmmintrin.h: Ditto.
23390 * config/i386/tmmintrin.h: Ditto.
23391 * config/i386/xmmintrin.h: Ditto.
23392 * config/i386/popcntintrin.h: Ditto.
23393 * config/i386/rdseedintrin.h: Ditto.
23394 * config/i386/ammintrin.h: Ditto.
23395 * config/i386/emmintrin.h: Ditto.
23396 * config/i386/immintrin.h: Remove all header include guards.
23397 * config/i386/fma4intrin.h: Ditto.
23398 * config/i386/lwpintrin.h: Ditto.
23399 * config/i386/xopintrin.h: Ditto.
23400 * config/i386/ia32intrin.h: Ditto.
23401 * config/i386/avxintrin.h: Ditto.
23402 * config/i386/rtmintrin.h: Ditto.
23403 * config/i386/fmaintrin.h: Ditto.
23404 * config/i386/mm3dnow.h: Ditto.
23406 2013-06-22 Sriraman Tallam <tmsriram@google.com>
23408 * common/config/i386/i386-common.c: Handle LZCNT.
23410 2013-06-22 Andi Kleen <ak@linux.intel.com>
23412 * doc/extend.texi: Use __atomic_store_n instead of
23413 __atomic_store in HLE example.
23415 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
23417 * config/sh/sh.c: Remove <cstdlib> workaround.
23419 2013-06-21 Andi Kleen <ak@linux.intel.com>
23421 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
23423 2013-06-21 Andi Kleen <ak@linux.intel.com>
23425 * doc/extend.texi: Document that __atomic_clear and
23426 __atomic_test_and_set should only be used with bool.
23428 2013-06-20 Jan Hubicka <jh@suse.cz>
23430 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23431 types_same_for_odr.
23432 * tree.c (decls_same_for_odr): New function.
23433 (same_for_edr): New function.
23434 (types_same_for_odr): New function.
23435 (get_binfo_at_offset): Use it.
23436 * tree.h (types_same_for_odr): Declare.
23438 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
23439 Jason Merrill <jason@redhat.com>
23441 * system.h: Include <cstdlib> as well as <stdlib.h>.
23443 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
23446 * config/i386/i386.c (construct_container): Report error if
23447 long double is used with disabled x87 float returns.
23449 2013-06-20 Jan Hubicka <jh@suse.cz>
23451 * lto-cgraph.c (input_symtab): Do not set cgraph state.
23453 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
23455 PR rtl-optimization/57425
23456 PR rtl-optimization/57569
23457 * alias.c (write_dependence_p): Remove parameters mem_mode and
23458 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
23459 Changed all callers.
23460 (canon_anti_dependence): Get comments and semantics in sync.
23461 Add parameter mem_canonicalized. Changed all callers.
23462 * rtl.h (canon_anti_dependence): Update prototype.
23464 2013-06-20 Richard Biener <rguenther@suse.de>
23466 * data-streamer-in.c (streamer_read_uhwi): Optimize single
23467 byte case, inline streamer_read_uchar and defer section
23470 2013-06-20 Richard Biener <rguenther@suse.de>
23472 PR tree-optimization/57584
23473 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23474 SSA names into the expanded expression that take part in
23475 abnormal coalescing.
23477 2013-06-19 Sharad Singhai <singhai@google.com>
23479 * gcov.c (print_usage): Handle new option.
23480 (process_args): Ditto.
23481 (get_gcov_intermediate_filename): New function.
23482 (output_intermediate_file): New function.
23483 (output_gcov_file): New function
23484 (generate_results): Handle new option.
23485 (release_function): Relase demangled name.
23486 (read_graph_file): Handle demangled name.
23487 (output_lines): Ditto.
23488 * doc/gcov.texi: Document gcov intermediate format.
23490 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
23493 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23494 (lra_emit_add): Use the functions. Add comment about Y as an
23497 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
23500 * collect2.c (collect_atexit): New.
23501 (collect_exit): Delete.
23502 (main): Register collect_atexit with atexit.
23503 (collect_wait): Change collect_exit to exit.
23505 * collect2.h (collect_exit): Delete.
23506 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23508 2013-06-19 Wei Mi <wmi@google.com>
23510 PR rtl-optimization/57518
23511 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23512 if regno is used in paradoxical subreg.
23513 (update_equiv_regs): Check pdx_subregs[regno] before
23514 set a reg to be equivalent with a mem.
23516 2013-06-19 Matthias Klose <doko@ubuntu.com>
23519 * file-find.h (find_a_file): Add a mode parameter.
23520 * file-find.c (find_a_file): Likewise.
23521 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23522 with X_OK for the executables.
23523 * collect2.c (main): Call find_a_file with X_OK.
23525 2013-06-19 Steve Ellcey <sellcey@mips.com>
23528 * config/mips/mips.md (casesi_internal_mips16_<mode>):
23529 Use NEXT_INSN instead of next_real_insn.
23531 2013-06-19 Jan Hubicka <jh@suse.cz>
23533 * cgraph.h (const_value_known_p): Replace by ...
23534 (ctor_for_folding): .. this one.
23535 * cgraphunit.c (process_function_and_variable_attributes): Use it.
23536 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23537 * expr.c (expand_expr_real_1): Likewise.
23538 (string_constant): Likewise.
23539 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23540 * ipa.c (process_references): Likewise.
23541 (symtab_remove_unreachable_nodes): Likewise.
23542 * ipa-inline-analysis.c (param_change_prob): Likewise.
23543 * gimple-fold.c (canonicalize_constructor_val): Likewise.
23544 (get_base_constructor): Likwise.
23545 * varpool.c (varpool_remove_node): Likewise.
23546 (varpool_remove_initializer): LIkewise.
23547 (dump_varpool_node): LIkwise.
23548 (const_value_known_p): Rewrite to ...
23549 (ctor_for_folding): ... this one.
23551 2013-06-19 Jakub Jelinek <jakub@redhat.com>
23554 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23555 PERSONALITY in $PATH derived prefixes.
23557 2013-06-19 Jeff Law <law@redhat.com>
23559 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23562 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23563 (simplify_bitwise_binary): Use it to simpify certain binary ops on
23566 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
23568 * config/arm/vfp.md: Move VFP instruction classification documentation
23570 * config/arm/arm.md: ... here. Update instruction classification
23573 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
23575 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23576 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23577 pattern. Use more efficient sequences on ARMv5 and Thumb2.
23579 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
23582 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23583 with NEXT_INSN. Use tablejump_p to check for jump table data
23586 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
23589 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23590 that now in C++ the value is correct per the C++ standards.
23592 2013-06-19 Richard Biener <rguenther@suse.de>
23594 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23595 for global context.
23597 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23600 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23603 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23604 with next_active_insn.
23606 2013-06-18 Sriraman Tallam <tmsriram@google.com>
23608 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23609 functions are inlined during failures to flag an error.
23610 * tree-inline.c (expand_call_inline): Allow the error to be flagged
23611 in early inline pass.
23613 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
23615 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23618 2013-06-18 Julian Brown <julian@codesourcery.com>
23620 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23621 Permit virtual register pre-reload if !strict.
23622 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23624 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23626 * config/arm/neon.md (movmisalign<mode>): Use
23627 neon_perm_struct_or_reg_operand instead of
23628 neon_struct_or_register_operand.
23629 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23630 neon_permissive_struct_operand instead of neon_struct_operand.
23631 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23632 neon_vector_mem_operand.
23633 * config/arm/predicates.md (neon_struct_operand): Adjust call to
23634 neon_vector_mem_operand.
23635 (neon_permissive_struct_operand): New.
23636 (neon_struct_or_register_operand): Rename to...
23637 (neon_perm_struct_or_reg_operand): This. Adjust call to
23638 neon_vector_mem_operand.
23640 2013-06-18 Richard Biener <rguenther@suse.de>
23642 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23643 * lto-streamer.h: Include pointer-set.h.
23644 (struct lto_decl_slot): Remove.
23645 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23646 Remove next_index entry.
23647 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23648 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23649 (lto_init_tree_ref_encoder): Adjust.
23650 (lto_destroy_tree_ref_encoder): Likewise.
23651 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23652 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23653 (lto_output_decl_index): Adjust.
23654 (lto_new_out_decl_state): Likewise.
23655 (lto_record_function_out_decl_state): Likewise.
23656 * lto-streamer-out.c (copy_function): Likewise.
23658 2013-06-18 Richard Biener <rguenther@suse.de>
23660 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23661 * cgraphunit.c: Include cfgloop.h.
23662 (init_lowered_empty_function): Initialize the loop tree.
23663 (assemble_thunk): Insert new BBs into loops.
23665 2013-06-18 Richard Biener <rguenther@suse.de>
23667 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23668 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23669 the map from cache entry to cache index optional.
23670 (streamer_tree_cache_replace_tree): Adjust accordingly.
23671 (streamer_tree_cache_append): Likewise.
23672 (streamer_tree_cache_delete): Likewise.
23673 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23674 streamer cache map from cache entry to cache index.
23675 * lto-streamer-out.c (create_output_block): Adjust.
23677 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
23679 * config/arm/arm.md (attribute "insn"): Move multiplication and
23680 division attributes to...
23681 (attribute "type"): ... here. Remove mult.
23682 (attribute "mul32"): New attribute.
23683 (attribute "mul64"): Add umaal.
23684 (*arm_mulsi3): Update attributes.
23685 (*arm_mulsi3_v6): Likewise.
23686 (*thumb_mulsi3): Likewise.
23687 (*thumb_mulsi3_v6): Likewise.
23688 (*mulsi3_compare0): Likewise.
23689 (*mulsi3_compare0_v6): Likewise.
23690 (*mulsi_compare0_scratch): Likewise.
23691 (*mulsi_compare0_scratch_v6): Likewise.
23692 (*mulsi3addsi): Likewise.
23693 (*mulsi3addsi_v6): Likewise.
23694 (*mulsi3addsi_compare0): Likewise.
23695 (*mulsi3addsi_compare0_v6): Likewise.
23696 (*mulsi3addsi_compare0_scratch): Likewise.
23697 (*mulsi3addsi_compare0_scratch_v6): Likewise.
23698 (*mulsi3subsi): Likewise.
23699 (*mulsidi3adddi): Likewise.
23700 (*mulsi3addsi_v6): Likewise.
23701 (*mulsidi3adddi_v6): Likewise.
23702 (*mulsidi3_nov6): Likewise.
23703 (*mulsidi3_v6): Likewise.
23704 (*umulsidi3_nov6): Likewise.
23705 (*umulsidi3_v6): Likewise.
23706 (*umulsidi3adddi): Likewise.
23707 (*umulsidi3adddi_v6): Likewise.
23708 (*smulsi3_highpart_nov6): Likewise.
23709 (*smulsi3_highpart_v6): Likewise.
23710 (*umulsi3_highpart_nov6): Likewise.
23711 (*umulsi3_highpart_v6): Likewise.
23712 (mulhisi3): Likewise.
23713 (*mulhisi3tb): Likewise.
23714 (*mulhisi3bt): Likewise.
23715 (*mulhisi3tt): Likewise.
23716 (maddhisi4): Likewise.
23717 (*maddhisi4tb): Likewise.
23718 (*maddhisi4tt): Likewise.
23719 (maddhidi4): Likewise.
23720 (*maddhidi4tb): Likewise.
23721 (*maddhidi4tt): Likewise.
23722 (divsi3): Likewise.
23723 (udivsi3): Likewise.
23724 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23725 (thumb2_mulsi_short_compare0): Likewise.
23726 (thumb2_mulsi_short_compare0_scratch): Likewise.
23727 * config/arm/arm1020e.md (1020mult1): Update attribute change.
23728 (1020mult2): Likewise.
23729 (1020mult3): Likewise.
23730 (1020mult4): Likewise.
23731 (1020mult5): Likewise.
23732 (1020mult6): Likewise.
23733 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23735 (cortex_a15_mult64): Likewise.
23736 (cortex_a15_sdiv): Likewise.
23737 (cortex_a15_udiv): Likewise.
23738 * config/arm/arm1026ejs.md (mult1): Update attribute change.
23744 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23745 (pj4_ir_div): Likewise.
23746 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23747 (11_mult2): Likewise.
23748 (11_mult3): Likewise.
23749 (11_mult4): Likewise.
23750 (11_mult5): Likewise.
23751 (11_mult6): Likewise.
23752 (11_mult7): Likewise.
23753 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23754 (cortex_a8_mla): Likewise.
23755 (cortex_a8_mull): Likewise.
23756 (cortex_a8_smulwy): Likewise.
23757 (cortex_a8_smlald): Likewise.
23758 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23759 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23760 (cortex_r4_mul_3): Likewise.
23761 (cortex_r4_mla_4): Likewise.
23762 (cortex_r4_mla_3): Likewise.
23763 (cortex_r4_smlald): Likewise.
23764 (cortex_r4_mull): Likewise.
23765 (cortex_r4_sdiv): Likewise.
23766 (cortex_r4_udiv): Likewise.
23767 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23768 (cortex_a7_idiv): Likewise.
23769 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23770 (9_mult2): Likewise.
23771 (9_mult3): Likewise.
23772 (9_mult4): Likewise.
23773 (9_mult5): Likewise.
23774 (9_mult6): Likewise.
23775 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23776 (cortex_a53_sdiv): Likewise.
23777 (cortex_a53_udiv): Likewise.
23778 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23779 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23780 (mp626_mult2): Likewise.
23781 (mp626_mult3): Likewise.
23782 (mp626_mult4): Likewise.
23783 * config/arm/fa526.md (526_mult1): Update attribute change.
23784 (526_mult2): Likewise.
23785 * config/arm/arm-generic.md (mult): Update attribute change.
23786 (mult_ldsched_strongarm): Likewise.
23787 (mult_ldsched): Likewise.
23788 (multi_cycle): Likewise.
23789 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23790 * config/arm/fa606te.md (606te_mult1): Update attribute change.
23791 (606te_mult2): Likewise.
23792 (606te_mult3): Likewise.
23793 (606te_mult4): Likewise.
23794 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23795 (cortex_a9_mac16): Likewise.
23796 (cortex_a9_multiply): Likewise.
23797 (cortex_a9_mac): Likewise.
23798 (cortex_a9_multiply_long): Likewise.
23799 * config/arm/fa626te.md (626te_mult1): Update attribute change.
23800 (626te_mult2): Likewise.
23801 (626te_mult3): Likewise.
23802 (626te_mult4): Likewise.
23804 2013-06-18 Richard Biener <rguenther@suse.de>
23807 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23809 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23812 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23813 with next_active_insn.
23815 2013-06-18 Alan Modra <amodra@gmail.com>
23817 * config/rs6000/rs6000.h (enum data_align): New.
23818 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23819 (DATA_ABI_ALIGNMENT): Define.
23820 (CONSTANT_ALIGNMENT): Correct comment.
23821 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23822 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23824 2013-06-17 David Malcolm <dmalcolm@redhat.com>
23826 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23827 ATTRIBUTE_UNUSED marking.
23829 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
23831 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23832 alternative and update.
23833 (aarch64_dup_lanedi): Delete.
23834 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23835 * config/aarch64/aarch64-simd-builtins.def: Update.
23837 2013-06-17 Richard Biener <rguenther@suse.de>
23839 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23840 (lto_input_scc): Declare.
23841 (lto_input_tree_1): Likewise.
23842 (struct lto_stats_d): Add num_tree_bodies_output and
23843 num_pickle_refs_output.
23844 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23845 (lto_read_tree_1): Split out from ...
23846 (lto_read_tree): ... this.
23847 (lto_input_scc): New function.
23848 (lto_input_tree_1): Split out from ...
23849 (lto_input_tree): ... this. Handle LTO_tree_scc.
23850 (lto_data_in_create): Create the streamer cache without hashes.
23851 * lto-streamer-out.c (create_output_block): Create the streamer
23852 cache with hashes when not doing WPA.
23853 (lto_write_tree_1): Split out from ...
23854 (lto_write_tree): ... this.
23855 (get_symbol_initial_value): New function.
23856 (lto_output_tree_1): Split out from ...
23857 (lto_output_tree): ... this. Write trees as series of SCCs
23858 using a DFS walk via DFS_write_tree.
23859 (struct sccs, struct scc_entry): New types.
23860 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23861 (DFS_write_tree_body): New function.
23862 (DFS_write_tree): Likewise.
23863 (hash_tree): Likewise.
23864 (scc_entry_compare): Likewise.
23865 (hash_scc): Likewise.
23866 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23867 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23868 TREE_CHAIN as regular reference.
23869 (streamer_read_integer_cst): Remove.
23870 (streamer_get_pickled_tree): Adjust.
23871 * tree-streamer-out.c (streamer_write_chain): Disable streaming
23872 of DECL_EXTERNALs in BLOCK_VARS for now.
23873 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23875 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23876 Add hash value argument and record that if hashes are recorded
23878 (streamer_tree_cache_insert_1): Adjust.
23879 (streamer_tree_cache_insert): Likewise.
23880 (streamer_tree_cache_insert_at): Rename to ...
23881 (streamer_tree_cache_replace_tree): ... this and adjust.
23882 (streamer_tree_cache_append): Adjust.
23883 (record_common_node): Likewise.
23884 (streamer_tree_cache_create): Add argument whether to
23885 record hash values together with trees.
23886 (streamer_tree_cache_delete): Adjust.
23887 * tree-streamer.h (struct streamer_tree_cache_d): Add
23889 (streamer_read_integer_cst): Remove.
23890 (streamer_tree_cache_insert): Adjust.
23891 (streamer_tree_cache_append): Likewise.
23892 (streamer_tree_cache_insert_at): Rename to ...
23893 (streamer_tree_cache_replace_tree): ... this and adjust.
23894 (streamer_tree_cache_create): Add argument whether to record hashes.
23895 (streamer_tree_cache_get): Rename to ...
23896 (streamer_tree_cache_get_tree): ... this.
23897 (streamer_tree_cache_get_hash): New function.
23898 * tree.c (cache_integer_cst): New function.
23899 * tree.h (cache_integer_cst): Declare.
23900 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23901 * lto-symtab.c (lto_varpool_replace_node): Only release
23902 DECL_INITIAL of non-prevailing decls.
23903 * varpool.c (varpool_remove_initializer): Do not release
23904 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23906 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
23908 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23909 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23910 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23911 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23912 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23913 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23914 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23915 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23916 instead of TARGET_64BIT.
23917 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23918 Require ISA_HAS_<D>DIV.
23920 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
23922 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23923 (mips*-*-linux*): Move default with_llsc setting to where other
23925 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23927 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23928 Likewise. Remove default with_tune setting. Move default float
23929 setting to its own block. Handle with_llsc in the same block as above.
23931 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
23933 PR rtl-optimization/57425
23934 PR rtl-optimization/57569
23935 * alias.c (write_dependence_p): Add new parameters mem_mode,
23936 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
23937 Changed all callers.
23938 (canon_anti_dependence): New function.
23939 * cse.c (check_dependence): Use canon_anti_dependence.
23940 * cselib.c (cselib_invalidate_mem): Likewise.
23941 * rtl.h (canon_anti_dependence): Declare.
23943 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
23945 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23946 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23947 ".set mips3" for 64-bit targets.
23949 2013-06-15 Dehao Chen <dehao@google.com>
23951 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23952 * gimple-low.c (gimple_check_call_matching_types): Likewise.
23953 (gimple_check_call_args): Likewise.
23954 * value-prof.c (check_ic_target): Likewise.
23955 * ipa-inline.c (early_inliner): Likewise.
23956 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23957 * cgraph.c (cgraph_create_edge_1): Likewise.
23958 (cgraph_make_edge_direct): Likewise.
23960 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23963 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23964 rs6000_output_move_128bit to handle emitting quad memory
23965 operations. Set attribute length to 8 bytes.
23967 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
23969 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23971 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23972 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23973 (aarch64_<su>mlsl<mode>): Likewise.
23975 2013-06-14 Mike Stump <mikestump@comcast.net>
23977 * Makefile.in (TARGET_H): Add insn-codes.h.
23979 2013-06-14 Alan Modra <amodra@gmail.com>
23981 PR middle-end/57134
23982 PR middle-end/57586
23983 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23984 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
23985 bitfield expansion when EXPAND_MEMORY.
23986 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23988 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
23990 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23991 test for clearing quad memory on 32-bit later.
23993 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
23995 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23996 (fold_negate_expr): Likewise.
23997 (fold_real_zero_addition_p): Handle vectors.
23998 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24000 2013-06-14 Alan Modra <amodra@gmail.com>
24002 * varasm.c (force_const_mem): Revert 2013-06-07 change.
24004 2013-06-13 Jan Hubicka <jh@suse.cz>
24006 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24007 Local comdats are not externally visible.
24008 * symtab.c (dump_symtab_base): Dump externally visible.
24009 (verify_symtab_base): Verify back links in the symtab hash.
24011 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24013 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24014 CONVERT_EXPR as equal nodes.
24016 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24018 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24020 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24022 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24023 Generalize to complex and vector.
24024 * tree.c (build_all_ones_cst): New function.
24025 * tree.h (build_all_ones_cst): Declare it.
24027 2013-06-13 Alan Modra <amodra@gmail.com>
24029 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24030 * config/rs6000/rs6000.md (signbittf2): New insn.
24031 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24032 (abstf2_internal, cmptf_internal2): Likewise.
24033 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24035 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24036 Pat Haugen <pthaugen@us.ibm.com>
24037 Peter Bergner <bergner@vnet.ibm.com>
24039 * config/rs6000/rs6000.c (emit_load_locked): Add support for
24040 power8 byte, half-word, and quad-word atomic instructions.
24041 (emit_store_conditional): Likewise.
24042 (rs6000_expand_atomic_compare_and_swap): Likewise.
24043 (rs6000_expand_atomic_op): Likewise.
24045 * config/rs6000/sync.md (larx): Add new modes for power8.
24047 (AINT): New mode iterator to include TImode as well as normal
24048 integer modes on power8.
24049 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24050 that VSX registers are not considered. Use AINT mode iterator
24051 instead of INT1 to allow inclusion of quad word atomic operations
24053 (load_locked<mode>): Likewise.
24054 (store_conditional<mode>): Likewise.
24055 (atomic_compare_and_swap<mode>): Likewise.
24056 (atomic_exchange<mode>): Likewise.
24057 (atomic_nand<mode>): Likewise.
24058 (atomic_fetch_<fetchop_name><mode>): Likewise.
24059 (atomic_nand_fetch<mode>): Likewise.
24060 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24062 (ATOMIC): On power8, add QImode, HImode modes.
24063 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24064 modes that promote to SImode.
24065 (load_lockedti): Convert TImode arguments to PTImode, so that we
24066 get a guaranteed even/odd register pair.
24067 (load_lockedpti): Likewise.
24068 (store_conditionalti): Likewise.
24069 (store_conditionalpti): Likewise.
24071 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24072 atomic load/store instructions.
24075 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
24077 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24079 (insn_count): New attribute, with most cases extracted from...
24080 (length): ...here. Redefine most cases in terms of insn_count.
24081 (single_insn): Delete.
24082 (can_delay): Use insn_count to check for single instructions.
24083 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24084 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24085 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24086 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24087 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24088 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24089 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24090 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24091 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24092 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24093 rather than "length".
24094 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
24095 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24096 Use "insn_count" rather than "length".
24097 * config/mips/mips-dsp.md
24098 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24099 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24102 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
24104 PR tree-optimization/57361
24105 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24107 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
24109 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24111 (aarch64_simd_combine<mode>): New instruction expansion.
24112 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24113 function prototype.
24114 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24115 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24117 2013-06-12 Jan Hubicka <jh@suse.cz>
24119 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24120 decl has when in streaming stage.
24121 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24122 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24124 2013-06-12 Roland Stigge <stigge@antcom.de>
24127 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24129 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24131 PR tree-optimization/57537
24132 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24133 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24135 2013-06-12 Richard Biener <rguenther@suse.de>
24137 * data-streamer.h (streamer_write_char_stream): CSE
24138 obs->current_pointer.
24139 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24140 streamer_write_char_stream manually and optimize the resulting loop.
24141 (streamer_write_hwi_stream): Likewise.
24143 2013-06-12 Jan Hubicka <jh@suse.cz>
24145 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24146 * cgraph.h (varpool_create_empty_node): Declare.
24147 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24149 * symtab.c (symtab_unregister_node): Be lax about missin entries
24151 (symtab_get_node): Update comment.
24152 * varpool.c (varpool_create_empty_node): Break out from ...
24153 (varpool_node_for_decl): ... here.
24154 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24156 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
24158 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24159 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24160 part. Use straight-line flow at the end.
24161 <COMPONENT_REF>: Remove superfluous else.
24162 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24164 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24167 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24168 target hook even for !TREE_PUBLIC decls. If no resolution info
24169 is available, return false for common and external decls.
24171 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24173 * config/rl78/constraints.md (U): New constraint.
24174 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24177 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24180 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24181 to allow returning address to AT_PLATFORM name.
24183 2013-06-11 Jan Hubicka <jh@suse.cz>
24185 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24186 * cgraph.h (symtab_node_base): Add weakref flag.
24187 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24188 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24189 (output_weakrefs): Use weakref flag.
24190 * fold-const.c (simple_operand_p): Handle WEAK.
24191 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24192 * ipa.c (varpool_externally_visible_p): Drop weakref.
24193 (function_and_variable_visibility): Update comment; fix weakref
24194 sanity checks; do not clear DECL_WEAK on them.
24195 * lto-cgraph.c (lto_output_node): update.
24196 (lto_output_varpool_node): Update.
24197 (input_overwrite_node): Update.
24198 (input_node): Update.
24199 (input_varpool_node): Update.
24200 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24201 (lto_symtab_merge_symbols): Add sanity check.
24202 (lto_symtab_prevailing_decl): Do not special case weakrefs.
24203 * passes.c (rest_of_decl_compilation): Set static flag, too.
24204 * symtab.c (dump_symtab_base): Dump weakref.
24205 (verify_symtab_base): Sanity check weakrefs.
24206 (symtab_make_decl_local): Remove duplicated code.
24207 (symtab_alias_ultimate_target): Simplify.
24208 * varpool.c (varpool_create_variable_alias): Set weakref flag.
24210 2013-06-11 Tom de Vries <tom@codesourcery.com>
24212 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
24213 sequence_vect == NULL.
24215 2013-06-11 DJ Delorie <dj@redhat.com>
24217 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24218 (rl78_unwind_word_mode): New.
24220 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24222 * final.c (debug_prefix_maps): Make static.
24224 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24226 * function.c (initial_trampoline): Remove stray copy.
24228 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
24230 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24232 2013-06-11 Martin Jambor <mjambor@suse.cz>
24234 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24235 within bounds at the beginning of the function.
24237 2013-06-11 Alan Modra <amodra@gmail.com>
24239 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
24241 (get_named_section): Don't NULL !DECL_P decl.
24243 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
24245 * doc/invoke.texi (core-avx2): Document.
24247 (atom): Updated with MOVBE.
24249 2013-06-11 Richard Biener <rguenther@suse.de>
24251 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24253 2013-06-11 Anton Blanchard <anton@samba.org>
24255 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24256 correct shift value in little-endian mode.
24258 2013-06-11 Jakub Jelinek <jakub@redhat.com>
24261 * varasm.c (get_variable_align): Move #endif to the right place.
24263 2013-06-10 Cary Coutant <ccoutant@google.com>
24265 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24266 for hash so that hash table traversal order is deterministic.
24268 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24269 Pat Haugen <pthaugen@us.ibm.com>
24270 Peter Bergner <bergner@vnet.ibm.com>
24272 * config/rs6000/vector.md (GPR move splitter): Do not split moves
24273 of vectors in GPRS if they are direct moves or quad word load or
24276 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24278 (direct_move_p): Likewise.
24279 (quad_load_store_p): Likewise.
24281 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24282 classes into bins based on the physical register type.
24283 (reg_class_to_reg_type): Likewise.
24284 (IS_STD_REG_TYPE): Likewise.
24285 (IS_FP_VECT_REG_TYPE): Likewise.
24286 (reload_fpr_gpr): Arrays to determine what insn to use if we can
24287 use direct move instructions.
24288 (reload_gpr_vsx): Likewise.
24289 (reload_vsx_gpr): Likewise.
24290 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24291 information that is a simplification of register classes. Also
24292 precalculate direct move reload helpers.
24293 (direct_move_p): New function to return true if the operation can
24294 be done as a direct move instruciton.
24295 (quad_load_store_p): New function to return true if the operation
24296 is a quad memory operation.
24297 (rs6000_legitimize_address): If quad memory, only allow register
24298 indirect for TImode addresses.
24299 (rs6000_legitimate_address_p): Likewise.
24300 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24301 (rs6000_reload_register_type): Likewise.
24302 (register_to_reg_type): Return register type.
24303 (rs6000_secondary_reload_simple_move): New helper function for
24304 secondary reload and secondary memory needed to identify anything
24305 that is a simple move, and does not need reloading.
24306 (rs6000_secondary_reload_direct_move): New helper function for
24307 secondary reload to identify cases that can be done with several
24308 instructions via the direct move instructions.
24309 (rs6000_secondary_reload_move): New helper function for secondary
24310 reload to identify moves between register types that can be done.
24311 (rs6000_secondary_reload): Add support for quad memory operations
24312 and for direct move.
24313 (rs6000_secondary_memory_needed): Likewise.
24314 (rs6000_debug_secondary_memory_needed): Change argument names.
24315 (rs6000_output_move_128bit): New function to return the move to
24316 use for 128-bit moves, including knowing about the various
24317 limitations of quad memory operations.
24319 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24320 memory operations. call rs6000_output_move_128bit for the actual
24321 instruciton(s) to generate.
24322 (vsx_movti_64bit): Likewise.
24324 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24325 (UNSPEC_P8V_MTVSRWZ): Likewise.
24326 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24327 (UNSPEC_P8V_MTVSRD): Likewise.
24328 (UNSPEC_P8V_XXPERMDI): Likewise.
24329 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24330 (UNSPEC_FUSION_GPR): Likewise.
24331 (FMOVE128_GPR): New iterator for direct move.
24332 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24333 (f32_sv): Likewise.
24334 (f32_dm): Likewise.
24335 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24336 loads and direct move instructions.
24337 (zero_extendsidi2_lfiwzx): Likewise.
24338 (extendsidi2_lfiwax): Likewise.
24339 (extendsidi2_nocell): Likewise.
24340 (floatsi<mode>2_lfiwax): Likewise.
24341 (lfiwax): Likewise.
24342 (floatunssi<mode>2_lfiwzx): Likewise.
24343 (lfiwzx): Likewise.
24344 (fix_trunc<mode>_stfiwx): Likewise.
24345 (fixuns_trunc<mode>_stfiwx): Likewise.
24346 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24347 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24348 (parity<mode>2_cmpb): Set length/type attr.
24349 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24350 for 'mr.' to fast_compare.
24351 (bpermd_<mode>): Change type attr to popcnt.
24352 (p8_fmrgow_<mode>): New insns for power8 direct move support.
24353 (p8_mtvsrwz_1): Likewise.
24354 (p8_mtvsrwz_2): Likewise.
24355 (reload_fpr_from_gpr<mode>): Likewise.
24356 (p8_mtvsrd_1): Likewise.
24357 (p8_mtvsrd_2): Likewise.
24358 (p8_xxpermdi_<mode>): Likewise.
24359 (reload_vsx_from_gpr<mode>): Likewise.
24360 (reload_vsx_from_gprsf): Likewise.
24361 (p8_mfvsrd_3_<mode>): LIkewise.
24362 (reload_gpr_from_vsx<mode>): Likewise.
24363 (reload_gpr_from_vsxsf): Likewise.
24364 (p8_mfvsrd_4_disf): Likewise.
24365 (multi-word GPR splits): Do not split direct moves or quad memory
24368 2013-06-10 David Malcolm <dmalcolm@redhat.com>
24370 * tree-into-ssa.c (interesting_blocks): Make static.
24372 2013-06-10 Jakub Jelinek <jakub@redhat.com>
24375 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24376 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24377 Use DATA_ABI_ALIGNMENT for that case instead if defined.
24378 (get_variable_align): New function.
24379 (get_variable_section, emit_bss, emit_common,
24380 assemble_variable_contents, place_block_symbol): Use
24381 get_variable_align instead of DECL_ALIGN.
24382 (assemble_noswitch_variable): Add align argument, use it
24383 instead of DECL_ALIGN.
24384 (assemble_variable): Adjust caller. Use get_variable_align
24385 instead of DECL_ALIGN.
24386 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24388 (DATA_ABI_ALIGNMENT): Define.
24389 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24390 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
24391 opt is false, only return the psABI mandated alignment increase.
24392 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24393 (DATA_ABI_ALIGNMENT): ... this.
24394 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24395 (DATA_ABI_ALIGNMENT): ... this.
24396 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24397 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24398 (DATA_ABI_ALIGNMENT): ... this.
24399 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24400 * doc/tm.texi: Regenerated.
24402 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
24404 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24405 cmp_code to construct REG_EQUAL note.
24407 2013-06-09 Jakub Jelinek <jakub@redhat.com>
24410 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24411 that operands[2] doesn't overlap with operands[0].
24413 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
24414 Jan Hubicka <jh@suse.cz>
24416 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24417 hack to mark symbols as used.
24419 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
24421 PR rtl-optimization/57559
24422 * lra-constraints.c (process_alt_operands): Don't discourage
24423 memory with known offset for offsetable memory constraint.
24424 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24426 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
24428 * varasm.c (struct oc_local_state): Reorder fields.
24429 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24430 and adjust accordingly.
24431 (output_constructor): Reorder initialization code and adjust call to
24432 output_constructor_bitfield.
24434 2013-06-07 Jan Hubicka <jh@suse.cz>
24436 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24438 2013-06-07 David Malcolm <dmalcolm@redhat.com>
24440 * tree-object-size.c (unknown): Make const.
24442 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24444 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24445 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24446 for last alternative in the cpu_facility attribute.
24448 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24451 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24452 (xordi3): Change operand 2 constraint to arm_xordi_operand.
24453 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24454 * config/arm/constraints.md (Dg): New constraint.
24455 * config/arm/neon.md (xordi3_neon): Remove.
24456 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24457 * config/arm/predicates.md (arm_xordi_operand): New predicate.
24459 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24461 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24462 Clean up alternatives.
24464 2013-06-07 Alan Modra <amodra@gmail.com>
24466 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24469 2013-06-07 Alan Modra <amodra@gmail.com>
24471 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24473 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24475 * config/arm/constraints.md (Df): New constraint.
24476 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24477 Correct length attribute for last two alternatives.
24479 2013-06-07 Alan Modra <amodra@gmail.com>
24481 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24482 override user -mfp-in-toc.
24483 (offsettable_ok_by_alignment): Consider just the current access
24484 rather than the whole object, unless BLKmode. Handle
24485 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24486 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24487 for -mcmodel=medium.
24488 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24489 override user -mfp-in-toc or -msum-in-toc. Default to
24490 -mno-fp-in-toc for -mcmodel=medium.
24492 2013-06-06 DJ Delorie <dj@redhat.com>
24494 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24495 TARGET_VALID_POINTER_MODE.
24497 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24498 Pat Haugen <pthaugen@us.ibm.com>
24499 Peter Bergner <bergner@vnet.ibm.com>
24501 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24502 Document new power8 builtins.
24504 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24505 condition code register, to allow 128-bit logical operations to be
24506 done in the VSX or GPR registers.
24507 (nor<mode>3): Use the canonical form for nor.
24508 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24509 vclz*, and vpopcnt* vector instructions.
24510 (nand<mode>3): Likewise.
24511 (orc<mode>3): Likewise.
24512 (clz<mode>2): LIkewise.
24513 (popcount<mode>2): Likewise.
24515 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24516 that only the GPRs are recognized.
24518 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24519 support for new power8 builtins.
24521 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24523 (xscvdpspn): Likewise.
24529 (vpopcnt): Likewise.
24530 (vpopcntb): Likewise.
24531 (vpopcnth): Likewise.
24532 (vpopcntw): Likewise.
24533 (vpopcntd): Likewise.
24535 (vmrgew): Likewise.
24536 (vmrgow): Likewise.
24538 (eqv_v16qi3): Likewise.
24539 (eqv_v8hi3): Likewise.
24540 (eqv_v4si3): Likewise.
24541 (eqv_v2di3): Likewise.
24542 (eqv_v4sf3): Likewise.
24543 (eqv_v2df3): Likewise.
24545 (nand_v16qi3): Likewise.
24546 (nand_v8hi3): Likewise.
24547 (nand_v4si3): Likewise.
24548 (nand_v2di3): Likewise.
24549 (nand_v4sf3): Likewise.
24550 (nand_v2df3): Likewise.
24552 (orc_v16qi3): Likewise.
24553 (orc_v8hi3): Likewise.
24554 (orc_v4si3): Likewise.
24555 (orc_v2di3): Likewise.
24556 (orc_v4sf3): Likewise.
24557 (orc_v2df3): Likewise.
24559 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24560 allow power8 quad mode in 64-bit.
24561 (rs6000_builtin_vectorized_function): Add support to vectorize
24562 ISA 2.07 count leading zeros, population count builtins.
24563 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24564 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24565 (builtin_function_type): Add vgbbd builtin function which takes an
24567 (altivec_expand_vec_perm_const): Add support for new power8 merge
24570 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24571 that does not include TImdoe for use with 32-bit.
24572 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24574 (UNSPEC_VSX_CVDPSPN): Likewise.
24575 (vsx_xscvdpspn): Likewise.
24576 (vsx_xscvspdpn): Likewise.
24577 (vsx_xscvdpspn_scalar): Likewise.
24578 (vsx_xscvspdpn_directmove): Likewise.
24579 (vsx_and<mode>3): Split logical operations into 32-bit and
24580 64-bit. Add support to do logical operations on TImode as well as
24581 VSX vector types. Allow logical operations to be done in either
24582 VSX registers or in general purpose registers in 64-bit mode. Add
24583 splitters if GPRs were used. For AND, add clobber of CCmode to
24584 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
24586 (vsx_and<mode>3_32bit): Likewise.
24587 (vsx_and<mode>3_64bit): Likewise.
24588 (vsx_ior<mode>3): Likewise.
24589 (vsx_ior<mode>3_32bit): Likewise.
24590 (vsx_ior<mode>3_64bit): Likewise.
24591 (vsx_xor<mode>3): Likewise.
24592 (vsx_xor<mode>3_32bit): Likewise.
24593 (vsx_xor<mode>3_64bit): Likewise.
24594 (vsx_one_cmpl<mode>2): Likewise.
24595 (vsx_one_cmpl<mode>2_32bit): Likewise.
24596 (vsx_one_cmpl<mode>2_64bit): Likewise.
24597 (vsx_nor<mode>3): Likewise.
24598 (vsx_nor<mode>3_32bit): Likewise.
24599 (vsx_nor<mode>3_64bit): Likewise.
24600 (vsx_andc<mode>3): Likewise.
24601 (vsx_andc<mode>3_32bit): Likewise.
24602 (vsx_andc<mode>3_64bit): Likewise.
24603 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24604 and xxlorc instructions.
24605 (vsx_eqv<mode>3_64bit): Likewise.
24606 (vsx_nand<mode>3_32bit): Likewise.
24607 (vsx_nand<mode>3_64bit): Likewise.
24608 (vsx_orc<mode>3_32bit): Likewise.
24609 (vsx_orc<mode>3_64bit): Likewise.
24611 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24613 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24615 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24616 (p8_vmrgow): Likewise.
24617 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24618 GPRs to be split under VSX.
24619 (p8v_clz<mode>2): Add power8 count leading zero support.
24620 (p8v_popcount<mode>2): Add power8 population count support.
24621 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24624 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24627 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24629 (vec_nand): Likewise.
24630 (vec_vclz): Likewise.
24631 (vec_vclzb): Likewise.
24632 (vec_vclzd): Likewise.
24633 (vec_vclzh): Likewise.
24634 (vec_vclzw): Likewise.
24635 (vec_vgbbd): Likewise.
24636 (vec_vmrgew): Likewise.
24637 (vec_vmrgow): Likewise.
24638 (vec_vpopcnt): Likewise.
24639 (vec_vpopcntb): Likewise.
24640 (vec_vpopcntd): Likewise.
24641 (vec_vpopcnth): Likewise.
24642 (vec_vpopcntw): Likewise.
24644 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24646 PR rtl-optimization/57468
24647 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24650 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24652 PR rtl-optimization/57459
24653 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24654 type when setting live regs.
24656 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24658 * config/s390/s390.opt (mlra): New option.
24659 * config/s390/s390.c (s390_decompose_address): Check displacement
24660 for all registers for LRA.
24661 (s390_secondary_reload): Don't used secondary reloads for LRA.
24662 (s390_lra_p): New function.
24663 (TARGET_LRA_P): Define.
24664 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24665 of attribute cpu_facility to zarch for the last alternative.
24666 (*cmpmem_short): Ditto.
24668 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
24670 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24671 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
24672 (arm_expand_prologue): Likewise.
24674 2013-06-06 Teresa Johnson <tejohnson@google.com>
24677 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24678 as this is now done by redirect_edge_and_branch_force.
24679 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24680 barriers, and fix interaction with splitting.
24681 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24682 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24683 reflect changes made in the routine.
24684 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24685 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24686 since this is called in cfglayout mode, and replace partition fixup
24687 with assert as that is now done by force_nonfallthru_and_redirect.
24688 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24689 already be marked with region crossing note.
24690 (insert_section_boundary_note): Make non-static, gate on flag
24691 has_bb_partition, rewrite to also check for multiple partitions.
24692 (rest_of_handle_reorder_blocks): Remove call to
24693 insert_section_boundary_note, now done later during free_cfg.
24694 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24695 * bb-reorder.h (insert_section_boundary_note): Declare.
24696 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24697 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24698 invoke insert_section_boundary_note.
24699 (try_redirect_by_replacing_jump): Remove unnecessary
24700 check for region crossing note.
24701 (fixup_partition_crossing): New function.
24702 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24703 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24704 in non-cfglayout mode.
24705 (force_nonfallthru_and_redirect): Fixup partition boundaries,
24706 remove old code that tried to do this. Emit barrier correctly
24707 when we are in cfglayout mode.
24708 (last_bb_in_partition): New function.
24709 (rtl_split_edge): Correctly fixup partition boundaries.
24710 (commit_one_edge_insertion): Remove old code that tried to
24711 fixup region crossing edge since this is now handled in
24712 split_block, and set up insertion point correctly since
24713 block may now end in a jump.
24714 (verify_hot_cold_block_grouping): Guard against checking when not in
24715 linearized RTL mode.
24716 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24718 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24719 rtl_verify_flow_info, so not called in cfglayout mode.
24720 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24721 (fixup_reorder_chain): Remove old code that attempted to fixup region
24722 crossing note as this is now handled in force_nonfallthru_and_redirect.
24723 (duplicate_insn_chain): Don't duplicate switch section notes.
24724 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24726 * basic-block.h (emit_barrier_after_bb): Declare.
24728 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24730 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24731 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24732 arm_usatsihi): Adjust alternatives for arm_restrict_it.
24734 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24736 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24738 * config/arm/ldmstm.md: Regenerate.
24740 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24742 * config/arm/sync.md (atomic_loaddi_1):
24743 Disable predication for arm_restrict_it.
24744 (arm_load_exclusive<mode>): Likewise.
24745 (arm_load_exclusivesi): Likewise.
24746 (arm_load_exclusivedi): Likewise.
24747 (arm_load_acquire_exclusive<mode>): Likewise.
24748 (arm_load_acquire_exclusivesi): Likewise.
24749 (arm_load_acquire_exclusivedi): Likewise.
24750 (arm_store_exclusive<mode>): Likewise.
24751 (arm_store_exclusive<mode>): Likewise.
24752 (arm_store_release_exclusivedi): Likewise.
24753 (arm_store_release_exclusive<mode>): Likewise.
24755 2013-06-06 Richard Biener <rguenther@suse.de>
24757 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24759 (lto_tag_is_tree_code_p): Adjust.
24760 (lto_tag_is_gimple_code_p): Likewise.
24761 (lto_gimple_code_to_tag): Likewise.
24762 (lto_tag_to_gimple_code): Likewise.
24763 (lto_tree_code_to_tag): Likewise.
24764 (lto_tag_to_tree_code): Likewise.
24765 * data-streamer.h (streamer_write_hwi_in_range): Use
24766 uhwi streaming to stream the normalized range.
24767 (streamer_read_hwi_in_range): Likewise.
24769 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24771 * config/arm/arm.md (enabled_for_depr_it): New attribute.
24772 (predicable_short_it): Likewise.
24773 (predicated): Likewise.
24774 (enabled): Handle above.
24775 (define_cond_exec): Set predicated attribute to yes.
24777 2013-06-05 Mike Stump <mikestump@comcast.net>
24779 * gdbinit.in (__FUNCTION__): Add.
24781 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
24783 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24784 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24786 2013-06-05 Jan Hubicka <jh@suse.cz>
24788 * varasm.c (mark_decl_referenced): Revert the removal until targets
24791 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
24793 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24794 instead of mark_decl_referenced.
24796 2013-06-05 Jan Hubicka <jh@suse.cz>
24798 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24799 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24800 and symtab_used_from_object_file_p.
24801 (cgraph_make_node_local_1): Clear forced_by_abi.
24802 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24803 * cgraph.h (symtab_node_base): Add forced_by_abi.
24804 (decide_is_variable_needed): Remove.
24805 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24806 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24807 (decide_is_symbol_needed): ... this one; handle symbols in general;
24808 always analyze virtuals; honnor forced_by_abi.
24809 (cgraph_finalize_function): Update.
24810 (varpool_finalize_decl): Update.
24811 (symbol_defined_and_needed): Remove.
24812 (analyze_functions): Update.
24813 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24814 output_refs, input_overwrite_node): Handle forced_by_abi.
24815 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24816 (address_taken_from_non_vtable_p): ... this one.
24817 (comdat_can_be_unshared_p_1): New function.
24818 (cgraph_comdat_can_be_unshared_p): Rename to ...
24819 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24820 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24821 (function_and_variable_visibility): Clear forced_by_abi as needed.
24822 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24823 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24824 * symtab.c (dump_symtab_base): Dump forced_by_abi.
24825 * varpool.c (decide_is_variable_needed): Remove.
24827 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24829 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24830 (arm_option_override): Override arm_restrict_it where appropriate.
24831 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24832 * config/arm/arm.opt (mrestrict-it): New command-line option.
24833 * doc/invoke.texi: Document -mrestrict-it.
24835 2013-06-05 David Malcolm <dmalcolm@redhat.com>
24837 * tsan.c (tsan_atomic_table): Make const.
24839 2013-06-05 Richard Biener <rguenther@suse.de>
24841 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24842 index associated with the tree we are supposed to replace.
24843 * tree-streamer-out.c (pack_ts_base_value_fields): Output
24844 TREE_ASM_WRITTEN as zero for everything but SSA names.
24846 2013-06-05 David Malcolm <dmalcolm@redhat.com>
24848 * tree-ssa-structalias.c (call_stmt_vars): Make static.
24850 2013-06-04 Jan Hubicka <jh@suse.cz>
24852 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24853 (input_node, input_varpool_node): Handle correctly external same
24855 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24856 nodes at ltrans stage.
24858 2013-06-04 Jan Hubicka <jh@suse.cz>
24860 * ipa-inline.c (update_caller_keys): Fix availability test.
24861 (update_callee_keys): Likewise.
24862 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24863 to follow ELF standard.
24865 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
24867 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24868 (mips64r5900el-*-elf*): New configurations.
24869 * config/mips/mips-cpus.def (r5900): New processor.
24870 * config/mips/mips-tables.opt: Regenerate.
24871 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24872 (mips_issue_rate): Handle PROCESSOR_R5900.
24873 (mips_reorg_process_insns): Force reorder mode for the R5900.
24874 * config/mips/mips.h (TARGET_MIPS5900): Define.
24875 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24877 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24879 * config/mips/mips.md (processor): Add r5900.
24880 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24882 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24884 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24885 into function to generate MOVI instruction.
24886 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24887 (aarch64_preferred_simd_mode): Turn into wrapper.
24888 (aarch64_output_scalar_simd_mov_immediate): New function.
24889 * config/aarch64/aarch64-protos.h: Add prototype for above.
24891 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24893 * config/aarch64/aarch64.c (simd_immediate_info): Remove
24894 element_char member.
24895 (sizetochar): Return signed char.
24896 (aarch64_simd_valid_immediate): Remove elchar and other
24897 unnecessary variables.
24898 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24899 Calculate element_char as required.
24900 * config/aarch64/aarch64-protos.h: Update and move prototype
24901 for aarch64_output_simd_mov_immediate.
24902 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24905 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24907 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24908 information completed by aarch64_simd_valid_immediate.
24909 (aarch64_legitimate_constant_p): Update arguments.
24910 (aarch64_simd_valid_immediate): Work with struct rather than many
24912 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24913 (aarch64_simd_make_constant): Update arguments.
24914 (aarch64_output_simd_mov_immediate): Work with struct rather than
24915 many pointers. Output immediate directly rather than as operand.
24916 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24918 * config/aarch64/constraints.md (Dn): Update arguments.
24920 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24922 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24924 (aarch64_simd_immediate_valid_for_move): Remove.
24925 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24926 (aarch64_simd_make_constant): Update call.
24927 (aarch64_output_simd_mov_immediate): Update call.
24928 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24930 * config/aarch64/constraints.md (Dn): Update call.
24932 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24934 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24935 return type to bool for prototype.
24936 (aarch64_legitimate_constant_p): Check for true instead of not -1.
24937 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24938 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24940 2013-06-04 Catherine Moore <clm@codesourcery.com>
24942 * config/mips/mips.opt (meva): New.
24943 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24944 (ASM_SPEC): Handle -meva.
24945 * doc/invoke.texi (meva): Document.
24947 2013-06-04 Alan Modra <amodra@gmail.com>
24949 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24952 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24954 * rtl.def: Add extra fourth optional field to define_cond_exec.
24955 * gensupport.c (process_one_cond_exec): Process attributes from
24957 * doc/md.texi: Document fourth field in define_cond_exec.
24959 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
24961 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24962 out the processing order as in store_bit_field_1.
24964 2013-06-04 Jan Hubicka <jh@suse.cz>
24966 PR middle-end/57500
24967 * cgraphunit.c (cgraph_process_same_body_aliases): Create
24968 non-VAR_DECL node if it does not exist yet.
24970 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
24972 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24973 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24974 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24975 target_cpu_default setting.
24977 2013-06-03 Teresa Johnson <tejohnson@google.com>
24979 * dumpfile.c (opt_info_switch_p): Change -fopt-info
24980 default to -fopt-info=optimized instead of all.
24981 * doc/invoke.texi: Ditto.
24982 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24983 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24984 (execute_vect_slp): Emit BB vectorization success under
24985 MSG_OPTIMIZED_LOCATIONS.
24986 * tree-vect-slp.c (vect_slp_transform_bb): Change
24987 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24988 * tree-vect-loop.c (vect_transform_loop): Ditto.
24990 2013-06-03 Jason Merrill <jason@redhat.com>
24993 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24994 Use TARGET_EXPR for C++.
24996 2013-06-03 Jakub Jelinek <jakub@redhat.com>
24998 PR rtl-optimization/57268
24999 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25000 if DEBUG_INSN_P (insn).
25003 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25005 PR rtl-optimization/57268
25006 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25007 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25009 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25011 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25012 (ix86_avoid_lea_for_addr): Likewise.
25013 (exact_dependency_1): Likewise.
25014 (ix86_adjust_cost): Likewise.
25015 (swap_top_of_ready_list): Fix formatting and !reload_completed check
25017 (do_reorder_for_imul): Fix typo, formatting and
25018 !reload_completed check removed.
25019 (ix86_sched_reorder): Fix typo and formatting.
25020 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25023 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
25025 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25027 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
25029 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25030 <STRING_CST>: Likewise.
25031 <VECTOR_CST>: Likewise.
25033 2013-06-01 Janus Weil <janus@gcc.gnu.org>
25034 Mikael Morin <mikael@gcc.gnu.org>
25036 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25037 * config.in: Regenerated.
25038 * configure: Regenerated.
25040 2013-06-01 Jan Hubicka <jh@suse.cz>
25042 PR middle-end/57366
25043 * cgraphunit.c (compile): When weakref is not supported,
25044 set up transparent aliases before final output pass.
25045 * varasm.c (assemble_alias): Do not try to do it here.
25047 2013-06-01 Jan Hubicka <jh@suse.cz>
25049 PR middle-end/57467
25050 * passes.c (for_per_function): Skip unanalyzed functions.
25052 2013-06-01 Jan Hubicka <jh@suse.cz>
25054 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25055 (lto_symtab_merge_symbols_1): ... this one.
25056 (lto_symtab_merge_cgraph_nodes): Rename to ...
25057 (lto_symtab_merge_symbols): ... this one; simplify.
25058 * cgraph.c (same_body_aliases_done): Rename to ...
25059 (cpp_implicit_aliases_done): ... this one.
25060 (cgraph_create_function_alias): Update.
25061 (cgraph_same_body_alias): Update.
25062 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25063 (verify_edge_corresponds_to_fndecl): Simplify.
25064 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25065 (cgraph_node): Remove same_body_alias.
25066 (varpool_node): Remove alias_of and extra_name_alias.
25067 (same_body_aliases_done): Rename to ..
25068 (cpp_implicit_aliases_done): ... this one.
25069 (symtab_alias_ultimate_target): Add default parameter.
25070 (symtab_resolve_alias): New function.
25071 (fixup_same_cpp_alias_visibility): Declare.
25072 (cgraph_function_node): Add default parameter.
25073 (cgraph_node_asm_name): Likewise.
25074 (cgraph_function_or_thunk_node): Add default parameter; do
25075 not ICE when it is NULL.
25076 (varpool_variable_node): Likewise.
25077 * tree-emutls.c (create_emultls_var): Update.
25078 (ipa_lower_emutls): Update.
25079 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25080 (cgraph_reset_node): Reset alias info.
25081 (cgraph_finalize_function): Update.
25082 (fixup_same_cpp_alias_visibility): Move to symtab.c.
25083 (analyze_function): Simplify.
25084 (cgraph_process_same_body_aliases): Simplify.
25085 (analyze_functions): Fixup same body aliases.
25086 (handle_alias_pairs): Simplify.
25087 (assemble_thunk): Update.
25088 (assemble_thunks_and_aliases): Update.
25089 (output_weakrefs): Rewrite.
25090 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25091 (lto_output_varpool_node): Likewise.
25092 (compute_ltrans_boundary): Remve assert.
25093 (get_alias_symbol): New functoin.
25094 (input_node): Rewrite alias handling.
25095 (input_varpool_node): Likewise.
25096 * ipa-pure-const.c (propagate_pure_const): Fix formating.
25097 * ipa.c (process_references): Handle weakrefs correctly.
25098 (symtab_remove_unreachable_nodes): Likewise.
25099 * trans-mem.c (get_cg_data): Update.
25100 (ipa_tm_create_version_alias): Update.
25101 (ipa_tm_execute): Update.
25102 * symtab.c (dump_symtab_base): Dump aliases.
25103 (verify_symtab_base): Verify aliases.
25104 (symtab_node_availability): New function.
25105 (symtab_alias_ultimate_target): Simplify.
25106 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25107 handle all the fixup cases.
25108 (symtab_resolve_alias): New function.
25109 * passes.c (ipa_write_summaries): Handle weakrefs.
25110 * varpool.c (varpool_analyze_node): Simplify.
25111 (assemble_aliases): Update.
25112 (varpool_create_variable_alias): Simplify.
25113 (varpool_extra_name_alias): Simplify.
25114 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25115 (lto_symtab_merge_symbols): ... this one.
25117 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
25120 PR rtl-optimization/57268
25121 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25122 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25124 2013-06-01 Tobias Burnus <burnus@net-b.de>
25126 Partially reverted:
25127 2013-05-31 Tobias Burnus <burnus@net-b.de>
25129 PR middle-end/57073
25130 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25133 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25135 PR rtl-optimization/57268
25136 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25137 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25139 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25141 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25142 unordered comparison operators when -fno-trapping-math is in effect
25144 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25145 and implement unordered comparison operators properly on the e500.
25147 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25149 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25150 for constant scalar integers.
25151 (simplify_relational_operation_1): Likewise.
25153 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
25155 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25156 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
25159 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25160 Igor Zamyatin <igor.zamyatin@intel.com>
25162 Silvermont (SLM) architecture performance tuning.
25163 * config/i386/i386.h (enum ix86_tune_indices): Add
25164 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25165 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25167 * config/i386/i386.c (initial_ix86_tune_features)
25168 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25169 (ix86_lea_outperforms): Handle Silvermont tuning.
25170 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25172 (ix86_use_lea_for_mov): Likewise.
25173 (ix86_avoid_lea_for_addr): Likewise.
25174 (ix86_lea_for_add_ok): Likewise.
25175 (exact_dependency_1): New function.
25176 (exact_store_load_dependency): Likewise.
25177 (ix86_adjust_cost): Handle Silvermont tuning.
25178 (do_reoder_for_imul): Likewise.
25179 (swap_top_of_ready_list): New function.
25180 (ix86_sched_reorder): Changed to handle Silvermont tuning.
25182 * config/i386/i386.md (peepholes that split memory operand in fp
25185 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25187 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25188 Remove un-necessary braces.
25190 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25192 * config/aarch64/aarch64.c (aarch64_classify_symbol):
25193 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25195 2013-05-31 Tobias Burnus <burnus@net-b.de>
25197 PR middle-end/57073
25198 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25200 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25203 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25204 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25205 * config/arm/neon.md (iordi3_neon): Remove.
25206 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25207 * config/arm/predicates.md (imm_for_neon_logic_operand):
25208 Move to earlier in the file.
25209 (neon_logic_op2): Likewise.
25210 (arm_iordi_operand_neon): New predicate.
25212 2013-05-31 Richard Biener <rguenther@suse.de>
25214 PR tree-optimization/57478
25215 PR tree-optimization/57453
25216 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25219 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25221 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25222 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25224 2013-05-30 Tobias Burnus <burnus@net-b.de>
25225 Thomas Koenig <tkoenig@gcc.gnu.org>
25227 PR middle-end/57073
25228 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25229 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25231 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
25233 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25235 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
25237 * target.def (register_usage_leveling_p): New hook.
25238 * targhooks.c (default_register_usage_leveling_p): New.
25239 * targhooks.h (default_register_usage_leveling_p): New prototype.
25240 * lra-assigns.c (register_usage_leveling_p): Use the hook.
25241 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25242 * doc/tm.texi: Update.
25243 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25245 2013-05-30 Ian Bolton <ian.bolton@arm.com>
25247 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25248 (*insv_reg<mode>): New define_insn.
25250 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
25252 PR rtl-optimization/57439
25253 * postreload.c (move2add_valid_value_p): Check that we have
25254 a zero subreg_regno_offset when accessing the register in
25255 the requested mode.
25257 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25258 Igor Zamyatin <igor.zamyatin@intel.com>
25260 Silvermont (SLM) architecture pipeline model, tuning and
25262 * config.gcc: Add slm config options and target.
25264 * config/i386/slm.md: New.
25266 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25268 * config/i386/i386-c.c (ix86_target_macros_internal): New case
25270 (ix86_target_macros_internal): Likewise.
25272 * config/i386/i386.c (slm_cost): New cost.
25273 (m_SLM): New macro flag.
25274 (initial_ix86_tune_features): Set m_SLM.
25275 (x86_accumulate_outgoing_args): Likewise.
25276 (x86_arch_always_fancy_math_387): Likewise.
25277 (processor_target_table): Add slm cost.
25278 (cpu_names): Add slm cpu name.
25279 (x86_option_override_internal): Set SLM ISA.
25280 (ix86_issue_rate): New case PROCESSOR_SLM.
25281 (ia32_multipass_dfa_lookahead): Likewise.
25282 (fold_builtin_cpu): Add slm.
25284 * config/i386/i386.h (TARGET_SLM): New target macro.
25285 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25286 (processor_type): Add PROCESSOR_SLM.
25288 * config/i386/i386.md (cpu): Add new value "slm".
25289 (slm.md): Include slm.md.
25291 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
25292 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25294 * config/arm/arm-protos.h: Add and update function protos.
25295 * config/arm/arm.c (use_simple_return_p): New added.
25296 (thumb2_expand_return): Check simple_return flag.
25297 * config/arm/arm.md: Add simple_return and conditional simple_return.
25298 * config/arm/iterators.md: Add iterator for return and simple_return.
25300 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25302 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25303 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25304 (arm_emit_vfp_multi_reg_pop): Likewise.
25305 (thumb2_emit_ldrd_pop): Likewise.
25306 (arm_expand_epilogue): Add misc REG_CFA notes.
25307 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25309 2013-05-29 Lawrence Crowl <crowl@google.com>
25311 * config/arm/t-arm: Update for below.
25313 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25314 Change type to hash_table. Update dependent calls and types.
25316 * config/i386/t-cygming: Update for below.
25318 * config/i386/t-interix: Update for below.
25320 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25321 Change type to hash_table. Update dependent calls and types.
25322 (i386_find_on_wrapper_list::wrappers): Likewise.
25324 * config/ia64/t-ia64: Update for below.
25326 * config/ia64/ia64.c (bundle_state_table):
25327 Change type to hash_table. Update dependent calls and types.
25329 * config/mips/mips.c (mips_reorg_process_insns::htab):
25330 Change type to hash_table. Update dependent calls and types.
25332 * config/sol2.c (solaris_comdat_htab):
25333 Change type to hash_table. Update dependent calls and types.
25335 * config/t-sol2: Update for above.
25337 2013-05-29 Teresa Johnson <tejohnson@google.com>
25339 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25340 functions are not yet marked as defined.
25342 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
25343 Pat Haugen <pthaugen@us.ibm.com>
25344 Peter Bergner <bergner@vnet.ibm.com>
25346 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25350 (vrotl<mode>3): Likewise.
25351 (vashl<mode>3): Likewise.
25352 (vlshr<mode>3): Likewise.
25353 (vashr<mode>3): Likewise.
25355 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25356 support for power8 V2DI builtins.
25358 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25359 power8 V2DI builtins.
25360 (vupkhsw): Likewise.
25361 (vupklsw): Likewise.
25362 (vaddudm): Likewise.
25363 (vminsd): Likewise.
25364 (vmaxsd): Likewise.
25365 (vminud): Likewise.
25366 (vmaxud): Likewise.
25367 (vpkudum): Likewise.
25368 (vpksdss): Likewise.
25369 (vpkudus): Likewise.
25370 (vpksdus): Likewise.
25375 (vsubudm): Likewise.
25376 (vcmpequd): Likewise.
25377 (vcmpgtsd): Likewise.
25378 (vcmpgtud): Likewise.
25379 (vcmpequd_p): Likewise.
25380 (vcmpgtsd_p): Likewise.
25381 (vcmpgtud_p): Likewise.
25382 (vupkhsw): Likewise.
25383 (vupklsw): Likewise.
25384 (vaddudm): Likewise.
25385 (vmaxsd): Likewise.
25386 (vmaxud): Likewise.
25387 (vminsd): Likewise.
25388 (vminud): Likewise.
25389 (vpksdss): Likewise.
25390 (vpksdus): Likewise.
25391 (vpkudum): Likewise.
25392 (vpkudus): Likewise.
25397 (vsubudm): Likewise.
25399 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25400 support for power8 V2DI instructions.
25402 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25403 power8 V2DI instructions. Combine pack and unpack insns to use an
25404 iterator for each mode. Check whether a particular mode supports
25405 Altivec instructions instead of just checking TARGET_ALTIVEC.
25406 (UNSPEC_VPKUWUM): Likewise.
25407 (UNSPEC_VPKSHSS): Likewise.
25408 (UNSPEC_VPKSWSS): Likewise.
25409 (UNSPEC_VPKUHUS): Likewise.
25410 (UNSPEC_VPKSHUS): Likewise.
25411 (UNSPEC_VPKUWUS): Likewise.
25412 (UNSPEC_VPKSWUS): Likewise.
25413 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25414 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25415 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25416 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25417 (UNSPEC_VUPKHSB): Likewise.
25418 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25419 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25420 (UNSPEC_VUPKHSH): Likewise.
25421 (UNSPEC_VUPKLSB): Likewise.
25422 (UNSPEC_VUPKLSH): Likewise.
25424 (VI_char): Likewise.
25425 (VI_scalar): Likewise.
25426 (VI_unit): Likewise.
25428 (VP_small): Likewise.
25429 (VP_small_lc): Likewise.
25430 (VU_char): Likewise.
25431 (add<mode>3): Likewise.
25432 (altivec_vaddcuw): Likewise.
25433 (altivec_vaddu<VI_char>s): Likewise.
25434 (altivec_vadds<VI_char>s): Likewise.
25435 (sub<mode>3): Likewise.
25436 (altivec_vsubcuw): Likewise.
25437 (altivec_vsubu<VI_char>s): Likewise.
25438 (altivec_vsubs<VI_char>s): Likewise.
25439 (altivec_vavgs<VI_char>): Likewise.
25440 (altivec_vcmpbfp): Likewise.
25441 (altivec_eq<mode>): Likewise.
25442 (altivec_gt<mode>): Likewise.
25443 (altivec_gtu<mode>): Likewise.
25444 (umax<mode>3): Likewise.
25445 (smax<mode>3): Likewise.
25446 (umin<mode>3): Likewise.
25447 (smin<mode>3): Likewise.
25448 (altivec_vpkuhum): Likewise.
25449 (altivec_vpkuwum): Likewise.
25450 (altivec_vpkshss): Likewise.
25451 (altivec_vpkswss): Likewise.
25452 (altivec_vpkuhus): Likewise.
25453 (altivec_vpkshus): Likewise.
25454 (altivec_vpkuwus): Likewise.
25455 (altivec_vpkswus): Likewise.
25456 (altivec_vpks<VI_char>ss): Likewise.
25457 (altivec_vpks<VI_char>us): Likewise.
25458 (altivec_vpku<VI_char>us): Likewise.
25459 (altivec_vpku<VI_char>um): Likewise.
25460 (altivec_vrl<VI_char>): Likewise.
25461 (altivec_vsl<VI_char>): Likewise.
25462 (altivec_vsr<VI_char>): Likewise.
25463 (altivec_vsra<VI_char>): Likewise.
25464 (altivec_vsldoi_<mode>): Likewise.
25465 (altivec_vupkhsb): Likewise.
25466 (altivec_vupkhs<VU_char>): Likewise.
25467 (altivec_vupkls<VU_char>): Likewise.
25468 (altivec_vupkhsh): Likewise.
25469 (altivec_vupklsb): Likewise.
25470 (altivec_vupklsh): Likewise.
25471 (altivec_vcmpequ<VI_char>_p): Likewise.
25472 (altivec_vcmpgts<VI_char>_p): Likewise.
25473 (altivec_vcmpgtu<VI_char>_p): Likewise.
25474 (abs<mode>2): Likewise.
25475 (vec_unpacks_hi_v16qi): Likewise.
25476 (vec_unpacks_hi_v8hi): Likewise.
25477 (vec_unpacks_lo_v16qi): Likewise.
25478 (vec_unpacks_hi_<VP_small_lc>): Likewise.
25479 (vec_unpacks_lo_v8hi): Likewise.
25480 (vec_unpacks_lo_<VP_small_lc>): Likewise.
25481 (vec_pack_trunc_v8h): Likewise.
25482 (vec_pack_trunc_v4si): Likewise.
25483 (vec_pack_trunc_<mode>): Likewise.
25485 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25487 (vec_vmaxsd): Likewise.
25488 (vec_vmaxud): Likewise.
25489 (vec_vminsd): Likewise.
25490 (vec_vminud): Likewise.
25491 (vec_vpksdss): Likewise.
25492 (vec_vpksdus): Likewise.
25493 (vec_vpkudum): Likewise.
25494 (vec_vpkudus): Likewise.
25495 (vec_vrld): Likewise.
25496 (vec_vsld): Likewise.
25497 (vec_vsrad): Likewise.
25498 (vec_vsrd): Likewise.
25499 (vec_vsubudm): Likewise.
25500 (vec_vupkhsw): Likewise.
25501 (vec_vupklsw): Likewise.
25503 2013-05-29 Jan Hubicka <jh@suse.cz>
25505 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25506 flags; reorder rest of fields in more consistent way.
25507 (varpool_node): Remove analyzed, finalized and alias.
25508 (cgraph_ndoe): Likewise.
25509 (symtab_alias_ultimate_target): New function.
25510 (cgraph_function_node): Move offline.
25511 (cgraph_reset_node): Declare.
25512 (cgraph_comdat_can_be_unshared_p): Remove.
25513 (varpool_remove_initializer): Declare.
25514 (varpool_first_defined_variable, varpool_next_defined_variable
25515 cgraph_first_defined_function, cgraph_next_defined_function): Update.
25516 (cgraph_function_with_gimple_body_p): Update.
25517 (varpool_all_refs_explicit_p): Update.
25518 (symtab_alias_target): New function.
25519 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25520 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25521 (cgraph_function_or_thunk_node): Simplify using
25522 symtab_alias_ultimate_target.
25523 (varpool_variable_node): Likewise.
25524 * cgraph.c (cgraph_create_function_alias): Update.
25525 (cgraph_add_thunk): Update.
25526 (cgraph_remove_node): Update.
25527 (dump_cgraph_node): Do not dump removed flags.
25528 (cgraph_function_body_availability): Update.
25529 (cgraph_propagate_frequency): Update.
25530 (verify_cgraph_node): Check sanity of local flag.
25531 (cgraph_function_node): Move here from cgraph.h; revamp for
25532 cgraph_function_or_thunk_node.
25533 * lto-symtab.c (lto_varpool_replace_node): Update.
25534 (lto_symtab_resolve_can_prevail_p): Update.
25535 (lto_symtab_merge_cgraph_nodes): Update.
25536 * ipa-cp.c (determine_versionability, initialize_node_lattices,
25537 propagate_constants_accross_call, devirtualization_time_bonus,
25538 ipcp_propagate_stage): Update.
25539 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25540 * ipa-inline-transform.c (clone_inlined_nodes,
25541 preserve_function_body_p): Update.
25542 * ipa-reference.c (propagate): Update.
25543 (write_node_summary_p): Update.
25544 * toplev.c (wrapup_global_declaration_2): Update.
25545 * cgraphunit.c (cgraph_analyze_function): Rename to ...
25546 (analyze_function) ... this one.
25547 (cgraph_process_new_functions): Update.
25548 (cgraph_reset_node): Export.
25549 (cgraph_finalize_function): Update.
25550 (cgraph_add_new_function): Update.
25551 (process_function_and_variable_attributes): Update.
25552 (varpool_finalize_decl): Update.
25553 (symbol_finalized): Remove.
25554 (symbol_finalized_and_needed): Rename to ...
25555 (symbol_defined_and_needed): ... update.
25556 (cgraph_analyze_functions): Update.
25557 (handle_alias_pairs): Update.
25558 (mark_functions_to_output): Update.
25559 (assemble_thunk): Update.
25560 (output_in_order): Update.
25561 (output_weakrefs): Update.
25562 (finalize_compilation_unit): Update.
25563 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25564 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25565 input_node, input_varpool_node): Update.
25566 * dbxout.c (dbxout_expand_expr): Update.
25567 * cgraphclones.c (cgraph_clone_node): Update.
25568 (cgraph_copy_node_for_versioning): Update.
25569 (cgraph_materialize_clone): Update.
25570 (cgraph_materialize_all_clones): Update.
25571 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25572 propagate_pure_const, propagate_nothrow): Update.
25573 * lto-streamer-out.c (lto_output, write_symbol): Update.
25574 * ipa-utils.c (ipa_reverse_postorder): Update.
25575 * ipa-inline.c (can_inline_edge_p): Update.
25576 (update_caller_keys, ipa_inline): Update.
25577 * dwarf2out.c (reference_to_unused,
25578 premark_types_used_by_global_vars_helper): Update.
25579 * tree-eh.c (tree_could_trap_p): Update.
25580 * ipa-split.c (consider_split, execute_split_functions): Update.
25581 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25582 has_addr_references_p): Update; move ahead in file for better
25584 (process_references): Simplify.
25585 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25586 bodies are removed.
25587 (cgraph_comdat_can_be_unshared_p): Make static.
25588 (cgraph_externally_visible_p): Update.
25589 (varpool_externally_visible_p): Update.
25590 (function_and_variable_visibility): Update.
25591 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25592 ipa_tm_mark_force_output_node): Update.
25593 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25594 estimate_edge_devirt_benefit, inline_generate_summary,
25595 inline_write_summary): Update.
25596 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25597 * ipa-prop.c (ipa_compute_jump_functions): Update.
25598 (ipa_print_node_params, ipa_prop_read_section,
25599 ipa_update_after_lto_read, read_replacements_section): Update.
25600 * varasm.c (mark_decl_referenced): Update.
25601 (assemble_alias, dump_tm_clone_pairs): Update.
25602 * tree-inline.c (copy_bb): Update.
25603 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25605 * symtab.c (dump_symtab_base): Print new flags.
25606 (verify_symtab_base): Verify new flags.
25607 (symtab_alias_ultimate_target): New function.
25608 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25609 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25611 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25613 * i386.c (ix86_get_function_versions_dispatcher,
25614 ix86_generate_version_dispatcher_body): Update.
25615 (fold_builtin_cpu): Use varpool_add_new_variable.
25616 * varpool.c (varpool_remove_initializer): Break out from ...
25617 (varpool_remove_node): ... this one.
25618 (dump_varpool_node, varpool_node_for_asm,
25619 cgraph_variable_initializer_availability, varpool_analyze_node,
25620 varpool_assemble_decl, varpool_remove_unreferenced_decls,
25621 varpool_finalize_named_section_flags, varpool_create_variable_alias):
25624 2013-05-29 Jan Hubicka <jh@suse.cz>
25626 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25628 2013-05-29 Easwaran Raman <eraman@google.com>
25630 PR tree-optimization/57442
25631 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25632 when control exits the main loop.
25634 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
25636 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25638 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25639 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25640 * rx/t-rx: Add rx100 under multi library matches option for nofpu
25643 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25645 PR tree-optimization/57441
25646 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25647 Don't limit size of incr_vec to number of candidates.
25649 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
25651 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25652 and mips16 directories.
25653 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25654 (MULTILIB_DIRNAMES): Ditto.
25655 (MULTILIB_EXCEPTIONS): Add new exceptions.
25656 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25657 (MULTILIB_DIRNAMES): Ditto.
25658 (MULTILIB_EXCEPTIONS): Add new exceptions.
25660 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25661 Marcus Shawcroft <marcus.shawcroft@arm.com>
25663 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25664 SYMBOL_TINY_ABSOLUTE.
25665 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25666 SYMBOL_TINY_ABSOLUTE.
25667 (aarch64_expand_mov_immediate): Likewise.
25668 (aarch64_classify_symbol): Likewise.
25669 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25670 Permit SYMBOL_TINY_ABSOLUTE.
25671 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25673 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25674 Marcus Shawcroft <marcus.shawcroft@arm.com>
25676 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25677 Refactor if/switch. Replace gcc_assert with if.
25679 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25681 * config/i386/i386.c (initial_ix86_tune_features): Enable
25682 FP Reassociation for AMD bdver1 and bdver2.
25684 2013-05-29 Martin Jambor <mjambor@suse.cz>
25686 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25687 and IMAGPART_EXPR do not occur within other handled_components.
25689 2013-05-29 Richard Biener <rguenther@suse.de>
25691 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25692 access on whether the use is in the BB we currently try to
25694 (vect_bb_vectorization_profitable_p): Pass the BB we currently
25695 vectorize to vect_bb_slp_scalar_cost.
25697 2013-05-29 Richard Biener <rguenther@suse.de>
25699 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25700 computing scalar cost offsetted by stmts that are kept live
25702 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25703 for computation of scalar cost.
25705 2013-05-28 Steve Ellcey <sellcey@mips.com>
25707 * config/mips/mips-cpus.def (mips32r2): Change processor type.
25709 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25711 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25712 array notation built-in reduction functions.
25713 * doc/passes.texi (Passes): Added documentation about changes done
25715 * doc/invoke.texi (C Dialect Options): Added documentation about
25716 the -fcilkplus flag.
25717 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25718 (BUILTINS_DEF): Depend on cilkplus.def.
25719 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
25720 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25721 * cilkplus.def: New file.
25723 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
25725 PR rtl-optimization/57439
25726 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25728 2013-05-28 Easwaran Raman <eraman@google.com>
25730 PR tree-optimization/57337
25731 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25732 (find_insert_point): Correctly identify the insertion point
25733 when two statements with the same UID is compared.
25735 2013-05-28 Richard Biener <rguenther@suse.de>
25737 PR tree-optimization/56787
25738 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25739 from the list of data references.
25740 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25742 (vect_analyze_loop_operations): Likewise.
25743 (vect_transform_loop): Remove clobbers.
25745 2013-05-28 Martin Jambor <mjambor@suse.cz>
25747 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25748 and REALPART_EXPRs have scalar type.
25750 2013-05-28 Richard Biener <rguenther@suse.de>
25752 PR tree-optimization/57411
25753 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25755 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25756 virtual operand propagation.
25758 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25760 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25761 destination register for bmasksi_vis.
25762 (vector_init_bshuffle): Likewise.
25763 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25765 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25767 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25768 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25769 mode if the instruction isn't available in the original mode.
25770 * config/sparc/sparc.opt (mfix-ut699): New option.
25771 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25772 (divdf3): Turn into expander.
25773 (divdf3_nofix): New insn.
25774 (divdf3_fix): Likewise.
25775 (divsf3): Disable if -mfix-ut699.
25776 (sqrtdf2): Turn into expander.
25777 (sqrtdf2_nofix): New insn.
25778 (sqrtdf2_fix): Likewise.
25779 (sqrtsf2): Disable if -mfix-ut699.
25781 2013-05-27 Richard Biener <rguenther@suse.de>
25783 PR middle-end/57412
25784 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25785 block for the new loop.
25787 2013-05-27 Richard Biener <rguenther@suse.de>
25789 PR tree-optimization/57343
25790 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25791 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25792 (number_of_iterations_cond): Do not build the folded tree.
25794 2013-05-27 Richard Biener <rguenther@suse.de>
25797 PR middle-end/57381
25798 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25799 OEP_CONSTANT_ADDRESS_OF retained.
25801 PR tree-optimization/57417
25802 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25803 for unchanged base.
25804 (set_ssa_val_to): Compare addresses using
25805 get_addr_base_and_unit_offset.
25807 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
25809 PR rtl-optimization/56833
25810 * postreload.c (move2add_record_mode): New function.
25811 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25812 (move2add_use_add2_insn): Use move2add_record_sym_value.
25813 (move2add_use_add3_insn): Likewise.
25814 (reload_cse_move2add): Use move2add_valid_value_p and
25815 move2add_record_mode. Invalidate call-clobbered and REG_INC
25816 affected regs by setting reg_mode to VOIDmode.
25817 (move2add_note_store): Don't pretend the inside of a SUBREG is
25818 the actual destination. Invalidate single/leading registers by
25819 setting reg_mode to VOIDmode.
25820 Use move2add_record_sym_value, move2add_valid_value_p and
25821 move2add_record_mode.
25823 2013-05-27 Richard Biener <rguenther@suse.de>
25825 PR tree-optimization/57396
25826 * tree-affine.c (double_int_constant_multiple_p): Properly
25827 return false for val == 0 and div != 0.
25829 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25831 * config/mips/mips.h: Use #elif in preprocessor conditions.
25833 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25836 * config/mips/constraints.md (kl): New constraint.
25837 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25838 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
25839 constraint for operand 0. Split after CSE for MIPS16. Emit a move
25840 from LO for MIPS16.
25841 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25843 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25846 * config/mips/mips.c (mips_can_inline_p): New function.
25847 (TARGET_CAN_INLINE_P): Define.
25849 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
25851 * sched-int.h (ds_t, dw_t): Make unsigned int.
25852 Fix documentation that describes how all the ds_t bits are used.
25853 Reserve the last bit for delayed-branch scheduling.
25854 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25855 (BITS_PER_DEP_WEAK): Fix definition and documentation.
25856 (gen_dep_weak_1): Remove prototype.
25857 * sched-deps.c (get_dep_weak_1): Make static.
25858 * target.def (speculate_insn, needs_block_p, gen_spec_check,
25859 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25860 * doc/tm.texi: Regenerate.
25861 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25863 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
25866 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25868 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
25869 Sandra Loosemore <sandra@codesourcery.com>
25871 * config.gcc (powerpc-*): Allow native for with-cpu.
25873 2013-05-24 Jeff Law <law@redhat.com>
25875 PR tree-optimization/57124
25876 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25877 conversion feeding a condition if the range has an overflow
25878 if -fstrict-overflow. Add warnings for when we do make the
25881 2013-05-24 Dehao Chen <dehao@google.com>
25883 * tree-cfg.c (locus_discrim_map): Fix the typo.
25884 (locus_discrim_hasher): Likewise.
25885 (locus_discrim_hasher::hash): Likewise.
25886 (locus_discrim_hasher::equal): Likewise.
25888 2013-05-24 Martin Jambor <mjambor@suse.cz>
25890 PR tree-optimization/57294
25891 * cgraph.h (ipa_record_stmt_references): Declare.
25892 * cgraphbuild.c (ipa_record_stmt_references): New function.
25893 (build_cgraph_edges): Use ipa_record_stmt_references.
25894 (rebuild_cgraph_edges): Likewise.
25895 (cgraph_rebuild_references): Likewise.
25896 * ipa-prop.c (ipa_modify_call_arguments): Discard references
25897 associated with the old statement and build references from the
25898 newly built statements.
25899 * ipa-ref.c (ipa_remove_stmt_references): New function.
25900 * ipa-ref.h (ipa_remove_stmt_references): Declare.
25902 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
25904 * lra-constraints.c (emit_spill_move): Use smaller mode for
25906 (check_and_process_move): Consider mem-reg moves for secondary
25908 (curr_insn_transform): Don't lose insns emitted before for
25909 secondary memory moves.
25910 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
25911 reg set up in the current insn.
25913 2013-05-24 Dehao Chen <dehao@google.com>
25915 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25917 (locus_descrim_hasher::equal): Likewise.
25918 (build_gimple_cfg): New discriminator assignment algorithm.
25919 (make_edges): Likewise.
25920 (next_discriminator_for_locus): Likewise.
25921 (same_line_p): Likewise.
25922 (assign_discriminators): Likewise.
25923 (make_cond_expr_edges): Likewise.
25924 (make_gimple_switch_edges): Likewise.
25925 (make_goto_expr_edges): Likewise.
25926 (make_gimple_asm_edges): Likewise.
25928 2013-05-24 Ian Bolton <ian.bolton@arm.com>
25930 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25931 X format specifier to only display bottom 16 bits.
25932 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25933 immediate to match for operand 2, since it will be masked.
25935 2013-05-24 Richard Biener <rguenther@suse.de>
25937 PR tree-optimization/57287
25938 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25939 all SSA names that occur in abnormal PHIs.
25941 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
25944 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25945 that index is not negative.
25947 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
25949 PR rtl-optimization/55177
25950 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25951 (simplify_byte_swapping_operation): New.
25952 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25953 (simplify_relational_operation_1): Deal with BSWAP.
25955 2013-05-23 Richard Henderson <rth@redhat.com>
25958 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25959 (ix86_reorg): Call it.
25961 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
25964 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25965 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25966 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25968 2013-05-23 Christian Bruel <christian.bruel@st.com>
25971 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25973 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25974 Marcus Shawcroft <marcus.shawcroft@arm.com>
25976 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25977 * config/aarch64/constraints.md (Usa): Remove.
25978 * doc/md.texi (AArch64 Usa): Remove.
25980 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25981 Marcus Shawcroft <marcus.shawcroft@arm.com>
25983 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25984 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25985 * config/aarch64/predicates.md (aarch64_const_address): Remove.
25986 (aarch64_mov_operand): Use aarch64_mov_operand_p.
25988 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
25990 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25991 instruction (AdvSIMD).
25992 * config/aarch64/aarch64-builtins.c
25993 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25994 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25996 2013-05-23 Martin Jambor <mjambor@suse.cz>
25998 PR middle-end/57347
25999 * tree.h (contains_bitfld_component_ref_p): Declare.
26000 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26001 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
26003 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26004 not access a bit-field. Assert all final offsets are byte-aligned.
26006 2013-05-23 Richard Biener <rguenther@suse.de>
26008 PR tree-optimization/57380
26009 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26010 least one invariant or re-used load.
26011 * passes.c (init_optimization_passes): Move pass_phiprop before
26014 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
26016 * config/aarch64/aarch64-simd.md
26017 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26019 2013-05-23 Richard Biener <rguenther@suse.de>
26021 PR middle-end/57381
26022 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26023 OEP_CONSTANT_ADDRESS_OF retained.
26025 2013-05-23 Jakub Jelinek <jakub@redhat.com>
26027 PR middle-end/57344
26028 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26029 don't lower unit. Handle unit not being always BITS_PER_WORD.
26031 2013-05-23 Richard Biener <rguenther@suse.de>
26033 PR rtl-optimization/57341
26034 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26035 instead of true_dependence.
26037 2013-05-22 David Malcolm <dmalcolm@redhat.com>
26039 * bb-reorder.c (branch_threshold): Make const.
26040 (exec_threshold): Ditto.
26042 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26043 Pat Haugen <pthaugen@us.ibm.com>
26044 Peter Bergner <bergner@vnet.ibm.com>
26046 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26047 documentation for the power8 crypto builtins.
26049 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26051 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26052 macros for defining power8 builtin functions.
26053 (BU_P8V_AV_2): Likewise.
26054 (BU_P8V_AV_P): Likewise.
26055 (BU_P8V_VSX_1): Likewise.
26056 (BU_P8V_OVERLOAD_1): Likewise.
26057 (BU_P8V_OVERLOAD_2): Likewise.
26058 (BU_CRYPTO_1): Likewise.
26059 (BU_CRYPTO_2): Likewise.
26060 (BU_CRYPTO_3): Likewise.
26061 (BU_CRYPTO_OVERLOAD_1): Likewise.
26062 (BU_CRYPTO_OVERLOAD_2): Likewise.
26063 (XSCVSPDP): Fix typo, point to the correct instruction.
26064 (VCIPHER): Add power8 crypto builtins.
26065 (VCIPHERLAST): Likewise.
26066 (VNCIPHER): Likewise.
26067 (VNCIPHERLAST): Likewise.
26068 (VPMSUMB): Likewise.
26069 (VPMSUMH): Likewise.
26070 (VPMSUMW): Likewise.
26071 (VPERMXOR_V2DI): Likewise.
26072 (VPERMXOR_V4SI: Likewise.
26073 (VPERMXOR_V8HI: Likewise.
26074 (VPERMXOR_V16QI: Likewise.
26075 (VSHASIGMAW): Likewise.
26076 (VSHASIGMAD): Likewise.
26077 (VPMSUM): Likewise.
26078 (VPERMXOR): Likewise.
26079 (VSHASIGMA): Likewise.
26081 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26082 __CRYPTO__ if the crypto instructions are available.
26083 (altivec_overloaded_builtins): Add support for overloaded power8
26086 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26087 support for power8 crypto builtins.
26088 (builtin_function_type): Likewise.
26089 (altivec_init_builtins): Add support for builtins that take vector
26090 long long (V2DI) arguments.
26092 * config/rs6000/crypto.md: New file, define power8 crypto
26095 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26096 Pat Haugen <pthaugen@us.ibm.com>
26097 Peter Bergner <bergner@vnet.ibm.com>
26099 * doc/invoke.texi (Option Summary): Add power8 options.
26100 (RS/6000 and PowerPC Options): Likewise.
26102 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26103 constraints.md instead of rs6000.h. Reorder w* constraints. Add
26104 wm, wn, wr documentation.
26106 * config/rs6000/constraints.md (wm): New constraint for VSX
26107 registers if direct move instructions are enabled.
26108 (wn): New constraint for no registers.
26109 (wq): New constraint for quad word even GPR registers.
26110 (wr): New constraint if 64-bit instructions are enabled.
26111 (wv): New constraint if power8 vector instructions are enabled.
26112 (wQ): New constraint for quad word memory locations.
26114 * config/rs6000/predicates.md (const_0_to_15_operand): New
26115 constraint for 0..15 for crypto instructions.
26116 (gpc_reg_operand): If VSX allow registers in VSX registers as well
26117 as GPR and floating point registers.
26118 (int_reg_operand): New predicate to match only GPR registers.
26119 (base_reg_operand): New predicate to match base registers.
26120 (quad_int_reg_operand): New predicate to match even GPR registers
26121 for quad memory operations.
26122 (vsx_reg_or_cint_operand): New predicate to allow vector logical
26123 operations in both GPR and VSX registers.
26124 (quad_memory_operand): New predicate for quad memory operations.
26125 (reg_or_indexed_operand): New predicate for direct move support.
26127 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26128 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26129 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26130 (POWERPC_MASKS): Add power8 options.
26131 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26134 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26135 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26137 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26138 (-mpower8-fusion): New power8 options.
26139 (-mpower8-fusion-sign): Likewise.
26140 (-mpower8-vector): Likewise.
26141 (-mcrypto): Likewise.
26142 (-mdirect-move): Likewise.
26143 (-mquad-memory): Likewise.
26145 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26146 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26148 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26149 (rs6000_debug_vector_unit): Add p8_vector.
26150 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26151 definitions. Also print fusion state.
26152 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26153 (rs6000_builtin_mask_calculate): Add power8 builtin support.
26154 (rs6000_option_override_internal): Add support for power8.
26155 (rs6000_common_init_builtins): Add debugging for skipped builtins
26156 if -mdebug=builtin.
26157 (rs6000_adjust_cost): Add power8 support.
26158 (rs6000_issue_rate): Likewise.
26159 (insn_must_be_first_in_group): Likewise.
26160 (insn_must_be_last_in_group): Likewise.
26161 (force_new_group): Likewise.
26162 (rs6000_register_move_cost): Likewise.
26163 (rs6000_opt_masks): Likewise.
26165 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26166 power8 capable assembler, default to power7 options.
26167 (TARGET_DIRECT_MOVE): Likewise.
26168 (TARGET_CRYPTO): Likewise.
26169 (TARGET_P8_VECTOR): Likewise.
26170 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26171 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26172 (VECTOR_MEM_P8_VECTOR_P): Likewise.
26173 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26174 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26175 (TARGET_XSCVDPSPN): Likewise.
26176 (TARGET_XSCVSPDPN): Likewsie.
26177 (TARGET_SYNC_HI_QI): Likewise.
26178 (TARGET_SYNC_TI): Likewise.
26179 (MASK_CRYPTO): Likewise.
26180 (MASK_DIRECT_MOVE): Likewise.
26181 (MASK_P8_FUSION): Likewise.
26182 (MASK_P8_VECTOR): Likewise.
26183 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26184 temporary used by some of the direct move instructions to get two FP
26185 temporary registers does not force creation of a stack frame.
26186 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26187 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26188 that any VSX registers are tieable, even if they are also an
26189 Altivec vector mode.
26190 (r6000_reg_class_enum): Add wm, wr, wv constraints.
26191 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26192 (RS6000_BTM_CRYPTO): Likewise.
26193 (RS6000_BTM_COMMON): Likewise.
26195 * config/rs6000/rs6000.md (cpu attribute): Add power8.
26196 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26197 (enum rs6000_vector): Add power8 vector support.
26199 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26203 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26204 (any_sibcall_could_use_r3): this and handle indirect calls.
26205 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26207 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26209 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26211 2013-05-22 Richard Biener <rguenther@suse.de>
26213 PR middle-end/57349
26214 * profile.c (branch_prob): Do not split blocks that are
26215 abnormally receiving from ECF_RETURNS_TWICE functions.
26217 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26219 * recog.c (offsettable_address_addr_space_p): Fix calculation of
26220 address mode. Move pointer mode initialization to the same place.
26222 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26224 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26225 while it has any effect.
26227 2013-05-21 Easwaran Raman <eraman@google.com>
26229 PR tree-optimization/57322
26230 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26231 UID of the statement added to the BB to be 1.
26233 2013-05-21 Jakub Jelinek <jakub@redhat.com>
26235 PR tree-optimization/57331
26236 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26237 of conversion from pointer type to integral type with integer.
26239 2013-05-21 Martin Jambor <mjambor@suse.cz>
26242 * ipa-prop.c (ipa_read_node_info): Process param_used and
26243 controlled_uses in the same order as when writing.
26245 2013-05-21 Magnus Granberg <baldrick@free.fr>
26248 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26250 2013-05-21 Richard Biener <rguenther@suse.de>
26252 PR tree-optimization/57318
26253 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26254 estimate stmts with side-effects as likely eliminated.
26256 2013-05-21 Richard Biener <rguenther@suse.de>
26258 PR tree-optimization/57330
26259 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26260 preserve the call stmts fntype.
26262 2013-05-21 Richard Biener <rguenther@suse.de>
26264 PR tree-optimization/57303
26265 * tree-ssa-sink.c (statement_sink_location): Improve killing
26266 stmt detection and properly handle self-assignments.
26268 2013-05-21 Christian Bruel <christian.bruel@st.com>
26270 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26271 spanning registers. LEAF_REG_REMAP is supported only for contiguous
26272 registers. Set register size out of the PARALLEL loop.
26274 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
26277 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26278 (*fmasf4, *fmasf4_media): New insns.
26280 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26282 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26283 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26284 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26285 (mips_idiv_insns): Update the comments to say that the returned
26286 instruction counts are in units of BASE_INSN_LENGTH.
26287 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26288 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
26289 using 2 rather than 4 as the length of indirect MIPS16 and
26290 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
26291 length of a NOP. Don't divide MIPS16 lengths by 2.
26292 (mips16_split_long_branches): Assume a branch is long if the
26293 length is greater than 4 rather than 8.
26294 * config/mips/mips.md (length): Give MIPS16 lengths directly,
26295 rather than multiplying them by 2. Multiply instruction counts
26296 by BASE_INSN_LENGTH rather than 4.
26297 (*jump_mips16, tls_get_tp_mips16_<mode>)
26298 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26300 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26302 * config/mips/mips.md (extended_mips16): Remove branch case.
26303 (length): Remove duplicated extended_mips16 test.
26305 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26307 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26309 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
26311 * recog.h (Recog_data): Rename to...
26312 (recog_data_d): ...this.
26313 (recog_data): Update accordingly.
26314 * recog.c (recog_data): Likewise.
26315 * reload.c (save_recog_data): Likewise.
26316 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26317 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26319 2013-05-17 Julian Brown <julian@codesourcery.com>
26321 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26322 found in a REG_EQUAL note, invalidate it.
26324 2013-05-17 Easwaran Raman <eraman@google.com>
26326 * tree-ssa-reassoc.c (find_insert_point): New function.
26327 (insert_stmt_after): Likewise.
26328 (get_def_stmt): Likewise.
26329 (ensure_ops_are_available): Likewise.
26330 (not_dominated_by): Likewise.
26331 (rewrite_expr_tree): Do not move statements beyond what is
26332 necessary. Remove call to swap_ops_for_binary_stmt...
26333 (reassociate_bb): ... and move it here.
26334 (build_and_add_sum): Assign UIDs for new statements.
26335 (linearize_expr): Likewise.
26336 (do_reassoc): Renumber gimple statement UIDs.
26338 2013-05-17 Jan Hubicka <jh@suse.cz>
26340 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26342 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26343 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26345 (output_weakrefs): Update.
26347 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
26348 Martin Jambor <mjambor@suse.cz>
26350 PR middle-end/57276
26351 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26352 value that corresponds to the given aggval is found in values vector.
26354 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
26356 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26357 sse, sse2, sse3, ssse3 and sse4a flags to options.
26359 2013-05-17 David Malcolm <dmalcolm@redhat.com>
26361 * gengtype-state.c: (s_expr_writer): New class, to handle
26362 prettifying of output layout of s-expressions.
26363 (state_writer): New class, to write out gtype.state.
26364 (state_written_type_count): Move this variable into member data of
26366 (s_expr_writer::s_expr_writer): New code: constructor for new class
26367 (state_writer::state_writer(): ditto
26368 (s_expr_writer::write_new_line): New function
26369 (s_expr_writer::write_any_indent): ditto
26370 (s_expr_writer::begin_s_expr): ditto
26371 (s_expr_writer::end_s_expr): ditto
26372 (write_state_fileloc): convert to method of state_writer...
26373 (state_writer:: write_state_fileloc): ...and use methods of
26374 s_expr_writer to write indentation into the gtype.state output file
26375 to visually represent the hierarchical structure of the list
26377 (write_state_fields): ditto, renaming to...
26378 (state_writer::write_state_fields)
26379 (write_state_a_string): ditto, renaming to...
26380 (state_writer::write_state_a_string)
26381 (write_state_string_option): ditto, renaming to...
26382 (state_writer::write_state_string_option)
26383 (write_state_type_option): ditto, renaming to...
26384 (state_writer::write_state_type_option)
26385 (write_state_nested_option): ditto, renaming to...
26386 (state_writer::write_state_nested_option)
26387 (write_state_option): ditto, renaming to...
26388 (state_writer::write_state_option)
26389 (write_state_options): ditto, renaming to...
26390 (state_writer::write_state_options)
26391 (write_state_lang_bitmap): ditto, renaming to...
26392 (state_writer::write_state_lang_bitmap)
26393 (write_state_version): ditto, renaming to...
26394 (state_writer::write_state_version)
26395 (write_state_scalar_type): ditto, renaming to...
26396 (state_writer::write_state_scalar_type)
26397 (write_state_string_type): ditto, renaming to...
26398 (state_writer::write_state_string_type)
26399 (write_state_undefined_type): ditto, renaming to...
26400 (state_writer::write_state_undefined_type)
26401 (write_state_struct_union_type): ditto, renaming to...
26402 (state_writer::write_state_struct_union_type)
26403 (write_state_struct_type): ditto, renaming to...
26404 (state_writer::write_state_struct_type)
26405 (write_state_user_struct_type): ditto, renaming to...
26406 (state_writer::write_state_user_struct_type)
26407 (write_state_lang_struct_type): ditto, renaming to...
26408 (state_writer::write_state_lang_struct_type)
26409 (write_state_param_struct_type): ditto, renaming to...
26410 (state_writer::write_state_param_struct_type)
26411 (write_state_pointer_type): ditto, renaming to...
26412 (state_writer::write_state_pointer_type)
26413 (write_state_array_type): ditto, renaming to...
26414 (state_writer::write_state_array_type)
26415 (write_state_gc_used): ditto, renaming to...
26416 (state_writer::write_state_gc_used)
26417 (write_state_common_type_content): ditto, renaming to...
26418 (state_writer::write_state_common_type_content)
26419 (write_state_type): ditto, renaming to...
26420 (state_writer::write_state_type)
26421 (write_state_pair_list): ditto, renaming to...
26422 (state_writer::write_state_pair_list)
26423 (write_state_pair): ditto, renaming to...
26424 (state_writer::write_state_pair)
26425 (write_state_typedefs): ditto, renaming to...
26426 (state_writer::write_state_typedefs)
26427 (write_state_structures): ditto, renaming to...
26428 (state_writer::write_state_structures)
26429 (write_state_param_structs): ditto, renaming to...
26430 (state_writer::write_state_param_structs)
26431 (write_state_variables): ditto, renaming to...
26432 (state_writer::write_state_variables)
26433 (write_state_srcdir): ditto, renaming to...
26434 (state_writer::write_state_srcdir)
26435 (write_state_files_list): ditto, renaming to...
26436 (state_writer::write_state_files_list)
26437 (write_state_languages): ditto, renaming to...
26438 (state_writer::write_state_languages)
26439 (write_state): create a state_writer instance and use it when
26440 writing out the state file
26442 2013-05-17 Mike Stump <mikestump@comcast.net>
26444 PR rtl-optimization/57304
26445 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26446 accessing DF_REF_REAL_LOC.
26448 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26450 PR rtl-optimization/57281
26451 PR rtl-optimization/57300
26452 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26453 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26454 what the other splitter did if the registers are dead.
26456 2013-05-17 Richard Biener <rguenther@suse.de>
26458 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26461 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26463 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26466 2013-05-17 Marek Polacek <polacek@redhat.com>
26468 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26469 length when doing non-zero store of storing '\0' to '\0'.
26471 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26473 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26474 vect_external_def oprnd1 with loop_vinfo, try to emit
26475 optional cast, negation and and stmts on the loop preheader
26476 edge instead of into the pattern def seq.
26478 PR tree-optimization/57051
26479 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26480 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26482 2013-05-16 Nick Clifton <nickc@redhat.com>
26484 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26485 (rl78_is_naked_func): New function.
26486 (rl78_expand_prologue): Skip prologue generation for naked functions.
26487 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26488 * doc/extend.texi (naked): Add RL78 to the list of processors
26489 that supports this attribute.
26491 2013-05-16 Jeff Law <law@redhat.com>
26493 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26495 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26497 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26498 cache parameters using detect_caches_amd also for CYRIX,
26499 NSC and TM2 signatures.
26501 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26502 Dzianis Kahanovich <mahatma@eu.by>
26506 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26507 VIA/Centaur processors and determine their cache parameters
26508 using detect_caches_amd.
26510 2013-05-16 Teresa Johnson <tejohnson@google.com>
26512 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26513 (rtl_verify_edges): New function.
26514 (rtl_verify_bb_insns): Ditto.
26515 (rtl_verify_bb_pointers): Ditto.
26516 (rtl_verify_bb_insn_chain): Ditto.
26517 (rtl_verify_fallthru): Ditto.
26518 (rtl_verify_bb_layout): Ditto.
26519 (rtl_verify_flow_info_1): Outline checks into new functions.
26520 (rtl_verify_flow_info): Ditto.
26522 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
26524 * cfghooks.c (copy_bbs): Add update_dominance argument.
26525 * cfghooks.h (copy_bbs): Update prototype.
26526 * tree-cfg.c (gimple_duplicate_sese_region):
26527 Add update_dominance argument.
26528 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26529 * tree-ssa-loop-ch.c (copy_loop_headers): Update
26530 gimple_duplicate_sese_region call.
26531 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26532 Update copy_bbs call.
26533 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26534 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26536 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26538 * tree-vectorizer.h (NUM_PATTERNS): Increment.
26539 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26540 vect_recog_rotate_pattern.
26541 (vect_recog_rotate_pattern): New function.
26543 2013-05-16 Jason Merrill <jason@redhat.com>
26545 * Makefile.in (LLINKER): New variable.
26546 (mostlyclean): Remove link mutex.
26547 * configure.ac: Handle --enable-link-mutex.
26548 * lock-and-run.sh: New script.
26550 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26553 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26556 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26558 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26560 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
26562 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26563 * config/arm/arm.c (next_consecutive_mem): New function.
26564 (gen_movmem_ldrd_strd): Likewise.
26565 * config/arm/arm.md (movmemqi): Update condition and code.
26566 (unaligned_loaddi, unaligned_storedi): New patterns.
26568 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26570 * config.gcc: Obsolete *-*-solaris2.9*.
26571 * doc/install.texi (Specific, *-*-solaris2*): Document it.
26573 2013-05-16 Richard Biener <rguenther@suse.de>
26575 * passes.c (init_optimization_passes): Move pass_parallelize_loops
26576 earlier, after GRAPHITE transforms and IV canonicalization.
26578 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26580 * omp-low.c (extract_omp_for_data): For collapsed loops,
26581 if at least one of the loops is known at compile time to
26582 iterate zero times, set count to 0.
26583 (expand_omp_regimplify_p): New function.
26584 (expand_omp_for_generic): For collapsed loops, if at least
26585 one of the loops isn't known to iterate at least once,
26586 add runtime check with setting count to 0.
26587 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26588 For unsigned types if it isn't known at compile time that
26589 the loop will iterate at least once, add runtime check to bypass
26590 the whole loop if initial condition isn't true.
26592 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
26594 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26596 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
26598 PR middle-end/57286
26599 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26600 transformations to avoid an infinite loop.
26602 2013-05-16 Marek Polacek <polacek@redhat.com>
26604 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26606 2013-05-15 Leif Ekblad <leif@rdos.net>
26608 * config/i386/i386.c (ix86_decompose_address): Use
26609 DEFAULT_TLS_SEG_REG to access TLS segment register.
26610 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26611 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26612 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26614 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
26617 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26618 sibling calls to functions that would normally be lazily bound,
26619 unless $gp is call-clobbered.
26621 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
26623 * config/i386/i386.c (ix86_option_override_internal): Update
26624 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
26625 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26626 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26627 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26629 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26631 2013-05-15 Andreas Schwab <schwab@suse.de>
26633 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26634 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
26637 2013-05-15 Teresa Johnson <tejohnson@google.com>
26639 * loop-unroll.c (report_unroll_peel): Check decision before
26640 emitting unroll/peel message.
26642 2013-05-15 Teresa Johnson <tejohnson@google.com>
26644 * function.h (has_bb_partition): New rtl_data flag.
26645 (bb_reorder_complete): Ditto.
26646 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26647 instead of flag_reorder_blocks_and_partition.
26648 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26649 with some enhancements.
26650 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26651 * bb-reorder.c (connect_traces): Check for has_bb_partition
26652 instead of flag_reorder_blocks_and_partition.
26653 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26654 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26655 verify_hot_cold_block_grouping.
26656 (partition_hot_cold_basic_blocks): Set has_bb_partition.
26658 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26661 * config/arm/predicates.md (call_insn_operand): New predicate.
26662 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
26663 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26664 if insn is not a tail call.
26665 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26667 * config/arm/arm.h (enum reg_class): New caller save register class.
26668 (REG_CLASS_NAMES): Likewise.
26669 (REG_CLASS_CONTENTS): Likewise.
26670 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26673 2013-05-15 Richard Biener <rguenther@suse.de>
26675 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26676 of MSG_OPTIMIZED_LOCATIONS.
26677 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26678 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26680 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26681 of MSG_OPTIMIZED_LOCATIONS.
26682 (execute_vect_slp): Likewise.
26683 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26684 (vect_create_cond_for_alias_checks): Likewise.
26685 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26686 (vect_recog_widen_mult_pattern): Likewise.
26687 (vect_recog_widen_sum_pattern): Likewise.
26688 (vect_recog_over_widening_pattern): Likewise.
26689 (vect_recog_widen_shift_pattern): Likewise.
26690 (vect_recog_vector_vector_shift_pattern): Likewise.
26691 (vect_recog_divmod_pattern): Likewise.
26692 (vect_recog_mixed_size_cond_pattern): Likewise.
26693 (vect_recog_bool_pattern): Likewise.
26694 (vect_pattern_recog_1): Likewise.
26696 2013-05-15 Martin Jambor <mjambor@suse.cz>
26698 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26699 non-functions to builtin_unreachable.
26700 * ipa-inline-transform.c (inline_call): Do not assert estimates were
26701 correct when new direct edges were discovered.
26703 2013-05-15 Martin Jambor <mjambor@suse.cz>
26705 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26706 header, print symbol order instead of node uid, print more information
26707 about indirect edge targets.
26708 (ipa_make_edge_direct_to_target): Print symbol order instead of node
26710 (ipa_make_edge_direct_to_target): Likewise.
26711 (remove_described_reference): Likewise.
26712 (propagate_controlled_uses): Likewise.
26713 (ipa_print_node_params): Also print symbol order.
26714 (ipcp_transform_function): Print symbol order instead of node uids.
26715 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26716 (cgraph_get_create_real_symbol_node): Likewise.
26717 * ipa-cp.c (print_lattice): Likewise.
26718 (print_all_lattices): Likewise.
26719 (determine_versionability): Likewise.
26720 (initialize_node_lattices): Likewise.
26721 (estimate_local_effects): Likewise.
26722 (update_profiling_info): Likewise.
26723 (create_specialized_node): Likewise.
26724 (perhaps_add_new_callers): Likewise.
26725 (decide_about_value): Likewise.
26726 (decide_whether_version_node): Likewise.
26727 (identify_dead_nodes): Likewise.
26728 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26729 (dump_inline_summary): Likewise.
26730 (estimate_node_size_and_time): Likewise.
26731 (inline_analyze_function): Likewise.
26732 * ipa-inline.c (report_inline_failed_reason): Likewise.
26733 (want_early_inline_function_p): Likewise.
26734 (edge_badness): Likewise.
26735 (update_edge_key): Likewise.
26736 (inline_small_functions): Likewise. Add dumping of order to two other
26738 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26739 instead of node uids.
26740 (propagate_pure_const): Likewise.
26741 (propagate_pure_const): Likewise.
26742 * ipa-utils.c (dump_cgraph_node_set): Likewise.
26743 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26744 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26746 * tree-pretty-print.c (dump_function_header): Likewise.
26747 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26748 Print symbol order instead of node uids.
26750 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26752 * config/s390/s390.c (s390_register_move_cost): Don't impose the
26753 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26755 2013-05-15 Richard Biener <rguenther@suse.de>
26757 PR tree-optimization/57275
26758 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26759 return value for fail to do runtime alias checks for gather loads.
26761 2013-05-15 Jan Hubicka <jh@suse.cz>
26765 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26766 weakrefs are not external.
26767 (lto_symtab_merge_decls): Fix thinko when dealing with
26768 non-lto_symtab decls.
26769 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26770 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26771 * varpool.c (dump_varpool_node): Dump more flags.
26773 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26775 * config/i386/i386.c (processor_alias_table): Add instruction
26776 FSGSBASE for AMD bdver3 architecture.
26778 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26780 * tree.c (warn_deprecated_use): Print file:line using locus color.
26781 * diagnostic.c (diagnostic_report_current_module): Print file:line
26782 and file:line:column using locus color.
26784 2013-05-14 Mike Stump <mikestump@comcast.net>
26786 * gdbinit.in: Add __null.
26788 2013-05-14 Mike Stump <mikestump@comcast.net>
26790 * recog.h: Rename struct recog_data to Recog_data.
26791 * recog.c: Likewise.
26792 * reload.c (can_reload_into): Likewise.
26793 * config/picochip/picochip.c: Likewise.
26795 2013-05-14 Mike Stump <mikestump@comcast.net>
26797 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26799 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
26801 * resource.h (struct resources): Remove unch_memory member.
26802 (CLEAR_RESOURCE): Don't clear unch_memory.
26803 * resource.c (mark_referenced_resources): Don't set it.
26804 (mark_set_resources): Likewise.
26805 (mark_target_live_regs): Don't clear it.
26806 (init_resource_info): Likewise.
26807 * reorg.c (resource_conflicts_p): Don't compare it.
26808 (redundant_insn): Don't set it.
26810 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26812 * emit-rtl.c (next_label): Remove unused function.
26813 (skip_consecutive_labels, link_cc0_insns): Move to ...
26814 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26815 only place where these functions are used, and make them static.
26817 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
26819 * fold-const.c (fold_negate_expr): Handle vectors.
26820 (fold_truth_not_expr): Make it static.
26821 (fold_invert_truthvalue): New static function.
26822 (invert_truthvalue_loc): Handle vectors. Do not call
26823 fold_truth_not_expr directly.
26824 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26825 <TRUTH_NOT_EXPR>: Do not cast to boolean.
26826 (fold_comparison): Handle vector constants.
26827 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26828 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26829 * tree.h (fold_truth_not_expr): Remove declaration.
26831 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
26833 * config/aarch64/aarch64-simd.md
26834 (aarch64_vcond_internal<mode>): Rename to...
26835 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26836 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26837 float modes. Clarify all iterator modes.
26838 (vcond<mode><mode>): Use new name for vcond expanders.
26839 (vcond<v_cmp_result><mode>): Likewise.
26840 (vcondu<mode><mode>: Likewise.
26841 * config/aarch64/iterators.md (VDQF_COND): New.
26843 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
26846 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26847 variable for the shift amount. Check that we shift by non-negative
26850 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
26853 * config/arm/arm.h (EPILOGUE_USES): Only return true
26854 for LR_REGNUM after epilogue_completed.
26856 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
26858 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26859 is error_mark_node.
26861 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26864 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26865 and Solaris 11+/x86 with gld.
26866 * configure: Regenerate.
26868 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26870 * expmed.c (expand_shift_1): Canonicalize rotates by
26871 constant bitsize / 2 to bitsize - 1.
26872 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26873 case ROTATERT>: Likewise.
26876 2013-05-10 Jakub Jelinek <jakub@redhat.com>
26878 * config/i386/i386.md (rotateinv): New code attr.
26879 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26880 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26881 roll $31, %eax, etc.
26883 2013-05-14 Richard Biener <rguenther@suse.de>
26885 PR middle-end/57235
26886 * tree-eh.c (sink_clobbers): Give up for successors with
26887 multiple predecessors and no virtual uses.
26889 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
26891 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26892 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26894 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26896 PR middle-end/57251
26897 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26898 the case when both op0 and op1 have VOIDmode.
26900 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26902 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26903 in multiply-accumulate mode.
26905 2013-05-13 Guozhi Wei <carrot@google.com>
26907 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26909 2013-05-13 Kai Tietz <ktietz@redhat.com>
26912 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26913 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26914 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26915 * config/i386/i386.c (ix86_option_override_internal): Likewise.
26916 (ix86_expand_prologue): Likewise.
26917 (ix86_expand_split_stack_prologue): Likewise.
26918 (legitimate_pic_address_disp_p): Likewise.
26919 (legitimize_pic_address): Likewise.
26920 (legitimize_tls_address): Likewise.
26921 (legitimize_pe_coff_symbol): Likewise.
26922 (output_pic_addr_const): Likewise.
26923 (construct_plt_address): Likewise.
26924 (ix86_expand_call): Likewise.
26925 (x86_output_mi_thunk): Likewise.
26926 (x86_function_profiler): Likewise.
26928 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
26930 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26931 similar switch cases.
26932 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26933 (aarch64_simd_mov_to_<mode>low): Delete.
26934 (aarch64_simd_mov_to_<mode>high): Delete.
26935 (move_lo_quad_<mode>): Add w<-r alternative.
26936 (aarch64_simd_move_hi_quad_<mode>): Likewise.
26937 (aarch64_simd_mov_from_*): Update type attribute.
26938 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26941 2013-05-13 Jan Hubicka <jh@suse.cz>
26943 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26944 * config/i386/i386.c (ix86_compute_frame_layout,
26945 ix86_expand_epilogue, emit_i387_cw_initialization,
26946 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26947 ix86_local_alignment): Fix use of size/speed predicates.
26949 2013-05-13 Jakub Jelinek <jakub@redhat.com>
26951 PR tree-optimization/45216
26952 PR tree-optimization/57157
26953 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26954 the (-Y) & (B - 1) variant if OP is |.
26955 * expmed.c (expand_shift_1): For rotations by const0_rtx just
26956 return shifted. Use (-op1) & (prec - 1) as other_amount
26957 instead of prec - op1.
26959 2013-05-13 Martin Jambor <mjambor@suse.cz>
26961 PR middle-end/42371
26962 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26963 (ipa_constant_data): New type.
26964 (ipa_jump_func): Use ipa_constant_data to hold information about
26965 constant jump functions.
26966 (ipa_get_jf_constant): Adjust to jump function type changes.
26967 (ipa_get_jf_constant_rdesc): New function.
26968 (ipa_param_descriptor): New field controlled_uses.
26969 (ipa_get_controlled_uses): New function.
26970 (ipa_set_controlled_uses): Likewise.
26971 * ipa-ref.h (ipa_find_reference): Declare.
26972 * ipa-prop.c (ipa_cst_ref_desc): New type.
26973 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26975 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
26976 New parameter cs. Adjust all callers.
26977 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26978 (remove_described_reference): New function.
26979 (jfunc_rdesc_usable): Likewise.
26980 (try_make_edge_direct_simple_call): Decrement controlled use count,
26981 attempt to remove reference if it hits zero.
26982 (combine_controlled_uses_counters): New function.
26983 (propagate_controlled_uses): Likewise.
26984 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26985 (ipa_edge_duplication_hook): Duplicate reference descriptions.
26986 (ipa_print_node_params): Print described use counter.
26987 (ipa_write_jump_function): Adjust to jump function type changes.
26988 (ipa_read_jump_function): New parameter CS, pass it to
26989 ipa_set_jf_constant. Adjust caller.
26990 (ipa_write_node_info): Stream controlled use count
26991 (ipa_read_node_info): Likewise.
26992 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26994 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26995 count. Remove cloning-added reference if it reaches zero.
26996 * ipa-ref.c (ipa_find_reference): New function.
26998 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27000 * config/i386/i386.c (processor_target_table): Modified default
27001 alignment values for AMD BD and BT architectures.
27003 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
27005 * tree-vect-generic.c (uniform_vector_p): Move ...
27006 * tree.c (uniform_vector_p): ... here.
27007 * tree.h (uniform_vector_p): Declare it.
27008 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27011 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27013 PR tree-optimization/57230
27014 * tree-ssa-strlen.c (handle_char_store): Record length for
27015 array store from STRING_CST.
27017 PR tree-optimization/57230
27018 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27021 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
27023 * config/epiphany/epiphany.c (epiphany_init): Check size of
27024 NUM_MODES_FOR_MODE_SWITCHING.
27025 (epiphany_expand_prologue):
27026 Remove CONFIG_REGNUM initial value handling code.
27027 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27028 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27029 (emit_set_fp_mode, epiphany_mode_after): Likewise.
27030 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27031 Don't return 1 for FP_MODE_NONE.
27032 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27033 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27034 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27035 * config/epiphany/epiphany.md (save_config): New pattern.
27037 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
27039 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27041 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
27043 * config/i386/i386.md (memory): Handle sseishft1.
27044 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27045 (*vec_extractv2di_1): Ditto.
27047 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
27049 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27052 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
27054 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27055 Add mthumb/march=armv7-a multilib.
27056 Add mthumb/march=armv7-r multilib.
27057 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27059 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
27061 * config/v850/t-rtems: Add more multilibs.
27063 2013-05-10 Richard Biener <rguenther@suse.de>
27065 PR tree-optimization/57214
27066 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27067 not propagate from SSA names that occur in abnormal PHI nodes.
27069 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
27071 * stor-layout.c (element_precision): New function.
27072 * machmode.h (element_precision): Declare it.
27073 * tree.c (build_minus_one_cst): New function.
27074 (element_precision): Likewise.
27075 * tree.h (build_minus_one_cst): Declare new function.
27076 (element_precision): Likewise.
27077 * fold-const.c (operand_equal_p): Use element_precision.
27078 (fold_binary_loc): Handle vector types.
27079 * convert.c (convert_to_integer): Use element_precision.
27080 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27083 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
27085 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27086 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27087 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27088 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27089 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27090 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27091 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27092 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27093 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27094 (Uuw8): New constraints.
27095 (Usb4): Move into alphabetical order.
27096 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27097 (sd8_operand, ub8_operand, uw8_operand): New predicates.
27098 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27099 previously unnamed patterns.
27100 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27101 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27102 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27103 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27104 of set_attr_alternative/if_then_else. Use extended_mips16 instead
27105 of specific lengths.
27107 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27109 * config/i386/i386.md (rotateinv): New code attr.
27110 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27111 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27112 roll $31, %eax, etc.
27114 PR tree-optimization/45216
27115 PR tree-optimization/57157
27116 * tree-ssa-forwprop.c (simplify_rotate): New function.
27117 (ssa_forward_propagate_and_combine): Call it.
27119 2013-05-10 Richard Biener <rguenther@suse.de>
27121 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27122 disable peeling when we version for aliasing.
27123 (vector_alignment_reachable_p): Honor explicit user alignment.
27124 (vect_supportable_dr_alignment): Likewise.
27125 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27126 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27127 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27128 then peeling to arrange for the cost-model check to come first.
27130 2013-05-10 Alan Modra <amodra@gmail.com>
27132 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27133 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27134 * configure: Regenerate.
27136 2013-05-10 Alan Modra <amodra@gmail.com>
27139 * varasm.c (default_elf_select_section): Move !DECL_P check..
27140 (get_named_section): ..to here before calling get_section_name.
27142 (default_section_type_flags): Add DECL_P check.
27143 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27144 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27146 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
27148 * config/epiphany/epiphany.c (epiphany_expand_prologue):
27149 When using gen_stack_adjust_str with a register offset, add a
27150 REG_FRAME_RELATED_EXPR note.
27152 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
27154 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27155 (*vec_extractv4si_zext_mem): Ditto.
27156 (*vec_extractv2di): Add 0->x and x->x alternatives.
27157 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27158 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27160 2013-05-09 Jason Merrill <jason@redhat.com>
27162 N3639 C++1y VLA support
27163 * gimplify.c (gimplify_vla_decl): Don't touch an existing
27166 * tree.c (build_constructor_va): New.
27167 * tree.h: Declare it.
27169 2013-05-09 Martin Jambor <mjambor@suse.cz>
27172 * gimple-fold.c (canonicalize_constructor_val): Call
27173 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27175 2013-05-09 Jan Hubicka <jh@suse.cz>
27176 Richard Biener <rguenther@suse.de>
27179 * symtab.c (symtab_make_decl_local): Do not add private names.
27181 2013-05-09 Jan Hubicka <jh@suse.cz>
27184 * symtab.c (insert_to_assembler_name_hash): Handle clones.
27185 (unlink_from_assembler_name_hash): Likewise.
27186 (symtab_prevail_in_asm_name_hash, symtab_register_node,
27187 symtab_unregister_node, symtab_initialize_asm_name_hash,
27188 change_decl_assembler_name): Update.
27190 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
27192 * config/aarch64/aarch64.md: New movtf split.
27193 (*movtf_aarch64): Update.
27194 (aarch64_movdi_tilow): Handle TF modes and rename to
27195 aarch64_movdi_<mode>low.
27196 (aarch64_movdi_tihigh): Handle TF modes and rename to
27197 aarch64_movdi_<mode>high
27198 (aarch64_movtihigh_di): Handle TF modes and rename to
27199 aarch64_mov<mode>high_di
27200 (aarch64_movtilow_di): Handle TF modes and rename to
27201 aarch64_mov<mode>low_di
27202 (aarch64_movtilow_tilow): Remove spurious whitespace.
27203 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27205 (aarch64_print_operand): Update.
27207 2013-05-09 Alan Modra <amodra@gmail.com>
27209 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27211 * configure: Regenerate.
27213 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27215 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27216 splitter preparation statements.
27217 * config/i386/sse.md (*vec_extract* splitters): Ditto.
27218 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27221 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27223 * gimple-ssa-strength-reduction.c (count_candidates): Change
27224 return value to int.
27225 (analyze_candidates_and_replace): Change type of length to int.
27227 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27229 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27230 (*vec_extract<mode>): Use VI12_128 mode iterator.
27231 (*vec_extract<mode>_mem): Ditto.
27232 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27235 2013-05-08 Diego Novillo <dnovillo@google.com>
27240 2012-08-17 Diego Novillo <dnovillo@google.com>
27243 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27244 * config.in: Regenerate.
27245 * configure: Regenerate.
27246 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27248 2013-05-08 Jan Hubicka <jh@suse.cz>
27251 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27252 * cgraph.h (symtab_node_base): Add unique_name.
27253 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27254 input_overwrite_node, input_varpool_node): Stream unique_name.
27255 * cgraphclones.c (cgraph_create_virtual_clone,
27256 cgraph_function_versioning): Set unique_name.
27257 * ipa.c (function_and_variable_visibility): Set unique_name.
27259 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27261 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27262 (alloc_cand_and_find_basis): Restrict conditional candidate
27263 processing to CAND_MULTs.
27265 2013-05-08 Jan Hubicka <jh@suse.cz>
27268 lto-symtab.c (lto_symtab_symbol_p): New function.
27269 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27270 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27271 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27272 Skip static symbols.
27274 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
27276 PR tree-optimization/57200
27277 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27278 Only call inform if the preceding warning_at returns true.
27280 2013-05-07 Han Shen <shenhan@google.com>
27282 * cfgexpand.c (record_or_union_type_has_array_p): New function.
27283 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27284 * common.opt (fstack-protector-strong): New option.
27285 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27286 * doc/invoke.texi (Optimization Options): Document
27287 "-fstack-protector-strong".
27288 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27290 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27292 * config/mips/mips.c (mips_machine_reorg2): Return 0.
27294 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
27296 * ira.c (update_equiv_regs): Add insn having equiv memory even if
27297 it is not lhs of the insn.
27298 (setup_reg_equiv): Remove insn having equiv memory which it is not
27300 * lra-constraints.c (process_address): Try to improve generation
27301 code for address base + disp.
27302 (lra_constraints): Make correct the code for checking insn setting
27303 up backward equivalence. Remove insn only if it is in the init
27305 * lra-eliminations.c (update_reg_eliminate): Change return value.
27306 (lra_eliminate): Use the result.
27308 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
27310 * config/i386/sse.md (ssescalarnummask): New mode attribute.
27311 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27312 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27313 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27314 register target operands.
27315 (*vec_extractv8hi_sse2): New pattern.
27316 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27317 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27318 (*vec_extract<mode>_mem): New insn and split pattern.
27320 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
27322 * config/arm/arm.c (arm_asan_shadow_offset): New function.
27323 (TARGET_ASAN_SHADOW_OFFSET): Define.
27324 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27325 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27327 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27329 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27330 (incr_vec_index): Return -1 if increment not found.
27331 (create_add_on_incoming_edge): Assert if increment not found.
27332 (record_increment): Limit number of increments recorded.
27333 (all_phi_incrs_profitable): Return false if an increment not found.
27334 (replace_profitable_candidates): Don't process increments that were
27336 (analyze_candidates_and_replace): Limit size of incr_vec.
27338 2013-05-07 Richard Biener <rguenther@suse.de>
27340 * calls.c (special_function_p): setjmp-like functions are leaf.
27341 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27342 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27344 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
27346 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27347 (aarch64_simd_mov<mode>): New expander.
27348 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27349 (aarch64_simd_mov_to_<mode>high): Likewise.
27350 (aarch64_simd_mov_from_<mode>low): Likewise.
27351 (aarch64_simd_mov_from_<mode>high): Likewise.
27352 (aarch64_dup_lane<mode>): Update.
27353 (aarch64_dup_lanedi): New instruction pattern.
27354 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27355 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27357 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27359 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27360 (replace_mult_candidate): Remove unnecessary argument; remove
27361 unnecessary parameter from call to introduce_cast_before_cand.
27362 (replace_unconditional_candidate): Remove unnecessary parameter
27363 from call to replace_mult_candidate.
27364 (replace_conditional_candidate): Likewise.
27365 (insert_initializers): Use make_temp_ssa_name.
27366 (introduce_cast_before_cand): Remove unnecessary argument; use
27367 make_temp_ssa_name.
27368 (replace_one_candidate): Remove unnecessary argument; remove
27369 unnecessary parameter from calls to introduce_cast_before_cand.
27370 (replace_profitable_candidates): Remove unnecessary parameters
27371 from calls to replace_one_candidate.
27373 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27375 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27376 phi def as possibly hiding a basis for a CAND_ADD whose operands
27377 have been commuted in the analysis.
27378 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27380 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27382 * config/aarch64/aarch64.md
27383 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27384 shift value between 0-4.
27386 2013-05-07 Richard Biener <rguenther@suse.de>
27388 * double-int.h (rshift): New overload.
27389 * double-int.c (rshift): New function.
27390 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27391 (create_reference_ops_from_ref): Remove.
27392 (vn_reference_insert): Use shared ops for constructing the
27393 reference and copy it.
27395 2013-05-07 Richard Biener <rguenther@suse.de>
27397 PR middle-end/57190
27398 * tree-eh.c (sink_clobbers): Properly propagate
27399 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27401 2013-05-07 Jakub Jelinek <jakub@redhat.com>
27403 PR tree-optimization/57149
27404 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27405 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27406 collect_phi_def_edges, execute_late_warn_uninitialized): Use
27407 uninit_undefined_value_p instead of ssa_undefined_value_p.
27410 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27411 for modifier == EXPAND_INITIALIZER.
27413 2013-05-07 Anton Blanchard <anton@samba.org>
27415 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27416 for powerpc64 little endian.
27417 * configure: Regenerate.
27419 2013-05-06 Graham Stott <grahams@btinternet.com>
27421 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27422 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27423 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27424 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27426 2013-05-06 Graham Stott <grahams@btinternet.com>
27428 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27429 codes which allow non-lvalues.
27431 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
27433 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27434 components are all 1s.
27435 (integer_minus_onep): New function.
27436 * tree.h (integer_minus_onep): Declare it.
27437 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27438 integer_minus_onep instead of integer_all_onesp.
27440 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27443 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27444 variations of these patterns.
27446 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27448 * config/i386/i386.md (isa): Add x64_sse4 member.
27449 (enabled): Handle x64_sse4.
27450 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27451 instruction for 64bit SSE4_1 targets. Update insn attributes.
27452 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27453 instruction for SSE4_1 targets. Update insn attributes.
27454 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27455 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27456 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27458 (*vec_extractv4si): Rename from *sse4_1_pextrd.
27459 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27460 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27462 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27465 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27467 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
27469 * final.c (do_assembler_dialects): Don't handle curly braces and
27470 vertical bar escaped by % as dialect delimiters.
27471 (output_asm_insn): Print curly braces and vertical bar if escaped
27472 by % and ASSEMBLER_DIALECT defined.
27473 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27474 * doc/tm.texi: Regenerated.
27476 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27478 * config/mips/mips.c: Include tree-pass.h.
27479 (mips_reorg): Split in pre- and post-dbr_schedule parts.
27480 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27481 (pass_mips_machine_reorg2): New machine specific pass.
27482 (insert_pass_mips_machine_reorg2): New pass plugin definition.
27483 (mips_option_override): Register the new pass.
27484 * rtl.h (cleanup_barriers): Remove prototype.
27485 (dbr_schedule): Likewise.
27486 * jump.c (cleanup_barriers): Make static.
27487 * reorg.c (dbr_schedule): Likewise.
27489 2013-05-06 Richard Biener <rguenther@suse.de>
27491 PR tree-optimization/57185
27492 * tree-parloops.c (add_field_for_reduction): Handle anonymous
27493 SSA names properly.
27495 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27498 * config/i386/i386.c (add_parameter_dependencies): Add dependence
27499 between "first_arg" and "insn", not "last" and "insn".
27501 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27503 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27504 (find_candidates_in_block): Re-enable slsr_process_phi.
27505 (create_phi_basis): Fix double counting of candidate adjustment.
27507 2013-05-06 Richard Biener <rguenther@suse.de>
27509 PR middle-end/57147
27510 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27511 the edge is also fallthru, preserve it and just clear the
27513 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27514 also complex, preserve that and just clear the fallthru flag.
27515 * tree-inline.c (update_ssa_across_abnormal_edges): Also
27516 update virtual operands.
27518 2013-05-06 Alan Modra <amodra@gmail.com>
27520 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27521 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27522 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27523 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27524 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27525 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27527 2013-05-06 Alan Modra <amodra@gmail.com>
27529 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27530 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
27531 (DEFAULT_ASM_ENDIAN): Define.
27532 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27533 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27534 Update -K PIC clause from sysv4.h.
27535 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27536 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27538 2013-05-06 Alan Modra <amodra@gmail.com>
27540 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27541 twice for little-endian.
27542 (ashrdi3_no_power, ashrdi3): Support little-endian.
27544 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27547 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27548 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27550 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27551 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27552 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27555 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
27556 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27558 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27559 * config/pa/pa.opt: Make mbig-switch a no-op.
27560 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27561 (CASE_VECTOR_MODE): Always return SImode.
27562 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27563 for the !TARGET_BIG_SWITCH case.
27564 * config/pa/pa-linux.h: Likewise.
27565 * config/pa/pa-openbsd.h: Likewise.
27566 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27567 * config/pa/pa.md (short_jump): Remove define_insn.
27568 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27569 (casesi0): Remove define_insn.
27570 (type): Remove btable_branch.
27571 (pa_combine_type): Likewise.
27572 (in_nullified_branch_delay): Likewise.
27573 (in_call_delay): Likewise.
27574 (define_delay): Likewise.
27575 (define_insn_reservation "Z3"): Likewise.
27576 (define_insn_reservation "Z4"): Likewise.
27577 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27578 (pa_adjust_insn_length): Remove adjustment for btable branches.
27579 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27582 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
27584 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27585 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27586 Add m->r,x alternatives.
27587 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27588 splitters using SWI48x mode iterator.
27589 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
27590 TARGET_64BIT. Add m->x alternative.
27591 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27592 Add o->x alternative. Enable for TARGET_SSE.
27593 (sse_storeq): Remove expander.
27594 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27595 with memory input operand.
27596 (*vec_extractv2di_1 splitter): New.
27597 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27598 * config/i386/i386.md (ssevecmodelower): New mode attribute.
27600 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27602 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
27603 (INT_LOWPART): Delete.
27604 (extract_MB): Adjust.
27605 (extract_ME): Adjust.
27606 (print_operand): Adjust.
27608 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27610 * config/rs6000/predicates.md (reg_or_add_cint_operand,
27611 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27612 (reg_or_logical_cint_operand, easy_fp_constant,
27613 logical_const_operand): Delete "CONST_DOUBLE" case.
27614 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27615 "HOST_BITS_PER_WIDE_INT == 64" test.
27616 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
27617 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27618 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27619 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27621 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27622 CONST_DOUBLE DImode/VOIDmode case.
27623 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27624 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27625 CONST_DOUBLE VOIDmode case.
27626 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27627 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27628 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27629 Delete CONST_DOUBLE case.
27630 (splitters for mov FMOVE64 const_double): Delete
27631 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27632 "HOST_BITS_PER_WIDE_INT >= 64" test.
27633 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27635 (mov DI const_double): Delete.
27637 2013-05-04 Jakub Jelinek <jakub@redhat.com>
27639 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27640 on op shows all bits zero in mode of a lowpart subreg, return zero.
27642 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27645 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27646 to save TFmode registers and DImode to save TImode registers for
27647 caller save operations.
27648 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27649 mark being partially clobbered since they only use the first
27652 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27653 and TDmode only use the upper 64-bits of each VSX register.
27655 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27657 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27658 (find_candidates_in_block): Disable slsr_process_phi.
27660 2013-05-03 Guozhi Wei <carrot@google.com>
27662 * coverage.c (coverage_obj_init): Move the construction of gcov
27664 (build_init_ctor): ... here.
27666 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27668 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27669 (slsr_cand_d): Redefine def_phi.
27670 (stride_status, phi_adjust_status, count_phis_status): New enums.
27671 (find_phi_def): New.
27672 (find_basis_for_base_expr): New.
27673 (find_basis_for_candidate): Handle hidden bases.
27674 (alloc_cand_and_find_basis): Handle phi candidates.
27675 (slsr_process_phi): New.
27676 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27677 (create_mul_imm_cand): Likewise.
27678 (create_add_ssa_cand): Exclude phi base candidates.
27679 (create_add_imm_cand): Likewise.
27680 (slsr_process_cast): Likewise.
27681 (slsr_process_copy): Likewise.
27682 (find_candidates_in_block): Handle phi candidates.
27683 (dump_candidate): Likewise.
27684 (unconditional_cands): Delete.
27685 (unconditional_cands_with_known_stride_p): Delete.
27686 (phi_dependent_cand_p): New.
27687 (cand_increment): Handle phi-dependent candidates.
27688 (replace_dependent): Delete.
27689 (replace_mult_candidate): New.
27690 (replace_unconditional_candidate): New.
27691 (incr_vec_index): Move to avoid forward reference.
27692 (create_add_on_incoming_edge): New.
27693 (create_phi_basis): New.
27694 (replace_dependents): Delete.
27695 (replace_conditional_candidate): New.
27696 (phi_add_costs): New.
27697 (replace_uncond_cands_and_profitable_phis): New.
27698 (record_increment): Handle phi adjustments.
27699 (record_phi_increments): New.
27700 (record_increments): Handle phi adjustments.
27701 (phi_incr_cost): New.
27702 (lowest_cost_path): Handle phis.
27703 (total_savings): Likewise.
27704 (analyze_increments): Likewise.
27705 (ncd_with_phi): New.
27706 (ncd_of_cand_and_phis): New.
27707 (nearest_common_dominator_for_cands): Handle phi increments.
27708 (all_phi_incrs_profitable): New.
27709 (replace_profitable_candidates): Handle phi-dependent candidates.
27710 (analyze_candidates_and_replace): Likewise.
27712 2013-05-03 Teresa Johnson <tejohnson@google.com>
27715 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27716 do not exceed REG_BR_PROB_BASE.
27718 2013-05-03 Jeff Law <law@redhat.com>
27720 PR tree-optimization/57144
27721 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27722 operand of the condition will bit into the new type when eliminating
27723 a cast feeding a condition.
27725 2013-05-03 Jakub Jelinek <jakub@redhat.com>
27727 PR rtl-optimization/57130
27728 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27729 of COMPARE as in_code to the recursive call if needed.
27731 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
27733 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27734 (enabled): Handle new members.
27735 * config/i386/sse.md (*vec_concatv2si): Merge from
27736 *vec_concatv2si_sse2 and vec_concatv2si_sse.
27737 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27739 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
27741 PR tree-optimization/57027
27742 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27743 for fnms opportunity, check we got the prerequisite kind
27744 of tree / gimple before using accessor functions.
27746 2013-05-03 Richard Biener <rguenther@suse.de>
27748 * double-int.h (lshift): New overload without precision
27749 and arith argument.
27750 (operator *=, operator +=, operator -=): Move ...
27751 * double-int.c (operator *=, operator +=, operator -=): ... here
27752 and implement more efficiently.
27753 (mul_double_with_sign): Remove.
27754 (lshift_double): Adjust to take unsinged shift argument, push
27755 dispatching code to callers.
27756 (mul_double_wide_with_sign): Add early out for callers that
27757 are not interested in high parts or overflow.
27758 (lshift): New function.
27759 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27760 dispatch code here.
27761 (lrotate, rrotate): Use logical shifts.
27762 * expr.c (get_inner_reference): Use lshift.
27763 * fixed-value.c (do_fixed_divide): Likewise.
27764 * tree-dfa.c (get_ref_base_and_extent): Likewise.
27765 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27766 (indirect_refs_may_alias_p): Likewise.
27767 (stmt_kills_ref_p_1): Likewise.
27769 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
27771 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27773 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
27775 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27776 scalar form of FABD instruction.
27778 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
27780 * lra-constraints.c (process_alt_operands): Add checking alt
27781 number to choose the best alternative.
27783 2013-05-02 Richard Biener <rguenther@suse.de>
27785 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27786 bitmap and its handling.
27787 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27789 2013-05-02 Richard Biener <rguenther@suse.de>
27791 PR middle-end/57140
27792 * tree-inline.c (copy_loops): Properly handle removed loops.
27793 (copy_cfg_body): Mark destination loops for fixup if source
27794 loops needed fixup.
27796 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
27799 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27800 generating simple_return for naked functions.
27802 2013-05-02 Martin Jambor <mjambor@suse.cz>
27804 PR middle-end/56988
27805 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27806 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27808 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27809 ipa_agg_replacement_value structures.
27810 (known_aggs_to_agg_replacement_list): Likewise.
27811 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27812 (read_agg_replacement_chain): Likewise.
27813 (ipcp_transform_function): Also check that by_ref flags match.
27815 2013-05-02 Richard Biener <rguenther@suse.de>
27817 * graphds.h (struct graph): Add obstack member.
27818 * graphds.c (new_graph): Initialize obstack and allocate
27820 (add_edge): Allocate edge from the obstack.
27821 (free_graph): Free the obstack instead of all edges and vertices.
27823 2013-05-02 Teresa Johnson <tejohnson@google.com>
27825 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27827 * cfg.c (update_bb_profile_for_threading): Ditto.
27828 * tree-inline.c (copy_bb): Ditto.
27829 (copy_edges_for_bb): Ditto.
27830 (initialize_cfun): Ditto.
27831 (copy_cfg_body): Ditto.
27832 (expand_call_inline): Ditto.
27833 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27834 (estimate_node_size_and_time): Ditto.
27835 (inline_merge_summary): Ditto.
27836 * cgraphclones.c (cgraph_clone_edge): Ditto.
27837 (cgraph_clone_node): Ditto.
27838 * sched-rgn.c (compute_dom_prob_ps): Ditto.
27839 (compute_trg_info): Ditto.
27841 2013-05-02 Ian Bolton <ian.bolton@arm.com>
27843 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27844 S reg when fp attribute set.
27845 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27847 2013-05-02 Ian Bolton <ian.bolton@arm.com>
27849 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27851 (*and_one_cmplsi3_compare0_uxtw): Likewise.
27852 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27853 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27855 2013-05-02 Richard Biener <rguenther@suse.de>
27857 * tree-scalar-evolution.c (scev_info_hasher): Remove.
27858 (struct instantiate_cache_entry): New type.
27859 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27860 (struct instantiate_cache_type): New type.
27861 (set_instantiated_value, get_instantiated_value): Remove.
27862 (get_instantiated_value_entry): New function.
27863 (instantiate_scev_name): Use the new cache and adjust.
27864 (instantiate_scev_poly): Adjust.
27865 (instantiate_scev_binary): Likewise.
27866 (instantiate_array_ref): Likewise.
27867 (instantiate_scev_convert): Likewise.
27868 (instantiate_scev_not): Likewise.
27869 (instantiate_scev_3): Likewise.
27870 (instantiate_scev_2): Likewise.
27871 (instantiate_scev_r): Likewise.
27872 (instantiate_scev): Likewise.
27873 (resolve_mixers): Likewise.
27875 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
27878 * lra-constraints.c (best_small_class_operands_num): Remove.
27879 (process_alt_operands): Remove small_class_operands_num. Take
27880 small classes operands into losers and only if the operand is not
27881 matched. Modify debugging output.
27882 (curr_insn_transform): Remove best_small_class_operands_num.
27885 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27887 * config/aarch64/aarch64-builtins.c
27888 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27889 * config/aarch64/aarch64-simd-builtins.def
27890 (reduc_splus_): Add new modes.
27891 (reduc_uplus_): New.
27892 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27893 (reduc_uplus_v4sf): Likewise.
27894 (reduc_splus_v4sf): Likewise.
27895 (aarch64_addv<mode>): Likewise.
27896 (reduc_uplus_<mode>): Likewise.
27897 (reduc_splus_<mode>): Likewise.
27898 (aarch64_addvv2di): Likewise.
27899 (reduc_uplus_v2di): Likewise.
27900 (reduc_splus_v2di): Likewise.
27901 (aarch64_addvv2si): Likewise.
27902 (reduc_uplus_v2si): Likewise.
27903 (reduc_splus_v2si): Likewise.
27904 (reduc_<sur>plus_<mode>): New.
27905 (reduc_<sur>plus_v2di): Likewise.
27906 (reduc_<sur>plus_v2si): Likewise.
27907 (reduc_<sur>plus_v4sf): Likewise.
27908 (aarch64_addpv4sf): Likewise.
27909 * config/aarch64/arm_neon.h
27910 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27911 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27912 add UNSPEC_SADDV, UNSPEC_UADDV.
27914 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27916 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27918 * config/aarch64/arm_neon.h
27919 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27921 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27923 * config/aarch64/aarch64-builtins
27924 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27926 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27928 * config/aarch64/aarch64-simd-builtins.def
27929 (reduc_smax_): New.
27930 (reduc_smin_): Likewise.
27931 (reduc_umax_): Likewise.
27932 (reduc_umin_): Likewise.
27933 (reduc_smax_nan_): Likewise.
27934 (reduc_smin_nan_): Likewise.
27937 (smax): Update for V2SF, V4SF and V2DF modes.
27940 (smin_nan): Likewise.
27941 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27942 (<su><maxmin><mode>3): ...This, refactor.
27943 (s<maxmin><mode>3): New.
27944 (<maxmin_uns><mode>3): Likewise.
27945 (reduc_<maxmin_uns>_<mode>): Refactor.
27946 (reduc_<maxmin_uns>_v4sf): Likewise.
27947 (reduc_<maxmin_uns>_v2si): Likewise.
27948 (aarch64_<fmaxmin><mode>: Remove.
27949 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27951 (vmin<q>_f<32,64>): Likewise.
27952 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27954 (su): Add mappings for smax, smin, umax, umin.
27956 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27957 (FMAXMIN): Rename as...
27958 (FMAXMIN_UNS): ...This.
27960 (fmaxminv): Likewise.
27961 (fmaxmin): Likewise.
27963 (maxmin_uns_op): Likewise.
27965 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27967 * config/aarch64/arm_neon.h
27968 (vac<ge, gt><sd>_f<32, 64>): Rename to...
27969 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27970 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27972 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27974 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27975 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27977 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27979 * config/aarch64/aarch64-simd.md
27980 (vcond<mode>_internal): Handle special cases for constant masks.
27981 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27982 (vcondu<mode><mode>): Likewise.
27983 (vcond<v_cmp_result><mode>): New.
27985 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27987 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27988 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27989 * config/aarch64/aarch64-simd-builtins.def
27990 (cmeq): Update to BUILTIN_VALLDI.
27995 * config/aarch64/arm_neon.h
27996 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27997 to builtins or C as appropriate.
27999 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28001 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28003 (cmhi): Rename to...
28005 * config/aarch64/aarch64-simd.md
28006 (simd_mode): Add SF.
28007 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28008 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28009 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28010 (cstore<mode>_neg): ...This.
28011 * config/aarch64/iterators.md
28013 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28014 (COMPARISONS): New.
28015 (UCOMPARISONS): Likewise.
28016 (optab): Add missing comparisons.
28022 (VCMP_S): Likewise.
28023 (VCMP_U): Likewise.
28024 (V_cmp_result): Add DF, SF modes.
28025 (v_cmp_result): Likewise.
28027 (vmtype): Likewise.
28028 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28030 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
28032 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28033 define_insn to define_insn_and_split.
28034 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28035 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28036 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28037 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28038 (thumb2_negscc): Likewise.
28040 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28042 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28044 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28046 * config/arm/thumb2.md: Remove trailing whitespaces.
28048 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28050 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28051 Use gen_int_mode rather than GEN_INT.
28053 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
28055 * value-prof.c (stream_in_histogram_value): Remove the strayed
28058 2013-04-30 Richard Biener <rguenther@suse.de>
28060 PR middle-end/57122
28061 * cfghooks.c (split_edge): Properly check for the loop latch edge.
28063 2013-04-30 Richard Biener <rguenther@suse.de>
28065 PR middle-end/57107
28066 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28068 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
28070 PR rtl-optimization/56957
28071 PR rtl-optimization/57105
28072 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28073 variable. Use just INSN_UID for determining whether an insn
28074 should be only disconnected from the insn stream.
28075 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28077 2013-04-30 Jakub Jelinek <jakub@redhat.com>
28079 PR tree-optimization/57104
28080 * tsan.c (instrument_expr): Don't instrument accesses to
28081 DECL_HARD_REGISTER VAR_DECLs.
28083 2013-04-30 Richard Biener <rguenther@suse.de>
28085 * function.h (loops_for_fn): New inline function.
28086 (set_loops_for_fn): Likewise.
28087 * cfgloop.h (place_new_loop): Add struct function parameter.
28088 (get_loop): Likewise.
28089 (get_loops): Likewise.
28090 (number_of_loops): Likewise.
28091 (fel_next): Adjust.
28092 (fel_init): Likewise.
28093 * cfg.c (get_loop_copy): Adjust.
28094 * cfgloop.c (flow_loops_dump): Likewise.
28095 (record_loop_exits): Likewise.
28096 (verify_loop_structure): Likewise.
28097 * cfgloopanal.c (mark_irreducible_loops): Likewise.
28098 (estimate_reg_pressure_cost): Likewise.
28099 (mark_loop_exit_edges): Likewise.
28100 * cfgloopmanip.c (place_new_loop): Likewise.
28101 (add_loop): Likewise.
28102 (duplicate_loop): Likewise.
28103 * graph.c (draw_cfg_nodes): Likewise.
28104 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28105 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28106 (extract_affine_chrec): Likewise.
28107 (build_scop_iteration_domain): Likewise.
28108 * graphite.c (graphite_initialize): Likewise.
28109 * ira-build.c (create_loop_tree_nodes): Likewise.
28110 (more_one_region_p): Likewise.
28111 (rebuild_regno_allocno_maps): Likewise.
28112 (mark_loops_for_removal): Likewise.
28113 (mark_all_loops_for_removal): Likewise.
28114 (remove_unnecessary_regions): Likewise.
28115 (ira_build): Likewise.
28116 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28117 * loop-init.c (fix_loop_structure): Likewise.
28118 (gate_rtl_move_loop_invariants): Likewise.
28119 (gate_rtl_unswitch): Likewise.
28120 (gate_rtl_unroll_and_peel_loops): Likewise.
28121 (rtl_doloop): Likewise.
28122 * lto-streamer-in.c (input_cfg): Likewise.
28123 * lto-streamer-out.c (output_cfg): Likewise.
28124 * modulo-sched.c (sms_schedule): Likewise.
28125 * predict.c (tree_estimate_probability): Likewise.
28126 (tree_estimate_probability_driver): Likewise.
28127 (estimate_loops): Likewise.
28128 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28129 (move_sese_region_to_fn): Likewise.
28130 (debug_loop_num): Likewise.
28131 * tree-chrec.c (chrec_evaluate): Likewise.
28132 (hide_evolution_in_other_loops_than_loop): Likewise.
28133 (chrec_component_in_loop_num): Likewise.
28134 (reset_evolution_in_loop): Likewise.
28135 (evolution_function_is_invariant_rec_p): Likewise.
28136 * tree-if-conv.c (main_tree_if_conversion): Likewise.
28137 * tree-inline.c (copy_loops): Likewise.
28138 (copy_cfg_body): Likewise.
28139 (tree_function_versioning): Likewise.
28140 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28141 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28143 (add_to_evolution_1): Likewise.
28144 (scev_const_prop): Likewise.
28145 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28146 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28147 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28148 (tree_ssa_lim_initialize): Likewise.
28149 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28150 (verify_loop_closed_ssa): Likewise.
28151 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
28152 (tree_ssa_loop_im): Likewise.
28153 (tree_ssa_loop_unswitch): Likewise.
28154 (tree_vectorize): Likewise.
28155 (check_data_deps): Likewise.
28156 (tree_ssa_loop_ivcanon): Likewise.
28157 (tree_ssa_loop_bounds): Likewise.
28158 (tree_complete_unroll): Likewise.
28159 (tree_complete_unroll_inner): Likewise.
28160 (tree_parallelize_loops): Likewise.
28161 (tree_ssa_loop_prefetch): Likewise.
28162 (tree_ssa_loop_ivopts): Likewise.
28163 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28164 * tree-vectorizer.c (vectorize_loops): Likewise.
28166 2013-04-29 Mike Frysinger <vapier@gentoo.org>
28168 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28169 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28170 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28171 with EABI_LINK_SPEC.
28173 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28176 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28179 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
28182 * lra-constraints.c (process_alt_operands): Discourage a bit more
28183 using memory for pseudos. Print cost dump for alternatives.
28184 Modify cost values for conflicts with early clobbers.
28185 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28187 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28190 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28192 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28194 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28195 from/to S register.
28196 (movdi_aarch64): Support LDR/STR from/to D register.
28198 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28200 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28201 or higher by default.
28203 2013-04-29 Richard Biener <rguenther@suse.de>
28205 PR middle-end/57075
28206 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28207 even if not adding abnormal edges for calls that can make
28210 2013-04-29 Richard Biener <rguenther@suse.de>
28212 PR middle-end/57103
28213 * tree-cfg.c (move_stmt_op): Fix condition under which to update
28215 (move_stmt_r): Remove redundant checking.
28217 2013-04-29 Teresa Johnson <tejohnson@google.com>
28220 * basic-block.h (apply_scale): New function.
28221 (apply_probability): Use apply_scale.
28222 * gimple-streamer-in.c (input_bb): Ditto.
28223 * lto-streamer-in.c (input_cfg): Ditto.
28224 * lto-cgraph.c (merge_profile_summaries): Ditto.
28225 * tree-optimize.c (execute_fixup_cfg): Ditto.
28226 * tree-inline.c (copy_bb): Update comment to use apply_scale.
28227 (copy_edges_for_bb): Ditto.
28228 (copy_cfg_body): Ditto.
28230 2013-04-29 Tom de Vries <tom@codesourcery.com>
28232 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28233 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28234 (tail_merge_optimize): Handle current_loops == NULL.
28236 2013-04-26 Jeff Law <law@redhat.com>
28238 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28239 (simplify_cond_using_ranges): Generalize code to simplify
28240 COND_EXPRs where one argument is a constant and the other
28241 is an SSA_NAME created by an integral type conversion.
28243 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28245 * config/arm/arm.md (store_minmaxsi): Use only when
28246 optimize_insn_for_size_p.
28248 2013-04-29 Christian Bruel <christian.bruel@st.com>
28251 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28253 2013-04-29 Richard Biener <rguenther@suse.de>
28255 PR middle-end/57089
28256 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28257 loop tree make sure to schedule a fixup for the child as well.
28258 (expand_omp_for_generic): Properly add loops.
28259 (expand_omp_for_static_nochunk): Likewise.
28260 (expand_omp_for_static_chunk): Likewise.
28261 (expand_omp_for): For the degenerate case fixup loops.
28262 (expand_omp_sections): Fix default bb placement in loops.
28263 (expand_omp_atomic_pipeline): Properly add loops.
28265 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28267 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28269 2013-04-29 Tom de Vries <tom@codesourcery.com>
28271 * tree-ssa-tail-merge.c: Update header comment.
28273 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28275 * config/aarch64/arm_neon.h
28276 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28277 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28278 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28279 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28280 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28281 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28282 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28283 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28285 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28287 * config/aarch64/aarch64-simd.md
28288 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28289 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28290 fix_trunc, fixuns_trunc.
28291 (ftrunc<VDQF:mode>2): New.
28292 * config/aarch64/iterators.md (optab): Add fix, fixuns.
28293 (fix_trunc_optab): New.
28295 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28297 * config/aarch64/aarch64-builtins.c
28298 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28299 iceilf, lround, iroundf.
28301 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28304 * config/i386/i386.h (enum ix86_tune_indices)
28305 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28306 New, split from X86_TUNE_INTER_UNIT_MOVES.
28307 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28308 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28309 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28310 (TARGET_INTER_UNIT_MOVES): Remove.
28311 * config/i386/i386.c (initial_ix86_tune_features): Update.
28312 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28313 (ix86_expand_convert_uns_didf_sse): Use
28314 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28315 (ix86_expand_vector_init_one_nonzero): Ditto.
28316 (ix86_expand_vector_init_interleave): Ditto.
28317 (inline_secondary_memory_needed): Return true for moves from SSE class
28318 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28319 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28320 * config/i386/constraints.md (Yi, Ym): Depend on
28321 TARGET_INTER_UNIT_MOVES_TO_VEC.
28322 (Yj, Yn): New constraints.
28323 * config/i386/i386.md (*movdi_internal): Change constraints of
28324 operand 1 from Yi to Yj and from Ym to Yn.
28325 (*movsi_internal): Ditto.
28326 (*movdf_internal): Ditto.
28327 (*movsf_internal): Ditto.
28328 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28329 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28330 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28331 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28332 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28333 * config/i386/sse.md (movdi_to_sse): Ditto.
28334 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28335 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28336 TARGET_INTER_UNIT_MOVES.
28337 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28338 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28339 instead of TARGET_INTER_UNIT_MOVES.
28340 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28341 operand 1 from Yi to Yj and from Ym to Yn.
28343 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28345 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28346 (float_truncate_hi_): Likewise.
28347 (float_extend_lo_): Likewise.
28348 (float_truncate_lo_): Likewise.
28349 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28350 (aarch64_float_extend_lo_v2df): Likewise.
28351 (vec_unpacks_hi_v4sf): Likewise.
28352 (aarch64_float_truncate_lo_v2sf): Likewise.
28353 (aarch64_float_truncate_hi_v4sf): Likewise.
28354 (vec_pack_trunc_v2df): Likewise.
28355 (vec_pack_trunc_df): Likewise.
28357 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28359 * config/aarch64/aarch64-builtins.c
28360 (aarch64_fold_builtin): Fold float conversions.
28361 * config/aarch64/aarch64-simd-builtins.def
28362 (floatv2si, floatv4si, floatv2di): New.
28363 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28364 * config/aarch64/aarch64-simd.md
28365 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28366 * config/aarch64/iterators.md (FLOATUORS): New.
28367 (optab): Add float, floatuns.
28368 (su_optab): Likewise.
28370 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28372 * config/aarch64/aarch64-builtins.c
28373 (aarch64_builtin_vectorized_function): Use new names for
28375 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28376 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28377 (fcvtzu): Split as...
28378 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28379 (fcvtas): Split as...
28380 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28381 (fcvtau): Split as...
28382 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28383 (fcvtps): Split as...
28384 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28385 (fcvtpu): Split as...
28386 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28387 (fcvtms): Split as...
28388 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28389 (fcvtmu): Split as...
28390 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28391 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28392 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28393 (lfrintnusf, lfrintnudf): Likewise.
28394 * config/aarch64/aarch64-simd.md
28395 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28397 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28398 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28399 (fcvt_pattern): Likewise.
28401 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28403 * config/aarch64/aarch64-simd.md
28404 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28405 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28407 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28409 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28410 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28411 (vrnd<a,m,n,p>_f32): Implement using builtins.
28412 (vrnd<i,x><q>_f<32, 64>): New.
28414 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28416 * config/aarch64/aarch64-builtins.c
28417 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28418 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28419 (frintz): Rename to...
28421 (frintp): Rename to...
28423 (frintm): Rename to...
28425 (frinti): Rename to...
28426 (nearbyint): ...this.
28427 (frintx): Rename to...
28429 (frinta): Rename to...
28431 * config/aarch64/aarch64-simd.md
28432 (aarch64_frint<frint_suffix><mode>): Delete.
28433 (<frint_pattern><mode>2): Convert to insn.
28434 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28435 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28436 (frint_pattern): Likewise.
28437 (frint_suffix): Likewise.
28439 2013-04-29 Richard Biener <rguenther@suse.de>
28441 PR tree-optimization/57081
28442 * loop-init.c: Include tree-flow.h.
28443 (loop_optimizer_finalize): Free number of iteration estimates.
28444 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28446 2013-04-29 Jakub Jelinek <jakub@redhat.com>
28448 PR tree-optimization/57083
28449 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28450 non-singleton shift count range, zero extend low_bound for uns case.
28452 * config/i386/predicates.md (general_vector_operand): New predicate.
28453 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28454 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28455 if they aren't nonimmediate operands. If their original values
28456 satisfy const_vector_equal_evenodd_p, don't shift them.
28457 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28458 predicates. For the SSE4.1 case force operands[{1,2}] into registers
28459 if not nonimmediate_operand.
28460 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28461 instead of register_operand.
28462 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28464 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
28466 * stor-layout.c (finalize_size_functions): Allocate a structure and
28467 reset cfun before dumping the functions.
28469 2013-04-27 Jakub Jelinek <jakub@redhat.com>
28471 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28474 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28475 use xop_pmacsdqh if uns_p.
28476 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28477 the immediate rotate count.
28479 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
28481 * rtl.h (struct rtx_def): Add comment for field jump.
28482 (LRA_SUBREG_P): New macro.
28483 * recog.c (register_operand): Check LRA_SUBREG_P.
28484 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28486 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28487 (lra_final_code_change): Skip subreg change for operators.
28488 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28489 if there are no operand changes.
28490 * lra-constraints.c (curr_insn_set): New.
28491 (match_reload): Set LRA_SUBREG_P.
28492 (emit_spill_move): Ditto.
28493 (check_and_process_move): Use curr_insn_set. Process only single
28494 set insns. Don't initialize sec_mem_p and change_p.
28495 (simplify_operand_subreg): Use LRA_SUBREG_P.
28496 (reg_in_class_p): New function.
28497 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28498 of #ifdef. Add code to remove cycling.
28499 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28500 non-null disp. Reload inner instead of disp when base and index
28501 are null. Try to put lo_sum into register.
28502 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28503 (check_and_process_move): Move code for move cost check to
28504 simple_move_p. Remove equiv_substitution.
28505 (simple_move_p): New function.
28506 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28507 curr_insn_set. Call check_and_process_move only for single set
28508 insns. Use the new function. Move call of check_and_process_move
28509 after operand equiv substitution and address process.
28511 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28514 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28515 with nonlocal goto receivers or returns twice calls, ignore
28516 unininitialized values from abnormal edges to nl goto receiver
28517 or returns twice call.
28519 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28521 PR tree-optimization/57051
28522 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28523 and VEC_RSHIFT_EXPR if shift count is a multiple of element
28526 2013-04-26 Richard Biener <rguenther@suse.de>
28528 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28529 (expand_omp_taskreg): Likewise. Mark loops for fixup.
28530 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28531 (fixup_loop_arrays_after_move): New function.
28532 (move_sese_region_to_fn): Properly outline the loop tree parts
28533 of the SESE region.
28535 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
28537 * config/i386/i386.md (type, unit): Fix long lines.
28539 2013-04-26 Richard Biener <rguenther@suse.de>
28541 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28542 (lto-streamer-out.o): Likewise.
28543 * cfgloop.c (init_loops_structure): Export, add struct function
28544 argument and adjust.
28545 (flow_loops_find): Adjust.
28546 * cfgloop.h (enum loop_estimation): Add EST_LAST.
28547 (init_loops_structure): Declare.
28548 * lto-streamer-in.c: Include cfgloop.h.
28549 (input_cfg): Input the loop tree.
28550 * lto-streamer-out.c: Include cfgloop.h.
28551 (output_cfg): Output the loop tree.
28552 (output_struct_function_base): Do not drop PROP_loops.
28554 2013-03-26 Richard Biener <rguenther@suse.de>
28556 * tree-cfg.c (execute_build_cfg): Build the loop tree.
28557 (pass_build_cfg): Provide PROP_loops.
28558 (move_sese_region_to_fn): Remove loops that are outlined into fn
28560 * tree-inline.c: Include cfgloop.h.
28561 (initialize_cfun): Do not drop PROP_loops.
28562 (copy_loops): New function.
28563 (copy_cfg_body): Copy loop structure.
28564 (tree_function_versioning): Initialize destination loop tree.
28565 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28566 (pass_parallelize_loops): Do IL verification.
28567 * loop-init.c (loop_optimizer_init): Fixup loops if required.
28568 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28569 the CFG make sure we fixup loops as well.
28570 * tree-ssa-tail-merge.c: Include cfgloop.h.
28571 (replace_block_by): When merging loop latches mark loops for fixup.
28572 * lto-streamer-out.c (output_struct_function_base): Drop
28573 PROP_loops for now.
28574 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28575 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28576 * ipa-split.c: Include cfgloop.h.
28577 (split_function): Add the new return block to the loop tree root.
28578 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28579 whether we have removed the forwarder block.
28580 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28581 * cfgloop.h (place_new_loop): Declare.
28582 * cfgloopmanip.c (place_new_loop): Export.
28583 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28584 (tree-switch-conversion.o): Likewise.
28585 (tree-complex.o): Likewise.
28586 (tree-inline.o): Likewise.
28587 (tree-ssa-tailmerge.o): Likewise.
28588 (ipa-split.o): Likewise.
28589 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28590 (tree-ssa-copy.o): Likewise.
28591 * tree-switch-conversion.c: Include cfgloop.h
28592 (process_switch): If we emit a bit-test cascade, schedule loops
28594 * tree-complex.c: Include cfgloop.h.
28595 (expand_complex_div_wide): Properly add new basic-blocks to loops.
28596 * asan.c: Include cfgloop.h.
28597 (create_cond_insert_point): Properly add new basic-blocks to
28598 loops, schedule loop fixup.
28599 * cfgloop.c (verify_loop_structure): Check that looks are not
28601 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28603 (expand_omp_for_generic): Likewise.
28604 (expand_omp_sections): Likewise.
28605 (expand_omp_atomic_pipeline): Schedule loops for fixup.
28606 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28607 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28608 is initialized, not when loops are present.
28609 * tree-parloops.c (parallelize_loops): Remove checking here.
28610 * passes.c (init_optimization_passes): Schedule a copy-propagation
28611 pass before complete unrolling of inner loops.
28613 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28615 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28616 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28617 (colorize_init): Add argument to _WIN32 version.
28618 * toplev.c: Include diagnostic-color.h.
28619 (process_options): Default to -fdiagnostics-color=auto if
28620 GCC_COLORS env var is in the environment.
28621 * common.opt (fdiagnostics-color=): Add Var and Init.
28622 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28623 env var is in the environment, the default is auto rather than never.
28625 * diagnostic.h (file_name_as_prefix): Add context argument.
28626 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
28627 the string as locus.
28628 * langhooks.c (lhd_print_error_function): Adjust caller.
28630 2013-04-25 Lawrence Crowl <crowl@google.com>
28632 * var-tracking.c (shared_hash_def::htab):
28633 Change type to hash_table. Update dependent calls and types.
28635 2013-04-25 Lawrence Crowl <crowl@google.com>
28637 * Makefile.in: Update as needed below.
28639 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28640 Move declaration to after the type's method definitons.
28642 * attribs.c (htab_t scoped_attributes::attribute_hash):
28643 Change type to hash_table. Update dependent calls and types.
28645 * bitmap.c (htab_t bitmap_desc_hash):
28646 Change type to hash_table. Update dependent calls and types.
28648 * cselib.c (htab_t cselib_hash_table):
28649 Change type to hash_table. Update dependent calls and types.
28651 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28652 (hash_string_slot_node): Move implementation into lto-streamer.h
28653 struct string_slot_hasher.
28654 (eq_string_slot_node): Likewise.
28656 * data-streamer-out.c: Update output_block::string_hash_table
28657 dependent calls and types.
28659 * dwarf2cfi.c (htab_t trace_index):
28660 Change type to hash_table. Update dependent calls and types.
28662 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28663 Change type to hash_table. Update dependent calls and types.
28664 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28665 (htab_t optimize_external_refs::map): Likewise.
28666 (htab_t output_comp_unit::extern_map): Likewise.
28667 (htab_t output_comdat_type_unit::extern_map): Likewise.
28668 (htab_t output_macinfo::macinfo_htab): Likewise.
28669 (htab_t optimize_location_lists::htab): Likewise.
28670 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28672 * except.c (htab_t ehspec_hash_type):
28673 Change type to hash_table. Update dependent calls and types.
28674 (assign_filter_values::ttypes): Likewise.
28675 (assign_filter_values::ehspec): Likewise.
28676 (sjlj_assign_call_site_values::ar_hash): Likewise.
28677 (convert_to_eh_region_ranges::ar_hash): Likewise.
28679 * gcse.c (htab_t pre_ldst_table):
28680 Change type to hash_table. Update dependent calls and types.
28682 * ggc-common.c (htab_t saving_htab):
28683 Change type to hash_table. Update dependent calls and types.
28684 (htab_t loc_hash): Likewise.
28685 (htab_t ptr_hash): Likewise.
28686 (call_count): Rename ggc_call_count.
28687 (call_alloc): Rename ggc_call_alloc.
28688 (loc_descriptor): Rename make_loc_descriptor.
28689 (add_statistics): Rename ggc_add_statistics.
28691 * ggc-common.c (saving_htab):
28692 Change type to hash_table. Update dependent calls and types.
28694 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28695 (push_gimplify_context): Likewise.
28696 (pop_gimplify_context): Likewise.
28697 (struct gimple_temp_hash_elt): Added.
28698 (struct gimplify_hasher): Likewise.
28699 (struct gimplify_ctx.temp_htab):
28700 Change type to hash_table. Update dependent calls and types.
28702 * gimple-fold.c: Include gimplify-ctx.h.
28704 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28705 Change type to hash_table. Update dependent calls and types.
28706 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28707 avoid potential global name collision.
28709 * gimplify.c: Include gimplify-ctx.h.
28710 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28711 (htab_t gimplify_ctx::temp_htab):
28712 Update dependent calls and types for new type hash_table.
28713 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28714 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28716 * gimplify-ctx.h: New.
28717 (struct gimple_temp_hash_elt): Move from gimplify.c.
28718 (class gimplify_hasher): New.
28719 (struct gimplify_ctx): Move from gimple.h.
28720 (htab_t gimplify_ctx::temp_htab):
28721 Change type to hash_table. Update dependent calls and types.
28723 * graphite-clast-to-gimple.c: Include graphite-htab.h.
28724 (htab_t ivs_params::newivs_index):
28725 Change type to hash_table. Update dependent calls and types.
28726 (htab_t ivs_params::params_index): Likewise.
28727 (htab_t print_generated_program::params_index): Likewise.
28728 (htab_t gloog::newivs_index): Likewise.
28729 (htab_t gloog::params_index): Likewise.
28731 * graphite.c: Include graphite-htab.h.
28732 4htab_t graphite_transform_loops::bb_pbb_mapping):
28733 Change type to hash_table. Update dependent calls and types.
28735 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28736 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28737 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28739 * graphite-dependences.c: Include graphite-htab.h.
28740 (loop_is_parallel_p): Change hash table type of parameter.
28742 * graphite-htab.h: New.
28743 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28744 (extern find_pbb_via_hash): Move from graphite-poly.h.
28745 (extern loop_is_parallel_p): Move from graphite-poly.h.
28746 (extern get_loop_body_pbbs): Move from graphite-poly.h.
28748 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28749 (extern loop_is_parallel_p): Move to graphite-htab.h.
28750 (extern get_loop_body_pbbs): Move to graphite-htab.h.
28752 * haifa-sched.c (htab_t delay_htab):
28753 Change type to hash_table. Update dependent calls and types.
28754 (htab_t delay_htab_i2): Likewise.
28756 * ira-color.c (htab_t allocno_hard_regs_htab):
28757 Change type to hash_table. Update dependent calls and types.
28759 * ira-costs.c (htab_t cost_classes_htab):
28760 Change type to hash_table. Update dependent calls and types.
28762 * loop-invariant.c (htab_t merge_identical_invariants::eq):
28763 Change type to hash_table. Update dependent calls and types.
28765 * loop-iv.c (htab_t bivs):
28766 Change type to hash_table. Update dependent calls and types.
28768 * loop-unroll.c (htab_t opt_info::insns_to_split):
28769 Change type to hash_table. Update dependent calls and types.
28770 (htab_t opt_info::insns_with_var_to_expand): Likewise.
28772 * lto-streamer.h (struct string_slot): Move from data-streamer.h
28773 (struct string_slot_hasher): New.
28774 (htab_t output_block::string_hash_table):
28775 Change type to hash_table. Update dependent calls and types.
28777 * lto-streamer-in.c (freeing_string_slot_hasher): New.
28778 (htab_t file_name_hash_table):
28779 Change type to hash_table. Update dependent calls and types.
28781 * lto-streamer-out.c: Update output_block::string_hash_table dependent
28784 * lto-streamer.c (htab_t tree_htab):
28785 Change type to hash_table. Update dependent calls and types.
28787 * omp-low.c: Include gimplify-ctx.h.
28789 * passes.c (htab_t name_to_pass_map):
28790 Change type to hash_table. Update dependent calls and types.
28791 (pass_traverse): Rename to passes_pass_traverse.
28793 * plugin.c (htab_t event_tab):
28794 Change type to hash_table. Update dependent calls and types.
28796 * postreload-gcse.c (htab_t expr_table):
28797 Change type to hash_table. Update dependent calls and types.
28798 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28800 * sese.c (debug_rename_map_1): Make extern.
28801 (htab_t copy_bb_and_scalar_dependences::rename_map):
28802 Change type to hash_table. Update dependent calls and types.
28804 * sese.h (extern debug_rename_map): Move to .c file.
28806 * store-motion.c (htab_t store_motion_mems_table):
28807 Change type to hash_table. Update dependent calls and types.
28809 * trans-mem.c (htab_t tm_new_mem_hash):
28810 Change type to hash_table. Update dependent calls and types.
28812 * tree-browser.c (htab_t TB_up_ht):
28813 Change type to hash_table. Update dependent calls and types.
28815 * tree-cfg.c (htab_t discriminator_per_locus):
28816 Change type to hash_table. Update dependent calls and types.
28818 * tree-complex.c: Include tree-hasher.h
28819 (htab_t complex_variable_components):
28820 Change type to hash_table. Update dependent calls and types.
28822 * tree-eh.c (htab_t finally_tree):
28823 Change type to hash_table. Update dependent calls and types.
28825 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28826 struct int_tree_hasher.
28827 (extern int_tree_map_eq): Likewise.
28828 (uid_decl_map_hash): Removed.
28829 (extern decl_tree_map_eq): Likewise.
28831 * tree-hasher.h: New.
28832 (struct int_tree_hasher): New.
28833 (typedef int_tree_htab_type): New.
28835 * tree-inline.c: Include gimplify-ctx.h.
28837 * tree-mudflap.c: Include gimplify-ctx.h.
28839 * tree-parloops.c: Include tree-hasher.h.
28840 (htab_t eliminate_local_variables_stmt::decl_address):
28841 Change type to hash_table. Update dependent calls and types.
28842 (htab_t separate_decls_in_region::decl_copies): Likewise.
28844 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28845 Change type to hash_table. Update dependent calls and types.
28847 * tree-sra.c (candidates):
28848 Change type to hash_table. Update dependent calls and types.
28850 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28852 (int_tree_map_hash): Likewise.
28854 * tree-ssa-dom.c (htab_t avail_exprs):
28855 Change type to hash_table. Update dependent calls and types.
28857 * tree-ssa-live.c (var_map_base_init::tree_to_index):
28858 Change type to hash_table. Update dependent calls and types.
28860 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28861 Change type to hash_table. Update dependent calls and types.
28863 * tree-ssa-phiopt.c (seen_ssa_names):
28864 Change type to hash_table. Update dependent calls and types.
28866 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28867 Change type to hash_table. Update dependent calls and types.
28869 * tree-ssa-uncprop.c (equiv):
28870 Change type to hash_table. Update dependent calls and types.
28872 2013-04-25 Jakub Jelinek <jakub@redhat.com>
28874 PR rtl-optimization/57003
28875 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28876 call note_stores with kill_clobbered_value callback again after
28877 killing regs_invalidated_by_call.
28879 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28881 * config/aarch64/aarch64-simd.md
28882 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28883 (aarch64_simd_bsl<mode>): Likewise.
28884 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28886 2013-04-25 Marek Polacek <polacek@redhat.com>
28888 PR tree-optimization/57066
28889 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28891 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28893 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28895 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28897 * config/aarch64/aarch64-builtins.c
28898 (aarch64_fold_builtin): New.
28899 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28900 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28901 * config/aarch64/aarch64-simd-builtins.def (abs): New.
28902 * config/aarch64/arm_neon.h
28903 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28905 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28906 Tejas Belagod <tejas.belagod@arm.com>
28908 * config/aarch64/aarch64-builtins.c
28909 (aarch64_gimple_fold_builtin): New.
28910 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28911 * config/aarch64/aarch64-simd-builtins.def (addv): New.
28912 * config/aarch64/aarch64-simd.md (addpv4sf): New.
28913 (addvv4sf): Update.
28914 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28916 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28918 * config/aarch64/aarch64.md
28919 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28921 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28923 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28924 (*ngcsi_uxtw): New pattern.
28926 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28927 Julian Brown <julian@codesourcery.com>
28929 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28930 (TB_DREG): Add T_V4HF.
28931 (v4hf_UP): New macro.
28932 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28933 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28934 Handle initialisation of V4HF. Adjust initialisation of reinterpret
28936 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28937 (arm_vector_mode_supported_p): Handle V4HF.
28938 (arm_mangle_map): Handle V4HFmode.
28939 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28940 * config/arm/arm_neon_builtins.def: Add entries for
28941 vcvtv4hfv4sf, vcvtv4sfv4hf.
28942 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28943 (neon_vcvtv4hfv4sf): Likewise.
28944 * config/arm/neon-gen.ml: Handle half-precision floating point
28946 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28947 * config/arm/arm_neon.h: Regenerate.
28948 * config/arm/neon.ml (type elts): Add F16.
28949 (type vectype): Add T_float16x4, T_floatHF.
28950 (type vecmode): Add V4HF.
28951 (type features): Add Requires_FP_bit feature.
28952 (elt_width): Handle F16.
28953 (elt_class): Likewise.
28954 (elt_of_class_width): Likewise.
28955 (mode_of_elt): Refactor.
28956 (type_for_elt): Handle F16, fix error messages.
28957 (vectype_size): Handle T_float16x4.
28958 (vcvt_sh): New function.
28959 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28960 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28961 (string_of_mode): Handle V4HF.
28962 * doc/arm-neon-intrinsics.texi: Regenerate.
28964 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28966 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28967 format specifier in 'X' case.
28969 2013-04-25 Alan Modra <amodra@gmail.com>
28972 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28973 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28974 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28975 Repeat for many other rotate/shift and mask patterns using subregs.
28976 Name lshiftrt insns.
28977 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28978 on WORDS_BIG_ENDIAN.
28980 2013-04-25 Alan Modra <amodra@gmail.com>
28982 * config.gcc: Support little-endian powerpc-linux targets.
28983 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28984 (LINK_OS_LINUX_SPEC): Define.
28985 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28986 Preserve MASK_LITTLE_ENDIAN.
28987 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28988 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28989 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28990 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28991 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28992 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28993 Correct fp word order for little-endian. Don't shift toc entries
28994 smaller than a word for little-endian.
28995 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28996 (bswapdi2 splits): Correct low-part subreg for little-endian.
28997 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28998 low/high where such is correct only for be.
28999 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29000 little-endian for -mcall-aixdesc.
29002 2013-04-25 Alan Modra <amodra@gmail.com>
29004 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29005 replace_equiv_address_nv.
29007 2013-04-25 Alan Modra <amodra@gmail.com>
29009 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29011 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29014 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29015 * rtl.h (struct rtx_def): ...
29017 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29019 PR rtl-optimizations/57046
29020 * lra-constraints (split_reg): Set up lra_risky_transformations_p
29021 for multi-reg splits.
29023 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
29025 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29027 2013-04-24 Sterling Augustine <saugustine@google.com>
29029 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29030 (comp_dir_string, debug_str_dwo_section): New.
29031 (DEBUG_STR_DWO_SECTION): Rename to ...
29032 (DEBUG_DWO_STR_SECTION): ... this.
29033 (DEBUG_NORM_STR_SECTION): Delete.
29034 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29035 (DEBUG_STR_DWO_SECTION_FLAGS): New.
29036 (find_AT_string): Move most logic to ...
29037 (find_AT_string_in_table): ... here. New.
29038 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29039 add_skeleton_AT_string. Delete logic.
29040 (output_skeleton_debug_sections): Remove call to
29041 add_top_level_skeleton_die_attrs.
29042 (add_comp_dir_attribute): Move logic to comp_dir_string.
29043 (dwarf2out_init): Initialize debug_str_dwo_section.
29044 (output_indirect_string): Call find_string_form.
29045 (output_indirect_strings): Rewrite.
29046 (prune_unused_types): Empty skeleton_debug_str_hash.
29047 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29048 (dwarf2out_finish): Call output_indirect_strings.
29050 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29052 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29054 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29056 * rtl.h (struct rtx_def): Add comment for field jump.
29057 (LRA_SUBREG_P): New macro.
29058 * recog.c (register_operand): Check LRA_SUBREG_P.
29059 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29061 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29062 (lra_final_code_change): Skip subreg change for operators.
29063 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29064 if there are no operand changes.
29065 * lra-constraints.c (curr_insn_set): New.
29066 (match_reload): Set LRA_SUBREG_P.
29067 (emit_spill_move): Ditto.
29068 (check_and_process_move): Use curr_insn_set. Process only single
29069 set insns. Don't initialize sec_mem_p and change_p.
29070 (simplify_operand_subreg): Use LRA_SUBREG_P.
29071 (reg_in_class_p): New function.
29072 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29073 of #ifdef. Add code to remove cycling.
29074 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29075 non-null disp. Reload inner instead of disp when base and index
29076 are null. Try to put lo_sum into register.
29077 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29078 (check_and_process_move): Move code for move cost check to
29079 simple_move_p. Remove equiv_substitution.
29080 (simple_move_p): New function.
29081 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29082 curr_insn_set. Call check_and_process_move only for single set
29083 insns. Use the new function. Move call of check_and_process_move
29084 after operand equiv substitution and address process.
29086 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
29088 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29089 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29090 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29092 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29094 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29096 2013-04-24 Marek Polacek <polacek@redhat.com>
29098 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29099 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29100 (select_loops_exit_conditions): Likewise.
29101 (number_of_iterations_for_all_loops): Likewise.
29102 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29103 (scev_analysis): Likewise.
29105 2013-04-02 Catherine Moore <clm@codesourcery.com>
29106 Chao-ying Fu <fu@mips.com>
29108 * config/mips/micromips.md (jraddiusp): New pattern.
29109 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29110 instruction if possible.
29112 2013-04-24 Alan Modra <amodra@gmail.com>
29114 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29116 2013-04-24 Julian Brown <julian@codesourcery.com>
29117 Chung-Lin Tang <cltang@codesourcery.com>
29119 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29120 dependency behavior in enumeration type DIE generation. Add TODO note
29121 to comments about future DW_FORM_sdata/udata re-work of related code.
29123 2013-04-23 Lawrence Crowl <crowl@google.com>
29125 * Makefile.in: Update as needed below.
29127 * hash-table.h (class hash_table):
29128 Correct many methods with parameter types compare_type to the correct
29129 value_type. (Correct code was unlikely to notice the change.)
29130 (hash_table::elements_with_deleted) New.
29131 (class hashtable::iterator): New.
29132 (hashtable::begin()): New.
29133 (hashtable::end()): New.
29134 (FOR_EACH_HASH_TABLE_ELEMENT): New.
29136 * statistics.c (statistics_hashes):
29137 Change type to hash_table. Update dependent calls and types.
29139 * tree-into-ssa.c (var_infos):
29140 Change type to hash_table. Update dependent calls and types.
29142 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29143 Change type to hash_table. Update dependent calls and types.
29145 * tree-ssa-loop-im.c (struct mem_ref.refs):
29146 Change type to hash_table. Update dependent calls and types.
29148 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29149 Change type to hash_table. Update dependent calls and types.
29151 * tree-ssa-sccvn.c (vn_tables_s::nary):
29152 Change type to hash_table. Update dependent calls and types.
29153 (vn_tables_s::phis): Likewise.
29154 (vn_tables_s::references): Likewise.
29156 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29157 (vn_reference_eq): Update parameter and return types.
29159 * tree-ssa-structalias.c (pointer_equiv_class_table):
29160 Change type to hash_table. Update dependent calls and types.
29161 (location_equiv_class_table): Likewise.
29163 * tree-vect-data-refs.c: Consequential changes for making
29164 peeling a hash_table.
29166 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29167 (destroy_loop_vec_info): Dependent hash_table update.
29169 * tree-vectorizer.h (peeling_htab):
29170 Change type to hash_table. Update dependent calls and types.
29172 2013-04-23 Shiva Chen <shiva0217@gmail.com>
29174 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29175 to check the register content is equal or not.
29176 * lra-constraints.c (match_reload): Use lra_assign_reg_val
29177 to assign register content record.
29178 * lra-eliminations.c (update_reg_eliminate): Use
29179 lra_update_reg_val_offset to update register content offset.
29180 * lra-int.h (struct lra_reg): Add offset member.
29181 (lra_reg_val_equal_p): New static inline function.
29182 (lra_update_reg_val_offset): New static inline function.
29183 (lra_assign_reg_val): New static inline function.
29184 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29185 to assign register content record.
29186 (initialize_lra_reg_info_element): Initial offset to zero.
29188 2013-04-23 Catherine Moore <clm@codesourcery.com>
29190 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29191 operands. Record compression.
29193 2013-04-23 Xinliang David Li <davidxl@google.com>
29195 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29197 2013-04-23 Richard Biener <rguenther@suse.de>
29199 PR middle-end/57036
29200 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29201 parameter, only add abnormal goto edges from the copied body
29202 if the call could perform abnormal gotos.
29203 (copy_cfg_body): Adjust.
29205 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
29207 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29209 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
29211 * coretypes.h (gimple_stmt_iterator): Add struct to make
29214 2013-04-23 Richard Biener <rguenther@suse.de>
29216 PR tree-optimization/57026
29217 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29218 from SSA names occuring in abnormal PHI nodes.
29220 2013-04-22 Andi Kleen <ak@linux.intel.com>
29222 * lto/lto.c (print_lto_report_1): Fix LTO report names.
29224 2013-04-22 Andi Kleen <ak@linux.intel.com>
29226 * lto/lto.c (print_lto_report_1): Declare early.
29227 (read_cgraph_and_symbols): Call print_lto_report_1 early.
29229 2013-04-22 Andi Kleen <ak@linux.intel.com>
29231 * common.opt (-flto-report-wpa): Add.
29232 * doc/invoke.texi (-flto-report-wpa): Add.
29233 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29236 2013-04-22 Xinliang David Li <davidxl@google.com>
29238 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29239 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29240 * Makefile.in: New dependency
29242 David Daney <ddaney.cavm@gmail.com>
29244 * configure.ac (gcc_cv_as_micromips_support): Use the
29245 --fatal-warnings option.
29246 * configure: Regenerate.
29248 2013-04-22 Marek Polacek <polacek@redhat.com>
29251 * tsan.c (instrument_expr): Don't instrument expression
29252 in case its size is zero.
29254 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
29258 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29260 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29262 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29264 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29265 (gimple_stmt_iterator): New typedef.
29266 * gimple.h (gimple_stmt_iterator): Rename to...
29267 (gimple_stmt_iterator_d): ... This.
29268 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29269 trees be valid for GIMPLE and GENERIC.
29270 (TARGET_GIMPLE_FOLD_BUILTIN): New.
29271 * gimple-fold.c (gimple_fold_call): Call target hook
29272 gimple_fold_builtin.
29273 * hooks.c (hook_bool_gsiptr_false): New.
29274 * hooks.h (hook_bool_gsiptr_false): New.
29275 * target.def (fold_stmt): New.
29276 * doc/tm.texi: Regenerate.
29278 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
29281 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29282 a set sp if no stack realignment.
29284 2013-04-22 Nick Clifton <nickc@redhat.com>
29286 * config.gcc (tilegx-linux): Extend extra_objs rather than
29288 (tilepro-linux): Likewise.
29290 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29292 * config/aarch64/aarch64-builtins.c
29294 (CF0, CF1, CF2, CF3, CF4, CF10): New.
29295 (VAR<1-12>): Add MAP parameter.
29296 (BUILTIN_*): Likewise.
29297 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29298 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29299 (aarch64_ushl_n<mode>): Likewise.
29300 (aarch64_sshr_n<mode>): Likewise.
29301 (aarch64_ushr_n<mode>): Likewise.
29302 (aarch64_<maxmin><mode>): Likewise.
29303 (aarch64_sqrt<mode>): Likewise.
29304 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29305 (vshr<q>_n_*): Likewise.
29307 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29309 * config/aarch64/aarch64-builtins.c
29310 (aarch64_simd_builtin_type_mode): Handle SF types.
29312 (BUILTIN_GPF): Define.
29313 (aarch64_init_simd_builtins): Handle SF types.
29314 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29315 (frecps): Likewise.
29316 (frecpx): Likewise.
29317 * config/aarch64/aarch64-simd.md
29318 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29319 (aarch64_frecpe<mode>): New.
29320 (aarch64_frecps<mode>): Likewise.
29321 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29322 (v8type): Add frecp<esx>.
29323 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29324 (aarch64_frecps<mode>): Likewise.
29325 * config/aarch64/iterators.md (FRECP): New.
29326 (frecp_suffix): Likewise.
29327 * config/aarch64/arm_neon.h
29328 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29330 2013-04-22 Christian Bruel <christian.bruel@st.com>
29333 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29334 (REG_CLASS_NAMES): Idem.
29335 (REG_CLASS_CONTENTS): Idem.
29336 (REGCLASS_HAS_FP_REG): Idem.
29337 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29338 (sh_conditional_register_usage): Idem.
29340 2013-04-21 Jeff Law <law@redhat.com>
29342 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29343 (ssa_forward_propagate_and_combine): Use it.
29345 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29347 * lra.c: Update the flow chart diagram.
29349 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29351 PR rtl-optimization/56847
29352 * lra-constraints.c (process_alt_operands): Discourage alternative
29353 with non-matche doffsettable memory constraint fro memory with
29356 2013-04-19 Richard Biener <rguenther@suse.de>
29358 PR tree-optimization/56982
29359 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29361 * gimplify.c (gimplify_call_expr): Notice special calls.
29362 (gimplify_modify_expr): Likewise.
29363 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29364 abnormal control flow receivers.
29365 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29366 in the same way as cfun->has_nonlocal_labels.
29367 (gimple_purge_dead_abnormal_call_edges): Likewise.
29368 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29369 receivers start a basic-block.
29371 2013-04-19 Richard Biener <rguenther@suse.de>
29373 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29375 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
29376 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29377 (SLP_TREE_LOAD_PERMUTATION): Add.
29378 (vect_transform_slp_perm_load): Adjust prototype.
29379 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29380 (vect_free_slp_instance): Likewise.
29381 (vect_create_new_slp_node): Likewise.
29382 (vect_supported_slp_permutation_p): Remove.
29383 (vect_slp_rearrange_stmts): Adjust.
29384 (vect_supported_load_permutation_p): Likewise. Inline
29385 vect_supported_slp_permutation_p here.
29386 (vect_analyze_slp_instance): Compute load permutations per
29387 slp node instead of per instance.
29388 (vect_get_slp_defs): Adjust.
29389 (vect_transform_slp_perm_load): Likewise.
29390 (vect_schedule_slp_instance): Remove redundant code.
29391 (vect_schedule_slp): Remove hack for PR56270, add it ...
29392 * tree-vect-stmts.c (vectorizable_load): ... here, do not
29393 CSE loads for SLP. Adjust.
29395 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29397 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29398 spelling in two comments.
29400 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29403 * config/arm/arm.c (load_multiple_sequence): Require SP
29404 as base register for loads if SP is in the register list.
29406 2013-04-19 Martin Jambor <mjambor@suse.cz>
29408 PR tree-optimization/56718
29409 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29410 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29411 and made public. Adjusted all callers.
29412 (ipa_intraprocedural_devirtualization): New function.
29413 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29414 (ipa_intraprocedural_devirtualization): Likewise.
29415 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29417 2013-04-19 Richard Biener <rguenther@suse.de>
29419 PR tree-optimization/57000
29420 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29422 2013-04-19 Terry Guo <terry.guo@arm.com>
29424 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29426 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
29427 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29428 (cortex_m4_fmacs): Use new reservations.
29429 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29431 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
29433 PR rtl-optimization/56999
29434 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29436 (lra_coalesce): Remove split_origin_bitmap and related code.
29437 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
29438 ranges if necessary.
29440 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
29442 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29444 (ix86_expand_call): Remove clobbered_registers array and use
29445 x86_64_ms_sysv_extra_clobbered_registers instead.
29446 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29448 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29450 * config/i386/i386.md (*call_rex64_ms_sysv): Use
29451 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
29452 (*call_value_rex64_ms_sysv): Ditto.
29454 2013-04-18 Cary Coutant <ccoutant@google.com>
29456 * dwarf2out.c (output_pubnames): Check die_perennial_p of
29457 parent instead of die_mark.
29459 2013-04-18 Diego Novillo <dnovillo@google.com>
29461 * gimple.c (create_gimple_tmp): New.
29462 (get_expr_type): New.
29463 (build_assign): New.
29464 (build_type_cast): New.
29465 * gimple.h (enum ssa_mode): Define.
29466 (gimple_seq_set_location): New.
29467 * asan.c (build_check_stmt): Change some gimple_build_* calls
29468 to use build_assign and build_type_cast.
29470 2013-04-18 Richard Biener <rguenther@suse.de>
29472 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29473 handle negative step. Remove redundant checks.
29474 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29475 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29476 for negative step and grouped loads fail to vectorize.
29478 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29480 * emit-rtl.c (reset_insn_used_flags): New function.
29481 (reset_all_used_flags): Use it.
29482 (verify_insn_sharing): New function.
29483 (verify_rtl_sharing): Fix verification for SEQUENCEs.
29485 2013-04-18 Jakub Jelinek <jakub@redhat.com>
29487 PR tree-optimization/56984
29488 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29489 and (x >> M) >= N don't register any assertion if N << M is the
29492 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29494 * lower-subreg.c (resolve_simple_move): If called self-recursive,
29495 do not delete_insn insns that have not yet been emitted, only
29496 unlink them with remove_insn.
29497 * df-scan.c (df_insn_delete): Revert r197492.
29499 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
29501 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29502 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29504 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29506 * config/arm/arm.md (movsicc_insn): Convert define_insn into
29507 define_insn_and_split.
29508 (and_scc,ior_scc,negscc): Likewise.
29509 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29511 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29513 * config/arm/arm.c (use_return_insn): Return 0 for targets that
29514 can benefit from using a sequence of LDRD instructions in epilogue
29515 instead of a single LDM instruction.
29517 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
29520 * doc/extend.texi: Fix typo.
29522 2013-04-17 Richard Biener <rguenther@suse.de>
29524 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29525 (vect_build_slp_tree): ... here.
29526 (vect_build_slp_tree_1): Compute which stmts of the SLP group
29527 match. Remove special-casing of mismatched complex loads.
29528 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29529 re-try the match with swapped commutative operands.
29530 (vect_supported_load_permutation_p): Remove special-casing of
29531 mismatched complex loads.
29532 (vect_analyze_slp_instance): Adjust.
29534 2013-04-17 Richard Biener <rguenther@suse.de>
29536 PR rtl-optimization/56921
29537 * cfgloop.h (struct loop): Add simple_loop_desc member.
29538 (struct niter_desc): Mark with GTY(()).
29539 (simple_loop_desc): Do not use aux field but simple_loop_desc.
29540 * loop-iv.c (get_simple_loop_desc): Likewise.
29541 (free_simple_loop_desc): Likewise.
29544 2013-04-16 Richard Biener <rguenther@suse.de>
29546 PR rtl-optimization/56921
29547 * loop-init.c (pass_rtl_move_loop_invariants): Add
29548 TODO_do_not_ggc_collect to todo_flags_finish.
29549 (pass_rtl_unswitch): Same.
29550 (pass_rtl_unroll_and_peel_loops): Same.
29551 (pass_rtl_doloop): Same.
29553 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
29555 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29556 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29557 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29559 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29560 * tree-streamer.c (record_common_node): Adjust reference in comment.
29562 2013-04-17 Terry Guo <terry.guo@arm.com>
29564 * config/arm/cortex-m4.md: Add a new bypass.
29566 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29568 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29570 (*subs_<optab><mode>_multp2): New pattern.
29571 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29572 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29574 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29576 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29577 (*subs_mul_imm_<mode>): New pattern.
29579 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
29582 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29583 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
29584 (vsx_movti_32bit): Change j->wa to O->wa.
29586 2013-04-16 Richard Biener <rguenther@suse.de>
29588 PR rtl-optimization/56921
29589 * loop-init.c (pass_rtl_move_loop_invariants): Add
29590 TODO_do_not_ggc_collect to todo_flags_finish.
29591 (pass_rtl_unswitch): Same.
29592 (pass_rtl_unroll_and_peel_loops): Same.
29593 (pass_rtl_doloop): Same.
29595 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
29597 * config/arm/arm.c (emit_multi_reg_push): New declaration
29598 for an existing function.
29599 (arm_emit_strd_push): New function.
29600 (arm_expand_prologue): Used here.
29601 (arm_emit_ldrd_pop): New function.
29602 (arm_expand_epilogue): Used here.
29603 (arm_get_frame_offsets): Update condition.
29604 (arm_emit_multi_reg_pop): Add a special case for load of a single
29605 register with writeback.
29607 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
29609 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29612 2013-04-16 Richard Biener <rguenther@suse.de>
29614 PR tree-optimization/56756
29615 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29616 (first_mem_ref_loc): New.
29617 (execute_sm): Place the load temporarily before a previous
29618 access instead of in the latch edge to ensure its SSA dependencies
29619 are defined at points dominating the load.
29621 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
29623 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29624 correct fix by moving header and footer insn to the footer of
29625 the merged basic block. Clear BB_END of the merged-away block.
29627 PR middle-end/43631
29628 * emit-rtl.c (make_note_raw): New function.
29629 (link_insn_into_chain): New static inline function.
29630 (add_insn): Use it.
29631 (add_insn_before, add_insn_after): Factor insn chain linking code...
29632 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29633 using link_insn_into_chain.
29634 (note_outside_basic_block_p): New helper function for emit_note_after
29635 and emit_note_before.
29636 (emit_note_after): Use nobb variant of add_insn_after if the note
29637 should not be contained in a basic block.
29638 (emit_note_before): Use nobb variant of add_insn_before if the note
29639 should not be contained in a basic block.
29640 (emit_note_copy): Use make_note_raw.
29641 (emit_note): Likewise.
29642 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29643 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29644 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29645 the moved barrier the tail of the basic block it follows.
29646 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29648 2013-04-15 Jakub Jelinek <jakub@redhat.com>
29650 PR tree-optimization/56962
29651 * gimple-ssa-strength-reduction.c (record_increment): Only set
29652 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29653 either rhs1 or rhs2 is equal to c->base_expr.
29655 2013-04-15 Richard Biener <rguenther@suse.de>
29657 PR tree-optimization/56933
29658 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29660 (GROUP_READ_WRITE_DEPENDENCE): Remove.
29661 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29662 * tree-vect-data-refs.c (vect_analyze_group_access): Move
29663 dependence check ...
29664 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29666 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29667 GROUP_READ_WRITE_DEPENDENCE.
29669 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29671 * emit-rtl.c (reset_all_used_flags): New function.
29672 (verify_rtl_sharing): Call reset_all_used_flags before and after
29673 performing the checks.
29675 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29677 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29678 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29679 * config/arm/constraints.md (De): New constraint.
29680 * config/arm/neon.md (anddi3_neon): Delete.
29681 (neon_vand<mode>): Expand to standard anddi3 pattern.
29682 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29683 Move earlier in the file.
29684 (neon_inv_logic_op2): Likewise.
29685 (arm_anddi_operand_neon): New predicate.
29687 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29689 * configure.ac (gcc_cv_ld_as_needed): Set
29690 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29691 Use -z ignore, -z record on *-*-solaris2*.
29692 (HAVE_LD_AS_NEEDED): Update comment.
29693 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29694 * configure: Regenerate.
29695 * config.in: Regenerate.
29696 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29697 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29698 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29699 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29700 equivalents. Fix markup.
29701 * doc/tm.texi: Regenerate.
29703 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
29705 * config/i386/i386.opt: New option mstack-protector-guard=.
29706 * config/i386/i386-opts.h: Add enum stack_protector_guard.
29707 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29708 TARGET_SSP_TLS_GUARD.
29709 * config/i386/i386.c (ix86_option_override_internal): Set
29710 ix86_stack_protector_guard.
29711 * config/i386/i386.md (stack_protect_set): Enable for
29712 TARGET_SSP_TLS_GUARD only.
29713 (stack_protect_set_<mode>): Ditto.
29714 (stack_protect_test): Ditto.
29715 (stack_protect_test_<mode>): Ditto.
29716 * doc/invoke.texi (i386 Option): Document.
29718 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
29721 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29722 (S_MODES): Set H_MODE bit.
29723 (SF_MODES): Set only S_MODE and SF_MODE bits.
29724 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29725 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29726 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29727 <MODE_FLOAT>: Likewise.
29729 2013-04-15 Joey Ye <joey.ye@arm.com>
29731 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29733 2013-04-15 Joey Ye <joey.ye@arm.com>
29735 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29737 (thumb_far_jump_used_p): Count instruction size and set
29740 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
29742 * reorg.c (fill_simple_delay_slots): Reindent block of code.
29743 * resource.c (mark_target_live_regs): Reformat conditional block.
29745 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29747 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29748 notes, they are emitted only just before final.
29749 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29751 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29753 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29754 * cfgrtl.c (delete_insn): Call it here instead.
29755 * lra-spills.c (lra_final_code_change): Use delete_insn.
29756 * haifa-sched.c (sched_remove_insn): Likewise.
29757 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29758 returning to the nop pool.
29759 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29760 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
29762 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
29764 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29765 * doc/tm.texi: Regenerated.
29767 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
29769 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29772 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
29774 * df-core.c (df_find_def): Compare register numbers.
29775 (df_find_use): Likewise.
29777 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
29780 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29781 lra_in_progress for return.
29783 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
29785 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29786 define_insn into define_insn_and_split and emit movsicc patterns.
29788 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
29790 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29792 2013-04-12 Richard Biener <rguenther@suse.de>
29794 * tree-pass.h (TODO_do_not_ggc_collect): New.
29795 * passes.c (execute_one_ipa_transform_pass): Honor
29796 TODO_do_not_ggc_collect.
29797 (execute_one_pass): Likewise.
29800 2013-04-10 Richard Biener <rguenther@suse.de>
29802 * passes.c (init_optimization_passes): Remove reload pass.
29803 * ira.c (do_reload): Merge into ...
29805 (rest_of_handle_reload): Remove.
29806 (pass_reload): Likewise.
29807 * config/i386/i386.c (ix86_option_override): Refer to ira instead
29808 of reload for vzeroupper pass placement.
29810 2013-04-12 Jakub Jelinek <jakub@redhat.com>
29812 PR tree-optimization/56918
29813 PR tree-optimization/56920
29814 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29815 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
29816 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
29817 use wide_mul_with_sign method.
29819 2013-04-12 Richard Biener <rguenther@suse.de>
29821 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29822 not be considered a gimple constant.
29824 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
29826 * fold-const.c (const_binop): Handle vector shifts by a scalar.
29827 (fold_binary_loc): Call const_binop also for mixed vector-scalar
29830 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
29831 Jakub Jelinek <jakub@redhat.com>
29833 * opts.c: Include diagnostic-color.h.
29834 (common_handle_option): Handle OPT_fdiagnostics_color_.
29835 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29836 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29837 (diagnostic-color.o): New.
29838 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29839 (diagnostic_color_rule): New enum.
29840 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29841 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29842 the location string.
29843 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29844 either NULL, or color kind.
29845 * diagnostic-color.c: New file.
29846 * diagnostic-color.h: New file.
29847 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29849 * doc/invoke.texi (-fdiagnostics-color): Document.
29850 * pretty-print.h (pp_show_color): Define.
29851 (struct pretty_print_info): Add show_color field.
29852 * diagnostic.c: Include diagnostic-color.h.
29853 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29854 macros. Colorize error:, warning: etc. strings and also the location
29856 (diagnostic_show_locus): Colorize the caret line.
29857 * pretty-print.c: Include diagnostic-color.h.
29858 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
29859 inside of %< %> quotes or quoted through q format modifier.
29861 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29863 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29865 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29867 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29868 code in CC_NZ mode.
29869 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29872 2013-04-11 Marek Polacek <polacek@redhat.com>
29874 PR tree-optimization/48184
29875 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29877 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
29879 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29880 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29881 (skip_simple_arithmetic): Tidy up.
29882 * tree.h (skip_simple_constant_arithmetic): Declare.
29884 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29886 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29888 2013-04-11 Richard Biener <rguenther@suse.de>
29890 * tree-vect-loop.c (get_initial_def_for_induction): Properly
29891 generate vector constants.
29893 2013-04-11 Richard Biener <rguenther@suse.de>
29895 PR tree-optimization/56878
29896 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29897 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29899 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29900 Prefer to align the DR with the most invariant base address.
29902 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29904 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29907 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
29909 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29910 floating-point vector comparisons against 0.
29912 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29914 PR tree-optimization/56899
29915 * fold-const.c (extract_muldiv_1): Apply distributive law
29916 only if TYPE_OVERFLOW_WRAPS (ctype).
29918 2013-04-11 Bin Cheng <bin.cheng@arm.com>
29921 * ira-costs.c (scan_one_insn): Check whether the source rtx of
29922 loading has side effect.
29924 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
29926 * config/sparc/sparc.c: Include tree-pass.h.
29927 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29928 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
29929 head of file. Change return type. Split off gate function.
29930 (sparc_gate_work_around_errata): New function.
29931 (pass_work_around_errata): New pass definition.
29932 (insert_pass_work_around_errata) New pass insert definition to
29933 insert pass_work_around_errata just after delayed-branch scheduling.
29934 (sparc_option_override): Insert the pass.
29935 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29937 2013-04-10 David S. Miller <davem@davemloft.net>
29939 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29940 or -mcpu=hypersparc.
29942 * target.def (cstore_mode): New hook.
29943 * target.h: Include insn-codes.h
29944 * targhooks.c: Likewise.
29945 (default_cstore_mode): New function.
29946 * targhooks.h: Declare it.
29947 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29948 * doc/tm.texi: Rebuild.
29949 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29950 target hook, rather than inspecting the insn_data.
29951 * config/sparc/sparc.c (sparc_cstore_mode): New function.
29952 (TARGET_CSTORE_MODE): Redefine.
29953 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29955 * config/sparc/predicates.md (cstore_result_operand): New special
29957 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29958 Use it for operand 0.
29959 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29960 (*snesi_special): Likewise.
29961 (*snesi_zero): Likewise.
29962 (*seqsi_zero): Likewise.
29963 (*sltu_insn): Likewise.
29964 (*sgeu_insn): Likewise.
29965 (*seqdi_special): Make operand 0 and comparison operation be of
29967 (*snedi_special): Likewise.
29968 (*snedi_special_vis3): Likewise.
29969 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29970 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29971 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29972 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29973 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29974 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29975 (*sltu_extend_sp64): Likewise.
29976 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29977 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29978 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29979 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29980 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29982 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
29984 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29985 (aarch64_start_file): Use the new function.
29987 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29988 Jason Merrill <jason@redhat.com>
29990 * common.opt: Add -gdwarf.
29991 * opts.c (common_handle_option): Handle it.
29992 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29994 2013-04-10 Richard Biener <rguenther@suse.de>
29996 * passes.c (execute_todo): Do not call ggc_collect conditional here.
29997 (execute_one_ipa_transform_pass): But unconditionally here.
29998 (execute_one_pass): And here.
29999 (init_optimization_passes): Remove reload pass.
30000 * tree-pass.h (TODO_ggc_collect): Remove.
30001 (pass_reload): Likewise.
30002 * ira.c (do_reload): Merge into ...
30004 (rest_of_handle_reload): Remove.
30005 (pass_reload): Likewise.
30006 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30007 of reload for vzeroupper pass placement.
30008 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30009 and todo_flags_finish of all passes.
30011 2013-04-10 Richard Biener <rguenther@suse.de>
30013 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30014 first_const_oprnd field, rename first_def_type to first_op_type.
30015 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30016 (vect_get_and_check_slp_defs): Always use the type of the
30017 operand. Allow mixed vect_external_def, vect_constant_def types.
30018 (vect_get_constant_vectors): Handle mixed vect_external_def,
30019 vect_constant_def types.
30021 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
30023 PR tree-optimization/55524
30024 * tree-ssa-math-opts.c
30025 (convert_mult_to_fma): Don't use an fms construct
30026 when we don't have an fms operation, but fnma, and it looks
30027 likely that we'll be able to use the latter.
30029 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30031 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30033 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30034 inline fail caused by overwritable functions.
30036 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
30038 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30039 unnecessary bits in the constant power of two case.
30041 2013-04-10 Richard Biener <rguenther@suse.de>
30043 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30044 broken code swapping operands.
30045 (vect_build_slp_tree): Do not compute load permutations here.
30046 (vect_analyze_slp_instance): Compute load permutations here,
30047 after building the SLP tree.
30049 2013-04-09 Christian Bruel <christian.bruel@st.com>
30051 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30052 of next/prev_real_insn.
30054 2013-04-09 Jan Hubicka <jh@suse.cz>
30056 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30057 Drop aliased parameter.
30058 (function_and_variable_visibility): Do not handle alias pairs.
30059 * cgraph.c (varpool_externally_visible_p): Update prototype.
30060 * varpool.c (varpool_add_new_variable): Update.
30062 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30064 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30066 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
30068 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30070 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30072 2013-04-09 Marek Polacek <polacek@redhat.com>
30074 PR tree-optimization/48762
30075 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30077 2013-04-09 Richard Biener <rguenther@suse.de>
30079 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30081 (vect_build_slp_tree): Likewise.
30082 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30083 calculating the cost of a SLP instance.
30084 (vect_analyze_slp_instance): Use it from here, after building
30087 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30089 PR middle-end/56883
30090 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30091 expand_omp_for_static_chunk): Use simple_p = true in
30092 force_gimple_operand_gsi calls when assigning to addressable decls.
30094 2013-04-09 Jeff Law <law@redhat.com>
30096 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30097 when the boolean was created by converting a wider object which
30098 had a boolean range.
30100 2013-04-09 Richard Biener <rguenther@suse.de>
30102 * tree-vectorizer.h (slp_void_p): Remove.
30103 (slp_tree): Typedef before _slp_tree declaration.
30104 (struct _slp_tree): Use a vector of slp_tree as children.
30105 (vect_get_place_in_interleaving_chain): Remove.
30106 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30108 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30110 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30111 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30112 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30113 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30114 Use slp_node instead of slp_void_p and adjust.
30116 2013-04-09 Richard Biener <rguenther@suse.de>
30118 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30119 work that is not necessary.
30121 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30123 PR tree-optimization/56854
30124 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30125 forward into clobber stmts if it would change MEM_REF lhs into
30128 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
30130 * tree.c (type_hash_lookup, type_hash_add): Make static.
30131 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30133 2013-04-09 Richard Biener <rguenther@suse.de>
30135 * tree.h (unsave_expr_now): Remove.
30136 * tree-inline.c (mark_local_for_remap_r): Remove.
30137 (unsave_expr_1): Likewise.
30138 (unsave_r): Likewise.
30139 (unsave_expr_now): Likewise.
30140 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30141 (propagate_tree_value): Likewise.
30143 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
30145 * doc/rtl.texi (sequence): Rewrite documentation to match the
30146 current use of SEQUENCE rtl objects.
30147 * rtl.def (SEQUENCE): Likewise.
30149 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30150 Update documentation.
30151 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30152 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30154 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30156 2013-04-08 Teresa Johnson <tejohnson@google.com>
30158 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30159 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30161 (estimate_edge_size_and_time): Add comment to suggest using rounding
30163 (estimate_node_size_and_time): Ditto.
30164 (remap_edge_change_prob): Use helper rounding divide methods.
30165 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30166 (gimple_mod_pow2_value_transform): Ditto.
30167 (gimple_mod_subtract_transform): Ditto.
30168 (gimple_ic_transform): Ditto.
30169 (gimple_stringops_transform): Ditto.
30170 * stmt.c (conditional_probability): Ditto.
30171 (emit_case_dispatch_table): Ditto.
30172 * lto-cgraph.c (merge_profile_summaries): Ditto.
30173 * tree-optimize.c (execute_fixup_cfg): Ditto.
30174 * cfgcleanup.c (try_forward_edges): Ditto.
30175 * cfgloopmanip.c (scale_loop_profile): Ditto.
30177 (duplicate_loop_to_header_edge): Ditto.
30178 (lv_adjust_loop_entry_edge): Ditto.
30179 * tree-vect-loop.c (vect_transform_loop): Ditto.
30180 * profile.c (compute_branch_probabilities): Ditto.
30181 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30182 * lto-streamer-in.c (input_cfg): Ditto.
30183 * gimple-streamer-in.c (input_bb): Ditto.
30184 * ipa-cp.c (update_profiling_info): Ditto.
30185 (update_specialized_profile): Ditto.
30186 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30187 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30189 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30190 (compute_trg_info): Ditto.
30191 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30192 (purge_dead_edges): Ditto.
30193 * loop-unswitch.c (unswitch_loop): Ditto.
30194 * cgraphclones.c (cgraph_clone_edge): Ditto.
30195 (cgraph_clone_node): Ditto.
30196 * tree-inline.c (copy_bb): Ditto.
30197 (copy_edges_for_bb): Ditto.
30198 (initialize_cfun): Ditto.
30199 (copy_cfg_body): Ditto.
30200 (expand_call_inline): Ditto.
30202 2013-04-08 Kai Tietz <ktietz@redhat.com>
30204 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30205 TARGET_CYGWIN64 by TARGET_64BIT.
30207 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30209 * config/epiphany/epiphany.md (GPR_1): New constant.
30210 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30211 * config/epiphany/epiphany.c (gen_compare_reg):
30212 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30213 is already in place.
30214 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30215 Don't require being called during rtl expansion; If y operlaps r0,
30217 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30218 (epiphany_expand_epilogue): Likewise.
30220 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30221 Don't use CC_FPmode for ORDERED / UNORDERED.
30222 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30224 * config/epiphany/constraints.md (CnL): New constraint.
30225 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30226 * config/epiphany/predicates.md (add_operand): Allow 1024.
30228 * config/epiphany/epiphany.md (logical_op): New code iterator.
30229 (op_mnc): New code attribute.
30230 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30231 (mov_f+1, mov_f+2): New peephole2 patterns.
30233 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30234 (cstoresi4): Also allow re-use of zero result when doing a NE
30235 comparison to a non-zero operand.
30236 Use (clobber (scratch)) for first insn if the gpr output is not needed.
30238 * config/epiphany/epiphany.md (<insn_opname>v2si3):
30239 Use gen_addsi3_i / gen_subsi3_i.
30241 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30245 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30246 contain anything but clobbers, at most one __builtin_stack_restore,
30247 optionally debug stmts and final resx, and if it has at least one
30248 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
30249 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30250 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30251 which isn't defaut definition, remove them.
30252 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30253 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30254 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30255 with MEM_REF LHS with SSA_NAME address.
30257 2013-04-08 Jeff Law <law@redhat.com>
30259 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30261 2013-04-08 Richard Biener <rguenther@suse.de>
30263 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30265 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30266 determined vector type.
30267 (vect_analyze_data_refs): Likewise.
30268 (vect_get_new_vect_var): Adjust.
30269 (vect_create_destination_var): Preserve SSA name versions.
30270 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30271 not dump anything here.
30273 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30275 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30276 Add member lr_slot_known.
30277 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30279 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30280 Remove code that sets lr_slot_offset according to what a previous
30281 version of epiphany_emit_save_restore used to do.
30282 (epiphany_emit_save_restore): When doing an lr save or restore,
30283 set/verify lr_slot_known and lr_slot_offset.
30285 2013-04-08 Xinyu Qi <xyqi@marvell.com>
30288 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30291 2013-04-08 Richard Biener <rguenther@suse.de>
30293 * alias.c (find_base_term): Fix thinko in previous change.
30295 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30297 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30298 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30299 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
30300 if possible to compute val.
30301 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30302 For QImode integers don't require anything about precision. Use
30303 const_with_all_bytes_same to find out if the constant doesn't have
30304 repeated bytes in it.
30306 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30308 * config/s390/s390.c (s390_expand_insv): Only accept insertions
30311 2013-04-08 Marek Polacek <polacek@redhat.com>
30313 PR rtl-optimization/48182
30314 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30317 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30320 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30321 nuses, make sure we have a label.
30323 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30326 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30327 (rs6000_emit_swdiv_low_precision): Remove.
30328 (rs6000_emit_swdiv): Rewrite to handle between one and four
30329 iterations of Newton-Raphson generally; modify required number of
30330 iterations for some cases.
30331 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30333 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
30335 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30336 set-but-unused variable.
30338 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30339 basic blocks of released function bodies garbage-collectable.
30341 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30342 (struct rtl_opt_pass): Add TODO_df_finish.
30344 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30346 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30348 * config/arm/constraints.md (q): New constraint.
30349 * config/arm/ldrdstrd.md: New file.
30350 * config/arm/arm.md (ldrdstrd.md) New include.
30351 (arm_movdi): Use "q" instead of "r" constraint
30352 for double-word memory access.
30353 (movdf_soft_insn): Likewise.
30354 * config/arm/vfp.md (movdi_vfp): Likewise.
30355 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30356 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30357 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30358 (mem_ok_for_ldrd_strd): Likewise.
30359 (output_move_double): Update assertion.
30361 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30363 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30365 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30367 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30368 define_insn_and_split.
30369 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30371 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30373 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30374 define_insn_and_split.
30375 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30376 (shiftsi3_compare): New pattern.
30377 (rrx): New pattern.
30378 * config/arm/unspecs.md (UNSPEC_RRX): New.
30380 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30382 * config/arm/arm.md (negdi_extendsidi): New pattern.
30383 (negdi_zero_extendsidi): Likewise.
30385 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30387 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30388 define_insn_and_split.
30389 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30390 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30392 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30394 * config/arm/arm.md (arm_subdi3): Convert define_insn into
30395 define_insn_and_split.
30396 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30397 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30399 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30401 * config/arm/arm.md (subsi3_carryin): New pattern.
30402 (subsi3_carryin_const): Likewise.
30403 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30404 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30406 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30408 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30410 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30412 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30413 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30415 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30417 * config/arm/arm.c (arm_expand_builtin): Change fcode
30418 type to unsigned int.
30420 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30422 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30424 2013-04-04 Ian Lance Taylor <iant@google.com>
30426 * doc/standards.texi (Standards): The Go frontend supports the Go 1
30429 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
30431 PR middle-end/56729
30432 * df-scan.c (df_insn_delete): Disable failing assert.
30434 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30436 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30437 New function prototype.
30438 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30439 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30440 (arm_builtin_vectorized_function): New function.
30442 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30444 * config/arm/arm_neon_builtins.def: New file.
30445 * config/arm/arm.c (neon_builtin_data): Move contents to
30446 arm_neon_builtins.def.
30447 (enum arm_builtins): Include neon builtin definitions.
30448 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30449 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30451 2013-04-04 Marek Polacek <polacek@redhat.com>
30453 PR tree-optimization/48186
30454 * predict.c (maybe_hot_frequency_p): Return false if
30455 HOT_BB_FREQUENCY_FRACTION is 0.
30456 (cgraph_maybe_hot_edge_p): Likewise.
30458 2013-04-04 Richard Biener <rguenther@suse.de>
30460 PR tree-optimization/56826
30461 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30464 2013-04-04 Richard Biener <rguenther@suse.de>
30466 PR tree-optimization/56213
30467 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30468 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30470 2013-04-04 Richard Biener <rguenther@suse.de>
30472 PR tree-optimization/56837
30473 * tree-loop-distribution.c (classify_partition): For non-zero
30474 values require that the value has the same precision as its
30475 mode to be useful as memset value.
30477 2013-04-03 Nick Clifton <nickc@redhat.com>
30479 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30480 (fmssf4): Use fmsf.s on E3V5 architectures.
30481 (fnmasf4): Use fnmaf.s on E3V5 architectures.
30482 (fnmssf4): Use fnmsf.s on E3V5 architectures.
30484 2013-04-03 Jeff Law <law@redhat.com>
30486 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30487 (lra-eliminations.o): Likewise.
30489 2013-04-03 Teresa Johnson <tejohnson@google.com>
30491 * gcov-io.c (compute_working_sets): Moved most of body of old
30492 compute_working_sets here from profile.c.
30493 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30494 (gcov_working_set_t): Moved typedef here from basic-block.h
30495 (compute_working_set): Declare.
30496 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30497 (get_working_sets): Renamed from compute_working_set,
30498 replace most of body with call to new compute_working_sets.
30499 (get_exec_counts): Replace call to compute_working_sets
30500 to get_working_sets.
30501 * profile.h (get_working_sets): Renamed from compute_working_set.
30502 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30503 to get_working_sets.
30504 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30505 * gcov-dump.c (dump_working_sets): New function.
30507 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
30509 * hwint.c (sext_hwi, zext_hwi): New functions.
30510 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30511 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30512 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30513 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30514 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30515 (sext_hwi, zext_hwi): New functions.
30517 2013-04-03 Jeff Law <law@redhat.com>
30519 PR tree-optimization/56799
30520 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30521 back test for widening conversion erroneously dropped in prior change.
30523 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30526 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30527 instead of next_real_insn.
30529 2013-04-03 Marek Polacek <polacek@redhat.com>
30532 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30534 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30537 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30539 (thumb1_output_casesi): Likewise.
30540 (thumb2_output_casesi): Likewise.
30542 2013-04-03 Richard Biener <rguenther@suse.de>
30544 PR tree-optimization/56817
30545 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30547 (tree_unroll_loops_completely_1): ... new function to manually
30548 walk the loop tree, properly defering outer loops of unrolled
30549 loops to later iterations.
30551 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30553 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30554 (vectorizable_load): Likewise.
30555 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30556 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30558 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30560 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30563 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30565 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30567 2013-04-03 Bin Cheng <bin.cheng@arm.com>
30569 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30571 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30573 PR tree-optimization/56790
30574 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30577 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30579 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30581 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30582 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30585 2013-04-03 Jakub Jelinek <jakub@redhat.com>
30588 * tree.h (force_folding_builtin_constant_p): New decl.
30589 * builtins.c (force_folding_builtin_constant_p): New variable.
30590 (fold_builtin_constant_p): Fold immediately also if
30591 force_folding_builtin_constant_p.
30593 2013-04-03 Richard Biener <rguenther@suse.de>
30595 PR tree-optimization/56812
30596 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30597 DRs of the same interleaving chain are independent.
30599 2013-04-02 Jason Merrill <jason@redhat.com>
30601 * gdbinit.in (pbb): Use debug fn.
30603 2013-04-02 Lawrence Crowl <crowl@google.com>
30605 * sese.h (struct ivtype_map_elt_s): Remove unused.
30606 (extern debug_ivtype_map): Remove unused.
30607 (extern eq_ivtype_map_elts): Remove unused.
30608 * sese.c (debug_ivtype_map): Removed unused.
30609 (debug_ivtype_map_1): Removed unused.
30610 (debug_ivtype_elt): Remove unused.
30611 (eq_ivtype_map_elts): Remove unused.
30613 2013-04-02 Kai Tietz <ktietz@redhat.com>
30616 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30617 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30618 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30620 (legitimize_pe_coff_symbol): Likewise.
30621 (is_imported_p): New helper-function.
30622 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30623 for Windows x64 targets.
30624 (ix86_expand_prologue): Optimize for pe-coff targets.
30625 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30626 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30627 medium/large code-model.
30628 (legitimize_pic_address): Likewise.
30629 (legitimize_tls_address): Likewise.
30630 (ix86_expand_call): Likewise.
30631 (x86_output_mi_thunk): Likewise.
30632 (get_dllimport_decl): Add new beimport argument.
30633 (construct_plt_address): Don't assert for x64 pe-coff targets.
30634 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30636 (SYMBOL_FLAG_STUBVAR): New macro.
30637 (SYMBOL_REF_STUBVAR_P): Likewise.
30638 * config/i386/winnt.c (stub_list): New structure.
30639 (stub_head): New local variable.
30640 (i386_pe_record_stub): New function.
30641 (i386_pe_file_end): Emit refptr-stubs.
30643 2013-04-02 Jakub Jelinek <jakub@redhat.com>
30645 PR rtl-optimization/56745
30646 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30647 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30650 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30651 and both of them are MEM_REFs, just compare first argument for
30652 equality and attempt to deal even with differing offsets.
30655 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30656 of gimple_clobber_p to be MEM_REF.
30657 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30658 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
30659 after gimplification.
30660 * asan.c (get_mem_ref_of_assignment): Don't instrument
30661 gimple_clobber_p stmts.
30662 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30663 gimple_clobber_p stmt if they have MEM_REF lhs and
30664 are dead because of another gimple_clobber_p stmt.
30665 * tree-ssa-live.c (clear_unused_block_pointer): Treat
30666 gimple_clobber_p stmts like debug stmts.
30667 (remove_unused_locals): Remove clobbers with MEM_REF lhs
30668 that refer to unused VAR_DECLs or uninitialized values.
30669 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30670 gimple_clobber_p stmts if they refer to removed parameters.
30671 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30674 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
30676 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30677 using SWI48 mode attribute.
30679 2013-04-02 Wei Mi <wmi@google.com>
30681 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30682 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30683 *<rotate_insn><mode>3_mask in i386.md.
30685 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
30687 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30689 2013-04-02 Richard Biener <rguenther@suse.de>
30691 PR tree-optimization/56778
30692 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30693 Runtime alias tests are not supported for gather loads.
30694 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30695 stmts referenced from SSA operands before updating SSA form.
30697 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
30698 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30700 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30701 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30702 * config/arm/cortex-a53.md: New file.
30703 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30704 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30705 * config/arm/arm.c (arm_issue_rate): Likewise.
30706 * config/arm/arm-tune.md: Regenerate
30707 * config/arm/arm-tables.opt: Regenerate.
30708 * config/arm/arm-cores.def: Add cortex-a53.
30710 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
30712 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30715 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30717 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30718 scalar load/store operations using B/H registers.
30719 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30721 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30723 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30725 * config/aarch64/aarch64.c
30726 (aarch64_simd_scalar_immediate_valid_for_move): New.
30727 * config/aarch64/aarch64-protos.h
30728 (aarch64_simd_scalar_immediate_valid_for_move): New.
30729 * config/aarch64/constraints.md (Dh, Dq): New.
30730 * config/aarch64/iterators.md (hq): New.
30732 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
30734 * reorg.c (get_branch_condition): Deal with conditional returns.
30735 (fill_simple_delay_slots): Remove dead code dealing with jumps.
30737 2013-04-01 Wei Mi <wmi@google.com>
30739 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30740 Truncate operand 2 using %b asm operand modifier.
30741 (*<shift_insn><mode>3_mask): Ditto.
30742 (*<rotate_insn><mode>3_mask): Ditto.
30744 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
30746 PR middle-end/56798
30747 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30749 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
30751 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30753 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30755 2013-03-30 Lawrence Crowl <crowl@google.com>
30757 * dse.c (clear_alias_sets): Remove never set.
30758 (disqualified_clear_alias_sets): Remove never set.
30759 (clear_alias_mode_pool): Remove never set.
30760 (dse_step0): Remove condition that is never true.
30761 (canon_address): Remove condition that is never true.
30762 (dse_step7): Remove condition that is never true.
30763 (rest_of_handle_dse): Remove condition that is never true.
30764 (rest_of_handle_dse::did_global): Remove never read from above.
30765 (dse_step2_spill): Remove never called from above.
30766 (dse_step5_spill): Remove never called from above.
30768 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
30770 * doc/md.texi (Standard Names) <casesi>: Update documentation for
30771 JUMP_TABLE_DATA changes.
30772 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30773 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30774 (Insns) <jump_table_data>: New entry.
30775 * doc/tm.texi: Regenerate.
30777 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30779 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30780 for table jump at the end of a basic block using tablejump_p.
30781 * targhooks.c (default_invalid_within_doloop): Likewise.
30782 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30783 target hook implementation that is identical to the default hook.
30784 (rs6000_invalid_within_doloop): Remove.
30786 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30787 unused variable from tablejump_p call.
30789 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30790 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30791 (INSN_DELETED_P): Likewise.
30792 (emit_jump_table_data): New prototype.
30793 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30794 after 4th as unused.
30795 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30796 * sched-vis.c (print_insn): Likewise.
30797 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30798 insn for compatibility with back ends that use next_active_insn to
30799 identify jump table data.
30800 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30801 (remove_insn): Likewise.
30802 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30804 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30805 (emit_jump_table_data): New function.
30807 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30808 basic block, a JUMP_TABLE_DATA never is.
30809 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30810 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30811 off from code handling real insns.
30812 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30813 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30814 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30815 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30816 is not a NONDEBUG_INSN_P.
30817 * ira-costs.c (scan_one_insn): Likewise.
30818 * jump.c (mark_all_labels): Likewise.
30819 (mark_jump_label_1): Likewise.
30820 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30821 * lra.c (get_insn_freq): Expect all insns reaching here to be in
30823 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30824 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30825 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30826 JUMP_TABLE_DATA_P insns.
30827 (calculate_elim_costs_all_insns): Likewise.
30828 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30829 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30830 (delete_output_reload): Code style fixups.
30831 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30832 insn flags on this non-insn.
30833 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30834 as scheduling barriers, for pre-change compatibility.
30835 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30836 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30838 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30839 redundant JUMP_TABLE_DATA_P test.
30840 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30841 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30842 (frv_for_each_packet): Likewise.
30843 * config/i386/i386.c (min_insn_size): Likewise.
30844 (ix86_avoid_jump_mispredicts): Likewise.
30845 * config/m32r/m32r.c (m32r_is_insn): Likewise.
30846 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30847 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30848 (mips16_insn_length): Robustify.
30849 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30850 (mips16_split_long_branches): Likewise.
30851 * config/pa/pa.c (pa_combine_instructions): Likewise.
30852 * config/rs6000/rs6000.c (get_next_active_insn): Treat
30853 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30854 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30855 as contributing to pool range lengths.
30856 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30857 Remove redundant JUMP_TABLE_DATA_P test.
30858 (sh_loop_align): Likewise.
30859 (split_branches): Likewise.
30860 (sh_insn_length_adjustment): Likewise.
30861 * config/spu/spu.c (get_branch_target): Likewise.
30863 2013-03-29 Jan Hubicka <jh@suse.cz>
30865 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30866 gcov streaming; stream hot bb threshold to ltrans.
30867 * predict.c (get_hot_bb_threshold): Break out from ....
30868 (maybe_hot_count_p): ... here.
30869 (set_hot_bb_threshold): New function.
30870 * lto-section-in.c (lto_section_name): Add profile.
30871 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30872 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30873 and data-streamer.h
30874 (histogram_entry): New structure.
30875 (histogram, histogram_pool): New global vars.
30876 (histogram_hash): New structure.
30877 (histogram_hash::hash): New method.
30878 (histogram_hash::equal): Likewise.
30879 (account_time_size): New function.
30880 (cmp_counts): New function.
30881 (dump_histogram): New function.
30882 (ipa_profile_generate_summary): New function.
30883 (ipa_profile_write_summary): New function.
30884 (ipa_profile_read_summary): New function.
30885 (ipa_profile): Decide on threshold.
30886 (pass_ipa_profile): Add ipa_profile_write_summary and
30887 ipa_profile_read_summary.
30888 * Makefile.in (ipa.o): Update dependencies.
30889 * lto-streamer.h (LTO_section_ipa_profile): New section.
30891 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
30893 * tree.h (VAR_P): New.
30895 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
30898 * doc/invoke.texi ([-fwhole-program]): Fix typo.
30900 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
30902 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30903 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30904 (control_flow_insn_p): Likewise.
30905 * cfgrtl.c (duplicate_insn_chain): Likewise.
30906 * final.c (get_attr_length_1): Likewise.
30907 (shorten_branches): Likewise.
30908 (final_scan_insn): Likewise.
30909 * function.c (instantiate_virtual_regs): Likewise.
30910 * gcse.c (insert_insn_end_basic_block): Likewise.
30911 * ira-costs.c (scan_one_insn): Likewise.
30912 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30913 * lra.c (check_rtl): Likewise.
30914 * reload1.c (elimination_costs_in_insn): Likewise.
30915 * reorg.c (follow_jumps): Likewise.
30917 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30918 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30919 (thumb_far_jump_used_p): Likewise.
30920 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30921 (workaround_speculation): Likewise.
30922 (add_sched_insns_for_speculation): Likewise.
30923 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30924 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30925 (frv_for_each_packet): Likewise.
30926 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30927 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30928 (final_emit_insn_group_barriers): Likewise.
30929 * config/m32r/m32r.c (m32r_is_insn): Likewise.
30930 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30931 (mips16_insn_length): Likewise.
30932 * config/pa/pa.c (pa_reorg): Likewise.
30933 (pa_combine_instructions): Likewise.
30934 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30935 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30936 (sh_reorg): Likewise.
30937 (split_branches): Likewise.
30938 * config/spu/spu.c (get_branch_target): Likewise.
30940 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30943 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
30945 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30946 Fix declaration name.
30948 2013-03-28 Lawrence Crowl <crowl@google.com>
30950 * graphds.h (struct graph.indicies): Remove unused.
30951 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30952 (SCOP_ORIGINAL_PDDRS): Remove unused.
30953 * sese.h (extern insert_loop_close_phis): Removed unused.
30954 (extern insert_guard_phis): Removed unused.
30955 (extern ivtype_map_elt_info): Removed unused.
30956 (new_ivtype_map_elt): Removed unused.
30957 * sese.c (ivtype_map_elt_info): Removed unused.
30959 2013-03-28 Lawrence Crowl <crowl@google.com>
30961 * Makefile.in: Add several missing include dependences.
30963 (test-dump.o): New. This object is not added to any executable,
30964 but is present for ad-hoc testing.
30966 (debug (const bitmap_head_def &)): New.
30967 (debug (const bitmap_head_def *)): New.
30969 (extern debug (const bitmap_head_def &)): New.
30970 (extern debug (const bitmap_head_def *)): New.
30972 (debug (edge_def &)): New.
30973 (debug (edge_def *)): New.
30975 (debug (basic_block_def &)): New.
30976 (debug (basic_block_def *)): New.
30978 (dump_node (const_tree, int, FILE *)): Correct source file.
30980 (debug (die_struct &)): New.
30981 (debug (die_struct *)): New.
30983 (extern debug (die_struct &)): New.
30984 (extern debug (die_struct *)): New.
30985 * gimple-pretty-print.c
30986 (debug (gimple_statement_d &)): New.
30987 (debug (gimple_statement_d *)): New.
30988 * gimple-pretty-print.h
30989 (extern debug (gimple_statement_d &)): New.
30990 (extern debug (gimple_statement_d *)): New.
30992 (debug (ira_allocno_copy &)): New.
30993 (debug (ira_allocno_copy *)): New.
30994 (debug (ira_allocno &)): New.
30995 (debug (ira_allocno *)): New.
30997 (extern debug (ira_allocno_copy &)): New.
30998 (extern debug (ira_allocno_copy *)): New.
30999 (extern debug (ira_allocno &)): New.
31000 (extern debug (ira_allocno *)): New.
31002 (debug (live_range &)): New.
31003 (debug (live_range *)): New.
31005 (debug (lra_live_range &)): New.
31006 (debug (lra_live_range *)): New.
31008 (debug (lra_live_range &)): New.
31009 (debug (lra_live_range *)): New.
31011 (debug (omega_pb_d &)): New.
31012 (debug (omega_pb_d *)): New.
31014 (extern debug (omega_pb_d &)): New.
31015 (extern debug (omega_pb_d *)): New.
31017 (debug (const rtx_def &)): New.
31018 (debug (const rtx_def *)): New.
31020 (debug_tree (tree): Move within file.
31021 (debug_raw (const tree_node &)): New.
31022 (debug_raw (const tree_node *)): New.
31023 (dump_tree_via_hooks (const tree_node *, int)): New.
31024 (debug (const tree_node &)): New.
31025 (debug (const tree_node *)): New.
31026 (debug_verbose (const tree_node &)): New.
31027 (debug_verbose (const tree_node *)): New.
31028 (debug_head (const tree_node &)): New.
31029 (debug_head (const tree_node *)): New.
31030 (debug_body (const tree_node &)): New.
31031 (debug_body (const tree_node *)): New.
31032 (debug_vec_tree (tree): Move and reimplement in terms of dump.
31033 (debug (vec<tree, va_gc> &)): New.
31034 (debug (vec<tree, va_gc> *)): New.
31036 (extern debug (const rtx_def &)): New.
31037 (extern debug (const rtx_def *)): New.
31039 (debug_raw (simple_bitmap_def &)): New.
31040 (debug_raw (simple_bitmap_def *)): New.
31041 (debug (simple_bitmap_def &)): New.
31042 (debug (simple_bitmap_def *)): New.
31044 (extern debug (simple_bitmap_def &)): New.
31045 (extern debug (simple_bitmap_def *)): New.
31046 (extern debug_raw (simple_bitmap_def &)): New.
31047 (extern debug_raw (simple_bitmap_def *)): New.
31049 (debug (vinsn_def &)): New.
31050 (debug (vinsn_def *)): New.
31051 (debug_verbose (vinsn_def &)): New.
31052 (debug_verbose (vinsn_def *)): New.
31053 (debug (expr_def &)): New.
31054 (debug (expr_def *)): New.
31055 (debug_verbose (expr_def &)): New.
31056 (debug_verbose (expr_def *)): New.
31057 (debug (vec<rtx> &)): New.
31058 (debug (vec<rtx> *)): New.
31060 (extern debug (vinsn_def &)): New.
31061 (extern debug (vinsn_def *)): New.
31062 (extern debug_verbose (vinsn_def &)): New.
31063 (extern debug_verbose (vinsn_def *)): New.
31064 (extern debug (expr_def &)): New.
31065 (extern debug (expr_def *)): New.
31066 (extern debug_verbose (expr_def &)): New.
31067 (extern debug_verbose (expr_def *)): New.
31068 (extern debug (vec<rtx> &)): New.
31069 (extern debug (vec<rtx> *)): New.
31071 (_list_iter_cond_expr): Make inline instead of static.
31073 (debug (sreal &)): New.
31074 (debug (sreal *)): New.
31076 (extern debug (sreal &)): New.
31077 (extern debug (sreal *)): New.
31079 (extern debug_raw (const tree_node &)): New.
31080 (extern debug_raw (const tree_node *)): New.
31081 (extern debug (const tree_node &)): New.
31082 (extern debug (const tree_node *)): New.
31083 (extern debug_verbose (const tree_node &)): New.
31084 (extern debug_verbose (const tree_node *)): New.
31085 (extern debug_head (const tree_node &)): New.
31086 (extern debug_head (const tree_node *)): New.
31087 (extern debug_body (const tree_node &)): New.
31088 (extern debug_body (const tree_node *)): New.
31089 (extern debug (vec<tree, va_gc> &)): New.
31090 (extern debug (vec<tree, va_gc> *)): New.
31092 (debug (struct loop &)): New.
31093 (debug (struct loop *)): New.
31094 (debug_verbose (struct loop &)): New.
31095 (debug_verbose (struct loop *)): New.
31096 * tree-dump.c: Add header dependence.
31098 (extern debug (struct loop &)): New.
31099 (extern debug (struct loop *)): New.
31100 (extern debug_verbose (struct loop &)): New.
31101 (extern debug_verbose (struct loop *)): New.
31103 (debug (data_reference &)): New.
31104 (debug (data_reference *)): New.
31105 (debug (vec<data_reference_p> &)): New.
31106 (debug (vec<data_reference_p> *)): New.
31107 (debug (vec<ddr_p> &)): New.
31108 (debug (vec<ddr_p> *)): New.
31110 (extern debug (data_reference &)): New.
31111 (extern debug (data_reference *)): New.
31112 (extern debug (vec<data_reference_p> &)): New.
31113 (extern debug (vec<data_reference_p> *)): New.
31114 (extern debug (vec<ddr_p> &)): New.
31115 (extern debug (vec<ddr_p> *)): New.
31117 (debug (pt_solution &)): New.
31118 (debug (pt_solution *)): New.
31120 (extern debug (pt_solution &)): New.
31121 (extern debug (pt_solution *)): New.
31123 (debug (_var_map &)): New.
31124 (debug (_var_map *)): New.
31125 (debug (tree_live_info_d &)): New.
31126 (debug (tree_live_info_d *)): New.
31128 (extern debug (_var_map &)): New.
31129 (extern debug (_var_map *)): New.
31130 (extern debug (tree_live_info_d &)): New.
31131 (extern debug (tree_live_info_d *)): New.
31133 2013-03-28 Jan Hubicka <jh@suse.cz>
31135 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31137 2013-03-28 Ian Bolton <ian.bolton@arm.com>
31139 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31140 record only when desired or required.
31142 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
31144 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31145 *vec_extractv2di_1_rex64. Use x64 isa attribute.
31147 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31149 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31150 (*andsi3_compare0_uxtw): New pattern.
31151 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31152 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31154 2013-03-28 Jan Hubicka <jh@suse.cz>
31156 * data-streamer-in.c (streamer_read_gcov_count): New function.
31157 * gimple-streamer-out.c: Include value-prof.h.
31158 (output_gimple_stmt): Output histogram.
31159 (output_bb): Use streamer_write_gcov_count.
31160 * value-prof.c: Include data-streamer.h
31161 (dump_histogram_value): Add HIST_TYPE_MAX.
31162 (stream_out_histogram_value): New function.
31163 (stream_in_histogram_value): New function.
31164 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31165 (stream_out_histogram_value, stream_in_histogram_value): Declare.
31166 * data-streamer-out.c (streamer_write_gcov_count): New function.
31167 (streamer_write_gcov_count_stream): New function.
31168 * lto-cgraph.c (lto_output_edge): Update counter streaming.
31169 (lto_output_node): Likewise.
31170 (input_node, input_edge): Likewise.
31171 * lto-streamer-out.c (output_cfg): Update streaming.
31172 * lto-streamer-in.c (input_cfg): Likewise.
31173 * data-streamer.h (streamer_write_gcov_count,
31174 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31175 * gimple-streamer-in.c: Include value-prof.h
31176 (input_gimple_stmt): Input histograms.
31177 (input_bb): Update profile streaming.
31179 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31181 * genmodes.c (emit_max_int): New function.
31182 (emit_insn_modes_h): Added call to emit_max_function.
31183 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31185 * machmode.def: Fixed comment.
31187 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31189 * combine.c (try_combine): Removed useless assert.
31190 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31192 2013-03-28 Marek Polacek <polacek@redhat.com>
31193 Richard Biener <rguenther@suse.de>
31195 PR tree-optimization/56695
31196 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31197 build signed result of a vector comparison.
31198 * tree-cfg.c (verify_gimple_comparison): Check that a result
31199 of a vector comparison has signed type.
31201 2013-03-28 Richard Biener <rguenther@suse.de>
31203 PR tree-optimization/37021
31204 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31205 do not restrict gaps between groups.
31206 * tree-vect-stmts.c (vectorizable_load): Properly account for
31207 a gap between groups.
31209 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
31211 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31212 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31215 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
31217 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31218 * doc/extend.texi (Named Address Spaces): Ditto.
31219 (Variable Attributes): Ditto.
31221 2013-03-27 Kai Tietz <ktietz@redhat.com>
31223 * config.build: Add support for cygwin x64 target.
31224 * config.gcc: Likewise.
31225 * config.host: Likewise.
31226 * configure.ac: Likewise
31227 * configure: Regenerated.
31229 2013-03-27 Kai Tietz <ktietz@redhat.com>
31231 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31232 * config/i386/t-cygwin-w64: New file.
31233 * config/i386/cygwin-w64.h: New file.
31234 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31235 and add support for x64-cygwin target.
31236 (CPP_SPEC): Likewise.
31237 (CXX_WRAP_SPEC_LIST): Undefine before define.
31238 (LIBGCJ_SONAME): Use 15 as version.
31240 2013-03-27 Richard Biener <rguenther@suse.de>
31242 PR tree-optimization/56716
31243 * tree-ssa-structalias.c (perform_var_substitution): Adjust
31244 dumping for ref nodes.
31246 2013-03-27 Martin Jambor <mjambor@suse.cz>
31248 PR tree-optimization/55334
31249 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31250 restricted pointers to arrays.
31252 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
31254 * Makefile.in (.SUFFIXES): Add .cc.
31255 (.c.o): Apply same recipe for implicit rule .cc.o.
31257 2013-03-27 Richard Biener <rguenther@suse.de>
31259 PR tree-optimization/37021
31260 * tree-vect-data-refs.c (vect_check_strided_load): Allow
31261 REALPART/IMAGPART_EXPRs around the supported refs.
31262 * tree-ssa-structalias.c (find_func_aliases): Assume that
31263 floating-point values are not used to transfer pointers.
31265 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
31267 * target.def (TARGET_HAS_IFUNC_P): New target hook.
31268 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31269 * doc/tm.texi: Regenerate.
31270 * targhooks.h (default_has_ifunc_p): New.
31271 * targhooks.c (default_has_ifunc_p): Ditto.
31272 * config/linux-protos.h: New file.
31273 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31274 hook for linux which disables support of indirect functions in android.
31275 * config/linux-android.c: New file.
31276 * config/t-linux-android.c: Ditto.
31277 * config.gcc: Added new object file linux-android.o.
31278 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31279 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31280 * varasm.c (do_assemble_alias): Likewise.
31281 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31282 doesn't support indirect functions.
31283 * configure: Regenerate.
31285 2013-03-27 Bin Cheng <bin.cheng@arm.com>
31288 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31289 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31292 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31294 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31296 2013-03-27 Terry Guo <terry.guo@arm.com>
31298 * config/arm/arm-cores.def: Added core cortex-r7.
31299 * config/arm/arm-tune.md: Regenerated.
31300 * config/arm/arm-tables.opt: Regenerated.
31301 * doc/invoke.texi: Added entry for core cortex-r7.
31303 2013-03-27 Walter Lee <walt@tilera.com>
31305 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31306 double-decrement of next_scratch_regno.
31308 2013-03-27 Walter Lee <walt@tilera.com>
31310 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31312 (insn_v1mulus): Ditto.
31313 (insn_v2muls): Ditto.
31315 2013-03-27 Walter Lee <walt@tilera.com>
31317 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31318 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31320 2013-03-27 Walter Lee <walt@tilera.com>
31322 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31323 (*sibcall_value): Ditto.
31325 2013-03-27 Walter Lee <walt@tilera.com>
31327 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31328 (insn_mnz_v8qi): ... this ...
31329 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
31331 (insn_v<n>mnz): Replaced by ...
31332 (insn_v1mnz): ... this ...
31333 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
31335 (insn_mz_<mode>): Replaced by ...
31336 (insn_mz_v8qi): ... this ...
31337 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
31339 (insn_v<n>mz): Replaced by ...
31340 (insn_v1mz): ... this ...
31341 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
31344 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
31346 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31348 2013-03-26 Roland McGrath <mcgrathr@google.com>
31350 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31351 than fprintf with a non-constant, non-format string.
31353 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31355 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31356 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
31357 operand 0 predicate.
31358 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31359 attribute. Use general_x64nomem_operand as operand 1 predicate.
31360 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31361 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31362 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31363 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31364 (mov<mode>_insv_1): Remove expander. Merge insn with
31365 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31366 Use general_x64nomem_operand as operand 1 predicate.
31367 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31368 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31369 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31370 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31371 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
31372 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31373 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31374 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31375 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
31376 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31377 (general_x64nomem_operand): Ditto.
31379 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
31381 * config/rtems.opt: Add -pthread option.
31383 2013-03-26 Richard Biener <rguenther@suse.de>
31385 * alias.c (find_base_term): Avoid redundant and not used recursion.
31386 (base_alias_check): Get the initial base term from the caller.
31387 (true_dependence_1): Compute and pass base terms to base_alias_check.
31388 (write_dependence_p): Likewise.
31389 (may_alias_p): Likewise.
31391 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
31393 * config/aarch64/aarch64.c (aarch64_classify_address): Support
31394 PC-relative load in SI modes and above only.
31396 2013-03-26 Xinyu Qi <xyqi@marvell.com>
31398 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31399 * config/arm/iwmmxt.md (WCGR0): Update.
31400 (WCGR1, WCGR2, WCGR3): Likewise.
31402 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31404 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31405 Use x64 and nox64 isa attributes.
31407 2013-03-26 Richard Biener <rguenther@suse.de>
31409 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31410 alignment computations and rely on get_object_alignment_1
31411 for the !TYPE_P case.
31412 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31414 2013-03-26 Walter Lee <walt@tilera.com>
31416 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31417 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31419 2013-03-25 Jeff Law <law@redhat.com>
31421 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31422 check for INTEGRAL_TYPE_P that was missing due to checking in
31423 wrong version of prior patch.
31425 2013-03-25 Walter Lee <walt@tilera.com>
31427 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31428 TILEGX_INSN_SHUFFLEBYTES1.
31429 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31431 (tilegx_builtins): Ditto.
31432 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31434 2013-03-25 Walter Lee <walt@tilera.com>
31436 * config/tilegx/tilegx.md (floatsisf2): New pattern.
31437 (floatunssisf2): New pattern.
31438 (floatsidf2): New pattern.
31439 (floatunssidf2): New pattern.
31441 2013-03-25 Walter Lee <walt@tilera.com>
31443 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31444 tests for constraint J, K, N, P.
31446 2013-03-25 Walter Lee <walt@tilera.com>
31448 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31449 Use indirect/pcrel encoding.
31450 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31453 2013-03-25 Steve Ellcey <sellcey@mips.com>
31455 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31456 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31457 * config/mips/mips.c (mips_option_override): Set IMADD default.
31458 * config/mips/mips.h (PTF_AVOID_IMADD): New.
31459 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31460 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31461 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31462 * doc/invoke.texi (-mimadd/-mno-imadd): New.
31464 2013-03-25 Jeff Law <law@redhat.com>
31466 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31467 slightly to avoid creating and folding useless trees. Simplify
31468 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31470 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
31472 * config/i386/i386.md (*zero_extendsidi2): Merge with
31473 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
31474 * config/i386/predicates.md (x86_64_zext_operand): Rename from
31475 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
31476 targets. Clarify comment.
31478 2013-03-25 Martin Jambor <mjambor@suse.cz>
31480 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31481 pass-through jump functions differently.
31482 (ipa_read_jump_function): Likewise. Also use setter functions to set
31485 2013-03-25 Martin Jambor <mjambor@suse.cz>
31487 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31488 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31490 (ipa_get_indirect_edge_target): New function.
31491 (devirtualization_time_bonus): New parameter known_aggs, pass it to
31492 ipa_get_indirect_edge_target. Update all callers.
31493 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
31494 ipa_get_indirect_edge_target_1 instead of calling
31495 ipa_get_indirect_edge_target.
31496 (create_specialized_node): Pass aggvlas to
31497 ipcp_discover_new_direct_edges.
31499 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31501 * config/arm/arm.md (f_sels, f_seld): New types.
31502 (*cmov<mode>): New pattern.
31503 * config/arm/predicates.md (arm_vsel_comparison_operator): New
31506 2013-03-25 Kai Tietz <ktietz@redhat.com>
31508 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31509 POSIX-printf for mingw-hosted builds.
31511 2013-03-25 Richard Biener <rguenther@suse.de>
31513 PR middle-end/56694
31514 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31515 must-not-throw stmt location.
31517 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31519 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31520 Emit load-acquire versions when acq is true.
31521 (arm_emit_store_exclusive): Add rel parameter.
31522 Emit store-release versions when rel is true.
31523 (arm_split_compare_and_swap): Use acquire-release instructions
31525 of barriers when appropriate.
31526 (arm_split_atomic_op): Likewise.
31527 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31528 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31529 (VUNSPEC_SLX): Likewise.
31530 (VUNSPEC_LDA): Likewise.
31531 (VUNSPEC_STL): Likewise.
31532 * config/arm/sync.md (atomic_load<mode>): New pattern.
31533 (atomic_store<mode>): Likewise.
31534 (arm_load_acquire_exclusive<mode>): Likewise.
31535 (arm_load_acquire_exclusivesi): Likewise.
31536 (arm_load_acquire_exclusivedi): Likewise.
31537 (arm_store_release_exclusive<mode>): Likewise.
31539 2013-03-25 Catherine Moore <clm@codesourcery.com>
31541 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31542 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31543 * config/mip/predicates.md (lwsp_swsp_operand,
31544 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31545 sb16_operand, db4_operand, db7_operand, ib3_operand,
31546 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31547 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31548 andi16_operand): New predicates.
31549 * config/mips/mips.md (compression): New attribute.
31550 (enabled): New attribute.
31551 (length): Consider compression in computing length.
31552 (shift_compression): New code attribute.
31553 (*add<mode>3): New operands. Record compression.
31554 (sub<mode>3): Likewise.
31555 (one_cmpl<mode>2): Likewise.
31556 (*and<mode>3): Likewise.
31557 (*ior<mode>3): Likewise.
31558 (unnamed pattern for xor): Likewise.
31559 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31560 (*<optab><mode>3): Likewise.
31561 (*mov<mode>_internal: Likewise.
31562 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31563 (mips_unsigned_immediate_p): New.
31564 (umips_lwsp_swsp_address_p): New.
31565 (m16_based_address_p): New.
31566 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31567 (mips_unsigned_immediate_p): New prototype.
31568 (lwsp_swsp_address_p): New prototype.
31569 (m16_based_address_p): New prototype.
31570 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31571 (mips_signed_immediate_p): New function.
31572 (m16_based_address_p): New function.
31573 (lwsp_swsp_address_p): New function.
31574 (mips_print_operand_punctuation): Recognize short delay slot insns
31575 for microMIPS.add<mode>3"
31577 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31580 * config/arm/iterators.md (v_cmp_result): New mode attribute.
31581 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31583 2013-03-25 Richard Biener <rguenther@suse.de>
31585 PR tree-optimization/56689
31586 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31589 2013-03-25 Richard Biener <rguenther@suse.de>
31591 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31593 (memory_references): Likewise.
31594 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31595 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31596 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31597 (gather_mem_refs_in_loops): Fold into ...
31598 (analyze_memory_references): ... this. Move initialization
31599 to tree_ssa_lim_initialize.
31600 (fill_always_executed_in): Rename to ...
31601 (fill_always_executed_in_1): ... this.
31602 (fill_always_executed_in): Move contains_call computation to
31603 this new function from ...
31604 (tree_ssa_lim_initialize): ... here.
31605 (tree_ssa_lim): Call fill_always_executed_in.
31607 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31609 * postreload.c (reload_combine): Fix code detecting returns.
31611 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31613 * function.c (emit_use_return_register_into_block): On cc0 targets,
31614 do not emit the sequence between cc0 setter and user.
31616 2013-03-25 Kai Tietz <ktietz@redhat.com>
31618 * config/i386/predicates.md (local_symbolic_operand): Interpret
31619 dll-imported symbols as none-local.
31621 2013-03-25 Richard Biener <rguenther@suse.de>
31623 * tree-ssa-loop-im.c (struct depend): Remove.
31624 (struct lim_aux_data): Make depends a vec of gimples.
31625 (free_lim_aux_data): Adjust.
31626 (add_dependency): Likewise.
31627 (set_level): Likewise.
31629 2013-03-25 Richard Biener <rguenther@suse.de>
31631 PR middle-end/56434
31632 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31633 the pointer returned by calls with ECF_MALLOC set.
31635 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31637 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31639 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31641 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31642 using MMXMODE mode iterator.
31643 (*move<mode>_internal): Merge with *movv2sf_internal and
31644 *movv2sf_internal_rex64 using MMXMODE mode iterator.
31646 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31648 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31649 (record_last_mem_set_info): Likewise.
31651 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31652 of XNEWVEC followed by memset.
31653 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31655 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31657 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31658 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31659 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31660 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31661 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31662 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31663 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31664 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31665 BARRIER_P instead of GET_CODE.
31667 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31669 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31670 inaccuracy in the probing code.
31672 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31673 (ctrapdi4): Likewise.
31675 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31677 * calls.c (expand_call): Add missing guard to code handling return
31678 of non-BLKmode structures in MSB.
31679 * function.c (expand_function_end): Likewise.
31681 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31683 * combine.c (try_combine): Adjust comment. Do not add the set of
31684 insn #0 if the destination indirectly is set or dies in insn #2.
31685 Tidy up code to distribute a new note.
31687 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31689 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31690 also for alternatives 16 and 17.
31692 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31694 * config/i386/sse.md (*mov<mode>_internal): Merge with
31695 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
31696 Emit insn template depending on type attribute. Use
31697 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31698 movd instead of movq mnemonic for interunit moves. Rewrite mode
31699 attribute calculation. Remove unit attribute calculation.
31700 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31701 Set prefix_data16 attribute for DImode ssemov types.
31702 Use Ym instead of y for SSE-MMX conversion alternatives.
31703 Reorder operand constraints.
31705 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
31707 * df.h (df_insn_delete): Adjust prototype.
31708 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31709 and let it decide whether mark the basic block dirty.
31710 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31711 * df-scan.c (df_insn_info_delete): New helper function, split
31712 off from df_insn_delete.
31713 (df_scan_free_bb_info): Use it.
31714 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31716 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
31717 that the insn is actually an insn and it has a non-NULL basic block.
31718 Do not mark basic block dirty if only deleting a DEBUG_INSN.
31720 2013-03-22 Richard Biener <rguenther@suse.de>
31722 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31724 (mem_ref_alloc): Do not allocate them.
31725 (refs_independent_p): Do not query or maintain a cache.
31727 2013-03-22 Richard Biener <rguenther@suse.de>
31729 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31730 (gather_mem_refs_in_loops): Do not compute it.
31731 (analyze_memory_references): Do not allocate it.
31732 (tree_ssa_lim_finalize): Do not free it.
31733 (for_all_locs_in_loop): Do not query all_refs_in_loop.
31735 2013-03-22 Richard Biener <rguenther@suse.de>
31737 * is-a.h (as_a): Use gcc_checking_assert.
31739 2013-03-22 Ian Bolton <ian.bolton@arm.com>
31741 * config/aarch64/aarch64.c (aarch64_print_operand): New
31742 format specifier for printing a constant in hex.
31743 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31744 format specifier for printing second operand.
31746 2013-03-22 Richard Biener <rguenther@suse.de>
31748 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31750 (gather_mem_refs_in_loops): Perform store accumulation here.
31751 (create_vop_ref_mapping_loop): Remove.
31752 (create_vop_ref_mapping): Likewise.
31753 (analyze_memory_references): Initialize refs_stored_in_loop.
31754 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31755 (record_indep_loop): Remove.
31756 (record_dep_loop): New function.
31757 (ref_indep_loop_p_1): Adjust to only walk over references
31758 in the loop, not its subloops.
31759 (ref_indep_loop_p): Rename to ...
31760 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31761 maintaining a more fine-grained cache.
31762 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31763 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31765 2013-03-22 Richard Biener <rguenther@suse.de>
31767 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31768 (struct mem_ref): Make accesses_in_loop a vec of a vec of
31769 aggregate mem_ref_loc.
31770 (free_mem_ref_locs): Inline into ...
31771 (memref_free): ... this and adjust.
31772 (mem_ref_alloc): Adjust.
31773 (mem_ref_locs_alloc): Remove.
31774 (record_mem_ref_loc): Adjust.
31775 (get_all_locs_in_loop): Rewrite into ...
31776 (for_all_locs_in_loop): ... this iterator.
31777 (rewrite_mem_ref_loc): New functor.
31778 (rewrite_mem_refs): Use for_all_locs_in_loop.
31779 (sm_set_flag_if_changed): New functor.
31780 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31781 (ref_always_accessed): New functor.
31782 (ref_always_accessed_p): Use for_all_locs_in_loop.
31784 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31786 * tree-pass.h (PROP_gimple_lvec): New.
31787 * passes.c (dump_properties): Handle PROP_gimple_lvec.
31788 (init_optimization_passes): Move pass_lower_vector.
31789 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31791 (pass_lower_vector): Provide PROP_gimple_lvec.
31792 (pass_lower_vector_ssa): Likewise.
31793 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31795 2013-03-21 Mark Wielaard <mjw@redhat.com>
31797 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31799 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
31801 * config/i386/i386.md (*movdi_internal): Disparage slightly
31802 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
31803 conversion alternatives.
31805 2013-03-21 Jakub Jelinek <jakub@redhat.com>
31807 PR middle-end/48087
31808 * diagnostic.def (DK_WERROR): New kind.
31809 * diagnostic.h (werrorcount): Define.
31810 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31811 promoted to DK_ERROR, increment DK_WERROR counter instead of
31813 * toplev.c (toplev_main): Call print_ignored_options even if
31814 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
31815 even if just werrorcount is non-zero.
31818 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31820 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31821 (string_cst_pool_decl): New function.
31822 (optimize_one_addr_into_implicit_ptr): New function.
31823 (resolve_addr_in_expr): Optimize DWARF location expression
31824 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31825 which doesn't live in memory, but has DW_AT_location or
31826 DW_AT_const_value, or refers to a string literal, into
31827 DW_OP_GNU_implicit_pointer.
31828 (optimize_location_into_implicit_ptr): New function.
31829 (resolve_addr): If removing DW_AT_location of a variable because
31830 it was DW_OP_addr of address of the variable, but the variable doesn't
31831 live in memory, try to emit const value attribute for the initializer.
31833 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31835 * tree.h (VECTOR_TYPE_P): New macro.
31836 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31837 TYPE_MODE): Use it.
31838 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31839 VEC_COND_EXPR cannot be lvalues.
31840 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31842 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31844 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31845 Restrict the transformation to equal modes.
31847 2013-03-21 Richard Biener <rguenther@suse.de>
31849 PR tree-optimization/39326
31850 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31851 (MEM_ANALYZABLE): Adjust.
31852 (record_mem_ref_loc): Move bitmap ops ...
31853 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
31854 unanalyzable refs, do not record locations for it.
31855 (analyze_memory_references): Allocate ref zero as shared
31857 (refs_independent_p): Do not test for unanalyzed mems here.
31858 (ref_indep_loop_p_1): Special-case disambiguation against
31859 the unanalyzed ref.
31860 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31862 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
31864 * config/arm/arm-protos.h (tune_params): Add
31865 prefer_neon_for_64bits field.
31866 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31867 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31868 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31869 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31870 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31871 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31872 (arm_option_override): Handle -mneon-for-64bits new option.
31873 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31874 (prefer_neon_for_64bits): Declare new variable.
31875 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31876 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31877 (arch_enabled): Handle new arch types. Remove support for onlya8
31879 (one_cmpldi2): Use new arch names.
31880 (zero_extend<mode>di2, extend<mode>di2): Ditto.
31881 * config/arm/arm.opt (mneon-for-64bits): Add option.
31882 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31883 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31884 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31886 * doc/invoke.texi (-mneon-for-64bits): Document.
31888 2013-03-21 Richard Biener <rguenther@suse.de>
31890 PR tree-optimization/39326
31891 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31892 (sort_bbs_in_loop_postorder_cmp): New function.
31893 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31895 2013-03-21 Richard Biener <rguenther@suse.de>
31897 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31898 (vect_insert_into_interleaving_chain): Likewise.
31899 (vect_drs_dependent_in_basic_block): Inline ...
31900 (vect_slp_analyze_data_ref_dependence): ... here. New function,
31902 (vect_analyze_data_ref_dependence): ... here. Simplify.
31903 (vect_check_interleaving): Simplify.
31904 (vect_analyze_data_ref_dependences): Likewise. Split out ...
31905 (vect_slp_analyze_data_ref_dependences): ... this new function.
31906 (dr_group_sort_cmp): New function.
31907 (vect_analyze_data_ref_accesses): Compute data-reference groups
31908 here instead of in vect_analyze_data_ref_dependence. Use
31909 a more efficient algorithm.
31910 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31911 vect_slp_analyze_data_ref_dependences. Call
31912 vect_analyze_data_ref_accesses earlier.
31913 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31914 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31915 (vect_slp_analyze_data_ref_dependences): New prototype.
31917 2013-03-21 Richard Biener <rguenther@suse.de>
31919 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31920 ref is stored in the loop.
31921 (find_refs_for_sm): Walk only over all stores.
31922 (store_motion_loop): Allocate from lim_bitmap_obstack.
31923 (store_motion): Likewise.
31925 2013-03-21 Richard Biener <rguenther@suse.de>
31927 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31928 Update virtual SSA form.
31930 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31932 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31933 * configure: Regenerate.
31934 * config.in: Regenerate.
31935 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31936 if !HAVE_LD_EH_FRAME_CIEV3.
31938 2013-03-21 Richard Biener <rguenther@suse.de>
31940 * tree-cfg.c (verify_expr_no_block): New function.
31941 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31942 nor DECL_VALUE_EXPR have locations with associated blocks.
31943 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31944 (clear_unused_block_pointer): Remove code dealing with
31945 blocks in DECL_DEBUG_EXPR locations.
31947 2013-03-21 Richard Biener <rguenther@suse.de>
31949 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31950 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
31951 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31952 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31953 instead of DECL_DEBUG_EXPR_IS_FROM.
31954 * gimplify.c (gimplify_modify_expr): Likewise.
31955 * tree-cfg.c (verify_expr_location_1): Likewise.
31956 * tree-complex.c (create_one_component_var): Likewise.
31957 * tree-sra.c (create_access_replacement): Likewise.
31958 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31959 (clear_unused_block_pointer): Likewise.
31960 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31961 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31962 * var-tracking.c (var_debug_decl): Likewise.
31963 (track_expr_p): Likewise.
31964 * tree-inline.c (add_local_variables): Likewise. Set
31965 DECL_HAS_DEBUG_EXPR_P after copying it.
31966 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31967 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
31969 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
31972 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31973 * configure: Regenerate.
31974 * config.in: Regenerate.
31975 * config/i386/i386.md (*movdf_internal): Use
31976 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31977 movd instead of movq mnemonic for interunit moves.
31978 (*movdi_internal): Ditto.
31980 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31982 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31983 (abd<mode>_3): New pattern.
31984 (aba<mode>_3): New pattern.
31985 (fabd<mode>_3): New pattern.
31987 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31989 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31990 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31991 occurrence of REGISTER_PREFIX as its empty string.
31993 2013-03-20 Jeff Law <law@redhat.com>
31995 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31996 addititional equivalences for equality comparisons between an SSA_NAME
31997 and a constant where the SSA_NAME was set from a widening conversion.
31999 2013-03-20 Walter Lee <walt@tilera.com>
32001 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32003 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32005 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32006 depending on type attribute.
32007 (*movti_internal): Ditto.
32008 (*movtf_internal): Ditto.
32009 (*movxf_internal): Ditto.
32010 (*movdf_internal): Ditto.
32011 (*movsf_internal): Ditto.
32013 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32015 * config/i386/i386.md (*movti_internal): Set prefix attribute to
32016 maybe_vex for sselog1 and ssemov types.
32017 (*movdi_internal): Reorder operand constraints.
32018 (*movsi_internal): Ditto. Set prefix attribute to
32019 maybe_vex for sselog1 and ssemov types.
32020 (*movtf_internal): Set prefix attribute to maybe_vex
32021 for sselog1 and ssemov types.
32022 (*movdf_internal): Ditto. Set prefix_data16 attribute for
32023 DImode ssemov types. Reorder operand constraints.
32024 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
32025 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
32026 attribute for SImode ssemov types. Reorder operand constraints.
32028 2013-03-20 Martin Jambor <mjambor@suse.cz>
32030 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32031 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32033 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
32035 * config/rs6000/predicates.md (indexed_address, update_address_mem
32036 update_indexed_address_mem): New predicates.
32037 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32038 attribute for load/store instructions.
32039 * config/rs6000/dfp.md (movsd_store): Likewise.
32040 (movsd_load): Likewise.
32041 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32042 (unnamed HI->DI extend define_insn): Likewise.
32043 (unnamed SI->DI extend define_insn): Likewise.
32044 (unnamed QI->SI extend define_insn): Likewise.
32045 (unnamed QI->HI extend define_insn): Likewise.
32046 (unnamed HI->SI extend define_insn): Likewise.
32047 (unnamed HI->SI extend define_insn): Likewise.
32048 (extendsfdf2_fpr): Likewise.
32049 (movsi_internal1): Likewise.
32050 (movsi_internal1_single): Likewise.
32051 (movhi_internal): Likewise.
32052 (movqi_internal): Likewise.
32053 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32054 attribute for load/store instructions.
32055 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32057 (mov<mode>_softfloat): Likewise.
32058 (mov<mode>_hardfloat32): Likewise.
32059 (mov<mode>_hardfloat64): Likewise.
32060 (mov<mode>_softfloat64): Likewise.
32061 (movdi_internal32): Likewise.
32062 (movdi_internal64): Likewise.
32063 (probe_stack_<mode>): Likewise.
32065 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
32067 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32068 floating point, and decimal floating point to reload iterator.
32070 * config/rs6000/constraints.md (wl constraint): New constraints to
32071 return FLOAT_REGS if certain options are used to reduce the number
32072 of separate patterns that exist in the file.
32073 (wx constraint): Likewise.
32074 (wz constraint): Likewise.
32076 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32077 -mdebug=reg, print wg, wl, wx, and wz constraints.
32078 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32079 Initialize the reload functions for 64-bit binary/decimal floating
32081 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32082 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32083 create the buffer on the stack to overcome not having a 32-bit
32085 (rs6000_emit_move): Likewise.
32086 (rs6000_secondary_memory_needed_rtx): Likewise.
32087 (rs6000_alloc_sdmode_stack_slot): Likewise.
32088 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32089 via xxlxor, just like DFmode 0.0.
32091 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32092 define as 1 if we are running on a power7 or newer.
32093 (enum r6000_reg_class_enum): Add new constraints.
32095 * config/rs6000/dfp.md (movsd): Delete, combine with binary
32096 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32097 with other moves by using conditional constraits (wg). Use LFIWZX
32098 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
32099 (movsd splitter): Likewise.
32100 (movsd_hardfloat): Likewise.
32101 (movsd_softfloat): Likewise.
32103 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32104 binary and decimal floating point moves.
32105 (fmove_ok): New attributes to combine binary and decimal floating
32106 point moves, and to combine power6x (mfpgpr) moves along normal
32108 (real_value_to_target): Likewise.
32109 (f32_lr): Likewise.
32110 (f32_lm): Likewise.
32111 (f32_li): Likewise.
32112 (f32_sr): Likewise.
32113 (f32_sm): Likewise.
32114 (f32_si): Likewise.
32115 (movsf): Combine binary and decimal floating point moves. Combine
32116 power6x (mfpgpr) moves with other moves by using conditional
32117 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
32118 (mov<mode> for SFmode/SDmode); Likewise.
32119 (SFmode/SDmode splitters): Likewise.
32120 (movsf_hardfloat): Likewise.
32121 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32122 (movsf_softfloat): Likewise.
32123 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32125 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32126 wx and wz constraints.
32128 * config/rs6000/constraints.md (wg constraint): New constraint to
32129 return FLOAT_REGS if -mmfpgpr (power6x) was used.
32131 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32134 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32135 -mdebug=reg, print wg, wl, wx, and wz constraints.
32136 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32137 Initialize the reload functions for 64-bit binary/decimal floating
32139 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32140 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32141 create the buffer on the stack to overcome not having a 32-bit
32143 (rs6000_emit_move): Likewise.
32144 (rs6000_secondary_memory_needed_rtx): Likewise.
32145 (rs6000_alloc_sdmode_stack_slot): Likewise.
32146 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32147 via xxlxor, just like DFmode 0.0.
32149 * config/rs6000/dfp.md (movdd): Delete, combine with binary
32150 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32151 with other moves by using conditional constraits (wg). Use LFIWZX
32152 and STFIWX for loading SDmode on power7.
32153 (movdd splitters): Likewise.
32154 (movdd_hardfloat32): Likewise.
32155 (movdd_softfloat32): Likewise.
32156 (movdd_hardfloat64_mfpgpr): Likewise.
32157 (movdd_hardfloat64): Likewise.
32158 (movdd_softfloat64): Likewise.
32160 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32161 64-bit binary and decimal floating point moves.
32162 (FMOVE64X): Likewise.
32163 (movdf): Combine 64-bit binary and decimal floating point moves.
32164 Combine power6x (mfpgpr) moves with other moves by using
32165 conditional constraits (wg).
32166 (mov<mode> for DFmode/DDmode): Likewise.
32167 (DFmode/DDmode splitters): Likewise.
32168 (movdf_hardfloat32): Likewise.
32169 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32170 (movdf_softfloat32): Likewise.
32171 (movdf_hardfloat64_mfpgpr): Likewise.
32172 (movdf_hardfloat64): Likewise.
32173 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32174 (movdf_softfloat64): Likewise.
32175 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32176 (reload_<mode>_load): Move to later in the file so they aren't in
32177 the middle of the floating point move insns.
32178 (reload_<mode>_store): Likewise.
32180 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32183 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32184 constraint if -mdebug=reg.
32185 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32186 Enable using dd reload support if needed.
32188 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32189 binary and decimal floating point moves in rs6000.md.
32190 (movtd_internal): Likewise.
32192 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32193 decimal floating point moves.
32195 (movtf_internal): Likewise.
32196 (mov<mode>_internal, TDmode/TFmode): Likewise.
32197 (movtf_softfloat): Likewise.
32198 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32200 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32201 movdi_internal64, using wg constraint for move direct operations.
32202 (movdi_internal64): Likewise.
32204 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32205 MODES_TIEABLE_P for selected modes. Print the numerical value of
32206 the various virtual registers. Use GPR/FPR first/last values,
32207 instead of hard coding the register numbers. Print which modes
32208 have reload functions registered.
32209 (rs6000_option_override_internal): If -mdebug=reg, trace the options
32210 settings before/after setting cpu, target and subtarget settings.
32211 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32212 and for secondary reload failures in rs6000_secondary_reload_inner.
32213 (rs6000_secondary_reload_fail): Likewise.
32214 (rs6000_secondary_reload_inner): Likewise.
32216 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32217 macros for first/last GPR and FPR registers.
32218 (LAST_GPR_REGNO): Likewise.
32219 (FIRST_FPR_REGNO): Likewise.
32220 (LAST_FPR_REGNO): Likewise.
32222 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32223 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32224 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32225 (vcond<mode><mode>): Likewise.
32226 (vcondu<mode><mode>): Likewise.
32227 (vector_gtu<mode>): Likewise.
32228 (vector_gte<mode>): Likewise.
32229 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32230 to prevent the compiler from converting DImode operations to TImode.
32231 (ior<mode>3): Likewise.
32232 (and<mode>3): Likewise.
32233 (one_cmpl<mode>2): Likewise.
32234 (nor<mode>3): Likewise.
32235 (andc<mode>3): Likewise.
32237 * config/rs6000/constraints.md (wt constraint): New constraint
32238 that returns VSX_REGS if TImode is allowed in VSX registers.
32240 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32241 constant under VSX.
32243 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32244 similar to TImode, but it is restricted to being in the GPRs.
32246 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32247 TImode to occupy a single VSX register.
32249 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32250 -mvsx-timode for power7/power8.
32251 (power7 cpu): Likewise.
32252 (power8 cpu): Likewise.
32254 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32255 sure that TFmode/TDmode take up two registers if they are ever
32256 allowed in the upper VSX registers.
32257 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32259 (rs6000_init_hard_regno_mode_ok): Likewise.
32260 (rs6000_debug_reg_global): Add debugging for PTImode and wt
32261 constraint. Print if LRA is turned on.
32262 (rs6000_option_override_internal): Give an error if -mvsx-timode
32263 and VSX is not enabled.
32264 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
32265 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32266 to reg+offset addressing. Use PTImode when checking offset
32267 addresses for validity.
32268 (reg_offset_addressing_ok_p): Likewise.
32269 (rs6000_legitimate_offset_address_p): Likewise.
32270 (rs6000_legitimize_address): Likewise.
32271 (rs6000_legitimize_reload_address): Likewise.
32272 (rs6000_legitimate_address_p): Likewise.
32273 (rs6000_eliminate_indexed_memrefs): Likewise.
32274 (rs6000_emit_move): Likewise.
32275 (rs6000_secondary_reload): Likewise.
32276 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
32277 reloads to fpr registers to continue to use reg+offset addressing,
32278 but 64-bit reloads to altivec registers need reg+reg addressing.
32279 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32280 it. Treat LO_SUM like a PLUS operation.
32281 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32282 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32283 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32284 registers to share a register with a smaller sized type, since VSX
32285 puts scalars in the upper 64-bits.
32286 (print_operand): Add support for PTImode.
32287 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32288 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32289 registers, but don't have arithmetic support.
32290 (rs6000_memory_move_cost): Add test for VSX.
32291 (rs6000_opt_masks): Add -mvsx-timode.
32293 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32296 (VSr): Use wt constraint for TImode.
32297 (VSv): Drop TImode support.
32298 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32299 (vsx_movti_64bit): Likewise.
32300 (vsx_movti_32bit): Likewise.
32301 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32302 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32303 one '?' on the appropriate output constraint. Do not allow TImode
32304 logical operations on 32-bit systems.
32305 (vsx_ior<mode>3): Likewise.
32306 (vsx_xor<mode>3): Likewise.
32307 (vsx_one_cmpl<mode>2): Likewise.
32308 (vsx_nor<mode>3): Likewise.
32309 (vsx_andc<mode>3): Likewise.
32310 (vsx_concat_<mode>): Likewise.
32311 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32313 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32314 OPTION_MASK_VSX_TIMODE.
32315 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32316 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32318 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32319 (TI2 iterator): New iterator for TImode, PTImode.
32320 (wd mode attribute): Add values for vector types.
32321 (movti_string): Replace TI move operations with operations for TImode
32322 and PTImode. Add support for TImode being allowed in VSX registers.
32323 (mov<mode>_string, TImode/PTImode): Likewise.
32324 (movti_ppc64): Likewise.
32325 (mov<mode>_ppc64, TImode/PTImode): Likewise.
32326 (TI mode splitters): Likewise.
32328 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32331 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
32333 PR tree-optimization/56355
32334 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32335 Also handle integers with undefined overflow.
32337 2013-03-20 Catherine Moore <clm@codesourcery.com>
32338 Maciej W. Rozycki <macro@codesourcery.com>
32339 Tom de Vries <tom@codesourcery.com>
32340 Nathan Sidwell <nathan@codesourcery.com>
32341 Iain Sandoe <iain@codesourcery.com>
32342 Nathan Froyd <froydnj@codesourcery.com>
32343 Chao-ying Fu <fu@mips.com>
32345 * doc/extend.texi: (micromips, nomicromips, nocompression):
32346 Document new function attributes.
32347 * doc/invoke.texi (minterlink-compressed, mmicromips,
32348 m14k, m14ke, m14kec): Document new options.
32349 (minterlink-mips16): Update documentation.
32350 * doc/md.texi (ZC, ZD): Document new constraints.
32351 * configure.ac (gcc_cv_as_micromips): Check if linker
32352 supports the .set micromips directive.
32353 * configure: Regenerate.
32354 * config.in: Regenerate.
32355 * config/mips/mips-tables.opt: Regenerate.
32356 * config/mips/micromips.md: New file.
32357 * constraints.md (ZC, ZD): New constraints.
32358 * config/mips/predicates.md (movep_src_register): New predicate.
32359 (movep_src_operand): New predicate.
32360 (non_volatile_mem_operand): New predicate.
32361 * config/mips/mips.md (multimem): New type.
32362 (length): Differentiate between 17-bit and 18-bit branch offsets.
32363 (MOVEP1, MOVEP2): New mode iterator.
32364 (mov_<load>l): Use ZC constraint.
32365 (mov_<load>r): Likewise.
32366 (mov_<store>l): Likewise.
32367 (mov_<store>r): Likewise.
32368 (*branch_equality<mode>_inverted): Add microMIPS support.
32369 (*branch_equality<mode>): Likewise.
32370 (*jump_absolute): Likewise.
32371 (indirect_jump_<mode>): Likewise.
32372 (tablejump_<mode>): Likewise.
32373 (<optab>_internal): Likewise.
32374 (sibcall_internal): Likewise.
32375 (sibcall_value_internal): Likewise.
32376 (prefetch): Use constraint ZD.
32377 * config/mips/mips.opt (minterlink-compressed): New option.
32378 (minterlink-mips16): Now an alias for minterlink-compressed.
32379 (mmicromips): New option.
32380 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32381 (compare_and_swap_12): Likewise.
32382 (sync_add<mode>): Likewise.
32383 (sync_<optab>_12): Likewise.
32384 (sync_old_<optab>_12): Likewise.
32385 (sync_new_<optab>_12): Likewise.
32386 (sync_nand_12): Likewise.
32387 (sync_old_nand_12): Likewise.
32388 (sync_new_nand_12): Likewise.
32389 (sync_sub<mode>): Likewise.
32390 (sync_old_add<mode>): Likewise.
32391 (sync_old_sub<mode>): Likewise.
32392 (sync_new_add<mode>): Likewise.
32393 (sync_new_sub<mode>): Likewise.
32394 (sync_<optab><mode>): Likewise.
32395 (sync_old_<optab><mode>): Likewise.
32396 (sync_new_<optab><mode>): Likewise.
32397 (sync_nand<mode>): Likewise.
32398 (sync_old_nand<mode>): Likewise.
32399 (sync_new_nand<mode>): Likewise.
32400 (sync_lock_test_and_set<mode>): Likewise.
32401 (test_and_set_12): Likewise.
32402 (atomic_compare_and_swap<mode>): Likewise.
32403 (atomic_exchange<mode>_llsc): Likewise.
32404 (atomic_fetch_add<mode>_llsc): Likewise.
32405 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32406 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32407 (umips_save_restore_pattern_p): Likewise.
32408 (umips_load_store_pair_p): Likewise.
32409 (umips_output_load_store_pair): Likewise.
32410 (umips_movep_target_p): Likewise.
32411 (umips_12bit_offset_address_p): Likewise.
32412 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32413 (mips_base_mips16): Rename this...
32414 (mips_base_compression_flags): ...to this. Update all uses.
32415 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32416 (mips_mips16_decl_p): Delete.
32417 (mips_nomips16_decl_p): Delete.
32418 (mips_get_compress_on_flags): New function.
32419 (mips_get_compress_off_flags): New function.
32420 (mips_get_compress_mode): New function.
32421 (mips_get_compress_on_name): New function.
32422 (mips_get_compress_off_name): New function.
32423 (mips_insert_attributes): Support multiple compression types.
32424 (mips_merge_decl_attributes): Likewise.
32425 (umips_12bit_offset_address_p): New function.
32426 (mips_start_function_definition): Emit .set micromips directive.
32427 (mips_call_may_need_jalx_p): New function.
32428 (mips_function_ok_for_sibcall): Add microMIPS support.
32429 (mips_print_operand_punctuation): Support short delay slots and
32431 (umips_swm_mask, umips_swm_encoding): New.
32432 (umips_build_save_restore): New function.
32433 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32434 (was_mips16_p): Remove.
32435 (old_compression_mode): New.
32436 (mips_set_compression_mode): New function.
32437 (mips_set_current_function): Add microMIPS support.
32438 (mips_option_override): Likewise.
32439 (umips_save_restore_pattern_p): New function.
32440 (umips_output_save_restore): New function.
32441 (umips_load_store_pair_p_1): New function.
32442 (umips_load_store_pair_p): New function.
32443 (umips_output_load_store_pair_1): New function.
32444 (umips_output_load_store_pair): New function.
32445 (umips_movep_target_p) New function.
32446 (mips_prepare_pch_save): Add microMIPS support.
32447 * config/mips/mips.h (TARGET_COMPRESSION): New.
32448 (TARGET_CPU_CPP_BUILTINS): Update macro
32449 to use new compression flags and to support microMIPS.
32450 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32451 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32452 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32453 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32454 (ASM_SPEC): Support mmicromips and mno-micromips.
32455 (M16STORE_REG_P): New macro.
32456 (MIPS_CALL): Support TARGET_MICROMIPS.
32457 (MICROMIPS_J): New macro.
32458 (mips_base_mips16): Rename this...
32459 (mips_base_compression_flags): ...to this.
32460 (UMIPS_12BIT_OFFSET_P): New macro.
32461 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32462 (MULTILIB_DIRNAMES): Likewise.
32463 2013-03-20 Richard Biener <rguenther@suse.de>
32465 PR tree-optimization/56661
32466 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32467 the result does not have to be distinct.
32469 2013-03-20 Richard Biener <rguenther@suse.de>
32471 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32474 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32475 Steven Bosscher <steven@gcc.gnu.org>
32477 PR rtl-optimization/56605
32478 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32480 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32483 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32484 that require movd instead of movq.
32486 2013-03-20 Richard Biener <rguenther@suse.de>
32488 * tree-ssa-structalias.c (struct variable_info): Add pointer
32489 to the first field of an aggregate with sub-vars. Make
32490 this and the pointer to the next subfield its ID.
32491 (vi_next): New function.
32492 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32493 storedanything_id, integer_id): Increment by one.
32494 (new_var_info, get_call_vi, lookup_call_clobber_vi,
32495 get_call_clobber_vi): Adjust.
32496 (solution_set_expand): Simplify and speedup.
32497 (solution_set_add): Inline into ...
32498 (set_union_with_increment): ... this. Adjust accordingly.
32499 (do_sd_constraint): Likewise.
32500 (do_ds_constraint): Likewise.
32501 (do_complex_constraint): Simplify.
32502 (build_pred_graph): Adjust.
32503 (solve_graph): Likewise. Simplify and speedup.
32504 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32505 get_constraint_for_component_ref, get_constraint_for_1,
32506 first_vi_for_offset, first_or_preceding_vi_for_offset,
32507 create_function_info_for, create_variable_info_for_1,
32508 create_variable_info_for, intra_create_variable_infos): Adjust.
32509 (init_base_vars): Push NULL for ID zero.
32510 (compute_points_to_sets): Adjust.
32512 2013-03-20 Richard Biener <rguenther@suse.de>
32514 * cfgloop.c (verify_loop_structure): Streamline and avoid
32515 ICEing on corrupt loop tree.
32516 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32519 2013-03-20 Richard Biener <rguenther@suse.de>
32521 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32522 check whether an SSA update is needed.
32524 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
32526 * config/mips/constraints.md (T): Rename to...
32530 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32531 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32533 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32535 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32536 (*subsi3_carryin_uxtw): Likewise.
32538 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32540 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32541 (*rorsi3_insn_uxtw): Likewise.
32543 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32545 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32546 (*extrsi5_insn_uxtw): Likewise.
32548 2013-03-19 Richard Biener <rguenther@suse.de>
32550 PR tree-optimization/56273
32551 * passes.c (init_optimization_passes): Move second VRP after DOM.
32553 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
32555 * config/i386/i386.md (*movti_internal): Merge from
32556 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
32557 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
32558 nox64 isa attributes.
32560 2013-03-18 Richard Biener <rguenther@suse.de>
32562 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32564 (merge_node_constraints): Likewise.
32565 (build_succ_graph): Likewise.
32566 (valid_graph_edge): Inline into single caller.
32567 (unify_nodes): Likewise. Use bitmap_set_bit return value
32569 (scc_visit): Fix formatting and variable use.
32570 (do_sd_constraint): Use gcc_checking_assert.
32571 (do_ds_constraint): Likewise.
32572 (do_complex_constraint): Likewise.
32573 (condense_visit): Likewise. Cleanup.
32574 (dump_pred_graph): New function.
32575 (perform_var_substitution): Dump the pred-graph before
32576 variable substitution.
32577 (find_equivalent_node): Use gcc_checking_assert.
32578 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32580 2013-03-18 Richard Biener <rguenther@suse.de>
32582 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32583 Remove cond_expr_stmt_list argument and do not gimplify the
32585 (vect_loop_versioning): Adjust.
32586 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32587 Cleanup to use less temporaries.
32588 (vect_create_data_ref_ptr): Cleanup.
32590 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32592 PR tree-optimization/56635
32593 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32594 require types_compatible_p types.
32596 2013-03-18 Nick Clifton <nickc@redhat.com>
32598 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32599 spurious backslash.
32601 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32602 Add missing line to comment describing function.
32604 2013-03-18 Richard Biener <rguenther@suse.de>
32606 PR tree-optimization/56210
32607 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32608 Handle string / character search functions.
32609 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32611 2013-03-18 Richard Biener <rguenther@suse.de>
32613 PR middle-end/56483
32614 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32615 and implement properly.
32616 * gimple.h (gimple_cond_single_var_p): Remove.
32618 2013-03-18 Richard Biener <rguenther@suse.de>
32620 * tree-data-ref.h (find_data_references_in_loop): Declare.
32621 * tree-data-ref.c (get_references_in_stmt): Use a stack
32622 vector pre-allocated in the callers.
32623 (find_data_references_in_stmt): Adjust.
32624 (graphite_find_data_references_in_stmt): Likewise.
32625 (create_rdg_vertices): Likewise.
32626 (find_data_references_in_loop): Export.
32627 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32628 Compute dependences here...
32629 (vect_analyze_data_refs): ...not here. When we encounter
32630 a non-vectorizable data reference in basic-block vectorization
32631 truncate the data reference vector. Do not bother to
32632 fixup data-dependence information for gather loads.
32633 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32634 of data references, as reported.
32636 2013-03-18 Richard Biener <rguenther@suse.de>
32638 PR tree-optimization/3713
32639 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
32640 has_constants and expr.
32641 (stmt_has_constants): Properly valueize SSA names when deciding
32642 whether the stmt has constants.
32644 2013-03-18 Richard Biener <rguenther@suse.de>
32646 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32647 whole function when there is nothing to do.
32648 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32649 * tree-vectorizer.c (vectorize_loops): Update virtual and
32650 loop-closed SSA once.
32651 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32653 2013-03-18 Richard Biener <rguenther@suse.de>
32655 PR middle-end/56113
32656 * domwalk.c (bb_postorder): New global static.
32657 (cmp_bb_postorder): New function.
32658 (walk_dominator_tree): Replace scheme imposing an order for
32659 visiting dominator sons by one sorting them at the time they
32660 are pushed on the stack.
32662 2013-03-18 Richard Biener <rguenther@suse.de>
32664 PR tree-optimization/39326
32665 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32666 (struct mem_ref): Replace mem member with ao_ref typed member.
32667 (MEM_ANALYZABLE): Adjust.
32668 (memref_eq): Likewise.
32669 (mem_ref_alloc): Likewise.
32670 (gather_mem_refs_stmt): Likewise.
32671 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32672 (execute_sm_if_changed_flag_set): Adjust.
32673 (execute_sm): Likewise.
32674 (ref_always_accessed_p): Likewise.
32675 (refs_independent_p): Likewise.
32676 (can_sm_ref_p): Likewise.
32678 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32681 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32682 return 1 even for !unsignedp.
32684 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32686 * config/i386/i386.md (isa): Add x64 and nox64.
32687 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32688 (*pushtf): Enable *roF alternative for x64 isa only.
32689 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
32690 mode attribute of integer alternatives to DImode for TARGET_64BIT.
32691 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
32692 (*movtf_internal): Merge from *movtf_internal_rex64 and
32693 *movtf_internal_sse. Use x64 and nox64 isa attributes.
32694 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
32695 nox64 isa attributes.
32696 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
32697 nox64 isa attributes.
32698 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32700 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32702 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32704 2013-03-17 Jakub Jelinek <jakub@redhat.com>
32707 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32708 class names. Remove trailing comma after "ALL_REGS".
32710 2013-03-16 Jan Hubicka <jh@suse.cz>
32712 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32713 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32714 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32715 of cgraph_get_create_node.
32716 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32718 2013-03-16 Jason Merrill <jason@redhat.com>
32721 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32722 with DW_AT_default_value.
32724 2013-03-16 Jakub Jelinek <jakub@redhat.com>
32726 * BASE-VER: Set to 4.9.0.
32728 2013-03-14 Andi Kleen <ak@linux.intel.com>
32731 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32732 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32733 Document _x* TSX intrinsics.
32735 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
32736 David Holsgrove <david.holsgrove@xilinx.com>
32738 * configure.ac: Add MicroBlaze TLS support detection.
32739 * configure: Regenerate.
32740 * config/microblaze/microblaze-protos.h
32741 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32742 symbol_mentioned_p, label_mentioned_p): Add prototypes.
32743 * config/microblaze/microblaze.c (microblaze_address_type): Add
32744 ADDRESS_TLS and tls_reloc address types.
32745 (microblaze_address_info): Add tls_reloc.
32746 (TARGET_HAVE_TLS): Define.
32747 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32748 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32749 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32750 load_tls_operand, microblaze_call_tls_get_addr,
32751 microblaze_legitimize_tls_address): New functions.
32752 (microblaze_classify_unspec): Handle UNSPEC_TLS.
32753 (get_base_reg): Use microblaze_tls_symbol_p.
32754 (microblaze_classify_address): Handle TLS.
32755 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32756 label_mentioned_p and microblaze_tls_referenced_p.
32757 (microblaze_legitimize_address): Handle TLS.
32758 (microblaze_address_insns): Handle ADDRESS_TLS.
32759 (pic_address_needs_scratch): Handle TLS.
32760 (print_operand_address): Handle TLS.
32761 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32762 (microblaze_expand_move): Handle TLS.
32763 (microblaze_legitimate_constant_p): Check
32764 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32765 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32766 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32767 (PIC_OFFSET_TABLE_REGNUM): Set.
32768 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32769 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32770 (addsi3, movsi_internal2, movdf_internal): Update constraints
32771 * config/microblaze/predicates.md (arith_plus_operand): Define
32772 (move_operand): Redefine as move_src_operand,
32773 check microblaze_tls_referenced_p.
32775 2013-03-14 Ian Bolton <ian.bolton@arm.com>
32777 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32778 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32780 2013-03-14 Ian Bolton <ian.bolton@arm.com>
32782 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32785 2013-03-14 Jakub Jelinek <jakub@redhat.com>
32787 PR tree-optimization/53265
32788 * common.opt (Waggressive-loop-optimizations): New option.
32789 * tree-ssa-loop-niter.c: Include tree-pass.h.
32790 (do_warn_aggressive_loop_optimizations): New function.
32791 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
32792 if number_of_latch_executions returned constant.
32793 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32794 early. If number_of_latch_executions returned constant, set
32795 nb_iterations_upper_bound back to it.
32796 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32798 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32799 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32801 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32802 (MULTILIB_OSDIRNAMES): Set.
32803 * genmultilib: If defaultosdirname doesn't start with :: , set
32804 defaultosdirname2 instead, clear it and emit two . multilib_raw
32805 entries instead of just one.
32807 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
32809 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32810 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32811 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32812 (SUBTARGET_OVERRIDE_OPTIONS): New.
32814 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
32817 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32818 (musermode): Convert to Var(TARGET_USERMODE).
32819 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32820 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32821 * config/sh/sh.c (sh_option_override): Use
32822 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32823 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32825 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32827 (udivsi3_i4_single, divsi3_i4_single): Use
32828 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32830 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
32832 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32835 2013-03-13 Richard Biener <rguenther@suse.de>
32837 PR tree-optimization/56608
32838 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32839 calls when vectorizing basic-blocks.
32841 2013-03-13 Jakub Jelinek <jakub@redhat.com>
32844 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32847 2013-03-12 Jakub Jelinek <jakub@redhat.com>
32849 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32851 2013-03-11 Jan Hubicka <jh@suse.cz>
32854 * lto-streamer-out.c (output_symbol_p): Skip references from
32855 constructors of external variables.
32857 2013-03-11 Jan Hubicka <jh@suse.cz>
32859 PR middle-end/56571
32860 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32862 * emit-rtl.c (verify_rtx_sharing): Likewise.
32863 (copy_insn_1): Likewise.
32864 * rtl.c (copy_rtx): Likewise.
32866 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
32869 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32870 output_operand_lossage message.
32872 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
32875 * arm.c (shift_op): Validate RTL pattern on the fly.
32876 (arm_print_operand, case 'S'): Don't use shift_operator to validate
32879 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32882 * config/pa/pa.md (call_value): Check for calls to powf and direct to
32883 new call patterns that clobber %fr12.
32884 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32885 split and postreload patterns.
32886 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32887 registers %fr12 and %fr12R as call used.
32889 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
32891 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32892 (canon_address, record_store, replace_read, check_mem_read_rtx,
32893 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32894 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32895 rest_of_handle_dse): Likewise.
32897 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
32899 PR middle-end/56524
32900 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32902 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32903 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32904 (save_optabs_if_changed): Replace with...
32905 (init_tree_optimization_optabs): ...this.
32906 * optabs.c (save_optabs_if_changed): Rename to...
32907 (init_tree_optimization_optabs): ...this. Take the optimization node
32908 as argument. Do nothing if the base optabs are already correct.
32909 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32910 to recompute optabs.
32911 * function.h (function): Remove optabs field.
32912 * function.c (invoke_set_current_function_hook): Call
32913 init_tree_optimization_optabs. Use the result to initialize
32916 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
32918 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32919 if GTMA_HAS_NO_INSTRUMENTATION.
32920 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32921 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32922 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32923 * gimple-pretty-print.c (dump_gimple_transaction): Handle
32924 GTMA_HAS_NO_INSTRUMENTATION.
32926 2013-03-08 Jakub Jelinek <jakub@redhat.com>
32928 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32931 2013-03-08 Marek Polacek <polacek@redhat.com>
32932 Jakub Jelinek <jakub@redhat.com>
32934 PR tree-optimization/56478
32935 * predict.c (is_comparison_with_loop_invariant_p): Change the
32936 type of loop_step to tree.
32937 (predict_loops): Adjust.
32938 (predict_iv_comparison): Perform the computations on double_ints.
32940 2013-03-08 Richard Biener <rguenther@suse.de>
32942 PR tree-optimization/56570
32943 * tree-cfg.c (verify_expr_location_1): Verify locations for
32945 * tree-sra.c (create_access_replacement): Strip locations
32946 from DECL_DEBUG_EXPRs.
32948 2013-03-08 Richard Biener <rguenther@suse.de>
32950 * tree-inline.c (expand_call_inline): Do not associate
32951 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32952 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32954 2013-03-08 Richard Biener <rguenther@suse.de>
32956 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32957 or block changes with -Og. Fix for location / block encoding
32958 changes and PHI arguments with locations.
32960 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
32962 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32964 (struct output_info): Likewise.
32965 (register_overhead): Remove bad gcc_assert.
32966 (bitmap_find_bit): If there is only a single bitmap element, do not
32967 count a miss as a search.
32968 (print_statistics): Update for counter type changes.
32969 (dump_bitmap_statistics): Likewise. Print headers such that they
32970 are properly lined up with the printed counters.
32972 2013-03-07 Jakub Jelinek <jakub@redhat.com>
32974 PR tree-optimization/56559
32975 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32976 check that it has only a single use.
32978 2013-03-07 Richard Biener <rguenther@suse.de>
32980 * doc/invoke.texi (fwhole-program): Discourage use in combination
32983 2013-03-06 Jakub Jelinek <jakub@redhat.com>
32985 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32987 PR tree-optimization/56539
32988 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32989 instead of GSI_CONTINUE_LINKING as last argument to
32990 force_gimple_operand_gsi. Adjust function comment.
32992 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32995 PR middle-end/56548
32996 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32997 promoted mode, convert the result back to the original mode.
32999 2013-03-06 Richard Biener <rguenther@suse.de>
33001 PR middle-end/56294
33002 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33003 (insert_updated_phi_nodes_compare_uids): New function.
33004 (update_ssa): Sort symbols_to_rename after UID before
33005 traversing it to insert PHI nodes.
33007 2013-03-06 Richard Biener <rguenther@suse.de>
33009 PR middle-end/50494
33010 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33011 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33014 2013-02-13 Richard Biener <rguenther@suse.de>
33017 * varasm.c (output_constant_def_1): Get the decl representing
33018 the constant as argument.
33019 (output_constant_def): Wrap output_constant_def_1.
33020 (make_decl_rtl): Use output_constant_def_1 with the decl
33021 representing the constant.
33022 (build_constant_desc): Optionally re-use a decl already
33023 representing the constant.
33024 (tree_output_constant_def): Adjust.
33026 2013-03-06 Joey Ye <joey.ye@arm.com>
33029 * gcc.c (convert_white_space): New function.
33030 (main): Handles white space in function name.
33032 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
33035 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33036 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
33037 to SH_DIV_CALL_TABLE for TARGET_SH2.
33038 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33040 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33041 call-table options.
33043 2013-03-05 Sterling Augustine <saugustine@google.com>
33044 Cary Coutant <ccoutant@google.com>
33047 * dwarf2out.c (resolve_addr): Don't call
33048 remove_loc_list_addr_table_entries a second time for the same
33051 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33054 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33055 (avoid_complex_debug_insns): New function.
33056 (expand_debug_locations): Call it.
33058 PR rtl-optimization/56484
33059 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33060 lifetimes of hard registers on small register class machines.
33062 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33064 * config/microblaze/microblaze-protos.h: Rename
33065 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33066 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33068 (microblaze_fast_interrupt_function_p): New function.
33069 (microblaze_is_interrupt_handler): Rename to
33070 microblaze_is_interrupt_variant and add fast_interrupt check.
33071 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33072 (save_restore_insns): Likewise.
33073 (compute_frame_size): Likewise.
33074 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33075 (microblaze_globalize_label): Likewise.
33076 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33077 * config/microblaze/microblaze.md: Use wrapper
33078 microblaze_is_interrupt_variant.
33080 2013-03-05 Kai Tietz <ktietz@redhat.com>
33082 * sdbout.c (sdbout_one_type): Switch to current function's section
33083 supporting cold/hot.
33085 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33087 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33090 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33092 PR middle-end/56461
33093 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33094 if VALGRIND_GET_VBITS is defined, temporarily make object
33095 memory all defined, and restore previous valgrind addressability
33096 and definability afterwards. Free this_object at the end.
33098 PR middle-end/56461
33099 * lra.c (lra): Call lra_clear_live_ranges if live_p,
33100 right before calling lra_create_live_ranges, also call it
33101 when clearing live_p. Only call lra_clear_live_ranges
33102 at the end if live_p.
33104 PR middle-end/56461
33105 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33107 2013-03-05 Richard Biener <rguenther@suse.de>
33109 PR tree-optimization/56521
33110 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33113 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
33116 * except.h (remove_unreachable_eh_regions): New prototype.
33117 * except.c (remove_eh_handler_splicer): New function, split out
33118 of remove_eh_handler.
33119 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
33120 warning about running it on many EH regions one at a time.
33121 (remove_unreachable_eh_regions_worker): New function, walk the
33122 EH tree in depth-first order and remove non-marked regions.
33123 (remove_unreachable_eh_regions): New function.
33124 * tree-eh.c (mark_reachable_handlers): New function, split out
33125 from remove_unreachable_handlers.
33126 (remove_unreachable_handlers): Use mark_reachable_handlers and
33127 remove_unreachable_eh_regions.
33128 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33129 and remove_unreachable_eh_regions.
33131 2013-03-05 Richard Biener <rguenther@suse.de>
33133 PR middle-end/56525
33134 * loop-init.c (fix_loop_structure): Remove loops in two stages,
33135 not freeing them until the end.
33137 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33139 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33141 2013-03-05 Richard Biener <rguenther@suse.de>
33143 PR tree-optimization/56270
33144 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33145 of loads after scheduling an SLP instance.
33147 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33149 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33151 (check_gcc_parallelize): Run guality.exp as a separate job from
33152 vect.exp with unsorted.exp and $(dg_target_exps) separately from
33153 struct-layout-1.exp with stackalign.exp.
33155 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33157 PR middle-end/56461
33158 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33159 load_index sbitmap even if some bit in it isn't set.
33161 PR middle-end/56461
33162 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33163 (discover_iteration_bound_by_body_walk): Change queues to
33164 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
33165 spelling in comment. Call safe_push on queues[bound_index] directly.
33166 Release queues[queue_index] in every iteration unconditionally.
33167 Release bounds vector.
33169 PR middle-end/56461
33170 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33171 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33172 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33175 2013-03-05 Richard Biener <rguenther@suse.de>
33178 * tree-inline.c (remap_blocks_to_null): New function.
33179 (expand_call_inline): When expanding a call stmt without
33180 an associated block inline remap all callee blocks to NULL.
33182 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33184 PR rtl-optimization/56494
33185 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33186 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33187 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33189 PR middle-end/56461
33190 * sel-sched-ir.c (free_sched_pools): Release
33191 succs_info_pool.stack[succs_info_pool.max_top] vectors too
33192 if succs_info_pool.max_top isn't -1.
33195 * opts.c (opts_obstack, opts_concat): Moved to...
33196 * opts-common.c (opts_obstack, opts_concat): ... here.
33198 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33200 PR middle-end/56461
33201 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33203 2013-03-04 Martin Jambor <mjambor@suse.cz>
33205 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33206 all appropriate places.
33208 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
33210 PR tree-optimization/56424
33211 * ipa-split.c (split_function): Do not set the RSO flag if result is
33212 not by reference and its type is a register type.
33214 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
33216 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33217 (microblaze_legitimate_pic_operand): Likewise
33218 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33219 new function microblaze_legitimate_pic_operand
33220 * config/microblaze/microblaze-protos.h
33221 (microblaze_legitimate_pic_operand): Declare.
33223 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33225 * config/microblaze/predicates.md (call_insn_simple_operand):
33226 New predicate for supported rtx code types.
33227 * config/microblaze/microblaze.md (call_internal1): Use
33228 call_insn_simple_operand predicate.
33230 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33232 PR middle-end/56461
33233 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33234 partitions.ordered_remove.
33236 PR middle-end/56461
33237 * tree-vect-stmts.c (vectorizable_conversion): Don't call
33238 vec_oprnds0.create (1) for modifier == NONE.
33240 PR middle-end/56461
33241 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33242 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33243 vec_oprnds1 right before pushing anything to it for
33246 PR middle-end/56461
33247 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33248 set nbbs to 0 instead of having separate code path.
33249 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33250 instead of false as last argument if returning NULL.
33252 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
33254 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33255 the attribute is now called "target" instead of "option".
33256 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33257 * doc/tm.texi.in (Target Attributes): Likewise document the correct
33258 attribute/pragma name for TARGET_OPTION_VALID_P and
33259 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
33260 * doc/tm.texi: Regenerated.
33262 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
33264 * config/microblaze/microblaze.c:
33265 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33266 * config/microblaze/microblaze.h: Add -mxl-reorder to
33268 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33269 instructions emitted if TARGET_REORDER.
33270 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33271 or 0 for -m/-mno case, but initialises as 2 to detect default use case
33274 2013-03-01 Xinliang David Li <davidxl@google.com>
33276 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33279 2013-03-01 Jakub Jelinek <jakub@redhat.com>
33281 PR middle-end/56461
33282 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33283 vector even when returning true. Fix up function comment formatting.
33285 PR middle-end/56461
33286 * ira-build.c (ira_loop_nodes_count): New variable.
33287 (create_loop_tree_nodes): Initialize it.
33288 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33290 PR middle-end/56461
33291 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33292 method on dr_chain and result_chain.
33293 * tree-vect-stmts.c (vectorizable_store): Only call
33294 result_chain.create if j == 0.
33296 PR middle-end/56461
33297 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33298 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33299 before overwriting it.
33301 2013-03-01 Tobias Burnus <burnus@net-b.de>
33303 * doc/extended.texi (C Extensions): Change order in @menu
33305 (Other MIPS Built-in Functions): Move last MIPS entry before
33306 "picoChip Built-in Functions".
33307 (SH Built-in Functions): Move after RX Built-in Functions.
33308 * doc/gcc.texi (Introduction): Change order in @menu
33310 * doc/md.texi (Constraints): Ditto.
33311 * gty.texi (Type Information): Ditto.
33312 (User-provided marking routines for template types): Make
33314 * doc/invoke.texi (AArch64 Options): Move before
33315 "Adapteva Epiphany Options".
33317 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
33318 Jakub Jelinek <jakub@redhat.com>
33321 * asan.c (gate_asan): Lookup no_sanitize_address instead of
33322 no_address_safety_analysis attribute.
33323 * doc/extend.texi (no_address_safety_attribute): Rename to
33324 no_sanitize_address attribute, mention no_address_safety_analysis
33325 attribute as deprecated alias.
33327 2013-02-28 Jakub Jelinek <jakub@redhat.com>
33329 PR middle-end/56461
33330 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33331 type to vec<vec<tree> > *.
33332 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
33333 to be vec<tree> instead of vec<tree> *, set vec_defs
33334 to vNULL and call vec_defs.create (number_of_vects), adjust other
33336 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33337 vectorizable_condition): Adjust vect_get_slp_defs callers.
33339 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33341 * config/aarch64/aarch64.c
33342 (aarch64_float_const_representable): Remove unused variable.
33344 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33346 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33348 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33350 * config/aarch64/aarch64-builtins.c
33351 (aarch64_init_simd_builtins): Make static.
33353 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33355 * config/aarch64/aarch64.c
33356 (aarch64_simd_make_constant): Make static.
33358 2013-02-28 Martin Jambor <mjambor@suse.cz>
33360 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33361 with no initialization to the RHS of debug statements.
33363 2013-02-28 Martin Jambor <mjambor@suse.cz>
33365 PR tree-optimization/56294
33366 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33368 (get_access_replacement): Do not call create_access_replacement.
33369 Assert a replacement exists.
33370 (get_repl_default_def_ssa_name): Create the replacement declaration
33373 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33375 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33376 final_end_function.
33378 2013-02-28 Marek Polacek <polacek@redhat.com>
33380 PR rtl-optimization/56466
33381 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33382 if we're changing a loop.
33383 (peel_loops_completely): Likewise.
33385 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
33388 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33390 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33393 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33394 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33395 INTX_FTYPE_FX, FX_FTYPE_INTX.
33396 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33398 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33400 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33401 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33402 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33403 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33404 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33405 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33406 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33407 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33408 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33409 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33410 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33411 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33412 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33413 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33414 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33415 (avrxmega6): Increase max flash segments from 5 to 6.
33416 * config/avr/t-multilib: Regenerate.
33417 * config/avr/avr-tables.opt: Regenerate.
33418 * doc/avr-mmcu.texi: Regenerate.
33420 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33422 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33423 (avr_device_to_arch): Rename to avr_device_to_ld.
33424 (avr_device_to_as): New prototype.
33425 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33426 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33427 * config/avr/driver-avr.c (avr_device_to_as): New.
33428 (avr_device_to_arch): Rename to avr_device_to_ld.
33430 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33432 PR middle-end/56461
33433 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33434 method on dr_chain and result_chain.
33436 PR middle-end/56461
33437 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33438 pointer_set_destroy on not_executed_last_iteration.
33440 PR middle-end/56461
33441 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33443 PR middle-end/56461
33444 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33445 FOR_EACH_DEFINED_FUNCTION when freeing state.
33447 PR middle-end/56461
33448 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33450 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33453 PR middle-end/56461
33454 * ipa-cp.c (decide_whether_version_node): Call vec_free on
33455 known_aggs[i].items and release known_aggs vector.
33457 PR middle-end/56461
33458 * ipa-reference.c (propagate): Free node_info even for alias nodes.
33460 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33462 * config/microblaze/microblaze.c (microblaze_emit_compare):
33463 Use xor for EQ/NE comparisions.
33464 * config/microblaze/microblaze.md (cstoresf4): Add constraints
33465 (cbranchsf4): Adjust operator to comparison_operator.
33467 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33469 PR middle-end/56461
33470 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33472 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33473 vec_safe_push, always update *slot.
33474 (redirect_edge_var_map_clear): Use vec_free.
33475 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33476 (free_var_map_entry): Use vec_free.
33477 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33478 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33480 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
33482 PR middle-end/45472
33483 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33484 when the may_trap_p bit of the exprs being merged differs.
33485 Reorder tests for speculativeness in the logical and operator.
33487 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33489 * incpath.c (add_standard_paths): Use reconcat instead of concat
33490 where appropriate and avoid leaking memory.
33492 * opts.h: Include obstack.h.
33493 (opts_concat): New prototype.
33494 (opts_obstack): New declaration.
33495 * opts.c (opts_concat): New function.
33496 (opts_obstack): New variable.
33497 (init_options_struct): Call gcc_init_obstack on opts_obstack.
33498 (finish_options): Use opts_concat instead of concat
33499 and XOBNEWVEC instead of XNEWVEC.
33500 * opts-common.c (generate_canonical_option, decode_cmdline_option,
33501 generate_option): Likewise.
33502 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33503 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33506 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33507 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33509 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33511 PR middle-end/56461
33512 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33514 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33516 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33517 (arm_block_move_unaligned_straight): Likewise.
33518 (arm_adjust_block_mem): Likewise.
33520 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33523 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33524 temp, cond and label.
33525 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33528 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33529 * config/c6x/c6x.h (dbx_register_map): Update declaration.
33532 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33533 of prologue/epilogue functions.
33536 * config/tilegx/tilegx.c (tilegx_expand_prologue):
33537 Remove unused variable cfa_offset.
33538 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33541 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33542 type promotion to unsigned.
33545 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33546 for HOST_WIDE_INT of 32 bit / same size as int.
33547 (arm_block_move_unaligned_straight): Likewise.
33548 (arm_adjust_block_mem): Likewise.
33551 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33554 2013-02-26 Marek Polacek <polacek@redhat.com>
33556 PR tree-optimization/56426
33557 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33559 2013-02-26 Richard Biener <rguenther@suse.de>
33562 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33563 unused variable loops.
33565 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33567 PR tree-optimization/56448
33568 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33569 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33570 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33571 later operands of the references, or even first operand for
33572 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33574 PR tree-optimization/56443
33575 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33576 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33577 to type_for_mode langhook.
33579 2013-02-25 Matt Turner <mattst88@gmail.com>
33581 * doc/invoke.texi: Document r4700.
33583 2013-02-25 Richard Biener <rguenther@suse.de>
33585 PR tree-optimization/56175
33586 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33588 (simplify_bitwise_binary): ... here. Also guard the conversion
33589 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33591 2013-02-25 Catherine Moore <clm@codesourcery.com>
33594 2013-02-24 Catherine Moore <clm@codesourcery.com>
33595 Maciej W. Rozycki <macro@codesourcery.com>
33596 Tom de Vries <tom@codesourcery.com>
33597 Nathan Sidwell <nathan@codesourcery.com>
33598 Iain Sandoe <iain@codesourcery.com>
33599 Nathan Froyd <froydnj@codesourcery.com>
33600 Chao-ying Fu <fu@mips.com>
33602 * doc/extend.texi: (micromips, nomicromips, nocompression):
33603 Document new function attributes.
33604 * doc/invoke.texi (minterlink-compressed, mmicromips,
33605 m14k, m14ke, m14kec): Document new options.
33606 (minterlink-mips16): Update documentation.
33607 * doc/md.texi (ZC, ZD): Document new constraints.
33608 * configure.ac (gcc_cv_as_micromips): Check if linker
33609 supports the .set micromips directive.
33610 * configure: Regenerate.
33611 * config.in: Regenerate.
33612 * config/mips/mips-tables.opt: Regenerate.
33613 * config/mips/micromips.md: New file.
33614 * constraints.md (ZC, AD): New constraints.
33615 * config/mips/predicates.md (movep_src_register): New predicate.
33616 (movep_src_operand): New predicate.
33617 (non_volatile_mem_operand): New predicate.
33618 * config/mips/mips.md (multimem): New type.
33619 (length): Differentiate between 17-bit and 18-bit branch offsets.
33620 (MOVEP1, MOVEP2): New mode iterator.
33621 (mov_<load>l): Use ZC constraint.
33622 (mov_<load>r): Likewise.
33623 (mov_<store>l): Likewise.
33624 (mov_<store>r): Likewise.
33625 (*branch_equality<mode>_inverted): Add microMIPS support.
33626 (*branch_equality<mode>): Likewise.
33627 (*jump_absolute): Likewise.
33628 (indirect_jump_<mode>): Likewise.
33629 (tablejump_<mode>): Likewise.
33630 (<optab>_internal): Likewise.
33631 (sibcall_internal): Likewise.
33632 (sibcall_value_internal): Likewise.
33633 (prefetch): Use constraint ZD.
33634 * config/mips/mips.opt (minterlink-compressed): New option.
33635 (minterlink-mips16): Now an alias for minterlink-compressed.
33636 (mmicromips): New option.
33637 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33638 (compare_and_swap_12): Likewise.
33639 (sync_add<mode>): Likewise.
33640 (sync_<optab>_12): Likewise.
33641 (sync_old_<optab>_12): Likewise.
33642 (sync_new_<optab>_12): Likewise.
33643 (sync_nand_12): Likewise.
33644 (sync_old_nand_12): Likewise.
33645 (sync_new_nand_12): Likewise.
33646 (sync_sub<mode>): Likewise.
33647 (sync_old_add<mode>): Likewise.
33648 (sync_old_sub<mode>): Likewise.
33649 (sync_new_add<mode>): Likewise.
33650 (sync_new_sub<mode>): Likewise.
33651 (sync_<optab><mode>): Likewise.
33652 (sync_old_<optab><mode>): Likewise.
33653 (sync_new_<optab><mode>): Likewise.
33654 (sync_nand<mode>): Likewise.
33655 (sync_old_nand<mode>): Likewise.
33656 (sync_new_nand<mode>): Likewise.
33657 (sync_lock_test_and_set<mode>): Likewise.
33658 (test_and_set_12): Likewise.
33659 (atomic_compare_and_swap<mode>): Likewise.
33660 (atomic_exchange<mode>_llsc): Likewise.
33661 (atomic_fetch_add<mode>_llsc): Likewise.
33662 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33663 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33664 (umips_save_restore_pattern_p): Likewise.
33665 (umips_load_store_pair_p): Likewise.
33666 (umips_output_load_store_pair): Likewise.
33667 (umips_movep_target_p): Likewise.
33668 (umips_12bit_offset_address_p): Likewise.
33669 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33670 (mips_base_mips16): Rename this...
33671 (mips_base_compression_flags): ...to this. Update all uses.
33672 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33673 (mips_mips16_decl_p): Delete.
33674 (mips_nomips16_decl_p): Delete.
33675 (mips_get_compress_on_flags): New function.
33676 (mips_get_compress_off_flags): New function.
33677 (mips_get_compress_mode): New function.
33678 (mips_get_compress_on_name): New function.
33679 (mips_get_compress_off_name): New function.
33680 (mips_insert_attributes): Support multiple compression types.
33681 (mips_merge_decl_attributes): Likewise.
33682 (umips_12bit_offset_address_p): New function.
33683 (mips_start_function_definition): Emit .set micromips directive.
33684 (mips_call_may_need_jalx_p): New function.
33685 (mips_function_ok_for_sibcall): Add microMIPS support.
33686 (mips_print_operand_punctuation): Support short delay slots and
33688 (umips_swm_mask, umips_swm_encoding): New.
33689 (umips_build_save_restore): New function.
33690 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33691 (was_mips16_p): Remove.
33692 (old_compression_mode): New.
33693 (mips_set_compression_mode): New function.
33694 (mips_set_current_function): Add microMIPS support.
33695 (mips_option_override): Likewise.
33696 (umips_save_restore_pattern_p): New function.
33697 (umips_output_save_restore): New function.
33698 (umips_load_store_pair_p_1): New function.
33699 (umips_load_store_pair_p): New function.
33700 (umips_output_load_store_pair_1): New function.
33701 (umips_output_load_store_pair): New function.
33702 (umips_movep_target_p) New function.
33703 (mips_prepare_pch_save): Add microMIPS support.
33704 * config/mips/mips.h (TARGET_COMPRESSION): New.
33705 (TARGET_CPU_CPP_BUILTINS): Update macro
33706 to use new compression flags and to support microMIPS.
33707 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33708 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33709 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33710 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33711 (ASM_SPEC): Support mmicromips and mno-micromips.
33712 (M16STORE_REG_P): New macro.
33713 (MIPS_CALL): Support TARGET_MICROMIPS.
33714 (MICROMIPS_J): New macro.
33715 (mips_base_mips16): Rename this...
33716 (mips_base_compression_flags): ...to this.
33717 (UMIPS_12BIT_OFFSET_P): New macro.
33718 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33719 (MULTILIB_DIRNAMES): Likewise.
33721 2013-02-25 Tom de Vries <tom@codesourcery.com>
33723 PR rtl-optimization/56131
33724 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33725 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33726 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33728 2013-02-25 Tobias Burnus <burnus@net-b.de>
33730 * doc/invoke.texi (-fsanitize=): Move from optimization
33731 to debugging options.
33733 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33735 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33737 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33738 Alexander Monakov <amonakov@ispras.ru>
33740 PR middle-end/56077
33741 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33742 flush pending lists also on non-jumps. Adjust comment.
33744 2013-02-24 Catherine Moore <clm@codesourcery.com>
33745 Maciej W. Rozycki <macro@codesourcery.com>
33746 Tom de Vries <tom@codesourcery.com>
33747 Nathan Sidwell <nathan@codesourcery.com>
33748 Iain Sandoe <iain@codesourcery.com>
33749 Nathan Froyd <froydnj@codesourcery.com>
33750 Chao-ying Fu <fu@mips.com>
33752 * doc/extend.texi: (micromips, nomicromips, nocompression):
33753 Document new function attributes.
33754 * doc/invoke.texi (minterlink-compressed, mmicromips,
33755 m14k, m14ke, m14kec): Document new options.
33756 (minterlink-mips16): Update documentation.
33757 * doc/md.texi (ZC, ZD): Document new constraints.
33758 * configure.ac (gcc_cv_as_micromips): Check if linker
33759 supports the .set micromips directive.
33760 * configure: Regenerate.
33761 * config.in: Regenerate.
33762 * config/mips/mips-tables.opt: Regenerate.
33763 * config/mips/micromips.md: New file.
33764 * constraints.md (ZC, AD): New constraints.
33765 * config/mips/predicates.md (movep_src_register): New predicate.
33766 (movep_src_operand): New predicate.
33767 (non_volatile_mem_operand): New predicate.
33768 * config/mips/mips.md (multimem): New type.
33769 (length): Differentiate between 17-bit and 18-bit branch offsets.
33770 (MOVEP1, MOVEP2): New mode iterator.
33771 (mov_<load>l): Use ZC constraint.
33772 (mov_<load>r): Likewise.
33773 (mov_<store>l): Likewise.
33774 (mov_<store>r): Likewise.
33775 (*branch_equality<mode>_inverted): Add microMIPS support.
33776 (*branch_equality<mode>): Likewise.
33777 (*jump_absolute): Likewise.
33778 (indirect_jump_<mode>): Likewise.
33779 (tablejump_<mode>): Likewise.
33780 (<optab>_internal): Likewise.
33781 (sibcall_internal): Likewise.
33782 (sibcall_value_internal): Likewise.
33783 (prefetch): Use constraint ZD.
33784 * config/mips/mips.opt (minterlink-compressed): New option.
33785 (minterlink-mips16): Now an alias for minterlink-compressed.
33786 (mmicromips): New option.
33787 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33788 (compare_and_swap_12): Likewise.
33789 (sync_add<mode>): Likewise.
33790 (sync_<optab>_12): Likewise.
33791 (sync_old_<optab>_12): Likewise.
33792 (sync_new_<optab>_12): Likewise.
33793 (sync_nand_12): Likewise.
33794 (sync_old_nand_12): Likewise.
33795 (sync_new_nand_12): Likewise.
33796 (sync_sub<mode>): Likewise.
33797 (sync_old_add<mode>): Likewise.
33798 (sync_old_sub<mode>): Likewise.
33799 (sync_new_add<mode>): Likewise.
33800 (sync_new_sub<mode>): Likewise.
33801 (sync_<optab><mode>): Likewise.
33802 (sync_old_<optab><mode>): Likewise.
33803 (sync_new_<optab><mode>): Likewise.
33804 (sync_nand<mode>): Likewise.
33805 (sync_old_nand<mode>): Likewise.
33806 (sync_new_nand<mode>): Likewise.
33807 (sync_lock_test_and_set<mode>): Likewise.
33808 (test_and_set_12): Likewise.
33809 (atomic_compare_and_swap<mode>): Likewise.
33810 (atomic_exchange<mode>_llsc): Likewise.
33811 (atomic_fetch_add<mode>_llsc): Likewise.
33812 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33813 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33814 (umips_save_restore_pattern_p): Likewise.
33815 (umips_load_store_pair_p): Likewise.
33816 (umips_output_load_store_pair): Likewise.
33817 (umips_movep_target_p): Likewise.
33818 (umips_12bit_offset_address_p): Likewise.
33819 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33820 (mips_base_mips16): Rename this...
33821 (mips_base_compression_flags): ...to this. Update all uses.
33822 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33823 (mips_mips16_decl_p): Delete.
33824 (mips_nomips16_decl_p): Delete.
33825 (mips_get_compress_on_flags): New function.
33826 (mips_get_compress_off_flags): New function.
33827 (mips_get_compress_mode): New function.
33828 (mips_get_compress_on_name): New function.
33829 (mips_get_compress_off_name): New function.
33830 (mips_insert_attributes): Support multiple compression types.
33831 (mips_merge_decl_attributes): Likewise.
33832 (umips_12bit_offset_address_p): New function.
33833 (mips_start_function_definition): Emit .set micromips directive.
33834 (mips_call_may_need_jalx_p): New function.
33835 (mips_function_ok_for_sibcall): Add microMIPS support.
33836 (mips_print_operand_punctuation): Support short delay slots and
33838 (umips_swm_mask, umips_swm_encoding): New.
33839 (umips_build_save_restore): New function.
33840 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33841 (was_mips16_p): Remove.
33842 (old_compression_mode): New.
33843 (mips_set_compression_mode): New function.
33844 (mips_set_current_function): Add microMIPS support.
33845 (mips_option_override): Likewise.
33846 (umips_save_restore_pattern_p): New function.
33847 (umips_output_save_restore): New function.
33848 (umips_load_store_pair_p_1): New function.
33849 (umips_load_store_pair_p): New function.
33850 (umips_output_load_store_pair_1): New function.
33851 (umips_output_load_store_pair): New function.
33852 (umips_movep_target_p) New function.
33853 (mips_prepare_pch_save): Add microMIPS support.
33854 * config/mips/mips.h (TARGET_COMPRESSION): New.
33855 (TARGET_CPU_CPP_BUILTINS): Update macro
33856 to use new compression flags and to support microMIPS.
33857 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33858 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33859 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33860 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33861 (ASM_SPEC): Support mmicromips and mno-micromips.
33862 (M16STORE_REG_P): New macro.
33863 (MIPS_CALL): Support TARGET_MICROMIPS.
33864 (MICROMIPS_J): New macro.
33865 (mips_base_mips16): Rename this...
33866 (mips_base_compression_flags): ...to this.
33867 (UMIPS_12BIT_OFFSET_P): New macro.
33868 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33869 (MULTILIB_DIRNAMES): Likewise.
33871 2013-02-24 Jakub Jelinek <jakub@redhat.com>
33874 * target-globals.c (save_target_globals): For init_reg_sets and
33875 target_reinit remporarily set this_fn_optabs to this_target_optabs.
33877 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
33879 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33880 * config/aarch64/t-aarch64
33881 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33883 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
33885 PR inline-asm/56148
33886 * lra-constraints.c (process_alt_operands): Reload operand
33887 conflicting with earlier clobber only if no more other conflicting
33890 2013-02-22 Jakub Jelinek <jakub@redhat.com>
33893 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33894 if not linking a shared library.
33896 2013-02-22 Seth LaForge <sethml@google.com>
33898 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33900 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
33902 * config/arm/arm.md (split for extendsidi): Update condition.
33903 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33904 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33905 (qhs_zextenddi_cstr): Likewise.
33907 2013-02-21 Jakub Jelinek <jakub@redhat.com>
33909 PR middle-end/56420
33910 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33911 avoid signed wrapping.
33912 (expand_mult): Handle properly multiplication by
33913 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
33914 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
33915 in the compiler if coeff is HOST_WIDE_INT_MIN.
33916 (expand_divmod): Don't make ext_op1 static, change it's type to
33917 uhwi. Avoid undefined behavior in -INTVAL (op1).
33919 PR rtl-optimization/50339
33920 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33922 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33923 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33924 into splitting_ashiftrt field.
33925 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33927 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33930 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
33932 PR middle-end/56108
33933 * trans-mem.c (execute_tm_mark): Do not expand transactions that
33934 are sure to go irrevocable.
33936 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
33938 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33939 scalars are valid operands.
33941 2013-02-21 Martin Jambor <mjambor@suse.cz>
33943 PR tree-optimization/56310
33944 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33945 only matching indices and non-negative final offsets.
33946 (intersect_aggregates_with_edge): Pass src_idx to
33947 agg_replacements_to_vector. Pass src_idx insstead of index to
33948 intersect_with_agg_replacements.
33950 2013-02-21 Martin Jambor <mjambor@suse.cz>
33952 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33953 instead of hard-wired defaults.
33955 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
33957 * doc/invoke.texi (MIPS Options): Update documentation of the
33958 floating-point multiply-accumulate instruction restrictions.
33960 2013-02-21 Kostya Serebryany <kcc@google.com>
33962 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33963 asan_shadow_offset on x86_64 linux.
33965 2013-02-21 Richard Biener <rguenther@suse.de>
33967 PR tree-optimization/56415
33969 2013-02-11 Richard Biener <rguenther@suse.de>
33971 PR tree-optimization/56273
33972 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33975 2013-02-21 Jakub Jelinek <jakub@redhat.com>
33978 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33981 PR inline-asm/56405
33982 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33983 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33985 2013-02-20 Jan Hubicka <jh@suse.cz>
33987 PR tree-optimization/56265
33988 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33989 when target is referenced for first time.
33991 2013-02-20 Richard Biener <rguenther@suse.de>
33993 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33994 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33995 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33996 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33997 not return anything.
33998 (rename_ssa_copies): Do not remove unused locals.
33999 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34000 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34001 * passes.c (execute_function_todo): Do not schedule unused locals
34002 removal if cleanup_tree_cfg did something.
34003 * tree-ssa-live.c (remove_unused_locals): Dump statistics
34004 about the number of removed locals.
34006 2013-02-20 Richard Biener <rguenther@suse.de>
34008 PR tree-optimization/56398
34009 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34011 2013-02-20 Martin Jambor <mjambor@suse.cz>
34013 PR tree-optimization/55334
34014 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34015 restricted pointers to arrays.
34017 2013-02-20 Richard Biener <rguenther@suse.de>
34018 Jakub Jelinek <jakub@redhat.com>
34020 PR tree-optimization/56396
34021 * tree-ssa-ccp.c (n_const_val): New static variable.
34022 (get_value): Return NULL for SSA names we don't have a lattice
34024 (ccp_initialize): Initialize n_const_val.
34025 * tree-ssa-copy.c (n_copy_of): New static variable.
34026 (init_copy_prop): Initialize n_copy_of.
34027 (get_value): Return NULL_TREE for SSA names we don't have a
34030 2013-02-20 Martin Jambor <mjambor@suse.cz>
34032 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34034 2013-02-20 Richard Biener <rguenther@suse.de>
34036 * genpreds.c (write_lookup_constraint): Do not compare first
34037 letter of the constraint again.
34039 2013-02-20 Richard Biener <rguenther@suse.de>
34041 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34043 (get_use_iv_cost): Terminate hashtable walk when coming across
34046 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
34048 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34049 reassociation for avx2 targets.
34051 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34053 * config/microblaze/microblaze.c: microblaze_has_clz = 0
34054 Add version check for v8.10.a to enable microblaze_has_clz
34055 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34056 version and TARGET_PATTERN_COMPARE check
34057 * config/microblaze/microblaze.md: New clzsi2 instruction
34059 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34061 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34062 function before branching.
34064 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34066 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34068 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34070 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34072 PR middle-end/55889
34073 * sel-sched.c: Include ira.h.
34074 (implicit_clobber_conflict_p): New function.
34075 (moveup_expr): Use it.
34076 * Makefile.in (sel-sched.o): Depend on ira.h.
34078 2013-02-19 Richard Biener <rguenther@suse.de>
34080 PR tree-optimization/56384
34081 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34082 (vn_hash_type): Split out from ...
34083 (vn_hash_constant_with_type): ... here.
34084 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34085 (vn_phi_eq): Compare types from vn_phi_s structure.
34086 (vn_phi_lookup): Populate vn_phi_s type.
34087 (vn_phi_insert): Likewise.
34089 2013-02-19 Jakub Jelinek <jakub@redhat.com>
34091 PR tree-optimization/56350
34092 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34093 if haven't found reduction or nested cycle operand, rather than
34094 asserting we must find it.
34096 PR tree-optimization/56381
34097 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34100 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
34101 Jakub Jelinek <jakub@redhat.com>
34104 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34105 (swap_optab_enable): Same.
34106 (init_all_optabs): Use argument instead of global.
34107 * tree.h (struct tree_optimization_option): New field target_optabs.
34108 * expr.h (init_all_optabs): Add argument to prototype.
34109 (TREE_OPTIMIZATION_OPTABS): New.
34110 (save_optabs_if_changed): Protoize.
34111 * optabs.h: Declare this_fn_optabs.
34112 * optabs.c (save_optabs_if_changed): New.
34113 Declare this_fn_optabs.
34114 (init_optabs): Add argument to init_all_optabs() call.
34115 * function.c (invoke_set_current_function_hook): Handle per
34117 * function.h (struct function): New field optabs.
34118 * config/mips/mips.c (mips_set_mips16_mode): Handle when
34119 optimization_current_node has changed.
34120 * target-globals.h (save_target_globals_default_opts): Protoize.
34121 * target-globals.c (save_target_globals_default_opts): New.
34123 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34126 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34127 registers %fr12 and %fr12R as call used.
34130 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34131 and HImode, require all displacements to be an integer multiple of
34133 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34134 only allow QImode and HImode when reload is in progress and strict is
34135 true. Likewise for symbolic addresses. Use base14_operand to check
34136 displacements in REG+BASE addresses.
34138 2013-02-18 Richard Biener <rguenther@suse.de>
34140 PR tree-optimization/56366
34141 * tree-vect-loop.c (get_initial_def_for_induction): Properly
34142 handle sign-conversion of outer-loop initial induction value.
34144 2013-02-18 Richard Biener <rguenther@suse.de>
34146 PR middle-end/56349
34147 * cfghooks.c (merge_blocks): If we merge a latch into another
34148 block adjust references to it.
34149 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34150 (verify_loop_structure): Verify that a recorded latch is in fact
34153 2013-02-18 Richard Biener <rguenther@suse.de>
34155 PR tree-optimization/56321
34156 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34157 order SSA name release and virtual operand unlinking.
34159 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34161 * config/microblaze/microblaze.md (save_stack_block): Define.
34162 (restore_stack_block): Likewise.
34164 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34166 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34167 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34168 * config/microblaze/microblaze.c (microblaze_option_override):
34169 Bail out early for PIC modes when target does not support PIC.
34171 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34173 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34174 Replace with a microblaze version.
34175 (microblaze_trampoline_init): Adapt for microblaze.
34176 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34179 2013-02-16 Jakub Jelinek <jakub@redhat.com>
34180 Dodji Seketeli <dodji@redhat.com>
34183 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34184 (instrument_mem_region_access): Do not forget to always put
34185 instrumentation of the of 'base' and 'base + len' in a "if (len !=
34186 0) statement, even for cases where either 'base' or 'base + len'
34187 are not instrumented -- because they have been previously
34188 instrumented. Simplify the logic by putting all the statements
34189 instrument 'base + len' inside a sequence, and then insert that
34190 sequence right before the current insertion point. Then, to
34191 instrument 'base + len', just get an iterator on that statement.
34192 And do not forget to update the pointer to iterator the function
34193 received as argument.
34195 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
34197 PR rtl-optimization/56348
34198 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34200 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
34202 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34203 (clean_graph_dump_file): Pass base to start_graph_dump.
34205 2013-02-14 Richard Henderson <rth@redhat.com>
34208 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34210 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
34212 * collect2-aix.h: Define F_LOADONLY.
34214 2013-02-14 Richard Biener <rguenther@suse.de>
34217 * varasm.c (output_constant_def_1): Get the decl representing
34218 the constant as argument.
34219 (output_constant_def): Wrap output_constant_def_1.
34220 (make_decl_rtl): Use output_constant_def_1 with the decl
34221 representing the constant.
34222 (build_constant_desc): Optionally re-use a decl already
34223 representing the constant.
34224 (tree_output_constant_def): Adjust.
34226 2013-02-14 Dodji Seketeli <dodji@redhat.com>
34229 * asan.c (instrument_builtin_call): Really put the length of the
34230 second source argument into src1_len.
34232 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34234 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34235 argument. If it is false, don't create edge from then_bb to
34237 (insert_if_then_before_iter): Pass true to it.
34238 (build_check_stmt): Pass false to it.
34239 (transform_statements): Flush hash table only on extended basic
34240 block boundaries, rather than at the beginning of every bb.
34241 Don't flush hash table on nonfreeing_call_p calls.
34242 * tree-flow.h (nonfreeing_call_p): New prototype.
34243 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34245 2013-02-13 David S. Miller <davem@davemloft.net>
34247 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34249 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
34252 * ira.c (max_regno_before_ira): Move from ...
34254 (fix_reg_equiv_init): Use max_regno_before_ira instead of
34257 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34259 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34261 2013-02-13 Richard Biener <rguenther@suse.de>
34264 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34265 globals in MEM_REFs.
34267 2013-02-13 Richard Biener <rguenther@suse.de>
34269 * loop-init.c (loop_optimizer_init): Clear loop state when
34270 re-initializing preserved loops.
34271 * loop-unswitch.c (unswitch_single_loop): Return whether
34272 we unswitched the loop. Do not verify loop state here.
34273 (unswitch_loops): When we unswitched a loop discover new loops.
34275 2013-02-13 Kostya Serebryany <kcc@google.com>
34277 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34279 * sanitizer.def: Rename __asan_init to __asan_init_v1.
34281 2013-02-12 Dodji Seketeli <dodji@redhat.com>
34283 Avoid instrumenting duplicated memory access in the same basic block
34284 * Makefile.in (asan.o): Add new dependency on hash-table.h
34285 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34286 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34287 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34288 (free_mem_ref_resources, has_mem_ref_been_instrumented)
34289 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34290 (get_mem_ref_of_assignment): New functions.
34291 (get_mem_refs_of_builtin_call): Extract from
34292 instrument_builtin_call and tweak a little bit to make it fit with
34294 (instrument_builtin_call): Use the new
34295 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
34296 of is_gimple_builtin_call.
34297 (instrument_derefs, instrument_mem_region_access): Insert the
34298 instrumented memory reference into the hash table.
34299 (maybe_instrument_assignment): Renamed instrument_assignment into
34300 this, and change it to advance the iterator when instrumentation
34301 actually happened and return true in that case. This makes it
34302 homogeneous with maybe_instrument_assignment, and thus give a
34303 chance to callers to be more 'regular'.
34304 (transform_statements): Clear the memory reference hash table
34305 whenever we enter a new BB, when we cross a function call, or when
34306 we are done transforming statements. Use
34307 maybe_instrument_assignment instead of instrumentation. No more
34308 need to special case maybe_instrument_assignment and advance the
34309 iterator after calling it; it's now handled just like
34310 maybe_instrument_call. Update comment.
34312 2013-02-13 Richard Biener <rguenther@suse.de>
34314 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34315 Fix loop discovery code.
34317 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
34319 PR inline-asm/56148
34320 * lra-constraints.c (process_alt_operands): Match early clobber
34321 operand with itself. Check conflicts with earlyclobber only if
34322 the operand is not reloaded. Prefer to reload conflicting operand
34323 if earlyclobber and matching operands are the same.
34325 2013-02-12 Richard Biener <rguenther@suse.de>
34328 * lto-streamer-out.c (write_symbol): Do not output symbols
34329 for hard register variables.
34331 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
34334 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34335 (umulsidi3_insn, mulsidi3_insn): New insns.
34337 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
34339 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34340 (struct tune_params): Add vec_costs field.
34341 * config/arm/arm.c (arm_builtin_vectorization_cost)
34342 (arm_add_stmt_cost): New functions.
34343 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34344 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34345 (arm_default_vec_cost): New struct of type cpu_vec_costs.
34346 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34347 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34348 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34349 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34351 2013-02-12 Richard Biener <rguenther@suse.de>
34354 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34355 decls again if possible.
34357 2013-02-12 Richard Biener <rguenther@suse.de>
34359 PR middle-end/56288
34360 * tree-ssa.c (verify_ssa_name): Fix check, move
34361 SSA_NAME_IN_FREE_LIST check up.
34363 2013-02-12 Jakub Jelinek <jakub@redhat.com>
34364 Steven Bosscher <steven@gcc.gnu.org>
34366 PR rtl-optimization/56151
34367 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34368 equal to op0 or op1, and last_insn pattern is CODE operation
34369 with MEM dest and one of the operands matches that MEM.
34371 2013-02-11 Sriraman Tallam <tmsriram@google.com>
34373 * doc/extend.texi: Document Function Multiversioning and "default"
34374 parameter string to target attribute.
34375 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34376 target attribute parameter is "default".
34377 (ix86_compare_version_priority): Remove checks for target attribute.
34378 (ix86_mangle_function_version_assembler_name): Change error to sorry.
34379 Remove check for target attribute equal to NULL. Add assert.
34380 (ix86_generate_version_dispatcher_body): Change error to sorry.
34382 2013-02-11 Iain Sandoe <iain@codesourcery.com>
34383 Jack Howarth <howarth@bromo.med.uc.edu>
34384 Patrick Marlier <patrick.marlier@gmail.com>
34387 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34388 define ENDFILE_SPEC as TM_DESTRUCTOR.
34389 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34391 2013-02-11 Alexander Potapenko <glider@google.com>
34392 Jack Howarth <howarth@bromo.med.uc.edu>
34393 Jakub Jelinek <jakub@redhat.com>
34396 * config/darwin.c (cdtor_record): Rename ctor_record.
34397 (sort_cdtor_records): Rename sort_ctor_records.
34398 (finalize_dtors): New routine to sort destructors by
34399 priority before use in assemble_integer.
34400 (machopic_asm_out_destructor): Use finalize_dtors if needed.
34402 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
34404 PR rtl-optimization/56275
34405 * simplify-rtx.c (avoid_constant_pool_reference): Check that
34406 offset is non-negative and less than cmode size before
34407 calling simplify_subreg.
34409 2013-02-11 Richard Biener <rguenther@suse.de>
34411 PR tree-optimization/56264
34412 * cfgloop.h (fix_loop_structure): Adjust prototype.
34413 * loop-init.c (fix_loop_structure): Return the number of
34414 newly discovered loops.
34415 * tree-cfgcleanup.c (repair_loop_structures): When new loops
34416 are discovered, do a full loop-closed SSA rewrite.
34418 2013-02-11 Richard Biener <rguenther@suse.de>
34420 PR tree-optimization/56273
34421 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34423 (check_array_ref): Fix missing newline in dumps.
34424 (search_for_addr_array): Likewise.
34426 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
34428 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34430 2013-02-09 Jakub Jelinek <jakub@redhat.com>
34433 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34435 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
34437 PR rtl-optimization/56246
34438 * lra-constraints.c (simplify_operand_subreg): Try to reuse
34440 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34441 constraints are satisfied.
34443 2013-02-08 Jeff Law <law@redhat.com>
34446 * emit-rtl.c (reg_is_parm_p): New function.
34447 * regs.h (reg_is_parm_p): New prototype.
34448 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34449 callee-clobbered registers.
34451 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
34454 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34455 If there is no implicit builtin declaration, just return NULL.
34457 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34459 * config/i386/sse.md (FMAMODEM): New mode iterator.
34460 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34461 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34463 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34465 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34466 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34467 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34469 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34471 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34472 (microblaze*-*-elf): Likewise.
34473 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34475 * config/microblaze/microblaze-c.c: Add builtin defines for
34476 _LITTLE_ENDIAN and _BIG_ENDIAN.
34477 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34478 add to TARGET_DEFAULT flags.
34479 Expand ASM_SPEC and LINK_SPEC.
34480 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34481 * config/microblaze/microblaze.md: Update extendsidi2 and
34482 movdi_internal instructions to use low-order / high-order reg
34484 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34485 options and inversemask / mask of LITTLE_ENDIAN.
34486 * config/microblaze/t-microblaze: Expand multilib options to
34487 include mlittle-endian (le) and update exceptions patterns.
34489 2013-02-08 Jakub Jelinek <jakub@redhat.com>
34491 PR rtl-optimization/56195
34492 * lra-constraints.c (get_reload_reg): Don't reuse regs
34493 if they have smaller mode than requested, if they have
34494 wider mode than requested, try to return a SUBREG.
34496 PR tree-optimization/56250
34497 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34498 if type is unsigned and code isn't MULT_EXPR.
34500 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34502 PR tree-optimization/56064
34503 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34504 bits according to mode.
34505 * fixed-value.h (fixed_from_double_int)
34506 (const_fixed_from_double_int): Adjust comments.
34508 2013-02-08 Richard Biener <rguenther@suse.de>
34511 * lto-streamer.h (struct data_in): Remove current_file, current_line
34512 and current_col members.
34513 * lto-streamer-out.c (lto_output_location): Stream changed bits
34514 en-block for efficiency.
34515 * lto-streamer-in.c (clear_line_info): Remove.
34516 (lto_input_location): Cache current file, line and column
34517 globally via local statics. Read changed bits en-block.
34518 (input_function): Do not call clear_line_info.
34519 (lto_read_body): Likewise.
34520 (lto_input_toplevel_asms): Likewise.
34522 2013-02-08 Michael Matz <matz@suse.de>
34524 PR tree-optimization/52448
34525 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34526 (nt_call_phase): New static.
34527 (add_or_mark_expr): Only mark accesses with newer phase than any
34529 (nonfreeing_call_p): New.
34530 (nt_init_block): Update nt_call_phase, mark blocks as visited.
34531 (nt_fini_block): Keep blocks marked as visited.
34532 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34534 2013-02-08 Richard Biener <rguenther@suse.de>
34536 * ira.c (ira): Free broken dominator information.
34538 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34540 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34542 2013-02-08 Marek Polacek <polacek@redhat.com>
34544 * cfgloop.c (verify_loop_structure): Add more checking of headers.
34546 2013-02-08 Richard Biener <rguenther@suse.de>
34548 PR middle-end/56181
34549 * cfgloop.h (flow_loops_find): Adjust.
34550 (bb_loop_header_p): Declare.
34551 * cfgloop.c (bb_loop_header_p): New function split out from ...
34552 (flow_loops_find): ... here. Adjust function signature,
34553 support incremental loop structure update.
34554 (verify_loop_structure): Cleanup. Verify a loop is a loop.
34555 * cfgloopmanip.c (fix_loop_structure): Move ...
34556 * loop-init.c (fix_loop_structure): ... here.
34557 (apply_loop_flags): Split out from ...
34558 (loop_optimizer_init): ... here.
34559 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
34560 in incremental mode, only remove dead loops here.
34562 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34565 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34566 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34567 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34568 (*round<mode>3.libgcc): New insns for fixed-modes.
34569 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34570 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34571 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34572 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34573 implementations. Define to __builtin_avr_absFX,
34574 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34575 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34576 __builtin_avr_countlsFX, respectively.
34577 * config/avr/avr-c.c (target.h): Include it.
34578 (enum avr_builtin_id): New enum.
34579 (avr_resolve_overloaded_builtin): New static function.
34580 (avr_register_target_pragmas): Use it to set
34581 targetm.resolve_overloaded_builtin.
34582 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34583 tree nodes used by DEF_BUILTIN.
34584 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34585 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34586 <AVR_BUILTIN_xxBITS>: Same.
34588 2013-02-08 Richard Biener <rguenther@suse.de>
34590 * cfgloop.c (verify_loop_structure): Properly handle
34591 a loop exiting to another loop header.
34592 * ira-int.h (ira_loops): Remove.
34593 * ira.c (ira_loops): Remove.
34594 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34595 (do_reload): Use loop_optimizer_finalize.
34596 * ira-build.c (create_loop_tree_nodes): Use get_loops and
34597 number_of_loops to access the loop tree.
34598 (more_one_region_p): Likewise.
34599 (finish_loop_tree_nodes): Likewise.
34600 (rebuild_regno_allocno_maps): Likewise.
34601 (mark_loops_for_removal): Likewise.
34602 (mark_all_loops_for_removal): Likewise.
34603 (remove_unnecessary_regions): Likewise.
34604 (ira_build): Likewise.
34605 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34607 2013-02-08 Richard Biener <rguenther@suse.de>
34609 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34610 * ipa-pure-const.c (analyze_function): Avoid calling
34611 mark_irreducible_loops twice.
34612 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34614 2013-02-07 David S. Miller <davem@davemloft.net>
34616 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34618 * var-tracking.c (vt_add_function_parameter): Test the presence of
34619 HAVE_window_save properly and do not remap argument registers when
34620 we have a leaf function.
34622 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
34625 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34627 * config/i386/i386.c (ix86_print_operand): Ditto.
34629 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34631 * lra-constraints.c (process_alt_operands): Fix recently added comment.
34633 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34635 PR rtl-optimization/56225
34636 * lra-constraints.c (process_alt_operands): Check that reload hard
34637 reg can hold value for strict_low_part.
34639 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34642 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34643 dwarf2out_end_function.
34644 (in_first_function_p, maybe_at_text_label_p,
34645 first_loclabel_num_not_at_text_label): New variables.
34646 (dwarf2out_var_location): In the first function find out
34647 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34648 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34651 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
34653 PR rtl-optimization/56178
34654 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34655 SUBREG of a register. Tidy up related block of code.
34656 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34657 note if the source is a register or a SUBREG of a register.
34659 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34662 * config/rs6000/rs6000.md (ptrm): New mode attr.
34663 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34664 call_value_indirect_aix<pttrsize>,
34665 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34668 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
34670 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34671 if -bnortl. Convert to strcmp and strncmp.
34673 2013-02-07 Alan Modra <amodra@gmail.com>
34676 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34677 addresses won't wrap when offsetting.
34678 (rs6000_secondary_reload): Provide secondary reloads needed for
34679 wrapping LO_SUM addresses.
34681 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
34683 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34684 MACH, just __MACH__.
34686 2013-02-06 Richard Biener <rguenther@suse.de>
34688 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34689 instead of calling fix_loop_structure.
34691 2013-02-06 Jakub Jelinek <jakub@redhat.com>
34693 PR middle-end/56217
34694 * omp-low.c (use_pointer_for_field): Return false if
34695 lower_send_shared_vars doesn't generate any copy-out code.
34697 2013-02-06 Tom de Vries <tom@codesourcery.com>
34699 PR rtl-optimization/56131
34700 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34701 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
34702 of the label is NULL. Add comment.
34704 2013-02-05 Jakub Jelinek <jakub@redhat.com>
34706 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34709 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34710 (STATIC_LIBTSAN_LIBS): Likewise.
34711 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34712 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34713 is defined, don't add anything else beyond that.
34714 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34715 (LINK_COMMAND_SPEC): Use them.
34717 PR tree-optimization/56205
34718 * tree-stdarg.c (check_all_va_list_escapes): Return true if
34719 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34720 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34722 2013-02-05 Richard Biener <rguenther@suse.de>
34724 PR tree-optimization/53342
34725 PR tree-optimization/53185
34726 * tree-vectorizer.h (vect_check_strided_load): Remove.
34727 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34728 not disallow peeling for vectorized strided loads.
34729 (vect_check_strided_load): Make static and simplify.
34730 (vect_analyze_data_refs): Adjust.
34731 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34732 correctly when vectorizing strided loads.
34734 2013-02-05 Richard Biener <rguenther@suse.de>
34736 * doc/install.texi: Refer to ISL, not PPL.
34738 2013-02-05 Jan Hubicka <jh@suse.cz>
34740 PR tree-optimization/55789
34741 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34743 2013-02-05 Jan Hubicka <jh@suse.cz>
34745 PR tree-optimization/55789
34746 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34747 the dead call anyway.
34749 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
34752 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34754 2013-02-04 Alexander Potapenko <glider@google.com>
34755 Jack Howarth <howarth@bromo.med.uc.edu>
34756 Jakub Jelinek <jakub@redhat.com>
34759 * config/darwin.c (sort_ctor_records): Stabilized qsort
34760 on constructor priority by using original position.
34761 (finalize_ctors): New routine to sort constructors by
34762 priority before use in assemble_integer.
34763 (machopic_asm_out_constructor): Use finalize_ctors if needed.
34765 2013-02-04 Jakub Jelinek <jakub@redhat.com>
34768 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34769 about visibility on artificial decls.
34770 * config/sol2.c (solaris_assemble_visibility): Likewise.
34772 2013-02-04 Kai Tietz <ktietz@redhat.com>
34775 * config/i386/i386.c (function_value_ms_64): Add additional valtype
34776 argument and improve checking of return-argument types for 16-byte
34778 (ix86_function_value_1): Add additional valtype argument on call
34779 of function_value_64.
34780 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34781 handling infunction_value_64 function.
34783 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34785 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34787 2013-02-04 Richard Biener <rguenther@suse.de>
34789 PR tree-optimization/56188
34790 * tree-ssa-structalias.c (label_visit): Consider case with
34791 initially non-empty points-to set.
34792 (perform_var_substitution): Dump node mapping and clean up.
34794 2013-02-04 Richard Guenther <rguenther@suse.de>
34797 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34798 node prevail as last resort.
34799 (lto_symtab_merge_decls): Remove guard on LTRANS here.
34800 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34802 2013-02-04 Richard Biener <rguenther@suse.de>
34804 PR tree-optimization/56113
34805 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34807 (equiv_class_lookup_or_add): ... this.
34808 (label_visit): Adjust and fix error in previous patch.
34809 (perform_var_substitution): Adjust.
34811 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34813 * config/sh/divtab.c: Fix formatting and comments throughout the file.
34814 * config/sh/sh4-300.md: Likewise.
34815 * config/sh/sh4a.md: Likewise.
34816 * config/sh/constraints.md: Likewise.
34817 * config/sh/sh.md: Likewise.
34818 * config/sh/netbsd-elf.h: Likewise.
34819 * config/sh/predicates.md: Likewise.
34820 * config/sh/sh-protos.h: Likewise.
34821 * config/sh/ushmedia.h: Likewise.
34822 * config/sh/linux.h: Likewise.
34823 * config/sh/sh.c: Likewise.
34824 * config/sh/superh.h: Likewise.
34825 * config/sh/elf.h: Likewise.
34826 * config/sh/sh4.md: Likewise.
34827 * config/sh/sh.h: Likewise.
34829 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34831 * config/pa/constraints.md: Adjust unused letters. Change "T"
34832 constraint to match_test floating_point_store_memory_operand().
34833 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34834 (base14_operand): New.
34835 (floating_point_store_memory_operand): New.
34836 (integer_store_memory_operand): Revise to use base14_operand and
34837 reg_plus_base_memory_operand.
34838 (move_dest_operand): Allow symbolic_memory_operands.
34839 (symbolic_memory_operand): Check for LO_SOM.
34840 (symbolic_operand): Change default case to break.
34841 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34842 CONST_DOUBLE values to be reloaded by putting them into memory when
34843 the destination is a floating point register.
34844 (movdf): Remove code to handle CONST_DOUBLE.
34846 (reload_indf_r1): New.
34847 (reload_insf_r1): New.
34848 Consistently use "Q" and "T" constraints with integer and floating
34849 point move instructions, respectively.
34850 (movdi): Remove FAIL.
34851 Change predicate for source operand unamed DImode move from
34852 general_operand to move_src_operand.
34853 (umulsidi3): Change predicate for destination operand to
34855 Likewise for similar unamed patterns.
34856 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34857 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34858 (hppa_legitimize_address): Simplify mask calculation.
34859 (pa_emit_move_sequence): Revised handling of secondary reloads from
34860 REG+D addresses for floating point loads and stores. Directly handle
34861 loading CONST0_RTX (mode) to a floating point register.
34862 (pa_secondary_reload): Handle reloading DF and SFmode constant values
34863 to floating point registers. Don't restrict secondary reloads to
34864 floating point registers to integer modes. Revise some comments and
34866 (TARGET_LEGITIMATE_ADDRESS_P): Define.
34867 (pa_legitimate_address_p): New.
34868 (pa_legitimize_reload_address): New.
34869 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34870 (STRICT_REG_OK_FOR_BASE_P): New.
34871 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
34872 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34874 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
34875 Andrew Dixie <andrewd@gentrack.com>
34877 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34880 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
34882 * expmed.c (extract_bit_field_1): Pass the full width of the
34883 structure to get_best_reg_extraction_insn.
34885 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
34888 * configure.ac (use_cxa_atexit): Add AIX.
34889 * configure: Regenerate.
34891 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34893 2013-02-01 Jakub Jelinek <jakub@redhat.com>
34896 * final.c (need_profile_function): New variable.
34897 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34898 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34899 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34900 notes, targetm.asm_out.function_prologue doesn't emit anything,
34901 HAVE_prologue and profiler should be emitted before prologue,
34902 set need_profile_function instead of emitting it.
34903 (final_scan_insn): If need_profile_function, emit
34904 profile_function on the first NOTE_INSN_BASIC_BLOCK or
34905 NOTE_INSN_FUNCTION_BEG note.
34907 2013-02-01 Richard Henderson <rth@redhat.com>
34909 * config/rs6000/rs6000.md (smulditi3): New.
34912 * config/alpha/alpha.md (umulditi3): New.
34914 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
34916 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34917 (ASM_OUTPUT_ALIGNED_LOCAL): New.
34919 2013-02-01 Richard Biener <rguenther@suse.de>
34921 PR tree-optimization/56113
34922 * tree-ssa-structalias.c (label_visit): Reduce work for
34923 single-predecessor nodes.
34925 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
34927 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34928 range isn't testing for zero.
34930 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
34932 PR middle-end/56113
34933 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34935 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
34936 Nick Clifton <nickc@redhat.com>
34938 * config/v850/constraints.md (Q): Define as a memory constraint.
34939 * config/v850/predicates.md (label_ref_operand): New predicate.
34940 (e3v5_shift_operand): New predicate.
34941 (ior_operator): New predicate.
34942 * config/v850/t-v850: Add e3v5 multilib.
34943 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34944 (v850_gen_movdi): Prototype.
34945 * config/v850/v850.c: Add support for e3v5 architecture.
34946 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34948 (construct_save_jarl): Add e3v5 long JARL support.
34949 (v850_adjust_insn_length): New function. Adjust length of call
34950 insns when using e3v5 instructions.
34951 (v850_gen_movdi): New function: Generate instructions to move a
34953 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34954 (CPP_SPEC): Define __v850e3v5__ as appropriate.
34955 (TARGET_USE_FPU): Enable for e3v5.
34956 (CONST_OK_FOR_W): New macro.
34957 (ADJUST_INSN_LENGTH): Define.
34958 * config/v850/v850.md (UNSPEC_LOOP): Define.
34959 (attr cpu): Add v850e3v5.
34960 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34961 (movdi): New pattern.
34962 (movdi_internal): New pattern.
34963 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34964 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34965 (cstoresf4): Likewise.
34966 (cstoredf4): Likewise.
34967 (insv): New pattern.
34968 (rotlso3_a): New pattern.
34969 (rotlsi3_b): New pattern
34970 (rotlsi3_v850e3v5): New pattern.
34971 (doloop_begin): New pattern.
34972 (fix_loop_counter): New pattern.
34973 (doloop_end): New pattern.
34974 (branch_normal): Add e3v5 long branch support.
34975 (branch_invert): Likewise.
34976 (branch_z_normal): Likewise.
34977 (branch_z_invert): Likewise.
34978 (branch_nz_normal): Likewise.
34979 (branch_nz_invert): Likewise.
34980 (call_internal_short): Add e3v5 register-indirect JARL support.
34981 (call_internal_long): Likewise.
34982 (call_value_internal_short): Likewise.
34983 (call_value_internal_long): Likewise.
34984 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34985 (mloop): New option.
34986 * config.gcc: Add support for configuring v840e3v5 target.
34987 * doc/invoke.texi: Document new v850 specific command line options.
34989 2013-01-31 Paul Koning <ni1d@arrl.net>
34993 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34994 children if parent is a class.
34995 (prune_unused_types_prune): Don't add DW_AT_declaration.
34997 2013-01-31 Richard Biener <rguenther@suse.de>
34999 PR tree-optimization/56157
35000 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35001 match up operand with SLP child.
35003 2013-01-31 Jason Merrill <jason@redhat.com>
35006 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35007 parameters the first time.
35008 (gen_scheduled_generic_parms_dies): Check completeness here.
35010 2013-01-31 Richard Biener <rguenther@suse.de>
35012 PR middle-end/53073
35013 * common.opt (faggressive-loop-optimizations): New flag,
35014 enabled by default.
35015 * doc/invoke.texi (faggressive-loop-optimizations): Document.
35016 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35017 infer_loop_bounds_from_undefined by it.
35019 2013-01-31 Richard Biener <rguenther@suse.de>
35021 PR tree-optimization/56150
35022 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35023 visit virtual operands.
35024 (find_uses_to_rename_bb): Likewise.
35026 2013-01-31 Richard Biener <rguenther@suse.de>
35028 PR tree-optimization/56150
35029 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35030 mixed store non-store stmts.
35032 2013-01-30 Jakub Jelinek <jakub@redhat.com>
35035 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35036 LIBASAN_EARLY_SPEC is defined.
35037 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35038 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35040 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35043 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35044 invalid args instead of ICEing on it.
35045 (ix86_valid_target_attribute_tree): Return error_mark_node if
35046 ix86_valid_target_attribute_inner_p failed.
35047 (ix86_valid_target_attribute_p): Return false only if
35048 ix86_valid_target_attribute_tree returned error_mark_node. Allow
35049 target("default") attribute.
35050 (sorted_attr_string): Change argument from const char * to tree,
35051 merge in all target attribute arguments rather than just one.
35052 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
35053 instead of free. Avoid using strcat.
35054 (ix86_mangle_function_version_assembler_name): Mangle
35055 target("default") as if no target attribute is present. Adjust
35056 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
35057 instead of xmalloc and XDELETEVEC instead of free.
35058 (ix86_function_versions): Don't return true if one of the decls
35059 doesn't have target attribute. If they don't and one of the decls
35060 is DECL_FUNCTION_VERSIONED, report an error. Adjust
35061 sorted_attr_string caller. Use XDELETEVEC instead of free.
35062 (ix86_supports_function_versions): Remove.
35063 (make_name): Fix up formatting.
35064 (make_dispatcher_decl): Remove resolver_name and its initialization.
35065 Avoid leaking memory.
35066 (is_function_default_version): Return true if there is
35067 target("default") attribute rather than no target attribute at all.
35068 (make_resolver_func): Avoid leaking memory.
35069 (ix86_generate_version_dispatcher_body): Likewise.
35070 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35071 * target.def (supports_function_versions): Remove.
35072 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35073 * doc/tm.texi: Regenerated.
35075 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
35077 PR rtl-optimization/56144
35078 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35079 for values with side effects.
35081 2013-01-30 Richard Biener <rguenther@suse.de>
35083 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35084 (sparseset_pop): Likewise.
35085 * cfganal.c (compute_idf): Likewise. Increase work-stack size
35086 to be able to use quick_push in the worker loop.
35088 2013-01-30 Marek Polacek <polacek@redhat.com>
35090 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35092 2013-01-30 Richard Biener <rguenther@suse.de>
35095 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35097 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
35099 PR tree-optimization/56064
35100 * fixed-value.c (fixed_from_double_int): New function.
35101 * fixed-value.h (fixed_from_double_int): New prototype.
35102 (const_fixed_from_double_int): New static inline function.
35103 * fold-const.c (native_interpret_fixed): New static function.
35104 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35105 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35106 (native_encode_fixed): New static function.
35107 (native_encode_expr) <FIXED_CST>: Use it.
35108 (native_interpret_int): Move double_int worker code to...
35109 * double-int.c (double_int::from_buffer): ...this new static method.
35110 * double-int.h (double_int::from_buffer): Prototype it.
35112 2013-01-30 Richard Biener <rguenther@suse.de>
35114 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35115 New pointer-map and obstack.
35116 (init_alias_vars): Allocate pointer-map and obstack.
35117 (delete_points_to_sets): Free them.
35118 (find_what_var_points_to): Cache result.
35119 (find_what_p_points_to): Adjust for changed interface of
35120 find_what_var_points_to.
35121 (compute_points_to_sets): Likewise.
35122 (ipa_pta_execute): Likewise.
35124 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35126 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35127 * configure: Regenerate.
35128 * config.in: Regenerate.
35129 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35130 #nobits/#progbits if supported.
35132 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
35135 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35136 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35137 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35139 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35141 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35142 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35144 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35146 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35147 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35149 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35151 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35153 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35154 * config/arm/cortex-a7.md: New bypasses using
35155 arm_mac_accumulator_is_result.
35157 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35159 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
35160 (cortex_a7_neon_mla): Likewise.
35161 (cortex_a7_fpfmad): New reservation.
35162 (cortex_a7_fpmacs): Use ffmas and update required units.
35163 (cortex_a7_fpmuld): Update required units and latency.
35164 (cortex_a7_fpmacd): Likewise.
35165 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35166 (cortex_a7_neon). Likewise.
35167 (bypass) Update participating units.
35169 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35171 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35172 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35174 * config/arm/vfp11.md (vfp_farith): Use ffmas.
35175 (vfp_fmul): Use ffmad.
35176 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35177 (cortex_r4_fmacd): Use ffmad.
35178 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35179 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
35180 (cortex_a9_fmacd): Use ffmad.
35181 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35182 (cortex_a8_vfp_macd): Use ffmad.
35183 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35184 (cortex_a5_fpmacd): Use ffmad.
35185 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35186 (cortex_a15_vfp_macd): Use ffmad.
35187 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35189 2013-01-29 Jason Merrill <jason@redhat.com>
35192 * varasm.c (default_assemble_visibility): Don't warn about
35193 visibility on artificial decls.
35195 2013-01-29 Richard Biener <rguenther@suse.de>
35197 PR tree-optimization/56113
35198 * tree-ssa-structalias.c (equiv_class_lookup): Also return
35200 (label_visit): Free duplicate bitmaps and record the leader instead.
35201 (perform_var_substitution): Adjust.
35203 2013-01-29 Richard Biener <rguenther@suse.de>
35205 PR tree-optimization/55270
35206 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35207 the CFG, schedule loops for fixup.
35209 2013-01-29 Nick Clifton <nickc@redhat.com>
35211 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35214 2013-01-28 Leif Ekblad <leif@rdos.net>
35216 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35217 * config/i386/i386.h (TARGET_RDOS): New macro.
35218 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35219 * config/i386/i386.c (ix86_option_override_internal): For 64bit
35220 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35221 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35222 DEFAULT_LARGE_SECTION_THRESHOLD.
35223 * config/i386/i386.md (R14_REG, R15_REG): New constants.
35224 * config/i386/rdos.h: New file.
35225 * config/i386/rdos64.h: New file.
35227 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
35230 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35233 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35235 PR rtl-optimization/56117
35236 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35237 call cselib_lookup_from_insn on the MEM before calling
35238 add_insn_mem_dependence.
35240 2013-01-28 Richard Biener <rguenther@suse.de>
35242 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35243 to a stmt that didn't have one.
35244 (copy_phis_for_bb): Likewise for PHI arguments.
35245 (copy_debug_stmt): Likewise for debug stmts.
35247 2013-01-28 Richard Biener <rguenther@suse.de>
35249 PR tree-optimization/56034
35250 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35251 (partition_builtin_p): Adjust.
35252 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
35253 it is the last partition.
35254 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35255 up the vertex for the definition.
35256 (classify_partition): Classify whether a partition is a
35257 PKIND_REDUCTION, thus has uses outside of the loop.
35258 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35259 Merge all PKIND_REDUCTION partitions into the last partition.
35260 (tree_loop_distribution): Seed partitions from reductions as well.
35262 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35264 PR tree-optimization/56125
35265 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35266 pow(x,c) into sqrt(x) * powi(x, n/2) or
35267 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35268 optimizing for size.
35269 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35270 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35273 PR tree-optimization/56094
35274 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35275 to UNKNOWN_LOCATION while gimplifying expr.
35277 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
35280 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35281 operand 0 in movabs insn template for -masm=intel asm alternative.
35282 (*movabs<mode>_2): Ditto for operand 1.
35284 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
35287 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35290 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35292 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35295 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35297 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35298 Undef to avoid warning.
35300 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35302 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35303 * configure: Regenerate.
35305 2013-01-25 Jakub Jelinek <jakub@redhat.com>
35307 PR tree-optimization/56098
35308 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35309 for stmts with volatile ops.
35310 (cond_store_replacement): Don't optimize if assign has volatile ops.
35311 (cond_if_else_store_replacement_1): Don't optimize if either
35312 then_assign or else_assign have volatile ops.
35313 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35316 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35318 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35320 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35322 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35323 missing ':' in asm example.
35325 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
35327 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35328 entries into lane and laneq entries.
35329 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35330 Remove AdvSIMD scalar modes.
35331 (aarch64_sq<r>dmulh_laneq<mode>): New.
35332 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35334 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35335 builtin implementations to relfect changes in RTL in aarch64-simd.md.
35336 * config/aarch64/iterators.md (VCOND): New.
35339 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35342 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35343 Add NULL LIBNAME argument to existing definitions.
35344 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35345 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35346 * config/avr/avr.c (DEF_BUILTIN): Same.
35347 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35348 (avr_expand_builtin): Expand to a vanilla call if a libgcc
35349 implementation is available (DECL_ASSEMBLER_NAME is set).
35350 (avr_fold_absfx): New static function.
35351 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35352 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35353 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35354 AVR_BUILTIN_ABSLLK.
35355 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35356 (abshk, absk, abslk, absllk): Provide as static inline functions.
35358 2013-01-25 Marek Polacek <polacek@redhat.com>
35360 PR tree-optimization/56035
35361 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35363 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
35365 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35366 (*movtf_internal_rex64): Add (!o,C) alternative
35367 (*movxf_internal_rex64): Ditto.
35368 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35370 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
35372 * doc/invoke.texi: fix typo.
35373 * doc/objc.texi: fix typo.
35375 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
35377 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35378 for the first two alternatives.
35380 2013-01-24 Diego Novillo <dnovillo@google.com>
35382 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
35383 (ggc-zone.o): Remove.
35384 * configure.ac: Remove option --with-gc.
35385 * configure: Re-generate.
35386 * doc/install.texi: Remove documentation for --with-gc.
35387 * gengtype.c (write_enum_defn): Remove. Update all users.
35388 (write_Types_process_field): Remove generation of gt_e_* argument.
35389 (output_type_enum): Remove. Update all users.
35390 (write_enum_defn): Remove. Update all users.
35391 (enum alloc_zone): Remove. Update all users.
35392 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35393 * ggc-common.c (ggc_splay_alloc): Remove first argument.
35394 Update all callers.
35395 (struct ptr_data): Remove field TYPE. Update all users.
35396 (gt_pch_note_object): Remove argument TYPE. Update all users.
35397 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35399 * ggc-none.c (ggc_alloc_typed_stat): Remove.
35400 (struct alloc_zone): Remove.
35401 (ggc_internal_alloc_zone_stat): Remove.
35402 (ggc_internal_cleared_alloc_zone_stat): Remove.
35403 * ggc-page.c (ggc_alloc_typed_stat): Remove.
35404 (ggc_pch_count_object): Remove last argument. Update all users.
35405 (ggc_pch_alloc_object): Remove last argument. Update all users.
35406 (struct alloc_zone): Remove.
35407 * ggc-zone.c: Remove.
35408 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
35409 (struct alloc_zone): Remove.
35410 (ggc_alloc_typed_stat): Remove.
35411 (ggc_alloc_typed): Remove.
35412 (ggc_splay_alloc): Remove first argument.
35413 (rtl_zone): Remove. Update all users.
35414 (tree_zone): Remove. Update all users.
35415 (tree_id_zone): Remove. Update all users.
35416 (ggc_internal_zone_alloc_stat): Remove. Update all users.
35417 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
35418 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
35419 * tree-ssanames.c: Remove references to zone allocator in comments.
35421 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
35423 * config/avr/avr.c (avr_out_fract): Make register numbers that
35424 might be outside of source operand signed.
35426 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
35428 * config/i386/constraints.md (Yf): New constraint.
35429 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35430 of f constraint to conditionaly disable x87 register preferences.
35431 (*movdf_internal): Ditto.
35432 (*movsf_internal): Ditto.
35434 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
35436 PR inline-asm/55934
35437 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35438 that have operands with impossible constraints.
35439 Add a FIXME for a speed-up opportunity.
35440 * lra-constraints.c (process_alt_operands): Verify that a class
35441 selected from constraints on asms is valid for the operand mode.
35442 (curr_insn_transform): Remove incorrect comment.
35444 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
35446 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35447 TOC operand is a valid symbol ref in the constant pool.
35449 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35451 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35453 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
35456 * config/avr/stdfix.h: New file.
35457 * t-avr (stdfix-gcc.h): New rule to build it.
35458 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35460 2013-01-23 Kostya Serebryany <kcc@google.com>
35462 * config/darwin.h: remove dependency on
35463 CoreFoundation (asan on Mac OS).
35465 2013-01-23 Jakub Jelinek <jakub@redhat.com>
35468 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35469 instead of cmpdi_operand for first comparison operand.
35470 Don't assert that comparison operands aren't both constants.
35472 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35474 * doc/install.texi (Downloading the Source): Update references to
35475 downloading separate components.
35477 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35479 * doc/extend.texi (__int128): Improve grammar.
35481 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
35484 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35485 alternative to (o,r).
35486 (*movdi_internal_rex64): Remove (!o,n) alternative.
35487 (DImode immediate->memory splitter): Remove.
35488 (DImode immediate->memory peephole2): Remove.
35489 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35490 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35491 alternative to (!o,*r).
35492 (*movtf_internal_sse): New pattern.
35493 (*movxf_internal_rex64): New pattern.
35494 (*movxf_internal): Disable for TARGET_64BIT.
35495 (*movdf_internal_rex64): Remove (!o,F) alternative.
35497 2013-01-22 Jakub Jelinek <jakub@redhat.com>
35499 PR middle-end/56074
35500 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35501 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35502 * tree-vect-loop-manip.c (find_loop_location): Also ignore
35503 stmt locations where LOCATION_LOCUS of the stmt location is
35504 UNKNOWN_LOCATION or BUILTINS_LOCATION.
35507 * config/i386/i386.md (UNSPEC_STOS): New.
35508 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35509 *strsetqi_1): Add UNSPEC_STOS.
35511 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
35514 * doc/invoke.texi: Remove left over -Wsynth example.
35516 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35518 PR tree-optimization/56051
35519 * fold-const.c (fold_binary_loc): Don't fold
35520 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35521 a narrowing conversion, or widening conversion from signed
35524 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35526 PR rtl-optimization/56023
35527 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35528 dependent on debug instruction.
35530 2013-01-21 Martin Jambor <mjambor@suse.cz>
35532 PR middle-end/56022
35533 * function.c (allocate_struct_function): Call
35534 invoke_set_current_function_hook earlier.
35536 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35538 * reload1.c (init_reload): Only initialize reload_obstack
35539 during the first call.
35541 2013-01-21 Marek Polacek <polacek@redhat.com>
35543 * cfgloop.c (verify_loop_structure): Fix up grammar.
35545 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
35547 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35548 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35550 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35553 * config/arm/marvell-pj4.md: Update copyright year.
35554 Fix up use of alu to alu_reg and simple_alu_imm.
35556 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35558 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35560 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
35563 * lra-constraints.c (curr_insn_transform): Don't reuse original
35564 insn for secondary memory move when memory mode should be different.
35566 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35568 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35569 atomic_storedi_1): New patterns.
35571 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
35573 btver2 pipeline descriptions.
35574 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35576 * config/i386/i386.md (btver2_decode): New type attributes.
35577 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35579 * config/i386/btver2.md: New file describing btver2 pipelines.
35581 2013-01-19 Andrew Pinski <apinski@cavium.com>
35583 PR tree-optimization/52631
35584 * tree-ssa-sccvn (visit_use): Before looking up the original
35585 statement, try looking up the simplified expression.
35587 2013-01-19 Anthony Green <green@moxielogic.com>
35589 * config/moxie/moxie.c (moxie_expand_prologue): Set
35590 current_function_static_stack_size.
35592 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35594 PR tree-optimization/56029
35595 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35596 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35598 2013-01-18 Sharad Singhai <singhai@google.com>
35600 PR tree-optimization/55995
35601 * dumpfile.c (dump_loc): Print location only if available.
35602 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35604 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
35607 * lra-constraints.c (curr_insn_transform): Reuse original insn for
35608 secondary memory move.
35609 (inherit_reload_reg): Use rclass instead of cl for
35610 check_secondary_memory_needed_p.
35612 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35614 PR middle-end/56015
35615 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35616 the case where writing real complex part of target modifies op1.
35618 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
35620 * config/aarch64/aarch64-simd.md
35621 (aarch64_vcond_internal<mode>): Handle unordered cases.
35622 * config/aarch64/iterators.md (v_cmp_result): New.
35624 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
35625 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35627 * config/arm/marvell-pj4.md: New file.
35628 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35629 * config/arm/arm.md (generic_sched): Add marvell_pj4.
35630 (generic_vfp): Likewise.
35631 * config/arm/arm-cores.def: Add marvell-pj4.
35632 * config/arm/arm-tune.md: Regenerate.
35633 * config/arm/arm-tables.opt: Regenerate.
35634 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35635 * doc/invoke.texi: Document marvell-pj4.
35637 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
35639 * config/aarch64/arm_neon.h: Map scalar types to standard types.
35641 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35646 * var-tracking.c (negative_power_of_two_p): New.
35647 (global_get_addr_cache, local_get_addr_cache): New.
35648 (get_addr_from_global_cache, get_addr_from_local_cache): New.
35649 (vt_canonicalize_addr): Rewrite using the above. Adjust the
35651 (vt_stack_offset_p): Remove.
35652 (vt_canon_true_dep): Always canonicalize loc's address.
35653 (clobber_overlapping_mems): Make sure we have a MEM.
35654 (local_get_addr_clear_given_value): New.
35655 (val_reset): Clear local cached entries.
35656 (compute_bb_dataflow): Create and release the local cache.
35657 Disable duplicate MEMs clobbering.
35658 (emit_notes_in_bb): Clobber MEMs likewise.
35659 (vt_emit_notes): Create and release the local cache.
35660 (vt_initialize, vt_finalize): Create and release the global
35661 cache, respectively.
35662 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35664 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35666 PR libmudflap/53359
35667 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35668 not found in the symtab.
35670 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35673 PR rtl-optimization/55547
35674 PR rtl-optimization/53827
35677 * alias.c (offset_overlap_p): New, factored out of...
35678 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
35679 the conservative special case for symbolic constants. Don't
35680 adjust zero sizes on alignment.
35682 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
35684 PR rtl-optimization/52573
35685 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35686 REG_UNUSED for the same register.
35688 2013-01-17 Richard Biener <rguenther@suse.de>
35689 Marek Polacek <polacek@redhat.com>
35691 PR rtl-optimization/55833
35692 * loop-unswitch.c (unswitch_loops): Move loop verification...
35693 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
35694 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35695 Set it to true when we're removing a loop from hierarchy tree in
35696 an irreducible region.
35697 (fix_bb_placements): Adjust caller.
35698 (fix_loop_placements): Likewise.
35700 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
35702 * config/avr/builtins.def (DEF_BUILTIN): Factor out
35703 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35704 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35705 Remove ID. Adjust comments.
35706 * config/avr/avr-c.c (avr_builtin_name): Remove.
35707 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35708 * config/avr/avr.c (avr_tolower): New static function.
35709 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
35710 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35711 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35714 2013-01-17 Jan Hubicka <jh@suse.cz>
35716 PR tree-optimization/55273
35717 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35719 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
35722 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35723 store through atomic_store<mode>_1.
35724 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35726 2013-01-17 Martin Jambor <mjambor@suse.cz>
35728 PR tree-optimizations/55264
35729 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35730 for virtual methods.
35731 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35732 virtual methods before inlining is over.
35733 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35735 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35738 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
35740 PR rtl-optimization/56005
35741 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35742 pending reads for prefetch.
35744 2013-01-16 Ian Bolton <ian.bolton@arm.com>
35746 * config/aarch64/aarch64.md
35747 (*cstoresi_neg_uxtw): New pattern.
35748 (*cmovsi_insn_uxtw): New pattern.
35749 (*<optab>si3_uxtw): New pattern.
35750 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35751 (*<optab>si3_insn_uxtw): New pattern.
35752 (*bswapsi2_uxtw): New pattern.
35754 2013-01-16 Richard Biener <rguenther@suse.de>
35756 * tree-inline.c (tree_function_versioning): Remove set but
35757 never used variable.
35759 2013-01-16 Richard Biener <rguenther@suse.de>
35761 PR tree-optimization/55964
35762 * tree-flow.h (rename_variables_in_loop): Remove.
35763 (rename_variables_in_bb): Likewise.
35764 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35765 (copy_loop_before): Adjust and delete update-ssa status.
35766 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35767 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
35768 (rename_variables_in_loop): Remove.
35769 (slpeel_update_phis_for_duplicate_loop): Likewise.
35770 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35771 use available cfg machinery instead of duplicating it.
35772 Update PHI nodes and perform poor-mans SSA update here.
35773 (slpeel_tree_peel_loop_to_edge): Adjust.
35775 2013-01-16 Richard Biener <rguenther@suse.de>
35777 PR tree-optimization/54767
35778 PR tree-optimization/53465
35779 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35780 (vrp_visit_phi_node): For PHI arguments coming via backedges
35781 drop all symbolical range information.
35782 (execute_vrp): Compute backedges.
35784 2013-01-16 Richard Biener <rguenther@suse.de>
35786 * doc/install.texi: Update CLooG and ISL requirements to
35789 2013-01-16 Christian Bruel <christian.bruel@st.com>
35792 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35793 (broken_move): Handle UNSPECV_SP_SWITCH_B.
35794 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35796 2013-01-16 DJ Delorie <dj@redhat.com>
35798 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35799 (UNSPECV_SP_SWITCH_E): New.
35800 (sp_switch_1): Change to an unspec.
35801 (sp_switch_2): Change to an unspec. Don't use post-inc when we
35804 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
35806 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35807 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35808 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35809 (expand_mem_thread_fence): Ditto.
35810 (expand_mem_signal_fence): Ditto.
35811 (expand_atomic_load): Ditto.
35812 (expand_atomic_store): Ditto.
35814 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
35816 PR rtl-optimization/55547
35817 PR rtl-optimization/53827
35820 * alias.c (memrefs_conflict_p): Set sizes to negative after
35823 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35826 * function.c (thread_prologue_and_epilogue_insns): Always
35827 add crtl->drap_reg to set_up_by_prologue.set, even if
35828 stack_realign_drap is false.
35830 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35832 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35833 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35834 *call): Fix indention.
35836 2013-01-15 Tom de Vries <tom@codesourcery.com>
35839 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35842 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
35844 PR rtl-optimization/55153
35845 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35847 2013-01-15 Martin Jambor <mjambor@suse.cz>
35849 PR tree-optimization/55920
35850 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35851 accesses as grp_to_be_debug_replaced.
35853 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35855 PR tree-optimization/55920
35856 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35857 there is non-useless type conversion needed from debug rhs to lhs,
35858 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35860 2013-01-15 Joseph Myers <joseph@codesourcery.com>
35861 Mikael Pettersson <mikpe@it.uu.se>
35864 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35866 (ASM_OUTPUT_CASE_LABEL): Remove.
35867 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35868 * final.c (shorten_branches): Update alignment of labels before
35869 jump tables if CASE_VECTOR_SHORTEN_MODE.
35871 2013-01-15 Richard Biener <rguenther@suse.de>
35874 * system.h: Do not include gmp.h for building host tools.
35876 2013-01-15 Richard Biener <rguenther@suse.de>
35878 PR middle-end/55882
35879 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35880 account for bitpos when computing alignment.
35882 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
35884 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35885 (ix86_target_macros_internal): Likewise.
35887 * config/i386/i386.c (m_CORE2I7): Removed.
35888 (m_CORE_HASWELL): New macro.
35889 (m_CORE_ALL): Likewise.
35890 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35891 (initial_ix86_arch_features): Likewise.
35892 (processor_target_table): Initializations for Core avx2.
35893 (cpu_names): New names "core-avx2".
35894 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35895 PROCESSOR_CORE_HASWELL.
35896 (ix86_issue_rate): New case.
35897 (ia32_multipass_dfa_lookahead): Likewise.
35898 (ix86_sched_init_global): Likewise.
35900 * config/i386/i386.h (TARGET_HASWELL): New macro.
35901 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35902 (processor_type): New PROCESSOR_HASWELL.
35904 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35906 PR tree-optimization/55955
35907 * tree-vect-loop.c (vectorizable_reduction): Give up early on
35908 *SHIFT_EXPR and *ROTATE_EXPR codes.
35910 PR tree-optimization/48766
35911 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35912 -ftrapv disable -fwrapv.
35914 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35917 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35918 etc. to 1 and not to __flash.
35919 Use LL suffix for __INT24_MAX__ with -mint8.
35920 Use ULL suffix for __UINT24_MAX__ with -mint8.
35922 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35924 * config/avr/avr-arch.h
35925 (struct base_arch_s): Use typedef avr_arch_t instead.
35926 (struct arch_info_s): Use typedef avr_arch_info_t instead.
35927 (struct mcu_type_s): Use typedef avr_mcu_t instead.
35928 * config/avr/avr.c: Same.
35929 * config/avr/avr-devices.c: Same.
35930 * config/avr/driver-avr.c: Same.
35931 * config/avr/gen-avr-mmcu-texi.c: Same.
35932 * config/avr/avr-mcus.def: Adjust comment.
35934 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
35936 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35937 * config/aarch64/iterators.md (VALLDI): New.
35939 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
35940 Andi Kleen <ak@linux.intel.com>
35943 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35944 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35947 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35949 * config/avr/avr-stdint.h: Remove trailing blanks.
35950 * config/avr/avr-log.h: Same.
35951 * config/avr/avr-arch.h: Same.
35952 * config/avr/avr-devices.c: Same.
35953 * config/avr/avr-dimode.md: Same.
35954 * config/avr/predicates.md: Same.
35955 * config/avr/avr-c.c: Same. And fix typo.
35957 * config/avr/avr-protos.h: Same. And:
35958 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35959 (init_cumulative_args): Rename to avr_init_cumulative_args.
35960 (expand_prologue): Rename to avr_expand_prologue.
35961 (expand_epilogue): Rename to avr_expand_epilogue.
35962 (adjust_insn_length): Rename to avr_adjust_insn_length.
35963 (notice_update_cc): Rename to avr_notice_update_cc.
35964 (final_prescan_insn): Rename to avr_final_prescan_insn.
35965 * config/avr/avr.c: Same.
35966 * config/avr/avr.h: Same.
35967 * config/avr/avr.md: Remove trailing blanks.
35968 (prologue): Use avr_expand_prologue.
35969 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35971 2013-01-14 Richard Biener <rguenther@suse.de>
35973 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35974 verify_location, collect_subblocks): New functions.
35975 (verify_gimple_in_cfg): Verify that locations only reference
35976 BLOCKs in the functions BLOCK tree.
35978 2013-01-14 Richard Biener <rguenther@suse.de>
35980 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35982 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35984 (insert_out_of_ssa_copy_on_edge): Likewise.
35985 (rewrite_close_phi_out_of_ssa): Likewise.
35986 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35988 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35989 propagated constants.
35990 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35993 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35995 * config/avr/avr-modes.def: Add GPL copyright notice.
35997 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
35999 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36000 MEMMODEL_MASK to determine memory model.
36001 (atomic_store<mode>): Ditto from operands[2].
36002 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36004 2013-01-13 Jakub Jelinek <jakub@redhat.com>
36007 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36008 (fold_gimple_assign): Don't call unshare_expr here.
36009 (fold_ctor_reference): Call unshare_expr.
36011 2013-01-13 Terry Guo <terry.guo@arm.com>
36013 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36014 * doc/fragments.texi: Document MULTILIB_REUSE.
36015 * gcc.c (multilib_reuse): New internal spec.
36016 (set_multilib_dir): Also search multilib from multilib_reuse.
36017 * genmultilib (tmpmultilib3): Refactor code.
36018 (tmpmultilib4): Ditto.
36019 (multilib_reuse): New multilib argument.
36021 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
36023 * Makefile.in: Update copyright.
36025 2013-01-12 Tom de Vries <tom@codesourcery.com>
36027 PR middle-end/55890
36028 * calls.c (expand_call): Check if arg_nr is valid.
36030 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36032 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36033 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36034 documentation. Add missing '__' in front of
36035 __builtin_ia32_packssdw256.
36037 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36040 * config/s390/s390.c (s390_preferred_reload_class): Do not return
36041 NO_REGS for larl operands.
36042 (s390_reload_larl_operand): Use s390_load_address instead of
36045 2013-01-11 Richard Biener <rguenther@suse.de>
36047 * tree-cfg.c (verify_node_sharing_1): Split out from ...
36048 (verify_node_sharing): ... here.
36049 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36051 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
36053 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36054 Substitute TREECHECKING.
36055 * configure: Regenerate.
36056 * Makefile.in (TREECHECKING): New.
36058 2013-01-11 Richard Guenther <rguenther@suse.de>
36060 PR tree-optimization/44061
36061 * tree-vrp.c (extract_range_basic): Compute zero as
36062 value-range for __builtin_constant_p of function parameters.
36064 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
36066 Update copyright years.
36068 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
36070 PR rtl-optimization/55672
36071 * lra-eliminations.c (mark_not_eliminable): Permit addition with
36072 const to be eliminable.
36074 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
36076 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36077 * configure: Regenerate.
36079 2013-01-10 Richard Biener <rguenther@suse.de>
36081 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36083 2013-01-10 Richard Biener <rguenther@suse.de>
36086 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36087 locations for virtual PHI arguments.
36088 (rewrite_update_phi_arguments): Likewise.
36090 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
36092 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36095 2013-01-10 Jakub Jelinek <jakub@redhat.com>
36097 PR tree-optimization/55921
36098 * tree-complex.c (expand_complex_asm): New function.
36099 (expand_complex_operations_1): Call it for GIMPLE_ASM.
36101 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36104 * config/s390/s390.c (s390_symref_operand_p)
36105 (s390_loadrelative_operand_p): Merge the two functions.
36106 (s390_check_qrst_address, print_operand_address): Add parameters
36107 to s390_loadrelative_operand_p invokation.
36108 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36109 (s390_reload_larl_operand, s390_secondary_reload): Use
36110 s390_loadrelative_operand_p instead of s390_symref_operand_p.
36111 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36113 2013-01-09 Mike Stump <mikestump@comcast.net>
36115 * dse.c (record_store): Remove unnecessary assert.
36117 2013-01-09 Jan Hubicka <jh@suse.cz>
36119 PR tree-optimization/55569
36120 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36121 * cfgloop.h (scale_loop_profile): Likewise.
36123 2013-01-09 Jan Hubicka <jh@suse.cz>
36126 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36128 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36130 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
36132 PR middle-end/55114
36133 * expr.h (maybe_emit_group_store): Declare.
36134 * expr.c (maybe_emit_group_store): New function.
36135 * builtins.c (expand_builtin_int_roundingfn): Call it.
36136 (expand_builtin_int_roundingfn_2): Likewise.
36138 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
36140 PR rtl-optimization/55829
36141 * lra-constraints.c (match_reload): Add code for absent output.
36142 (curr_insn_transform): Add code for reloads of matched inputs
36145 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
36147 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36148 attribute of movddup insn to DF.
36149 (*vec_interleave_lowv2df): Ditto.
36150 (vec_dupv2df): Ditto.
36152 2013-01-09 Jan Hubicka <jh@suse.cz>
36154 PR tree-optimiation/55875
36155 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36156 EVERY_ITERATION parameter.
36157 (number_of_iterations_exit): Check if exit is executed every iteration.
36158 (idx_infer_loop_bounds): Similarly here.
36159 (n_of_executions_at_most): Simplify
36160 to only test for cases where statement is dominated by the
36161 particular bound; handle correctly the "postdominance" test.
36162 (scev_probably_wraps_p): Use max loop iterations info
36163 as a global bound first.
36165 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
36166 Nick Clifton <nickc@redhat.com>
36168 * config/v850/v850.md (cbranchsf4): New pattern.
36169 (cstoresf4): New pattern.
36170 (cbranchdf4): New pattern.
36171 (cstoredf4): New pattern.
36172 (movsicc): Disallow floating point comparisons.
36173 (cmpsf_le_insn): Fix order of operators.
36174 (cmpsf_lt_insn): Likewise.
36175 (cmpsf_eq_insn): Likewise.
36176 (cmpdf_le_insn): Likewise.
36177 (cmpdf_lt_insn): Likewise.
36178 (cmpdf_eq_insn): Likewise.
36179 (cmpsf_ge_insn): Use LE comparison.
36180 (cmpdf_ge_insn): Likewise.
36181 (cmpsf_gt_insn): Use LT comparison.
36182 (cmpdf_gt_insn): Likewise.
36183 (cmpsf_ne_insn): Delete pattern.
36184 (cmpdf_ne_insn): Delete pattern.
36185 * config/v850/v850.c (v850_gen_float_compare): Use
36186 gen_cmpdf_eq_insn for NE comparison.
36187 (v850_float_z_comparison_operator)
36188 (v850_float_nz_comparison_operator): Move from here ...
36189 * config/v850/predicates.md: ... to here. Move GT and GE
36190 comparisons into v850_float_z_comparison_operator.
36191 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36193 (v850_float_nz_comparison_operator): Likewise.
36195 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36197 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36198 with calls to gen_insvsi/gen_insvdi.
36200 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36202 * config/i386/i386.c (initial_ix86_tune_features): Set up
36203 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36205 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
36206 Jakub Jelinek <jakub@redhat.com>
36208 PR tree-optimization/48189
36209 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36210 If nitercst is 0, don't predict the exit edge.
36212 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36214 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36215 in asm_fprintf with reg_names.
36216 (aarch64_print_operand_address): Likewise.
36217 (aarch64_return_addr): Likewise.
36218 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36220 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36222 * config/pa/pa.h (VAL_U6_BITS_P): Define.
36223 (INT_U6_BITS): Likewise.
36224 * config/pa/predicates.md (uint6_operand): New predicate.
36225 (shift5_operand, shift6_operand): Likewise.
36226 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36228 (lshrdi3): Use shift6_operand.
36229 (shrpsi4, shrpdi4): New insn patterns.
36230 (extzv): Delete expander.
36231 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
36232 predicates in unamed zero extract patterns. Tighten common constraint.
36233 (extv): Delete expander.
36234 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
36235 predicates in unamed sign extract patterns. Tighten common constraint.
36236 (insv): Delete expander.
36237 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
36238 predicates in unamed insert patterns. Tighten common constraint.
36239 Change uint32_operand predicate to uint6_operand predicate in unamed
36240 DImode pattern to insert constant values of type 1...1xxxx.
36242 2013-01-04 Jan Hubicka <jh@suse.cz>
36244 PR tree-optimization/55823
36245 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36248 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36249 Uros Bizjak <ubizjak@gmail.com>
36251 PR rtl-optimization/55845
36252 * df-problems.c (can_move_insns_across): Stop scanning at
36253 volatile_insn_p source instruction or give up if
36254 across_from .. across_to range contains any volatile_insn_p
36257 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36259 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36260 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36262 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36263 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36265 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36268 * asan.c (asan_clear_shadow): New function.
36269 (asan_emit_stack_protection): Use it.
36271 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36273 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36274 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36275 with tab instead of space.
36277 2013-01-08 Nick Clifton <nickc@redhat.com>
36279 * config/rl78/rl78.c (rl78_expand_prologue): Always select
36280 register bank 0 at the start of an interrupt handler.
36281 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36284 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36286 * config/aarch64/aarch64-simd.md
36287 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36288 (aarch64_simd_bsl): Likewise.
36289 (aarch64_vcond_internal<mode>): Likewise.
36290 (vcond<mode><mode>): Likewise.
36291 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36292 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36294 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36296 * config/aarch64/aarch64-builtins.c
36297 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36299 2013-01-08 Martin Jambor <mjambor@suse.cz>
36302 * tree-sra.c (analyze_access_subtree): Return true also after
36303 potentially creating a debug-only replacement.
36305 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36307 PR middle-end/55890
36308 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36310 PR tree-optimization/54120
36311 * tree-vrp.c (range_fits_type_p): Don't allow
36312 src_precision < precision from signed vr to unsigned_p
36313 if vr->min or vr->max is negative.
36314 (simplify_float_conversion_using_ranges): Test can_float_p
36315 against CODE_FOR_nothing.
36317 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36318 Richard Biener <rguenther@suse.de>
36320 PR middle-end/55851
36321 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36322 types instead of just INTEGER_TYPE types.
36324 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
36326 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36329 2013-01-07 Steve Ellcey <sellcey@mips.com>
36332 * config/mips/mips.opt: Change mad to mmad to match documentation.
36334 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36337 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36338 .progmemx.data now.
36340 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36343 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36344 (avr_addrspace_t): Add .section_name field.
36345 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36347 (avr_addrspace): Same. Initialize .section_name. Remove last
36348 NULL entry. Put __memx into .progmemx.data.
36349 (progmem_section_prefix): Remove.
36350 (avr_asm_init_sections): No need to initialize progmem_section.
36351 (avr_asm_named_section): Use avr_addrspace[].section_name to get
36352 section name prefix.
36353 (avr_asm_select_section): Ditto. And use get_unnamed_section to
36354 retrieve the progmem section.
36355 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36356 boundary to run over avr_addrspace[].
36357 (avr_register_target_pragmas): Ditto.
36359 2013-01-06 Jakub Jelinek <jakub@redhat.com>
36361 * varasm.c (output_constant_def_contents): For asan_protect_global
36362 protected strings, adjust DECL_ALIGN if needed, before testing for
36364 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36365 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
36367 (output_object_block): For asan protected decls, emit asan padding
36368 after their contents.
36369 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36370 (asan_finish_file): Test it here instead.
36372 2013-01-07 Nick Clifton <nickc@redhat.com>
36373 Matthias Klose <doko@debian.org>
36374 Doug Kwan <dougkwan@google.com>
36375 H.J. Lu <hongjiu.lu@intel.com>
36378 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36380 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36382 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36384 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36386 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36388 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36391 * doc/install.texi (Cross-Compiler-Specific Options): Document
36394 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
36396 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36397 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36398 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36399 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36400 vqmovun_high_s64): Fix source operand number and update copyright.
36402 2013-01-07 Richard Biener <rguenther@suse.de>
36404 PR middle-end/55890
36405 * gimple.h (gimple_call_builtin_p): New overload.
36406 * gimple.c (validate_call): New function.
36407 (gimple_call_builtin_p): Likewise.
36408 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36409 Use gimple_call_builtin_p.
36410 (find_func_clobbers): Likewise.
36411 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36412 (strlen_optimize_stmt): Likewise.
36414 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36416 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36417 (vld1q_dup_*): Likewise.
36418 (vld1_*): Likewise.
36419 (vld1q_*): Likewise.
36420 (vld1_lane_*): Likewise.
36421 (vld1q_lane_*): Likewise.
36423 2013-01-07 Richard Biener <rguenther@suse.de>
36425 * lto-streamer.h (LTO_minor_version): Bump to 2.
36427 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36429 * config/aarch64/aarch64-protos.h
36430 (aarch64_const_double_zero_rtx_p): Rename to...
36431 (aarch64_float_const_zero_rtx_p): ...this.
36432 (aarch64_float_const_representable_p): New.
36433 (aarch64_output_simd_mov_immediate): Likewise.
36434 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36435 move immediate case.
36436 * config/aarch64/aarch64.c
36437 (aarch64_const_double_zero_rtx_p): Rename to...
36438 (aarch64_float_const_zero_rtx_p): ...this.
36439 (aarch64_print_operand): Allow printing of new constants.
36440 (aarch64_valid_floating_const): New.
36441 (aarch64_legitimate_constant_p): Check for valid floating-point
36443 (aarch64_simd_valid_immediate): Likewise.
36444 (aarch64_vect_float_const_representable_p): New.
36445 (aarch64_float_const_representable_p): Likewise.
36446 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36447 (aarch64_output_simd_mov_immediate): New.
36448 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36449 (*movdf_aarch64): Likewise.
36450 * config/aarch64/constraints.md (Ufc): New.
36451 (Y): call aarch64_float_const_zero_rtx.
36452 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36454 2013-01-07 Richard Biener <rguenther@suse.de>
36456 PR tree-optimization/55888
36457 PR tree-optimization/55862
36458 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36459 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36460 not if it is contained therein.
36462 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36464 * config/avr/t-avr: Typo.
36466 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36469 * config/avr/t-avr: Don't automatically rebuild
36470 $(srcdir)/config/avr/t-multilib
36471 $(srcdir)/config/avr/avr-tables.opt
36472 $(srcdir)/doc/avr-mmcu.texi
36473 (avr-mcus): New phony target to build them on request.
36474 (s-avr-mlib, s-avr-mmcu-texi): Remove.
36475 * avr/avr-mcus.def: Adjust comments.
36477 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
36479 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36481 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36483 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36485 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36487 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36489 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
36491 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36492 to generate profiling.
36493 * config/rs6000/aix64.h (LIB_SPEC): Same.
36495 2013-01-04 Andrew Pinski <apinski@cavium.com>
36497 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36499 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36501 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
36503 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36505 (ix86_expand_move): Ditto.
36506 (ix86_zero_extend_to_Pmode): Ditto.
36507 (ix86_expand_call): Ditto.
36508 (ix86_expand_special_args_builtin): Ditto.
36509 (ix86_expand_builtin): Ditto.
36511 2013-01-04 Richard Biener <rguenther@suse.de>
36513 PR tree-optimization/55862
36514 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36515 translating them through PHI nodes.
36517 2013-01-04 Martin Jambor <mjambor@suse.cz>
36519 PR tree-optimization/55755
36520 * tree-sra.c (sra_modify_assign): Do not check that an access has no
36521 children when trying to avoid producing a VIEW_CONVERT_EXPR.
36523 2013-01-04 Marek Polacek <polacek@redhat.com>
36525 PR middle-end/55859
36526 * opts.c (default_options_optimization): Clarify error message.
36528 2013-01-04 Richard Biener <rguenther@suse.de>
36530 PR middle-end/55863
36531 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36534 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36537 * config/pa/pa.md (movsi): Revert previous change.
36538 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36541 2013-01-03 Richard Henderson <rth@redhat.com>
36543 * config/i386/i386.c (ix86_expand_move): Always assign to op1
36544 after eliminating TLS symbols.
36546 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
36549 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36550 * graphite-poly.c (debug_gmp_value): Likewise.
36552 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
36555 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36556 selected code model, define __code_mode_small__, __code_model_medium__,
36557 __code_model_large__, __code_model_32__ or __code_model_kernel__.
36558 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36559 xchg temporary register with %k. Declare temporary register as
36561 [__x86_64__]: For medium and large code models, preserve %rbx register.
36563 2013-01-03 Richard Biener <rguenther@suse.de>
36565 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36566 (dump_subscript): Adjust.
36567 (finalize_ddr_dependent): Do not dump redundant info.
36568 (analyze_siv_subscript): Adjust.
36569 (subscript_dependence_tester): Likewise.
36570 (compute_affine_dependence): Likewise.
36572 2013-01-03 Richard Biener <rguenther@suse.de>
36575 2013-01-03 Richard Biener <rguenther@suse.de>
36577 PR tree-optimization/55857
36578 * tree-vect-stmts.c (vectorizable_load): Do not setup
36579 re-alignment for invariant loads.
36581 2013-01-02 Richard Biener <rguenther@suse.de>
36583 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36584 invariant load do not generate a vector load from the scalar location.
36586 2013-01-03 Richard Biener <rguenther@suse.de>
36588 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36589 for not vectorizing.
36590 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36591 not build INDIRECT_REFs, call get_name once only.
36592 (vect_create_data_ref_ptr): Likewise. Dump base object kind
36593 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36595 2013-01-03 Richard Biener <rguenther@suse.de>
36597 PR tree-optimization/55857
36598 * tree-vect-stmts.c (vectorizable_load): Do not setup
36599 re-alignment for invariant loads.
36601 2013-01-03 Richard Biener <rguenther@suse.de>
36604 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36605 prefer a built-in decl.
36607 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36609 * gcc.c (process_command): Update copyright notice dates.
36610 * gcov.c (print_version): Likewise.
36611 * gcov-dump.c (print_version): Likewise.
36613 PR rtl-optimization/55838
36614 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36615 iv0.step, iv1.step and step.
36617 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36618 Marc Glisse <marc.glisse@inria.fr>
36620 PR tree-optimization/55832
36621 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36622 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36623 integer_{one,zero}_node.
36625 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36628 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36629 * var-tracking.c (reverse_op): Don't add reverse ops to
36630 VALUEs that have already
36631 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36633 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
36635 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36637 2013-01-02 Teresa Johnson <tejohnson@google.com>
36639 * dumpfile.c (dump_loc): Print filename with location.
36640 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36641 new location_t parameter to emit complete unroll message with
36642 new dump framework.
36643 (canonicalize_loop_induction_variables): Compute loops location
36644 and pass to try_unroll_loop_completely.
36645 * loop-unroll.c (report_unroll_peel): New function.
36646 (peel_loops_completely): Use new dump format with location
36647 for main dumpfile message, and invoke report_unroll_peel on success.
36648 (decide_unrolling_and_peeling): Ditto.
36649 (decide_peel_once_rolling): Remove old dumpfile message subsumed
36650 by report_unroll_peel.
36651 (decide_peel_completely): Ditto.
36652 (decide_unroll_constant_iterations): Ditto.
36653 (decide_unroll_runtime_iterations): Ditto.
36654 (decide_peel_simple): Ditto.
36655 (decide_unroll_stupid): Ditto.
36656 * cfgloop.c (get_loop_location): New function.
36657 * cfgloop.h (get_loop_location): Declare.
36659 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36661 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36664 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36666 PR middle-end/55198
36667 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36668 BLKmode objects when EXPAND_MEMORY is specified.
36670 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36672 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36674 (fold_builtin_cpu): Do not share cpu model decls across statements.
36676 2013-01-02 Jason Merrill <jason@redhat.com>
36679 * tree.c (build_array_type_1): Revert earlier change.
36681 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
36683 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36685 * config/aarch64/aarch64-tune.md: Re-generate.
36687 2013-01-02 Richard Biener <rguenther@suse.de>
36689 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36690 invariant load do not generate a vector load from the scalar location.
36692 2013-01-02 Richard Biener <rguenther@suse.de>
36695 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36696 * configure: Regenerate.
36698 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36700 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36701 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36702 (expand_builtin_int_roundingfn_2): Keep the original target around
36703 for the fallback case.
36705 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36707 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36708 to be clear for sign changes.
36710 2013-01-01 Jan Hubicka <jh@suse.cz>
36712 * ipa-inline-analysis.c: Fix formatting.
36714 2013-01-01 Jakub Jelinek <jakub@redhat.com>
36716 PR tree-optimization/55831
36717 * tree-vect-loop.c (get_initial_def_for_induction): Use
36718 gsi_after_labels instead of gsi_start_bb.
36720 Copyright (C) 2013 Free Software Foundation, Inc.
36722 Copying and distribution of this file, with or without modification,
36723 are permitted in any medium without royalty provided the copyright
36724 notice and this notice are preserved.