1 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
3 * config/arc/arc.h (BITS_PER_UNIT): Removed.
4 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
5 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
6 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
7 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
8 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
9 * config/spu/spu.h (BITS_PER_UNIT): Removed.
10 * defaults.h (BITS_PER_UNIT): Removed.
11 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
12 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
13 (MAX_BITSIZE_MODE_ANY_INT): Updated.
14 * doc/tm.texi (BITS_PER_UNIT): Removed.
15 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
16 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
17 (create_modes): Added code to set bits_per_unit and
18 max_bitsize_mode_any_int.
19 (emit_max_int): Changed code generation.
20 * mkconfig.sh: Added insn-modes.h.
22 2013-12-13 Jeff Law <law@redhat.com>
24 PR tree-optimization/45685
25 * tree-ssa-phiopt.c (neg_replacement): New function.
26 (tree_ssa_phiopt_worker): Call it.
28 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
30 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
32 2013-12-13 Bin Cheng <bin.cheng@arm.com>
34 PR tree-optimization/58296
35 PR tree-optimization/41488
36 * tree-scalar-evolution.c: Include necessary header files.
37 (simplify_peeled_chrec): New function.
38 (analyze_evolution_in_loop): New static variable.
39 Call simplify_peeled_chrec.
40 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
41 (add_old_iv_candidates): Don't add candidate for peeled IV.
42 * tree-affine.h (aff_combination_zero_p): New function.
44 2013-12-13 Nick Clifton <nickc@redhat.com>
46 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
47 true if the current function has the wakeup attribute.
48 (msp430_start_function): Note if the function has the wakeup
50 (msp430_attribute_table): Add wakeup attribute.
51 (msp430_expand_epilogue): Add support for wakeup functions.
52 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
54 * doc/extend.texi: Document the wakeup attribute.
56 2013-12-13 Kai Tietz <kitetz@redhat.com>
59 * config/i386/i386.c (ix86_option_override_internal): Set for
60 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
63 2013-12-12 Jeff Law <law@redhat.com>
65 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
66 for zero-extended MULT simple LEA pattern.
68 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
71 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
74 2013-12-12 Jakub Jelinek <jakub@redhat.com>
77 * gimplify.c (omp_check_private): Add copyprivate argument, if it
78 is true, don't check omp_privatize_by_reference.
79 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
80 decl is private in outer context. Adjust omp_check_private caller.
82 2013-12-11 Jeff Law <law@redhat.com>
84 PR rtl-optimization/59446
85 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
86 test for crossing a loop header.
88 2013-12-11 Sriraman Tallam <tmsriram@google.com>
91 * config/i386/i386.c (get_builtin): New function.
92 (ix86_builtin_vectorized_function): Replace all instances of
93 ix86_builtins[...] with get_builtin(...).
94 (ix86_builtin_reciprocal): Ditto.
96 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
98 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
99 (lang_hooks_for_cilkplus): Remove.
100 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
101 (lhd_install_body_with_frame_cleanup): Likewise.
102 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
103 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
104 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
105 (LANG_HOOKS_CILKPLUS): Likewise.
106 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
107 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
108 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
109 (gimplify_call_expr): Likewise.
111 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
113 * expr.c (expand_assignment): Remove dependency on
114 flag_strict_volatile_bitfields. Always set the memory
116 (expand_expr_real_1): Likewise.
118 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
121 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
122 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
123 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
125 (store_fixed_bit_field_1): New function.
126 (store_split_bit_field): Limit the unit size to the memory mode size,
127 to prevent recursion.
129 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
130 Sandra Loosemore <sandra@codesourcery.com>
136 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
137 and bitregion_end parameters. Test for compliance with C++
139 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
140 Add fallback logic for cases where -fstrict-volatile-bitfields
141 is supposed to apply, but cannot.
142 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
143 extract_fixed_bit_field_1 to do the extraction.
144 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
145 Call extract_fixed_bit_field_1 to do the real work.
146 (extract_fixed_bit_field_1): New function.
148 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
154 * expmed.c (strict_volatile_bitfield_p): New function.
155 (store_bit_field_1): Don't special-case strict volatile
157 (store_bit_field): Handle strict volatile bitfields here instead.
158 (store_fixed_bit_field): Don't special-case strict volatile
160 (extract_bit_field_1): Don't special-case strict volatile
162 (extract_bit_field): Handle strict volatile bitfields here instead.
163 (extract_fixed_bit_field): Don't special-case strict volatile
164 bitfields here. Simplify surrounding code to resemble that in
165 store_fixed_bit_field.
166 * doc/invoke.texi (Code Gen Options): Update
167 -fstrict-volatile-bitfields description.
169 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
171 * configure.ac: Add check for aarch64 assembler -mabi support.
172 * configure: Regenerate.
173 * config.in: Regenerate.
174 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
175 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
176 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
177 if assembler does not support -mabi and option ilp32 is selected.
178 * doc/install.texi: Added note that building gcc 4.9 and after
179 with pre 2.24 binutils will not support -mabi=ilp32.
181 2013-12-11 Marek Polacek <polacek@redhat.com>
184 * expr.c (expand_expr_real_1): Remove assert dealing with
185 internal calls and turn that into a condition instead.
187 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
189 * config/arm/arm.opt (mlra): Enable LRA by default.
191 2013-12-11 Jakub Jelinek <jakub@redhat.com>
193 PR tree-optimization/59417
194 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
195 in a different bb rhan var, only duplicate points-to info and
196 not alignment info and don't duplicate range info.
197 * tree-ssa-loop-niter.c (determine_value_range): Instead of
198 assertion failure handle inconsistencies in range info by only
199 using var's range info and not PHI result range infos.
201 PR tree-optimization/59386
202 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
203 unshare_expr (id->retval) before passing it to gimple_build_assign.
205 2013-12-11 Bin Cheng <bin.cheng@arm.com>
208 2013-12-10 Bin Cheng <bin.cheng@arm.com>
209 PR tree-optimization/41488
210 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
211 for PEELED_CHREC kind IV.
212 * tree-scalar-evolution.c: Include necessary header files.
213 (peeled_chrec_map, simplify_peeled_chrec): New.
214 (analyze_evolution_in_loop): New static variable.
215 Call simplify_peeled_chrec.
216 (scev_initialize): Initialize peeled_chrec_map.
217 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
219 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
222 * config/i386/i386.md (*movsf_internal): Set mode to SI for
225 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
227 PR rtl-optimization/58295
228 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
229 WORD_REGISTER_OPERATIONS targets.
231 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
233 * genrecog.c (validate_pattern): Treat all messages except missing
235 * config/epiphany/epiphany.md: Remove constraints from
237 * config/h8300/h8300.md: Remove constraints from define_splits.
238 * config/msp430/msp430.md: Likewise.
239 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
240 nonimmediate_operand rather than general_operand for operand 0.
241 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
242 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
243 Use match_operator rather than match_test to invoke general_operand.
244 * config/v850/v850.md (*movqi_internal, *movhi_internal)
245 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
247 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
249 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
250 register_operand rather than pointer_operand. Add modes to the
252 (insn_ldna_add<bitsuffix>): Likewise.
253 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
254 (insn_ldnt_add<bitsuffix>): Likewise.
255 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
256 (insn_ld_add_L2<bitsuffix>): Likewise.
257 (insn_ldna_add_L2<bitsuffix>): Likewise.
258 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
259 (insn_ldnt_add_L2<bitsuffix>): Likewise.
260 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
261 (insn_ld_add_miss<bitsuffix>): Likewise.
262 (insn_ldna_add_miss<bitsuffix>): Likewise.
263 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
264 (insn_ldnt_add_miss<bitsuffix>): Likewise.
265 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
266 (insn_st_add<bitsuffix>): Likewise.
267 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
268 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
269 (insn_stnt_add<bitsuffix>): Likewise.
270 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
271 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
272 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
273 reg_or_0_operand for operand 0.
274 (insn_v2<pack_insn>): Likewise.
275 (vec_pack_hipart_v4hi): Likewise.
276 (insn_v2packh): Likewise.
277 (vec_pack_ssat_v2si): Likewise.
278 (insn_v4packsc): Likewise.
280 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
282 * basic-block.h (gcov_working_set_t): Put back typedef.
283 * gcov-io.h (gcov_bucket_type): Likewise.
284 (gcov_working_set_info, gcov_working_set_t): Likewise.
286 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
288 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
290 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
291 rename to cgraph_inline_failed_t.
292 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
294 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
296 * conditions.h (CC_STATUS): Remove typedef.
297 * bitmap.h (bitmap_obstack): Remove typedef.
298 (bitmap_element_def, bitmap_element): Remove typedef and rename to
300 (bitmap_head_def, bitmap_head): Remove typedef and rename to
302 (bitmap_iterator): Remove typedef.
303 * target.h (cumulative_args_t, print_switch_type,
304 secondary_reload_info): Remove typedef.
305 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
306 dw_cfi_oprnd_struct alias.
307 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
308 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
309 (cfa_loc, dw_cfa_location): Remove typedef and rename to
311 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
313 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
314 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
316 * params.h (param_info, compiler_param): Remove typedef.
317 * opts.h (cl_deferred_param): Remove typedef.
318 * sreal.h (sreal): Remove typedef.
319 * ddg.h (dep_type, dep_data_type): Remove typedef.
320 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
322 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
323 lto_symtab_encoder_iterator, res_pair): Remove typedef.
324 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
325 and rename to aff_tree.
326 * sched-int.h (region): Remove typedef.
327 * diagnostic.h (diagnostic_info,
328 diagnostic_classification_change_t): Remove typedef.
329 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
331 * sbitmap.h (sbitmap_iterator): Remove typedef.
332 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
333 Remove typedef and rename to imm_use_iterator.
334 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
336 * ggc-internal.h (ggc_statistics): Remove typedef.
337 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
338 rename to cselib_val.
339 * tree-core.h (alias_pair): Remove typedef.
340 (constructor_elt_d, constructor_elt): Remove typedef and rename to
342 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
344 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
345 * tree-data-ref.h (conflict_function): Remove typedef.
346 * tree-inline.h (copy_body_data): Remove typedef.
347 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
348 edge_growth_cache_entry): Remove typedef.
349 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
350 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
351 Remove typedef and rename to gimple_stmt_iterator.
352 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
353 rename to ce_if_block.
354 (edge_iterator): Remove typedef.
355 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
356 and rename to ipa_agg_jf_item.
357 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
358 ipa_parm_adjustment_t): Remove typedef.
359 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
361 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
363 * gcov-io.h (gcov_bucket_type): Remove typedef.
364 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
365 to gcov_working_set_t.
366 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
367 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
368 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
369 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
370 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
371 replace_label_data): Remove typedef.
372 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
373 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
374 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
375 sel_region_bb_info_def, succ_iterator): Remove typedef.
376 (deps_where_def, deps_where_t): Remove typedef and rename to
378 * coretypes.h: Adapt forward declarations.
379 * tree-scalar-evolution.h: Likewise.
380 * tree-ssa-address.h: Likewise.
381 * tree-ssa-operands.h: Likewise.
382 * function.h: Likewise.
383 * config/frv/frv-protos.h: Likewise.
384 * targhooks.h: Likewise.
385 * basic_block.h: Likewise.
386 * rtl.def: Adapt documentation.
387 * doc/tm.texi: Likewise.
388 * ipa-cp.c: Adapt uses.
389 * bitmap.c: Likewise.
390 * dwarf2out.c: Likewise.
391 * target.def: Likewise.
392 * ipa-inline-analysis.c: Likewise.
393 * dwarf2cfi.c: Likewise.
394 * tree-ssa-loop-ivopts.c: Likewise.
395 * lto-cgraph.c: Likewise.
396 * config/frv/frv.c: Likewise.
398 * ipa-prop.c: Likewise.
400 2013-12-10 Kai Tietz <ktietz@redhat.com>
403 * config/i386/i386.c (ix86_expand_prologue): Address saved
404 registers stack-relative, not via frame-pointer.
406 2013-12-10 Richard Biener <rguenther@suse.de>
409 * tree-ssa-structalias.c (solution_set_expand): Expand into
410 a different possibly cached bitmap and return the result.
411 (set_union_with_increment): Pass in a shared expanded bitmap
413 (do_sd_constraint): Likewise.
414 (do_ds_constraint): Likewise.
415 (do_complex_constraint): Likewise.
416 (solve_graph): Manage the shared expanded bitmap.
418 2013-12-10 Jakub Jelinek <jakub@redhat.com>
420 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
421 (LOOP_VINFO_SCALAR_LOOP): Define.
422 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
423 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
424 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
426 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
428 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
430 (release_bb_predicate): New function.
431 (free_bb_predicate): Use it.
432 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
433 just to immediately allocate it again.
434 (add_to_predicate_list): Add loop argument. If basic blocks that
435 dominate loop->latch don't insert any predicate.
436 (add_to_dst_predicate_list): Adjust caller.
437 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
438 handle it like flag_tree_loop_if_convert_stores.
439 (insert_gimplified_predicates): Likewise.
440 (ifcvt_can_use_mask_load_store): New function.
441 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
442 argument, check if some conditional loads or stores can't be
443 converted into MASK_LOAD or MASK_STORE.
444 (if_convertible_stmt_p): Add any_mask_load_store argument,
445 pass it down to if_convertible_gimple_assign_stmt_p.
446 (predicate_bbs): Don't return bool, only check if the last stmt
447 of a basic block is GIMPLE_COND and handle that. Adjust
448 add_to_predicate_list caller.
449 (if_convertible_loop_p_1): Only call predicate_bbs if
450 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
451 afterwards, check gimple_code of stmts here. Replace is_predicated
452 check with dominance check. Add any_mask_load_store argument,
453 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
454 call if_convertible_phi_p only after all if_convertible_stmt_p
456 (if_convertible_loop_p): Add any_mask_load_store argument,
457 pass it down to if_convertible_loop_p_1.
458 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
459 (combine_blocks): Add any_mask_load_store argument, pass
460 it down to insert_gimplified_predicates and call predicate_mem_writes
461 if it is set. Call predicate_bbs.
462 (version_loop_for_if_conversion): New function.
463 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
464 calls. Return todo flags instead of bool, call
465 version_loop_for_if_conversion if if-conversion should be just
466 for the vectorized loops and nothing else.
467 (main_tree_if_conversion): Adjust caller. Don't call
468 tree_if_conversion for dont_vectorize loops if if-conversion
469 isn't explicitly enabled.
470 * tree-vect-data-refs.c (vect_check_gather): Handle
471 MASK_LOAD/MASK_STORE.
472 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
473 * gimple.h (gimple_expr_type): Handle MASK_STORE.
474 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
475 expand_MASK_STORE): New functions.
476 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
477 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
478 (vectorize_loops): Don't try to vectorize loops with
479 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
480 loops, fold LOOP_VECTORIZED internal call depending on if loop
481 has been vectorized or not.
482 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
484 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
485 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
486 still to loop's entry or exit edge.
487 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
488 down to slpeel_tree_duplicate_loop_to_edge_cfg.
489 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
491 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
492 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
493 right place in the CFG afterwards.
494 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
496 * cfgloop.h (struct loop): Add dont_vectorize field.
497 * tree-loop-distribution.c (copy_loop_before): Adjust
498 slpeel_tree_duplicate_loop_to_edge_cfg caller.
499 * optabs.def (maskload_optab, maskstore_optab): New optabs.
500 * passes.def: Add a note that pass_vectorize must immediately follow
502 * tree-predcom.c (split_data_refs_to_components): Give up if
504 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs
506 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
508 (vectorizable_mask_load_store): New function.
509 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
510 (vect_transform_stmt): Handle MASK_STORE.
511 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
512 DR_STMT where lhs is NULL.
513 * optabs.h (can_vec_perm_p): Fix up comment typo.
514 (can_vec_mask_load_store_p): New prototype.
515 * optabs.c (can_vec_mask_load_store_p): New function.
517 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
519 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
520 the extraction of a bit-field of null size.
522 2013-12-10 Marek Polacek <polacek@redhat.com>
525 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
526 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
527 instead of gimple_code.
529 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
531 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
532 Add android definitions.
533 (s390x-*-linux*): Use linux-protos.h.
535 2013-12-10 Bin Cheng <bin.cheng@arm.com>
537 PR tree-optimization/41488
538 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
539 for PEELED_CHREC kind IV.
540 * tree-scalar-evolution.c: Include necessary header files.
541 (peeled_chrec_map, simplify_peeled_chrec): New.
542 (analyze_evolution_in_loop): New static variable.
543 Call simplify_peeled_chrec.
544 (scev_initialize): Initialize peeled_chrec_map.
545 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
547 2013-12-09 Andrew Pinski <apinski@cavium.com>
549 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
550 that options are conflicting ones.
552 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
554 * optabs.c (gen_int_libfunc): Do not compare modes directly.
556 2013-12-09 David Malcolm <dmalcolm@redhat.com>
558 * basic-block.h (FOR_ALL_BB): Eliminate macro.
560 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
561 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
563 * cfganal.c (inverted_post_order_compute): Likewise.
564 * cfgcleanup.c (try_optimize_cfg): Likewise.
565 * cfgexpand.c (add_scope_conflicts): Likewise.
566 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
567 * cfgrtl.c (relink_block_chain): Likewise.
568 * dce.c (mark_artificial_uses): Likewise.
569 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
570 * df-problems.c (df_lr_verify_solution_start,
571 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
572 df_live_verify_solution_start, df_live_verify_solution_end,
573 df_live_set_all_dirty, df_live_verify_transfer_functions,
574 df_md_local_comput): Likewise.
575 * df-scan.c (df_scan_free_internal, df_scan_alloc)
576 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
577 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
578 free_dominance_info): Likewise.
579 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
580 * graph.c (draw_cfg_edges): Likewise.
581 * graphite-scop-detection.c (print_graphite_scop_statistics,
582 dot_all_scops_1): Likewise.
583 * graphite.c (print_global_statistics,
584 print_graphite_scop_statistics): Likewise.
585 * ira.c (do_reload): Likewise.
586 * loop-init.c (loop_optimizer_finalize): Likewise.
587 * lto-streamer-in.c (input_function): Likewise.
588 * lto-streamer-out.c (output_function): Likewise.
589 * mcf.c (adjust_cfg_counts): Likewise.
590 * predict.c (estimate_loops): Likewise.
591 * sched-rgn.c (haifa_find_rgns): Likewise.
592 * tree-cfg.c (split_critical_edges): Likewise.
593 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
594 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
595 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
596 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
597 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
598 * vtable-verify.c (vtable_verify_main): Likewise.
599 * web.c (web_main): Likewise.
601 2013-12-09 David Malcolm <dmalcolm@redhat.com>
603 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
605 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
606 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
607 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
608 rtl_verify_bb_insns, rtl_verify_bb_pointers,
609 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
610 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
611 * config/sh/sh.c (sh_md_init_global): Likewise.
612 * config/sh/sh_optimize_sett_clrt.cc
613 (sh_optimize_sett_clrt::execute): Likewise.
614 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
616 * dominance.c (calc_dfs_tree): Likewise.
617 * final.c (final): Likewise.
618 * function.c (thread_prologue_and_epilogue_insns): Likewise.
619 * gcse.c (compute_code_hoist_vbeinout): Likewise.
620 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
621 * lcm.c (compute_antinout_edge): Likewise.
622 * mode-switching.c (optimize_mode_switching): Likewise.
623 * postreload.c (reload_combine): Likewise.
624 * recog.c (split_all_insns, peephole2_optimize): Likewise.
625 * tree-ssa-live.c (live_worklist): Likewise.
627 2013-12-09 David Malcolm <dmalcolm@redhat.com>
629 * basic-block.h (FOR_EACH_BB): Eliminate macro.
631 * asan.c (transform_statements, execute_sanopt): Eliminate
632 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
634 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
635 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
636 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
637 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
638 insert_section_boundary_note, rest_of_handle_reorder_blocks,
639 duplicate_computed_gotos): Likewise.
640 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
641 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
642 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
643 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
644 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
645 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
647 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
648 verify_loop_structure): Likewise.
649 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
650 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
651 verify_hot_cold_block_grouping, purge_all_dead_edges,
652 fixup_abnormal_edges, record_effective_endpoints,
653 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
654 break_superblocks): Likewise.
655 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
656 cgraph_rebuild_references): Likewise.
657 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
658 * combine.c (delete_noop_moves, create_log_links,
659 combine_instructions): Likewise.
660 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
661 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
663 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
664 c6x_reorg): Likewise.
665 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
666 * config/frv/frv.c (frv_optimize_membar): Likewise.
667 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
668 * config/ia64/ia64.c (ia64_reorg): Likewise.
669 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
670 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
671 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
672 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
673 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
674 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
675 * config/tilegx/tilegx.c (tilegx_gen_bundles,
676 reorder_var_tracking_notes): Likewise.
677 * config/tilepro/tilepro.c (tilepro_gen_bundles,
678 reorder_var_tracking_notes): Likewise.
679 * coverage.c (coverage_compute_cfg_checksum): Likewise.
680 * cprop.c (compute_hash_table_work, compute_cprop_data,
681 local_cprop_pass, find_implicit_sets): Likewise.
682 * cse.c (cse_condition_code_reg): Likewise.
683 * dce.c (prescan_insns_for_dce): Likewise.
684 * df-core.c (df_compact_blocks): Likewise.
685 * df-problems.c (df_word_lr_alloc): Likewise.
686 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
687 df_update_entry_exit_and_calls): Likewise.
688 * dominance.c (calculate_dominance_info, verify_dominators,
689 debug_dominance_info): Likewise.
690 * dse.c (dse_step5_nospill): Likewise.
691 * except.c (finish_eh_generation): Likewise.
692 * final.c (compute_alignments): Likewise.
693 * function.c (thread_prologue_and_epilogue_insns,
694 rest_of_match_asm_constraints): Likewise.
695 * gcse.c (compute_hash_table_work, prune_expressions,
696 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
697 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
698 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
699 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
700 find_explicit_erroneous_behaviour): Likewise.
701 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
702 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
703 * haifa-sched.c (haifa_sched_init): Likewise.
704 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
706 * ifcvt.c (if_convert): Likewise.
707 * init-regs.c (initialize_uninitialized_regs): Likewise.
708 * ipa-prop.c (ipcp_transform_function): Likewise.
709 * ipa-pure-const.c (analyze_function): Likewise.
710 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
711 * ira-build.c (form_loop_tree): Likewise.
712 * ira-costs.c (find_costs_and_classes): Likewise.
713 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
714 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
715 mark_elimination, update_equiv_regs, find_moveable_pseudos,
716 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
717 * jump.c (mark_all_labels): Likewise.
718 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
719 compute_nearerout, compute_rev_insert_delete): Likewise.
720 * loop-init.c (fix_loop_structure): Likewise.
721 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
722 * lower-subreg.c (decompose_multiword_subregs,
723 decompose_multiword_subregs): Likewise.
724 * lra-assigns.c (assign_by_spills): Likewise.
725 * lra-coalesce.c (lra_coalesce): Likewise.
726 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
728 * lra-eliminations.c (lra_init_elimination): Likewise.
729 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
730 lra_final_code_change): Likewise.
731 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
732 update_inc_notes): Likewise.
733 * mcf.c (adjust_cfg_counts): Likewise.
734 * mode-switching.c (optimize_mode_switching): Likewise.
735 * modulo-sched.c (rest_of_handle_sms): Likewise.
736 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
737 expand_omp_target): Likewise.
738 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
739 * postreload.c (reload_cse_regs_1): Likewise.
740 * predict.c (strip_predict_hints, tree_bb_level_predictions,
741 tree_estimate_probability, expensive_function_p,
742 estimate_bb_frequencies, compute_function_frequency): Likewise.
743 * profile.c (is_inconsistent, compute_branch_probabilities,
744 branch_prob): Likewise.
745 * ree.c (find_removable_extensions): Likewise.
746 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
747 * regcprop.c (copyprop_hardreg_forward): Likewise.
748 * reginfo.c (init_subregs_of_mode): Likewise.
749 * regrename.c (regrename_analyze): Likewise.
750 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
752 * reload1.c (has_nonexceptional_receiver, reload,
753 calculate_elim_costs_all_insns): Likewise.
754 * resource.c (init_resource_info, free_resource_info): Likewise.
755 * sched-ebb.c (schedule_ebbs): Likewise.
756 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
757 haifa_find_rgns, sched_rgn_local_init): Likewise.
758 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
759 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
760 make_regions_from_the_rest): Likewise.
761 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
762 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
763 * store-motion.c (compute_store_table, build_store_vectors,
764 one_store_motion_pass): Likewise.
765 * tracer.c (tail_duplicate): Likewise.
766 * trans-mem.c (compute_transaction_bits): Likewise.
767 * tree-call-cdce.c (tree_call_cdce): Likewise.
768 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
769 fold_cond_expr_cond, make_edges, assign_discriminators,
770 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
771 dump_cfg_stats, gimple_verify_flow_info, print_loop,
772 execute_fixup_cfg): Likewise.
773 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
774 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
776 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
777 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
778 mark_reachable_handlers): Likewise.
779 * tree-emutls.c (lower_emutls_function_body): Likewise.
780 * tree-if-conv.c (main_tree_if_conversion): Likewise.
781 * tree-inline.c (optimize_inline_calls): Likewise.
782 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
783 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
784 * tree-object-size.c (compute_object_sizes): Likewise.
785 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
786 insert_backedge_copies, tree_profiling): Likewise.
787 * tree-scalar-evolution.c (scev_const_prop): Likewise.
788 * tree-sra.c (scan_function, sra_modify_function_body,
789 propagate_dereference_distances, ipa_sra_modify_function_body,
790 convert_callers): Likewise.
791 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
792 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
793 create_outofssa_var_map, coalesce_partitions): Likewise.
794 * tree-ssa-copy.c (init_copy_prop): Likewise.
795 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
796 * tree-ssa-dce.c (find_obviously_necessary_stmts,
797 eliminate_unnecessary_stmts): Likewise.
798 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
800 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
801 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
802 new_tree_live_info, calculate_live_on_exit, dump_live_info,
803 analyze_memory_references, fill_always_executed_in,
804 tree_ssa_lim_finalize): Likewise.
805 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
807 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
808 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
809 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
810 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
811 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
813 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
814 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
815 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
816 tree_ssa_uncprop): Likewise.
817 * tree-ssa-uninit.c (warn_uninitialized_vars,
818 execute_late_warn_uninitialized): Likewise.
819 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
820 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
822 * tree-switch-conversion.c (do_switchconv): Likewise.
823 * tree-vect-generic.c (expand_vector_operations): Likewise.
824 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
825 execute_vect_slp): Likewise.
826 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
827 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
829 * ubsan.c (ubsan_pass): Likewise.
830 * value-prof.c (verify_histograms, gimple_value_profile_transformations,
831 gimple_find_values_to_profile): Likewise.
832 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
833 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
835 2013-12-09 David Malcolm <dmalcolm@redhat.com>
837 * basic-block.h (last_basic_block): Eliminate macro.
839 * asan.c (transform_statements): Eliminate use of last_basic_block
840 in favor of last_basic_block_for_fn, in order to make use of cfun
842 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
843 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
844 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
845 * cfg.c (compact_blocks): Likewise.
846 * cfganal.c (mark_dfs_back_edges,
847 control_dependences::control_dependences, post_order_compute,
848 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
849 single_pred_before_succ_order): Likewise.
850 * cfgbuild.c (make_edges): Likewise.
851 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
852 * cfghooks.c (verify_flow_info): Likewise.
853 * cfgloop.c (verify_loop_structure): Likewise.
854 * cfgloopanal.c (just_once_each_iteration_p,
855 mark_irreducible_loops): Likewise.
856 * cfgloopmanip.c (fix_bb_placements, remove_path,
857 update_dominators_in_loop): Likewise.
858 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
859 break_superblocks, rtl_flow_call_edges_add): Likewise.
860 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
861 * config/frv/frv.c (frv_optimize_membar): Likewise.
862 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
863 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
864 * cprop.c (compute_local_properties, find_implicit_sets,
865 bypass_conditional_jumps, one_cprop_pass): Likewise.
866 * cse.c (cse_main): Likewise.
867 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
868 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
869 * df-problems.c (df_lr_verify_solution_start,
870 df_live_verify_solution_start, df_md_local_compute): Likewise.
871 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
872 calc_idoms): Likewise.
873 * domwalk.c (dom_walker::walk): Likewise.
874 * dse.c (dse_step0, dse_step3): Likewise.
875 * function.c (epilogue_done): Likewise.
876 * gcse.c (alloc_gcse_mem, compute_local_properties,
877 prune_insertions_deletions, compute_pre_data,
878 pre_expr_reaches_here_p, one_pre_gcse_pass,
879 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
880 one_code_hoisting_pass): Likewise.
881 * graph.c (draw_cfg_nodes_no_loops): Likewise.
882 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
883 * haifa-sched.c (unlink_bb_notes): Likewise.
884 * ipa-split.c (execute_split_functions): Likewise.
885 * ira-build.c (create_loop_tree_nodes,
886 remove_unnecessary_regions): Likewise.
887 * ira-emit.c (ira_emit): Likewise.
888 * ira.c (find_moveable_pseudos, ira): Likewise.
889 * lcm.c (compute_antinout_edge, compute_laterin,
890 compute_insert_delete, pre_edge_lcm, compute_available,
891 compute_nearerout, compute_rev_insert_delete,
892 pre_edge_rev_lcm): Likewise.
893 * loop-unroll.c (opt_info_start_duplication,
894 apply_opt_in_copies): Likewise.
895 * lower-subreg.c (decompose_multiword_subregs): Likewise.
896 * lra-lives.c (lra_create_live_ranges): Likewise.
897 * lra.c (lra): Likewise.
898 * mode-switching.c (optimize_mode_switching): Likewise.
899 * recog.c (split_all_insns): Likewise.
900 * regcprop.c (copyprop_hardreg_forward): Likewise.
901 * regrename.c (regrename_analyze): Likewise.
902 * reload1.c (reload): Likewise.
903 * resource.c (init_resource_info): Likewise.
904 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
905 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
906 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
907 recompute_rev_top_order, sel_init_pipelining,
908 make_regions_from_the_rest): Likewise.
909 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
911 * tracer.c (tail_duplicate): Likewise.
912 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
913 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
914 gimple_flow_call_edges_add): Likewise.
915 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
916 cleanup_tree_cfg_1): Likewise.
917 * tree-complex.c (tree_lower_complex): Likewise.
918 * tree-inline.c (copy_cfg_body): Likewise.
919 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
920 prepare_def_site_for, update_ssa): Likewise.
921 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
922 * tree-ssa-dom.c (record_edge_info): Likewise.
923 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
924 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
925 * tree-ssa-loop-manip.c (copy_phi_node_args
926 gimple_duplicate_loop_to_header_edge): Likewise.
927 * tree-ssa-pre.c (compute_antic): Likewise.
928 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
929 * tree-ssa-reassoc.c (init_reassoc): Likewise.
930 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
931 * tree-ssa-tail-merge.c (init_worklist): Likewise.
932 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
933 * tree-stdarg.c (reachable_at_most_once): Likewise.
934 * tree-vrp.c (find_assert_locations): Likewise.
935 * var-tracking.c (vt_find_locations): Likewise.
937 2013-12-09 David Malcolm <dmalcolm@redhat.com>
939 * basic-block.h (profile_status): Eliminate macro.
941 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
942 profile_status macro in favor of profile_status_for_fn, making
943 use of cfun explicit.
944 * cfghooks.c (account_profile_record): Likewise.
945 * cfgloopanal.c (single_likely_exit):
946 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
947 * graphite.c (graphite_finalize):
948 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
949 ubsan_expand_si_overflow_neg_check,
950 ubsan_expand_si_overflow_mul_check): Likewise.
951 * ipa-split.c (consider_split, execute_split_functions):
952 * loop-unroll.c (decide_peel_simple):
953 * optabs.c (emit_cmp_and_jump_insn_1):
954 * predict.c (maybe_hot_edge_p, probably_never_executed,
955 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
956 tree_estimate_probability_driver, estimate_bb_frequencies,
957 compute_function_frequency, rebuild_frequencies): Likewise.
958 * profile.c (compute_branch_probabilities): Likewise.
959 * tree-cfg.c (gimple_account_profile_record): Likewise.
960 * tree-inline.c (optimize_inline_calls): Likewise.
962 2013-12-09 David Malcolm <dmalcolm@redhat.com>
964 * basic-block.h (label_to_block_map): Eliminate macro.
966 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map
967 with uses of label_to_block_map_for_fn, making uses of cfun be
969 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
970 (verify_gimple_label): Likewise.
972 2013-12-09 David Malcolm <dmalcolm@redhat.com>
974 * basic-block.h (basic_block_info): Eliminate macro.
976 * cfgrtl.c (rtl_create_basic_block): Replace uses of
977 basic_block_info with basic_block_info_for_fn, making uses
979 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
981 2013-12-09 David Malcolm <dmalcolm@redhat.com>
983 * basic-block.h (BASIC_BLOCK): Eliminate macro.
985 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
986 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
987 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
988 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
989 * caller-save.c (insert_one_insn): Likewise.
990 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
991 * cfgexpand.c (add_scope_conflicts): Likewise.
992 * cfghooks.c (verify_flow_info): Likewise.
993 * cfgloop.c (flow_loops_find): Likewise.
994 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
995 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
996 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
997 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
998 * cse.c (cse_main): Likewise.
999 * dce.c (fast_dce): Likewise.
1000 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
1001 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
1002 df_bb_replace, df_dump_region): Likewise.
1003 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
1004 df_live_bb_local_compute, df_chain_remove_problem)
1005 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
1006 df_md_bb_local_compute, df_md_local_compute,
1007 df_md_transfer_function): Likewise.
1008 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
1009 df_reorganize_refs_by_insn, df_bb_refs_collect,
1010 df_record_entry_block_defs, df_update_entry_block_defs,
1011 df_record_exit_block_uses): Likewise.
1012 * dominance.c (nearest_common_dominator_for_set): Likewise.
1013 * gcse.c (hoist_code): Likewise.
1014 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1015 * ipa-inline-analysis.c (param_change_prob,
1016 estimate_function_body_sizes): Likewise.
1017 * ipa-split.c (dominated_by_forbidden): Likewise.
1018 * loop-unroll.c (apply_opt_in_copies): Likewise.
1019 * lower-subreg.c (decompose_multiword_subregs): Likewise.
1020 * lra-lives.c (lra_create_live_ranges): Likewise.
1021 * predict.c (propagate_freq): Likewise.
1022 * regrename.c (regrename_analyze): Likewise.
1023 * regstat.c (regstat_bb_compute_ri,
1024 regstat_bb_compute_calls_crossed): Likewise.
1025 * resource.c (mark_target_live_regs): Likewise.
1026 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
1027 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
1028 * sched-rgn.c (debug_region, dump_region_dot, too_large,
1029 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
1030 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
1031 * sched-vis.c (debug_bb_n_slim): Likewise.
1032 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
1033 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
1034 * sel-sched.c (remove_insns_that_need_bookkeeping)
1035 (current_region_empty_p, sel_region_init,
1036 simplify_changed_insns): Likewise.
1037 * trans-mem.c (execute_tm_mark, execute_tm_edges,
1038 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
1039 * tree-cfg.c (make_edges, end_recording_case_labels,
1040 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
1041 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
1042 gimple_purge_all_dead_eh_edges,
1043 gimple_purge_all_dead_abnormal_call_edges): Likewise.
1044 * tree-cfgcleanup.c (fixup_noreturn_call,
1045 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
1046 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
1047 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
1048 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
1049 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1050 * tree-ssa-live.c (live_worklist): Likewise.
1051 * tree-ssa-loop-manip.c (compute_live_loop_exits,
1052 add_exit_phis_var, find_uses_to_rename, copy_phi_node_args): Likewise.
1053 * tree-ssa-pre.c (compute_antic): Likewise.
1054 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests): Likewise.
1055 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1056 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
1057 same_succ_flush_bbs, update_worklist, set_cluster,
1058 same_phi_alternatives, find_clusters_1, apply_clusters,
1059 update_debug_stmts): Likewise.
1060 * tree-ssa-threadupdate.c (mark_threaded_blocks,
1061 thread_through_all_blocks): Likewise.
1062 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1063 * tree-vrp.c (find_assert_locations): Likewise.
1065 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1067 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
1069 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
1070 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
1071 (expunge_block): Likewise.
1072 * cfgrtl.c (create_basic_block_structure): Likewise.
1073 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
1074 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1075 * tree-cfg.c (create_bb): Likewise.
1077 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1079 * basic-block.h (profile_status_for_function): Rename to...
1080 (profile_status_for_fn): ...this.
1082 * cfg.c (check_bb_profile): Update for renaming.
1083 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
1084 * lto-streamer-in.c (input_cfg): Likewise.
1085 * lto-streamer-out.c (output_cfg): Likewise.
1086 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
1087 maybe_hot_bb_p, probably_never_executed)
1088 (handle_missing_profiles): Likewise.
1089 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1090 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
1092 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1094 * basic-block.h (label_to_block_map_for_function): Rename to...
1095 (label_to_block_map_for_fn): ...this.
1097 * lto-streamer-in.c (input_cfg): Update for renaming.
1098 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1100 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1102 * basic-block.h (last_basic_block_for_function): Rename to...
1103 (last_basic_block_for_fn): ...this.
1105 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
1106 last_basic_block_for_function to last_basic_block_for_fn.
1107 * lto-streamer-in.c (input_cfg): Likewise.
1108 * lto-streamer-out.c (output_cfg): Likewise.
1109 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1110 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
1113 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1115 * basic-block.h (basic_block_info_for_function): Rename to...
1116 (basic_block_info_for_fn): ...this.
1117 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
1118 (BASIC_BLOCK_FOR_FN): ...this.
1119 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
1120 (SET_BASIC_BLOCK_FOR_FN): ...this.
1122 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
1123 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
1124 * ipa-utils.c (ipa_merge_profiles): Likewise.
1125 * lto-streamer-in.c (make_new_block): Update for renaming of
1126 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
1127 (input_cfg): Update for renamings.
1128 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1129 (dump_function_to_file): Update for renaming of
1130 basic_block_info_for_function to basic_block_info_for_fn.
1132 2013-12-09 Richard Biener <rguenther@suse.de>
1135 * tree-ssa-structalias.c (set_union_with_increment): Remove
1137 (do_complex_constraint): Call set_union_with_increment with
1138 the solution delta, not the full solution.
1139 (make_transitive_closure_constraints): Merge the two
1142 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
1144 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
1145 more address validation checks.
1147 2013-12-09 Marek Polacek <polacek@redhat.com>
1150 * vtable-verify.c (verify_bb_vtables): Check the return value
1151 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
1153 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1155 * config/arm/arm.md (generic_sched): Add cortexa12.
1156 (generic_vfp): Likewise.
1157 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
1158 (arm_cortex_a12_tune): New tuning struct.
1159 * config/arm/arm-cores.def: Add cortex-a12.
1160 * config/arm/arm-tables.opt: Regenerate.
1161 * config/arm/arm-tune.md: Likewise.
1162 * config/arm/bpabi.h: Add cortex-a12.
1163 * doc/invoke.texi: Document -mcpu=cortex-a12.
1165 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1167 * doc/install.texi (Prerequisites): Explicitly mention C library
1168 and its headers for multilib builds.
1170 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
1174 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
1175 OPT_mcbranchdi entry.
1176 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
1178 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
1179 and TARGET_CMPEQDI_T variables.
1180 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
1182 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1184 * config/linux.h: Fix typo in a comment.
1186 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1188 * config.gcc (*linux*): Split libc selection from Android support.
1189 Add libc selection to all *linux* targets. Add Android support to
1190 architectures that support it.
1191 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
1192 (mips*-*-linux*): Add Android support.
1194 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
1195 Maxim Kuvyrkov <maxim@kugelworks.com>
1197 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
1198 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
1199 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
1201 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
1203 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
1204 Define appropriately for Linux and uClinux targets.
1206 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1208 * config/linux.c (linux_has_ifunc_p): Use correct test.
1210 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1212 * config/linux.c (linux_android_has_ifunc_p): Rename to
1214 (linux_android_libc_has_function): Rename to linux_libc_has_function.
1215 * config/linux-protos.h (linux_android_has_ifunc_p,)
1216 (linux_android_libc_has_function): Update declarations.
1217 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
1218 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
1220 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
1222 * linux-android.c: Rename to linux.c.
1223 * t-linux-android: Rename to t-linux. Update references
1225 * config.gcc: Update references to t-linux-android and linux-android.o.
1227 2013-12-07 Alan Modra <amodra@gmail.com>
1229 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
1232 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
1234 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
1236 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
1238 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
1241 2013-12-06 Caroline Tice <cmtice@google.com>
1243 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
1244 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
1245 vtable pointer with the results of the verification call, rather than
1246 only the uses in the next statement.
1248 2013-12-06 Andrew Pinski <apinski@cavium.com>
1251 * config/aarch64/aarch64.md (trap): New pattern.
1253 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1255 PR tree-optimization/59388
1256 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
1257 gimplify tem after stmt rather than before it.
1259 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
1260 (get_references_in_stmt): Don't record operand addresses, but
1261 operands themselves.
1262 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
1263 Adjust for the pos -> ref change.
1265 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1267 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
1269 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
1270 (processor_alias_table): Likewise.
1271 (ix86_option_override_internal): Likewise.
1272 * config/i386/i386.h (target_cpu_default): Replace
1273 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
1275 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
1277 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
1280 * config/i386/i386.c (type_natural_mode): Properly handle
1281 size 8 for !TARGET_64BIT.
1283 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
1285 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
1288 2013-12-06 Ian Bolton <ian.bolton@arm.com>
1289 Mark Mitchell <mark@codesourcery.com>
1292 * config/arm/arm.md (trap): New pattern.
1293 * config/arm/types.md: Added a type for trap.
1295 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1297 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
1299 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
1302 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
1303 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
1304 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
1305 (TARGET_BUILTIN_DECL): Define.
1306 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
1307 (sparc32_initialize_trampoline): Adjust call to gen_flush.
1308 (enum sparc_builtins): New enumeral type.
1309 (sparc_builtins): New static array.
1310 (sparc_builtins_icode): Likewise.
1311 (def_builtin): Accept a separate icode and save the result.
1312 (def_builtin_const): Likewise.
1313 (sparc_fpu_init_builtins): New function.
1314 (sparc_vis_init_builtins): Pass the builtin code.
1315 (sparc_init_builtins): Call it if TARGET_FPU.
1316 (sparc_builtin_decl): New function.
1317 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
1318 (sparc_handle_vis_mul8x16): Use the builtin code.
1319 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
1320 and SPARC_BUILTIN_PDISTN.
1321 (compound_expr): New helper function.
1322 (sparc_atomic_assign_expand_fenv): New function.
1323 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
1325 (flush, flushdi): Merge into single pattern.
1326 (ldfsr): New instruction.
1329 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1331 * asan.c: Remove struct tags when referring to class varpool_node.
1332 * cgraph.h: Likewise.
1333 * cgraphbuild.c: Likewise.
1334 * cgraphunit.c: Likewise.
1335 * dbxout.c: Likewise.
1336 * dwarf2out.c: Likewise.
1337 * gimple-fold.c: Likewise.
1338 * ipa-devirt.c: Likewise.
1339 * ipa-ref-inline.h: Likewise.
1340 * ipa-ref.h: Likewise.
1341 * ipa-reference.c: Likewise.
1342 * ipa-utils.c: Likewise.
1344 * lto-cgraph.c: Likewise.
1345 * lto-streamer-out.c: Likewise.
1346 * lto-streamer.h: Likewise.
1347 * passes.c: Likewise.
1348 * toplev.c: Likewise.
1349 * tree-eh.c: Likewise.
1350 * tree-emutls.c: Likewise.
1351 * tree-pass.h: Likewise.
1352 * tree-ssa-structalias.c: Likewise.
1353 * tree-vectorizer.c: Likewise.
1355 * varasm.c: Likewise.
1356 * varpool.c: Likewise.
1358 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1360 * cgraphunit.c: Remove struct tags when referring to class
1361 ipa_opt_pass_d or class opt_pass.
1362 * function.h: Likewise.
1363 * lto-cgraph.c: Likewise.
1364 * pass_manager.h: Likewise.
1365 * passes.c: Likewise.
1366 * tree-pass.h: Likewise.
1368 2013-12-06 Richard Biener <rguenther@suse.de>
1370 PR tree-optimization/59058
1371 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
1372 (LOOP_VINFO_NITERSM1): New macro.
1373 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
1374 the vector loop entry test in terms of scalar latch executions.
1375 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
1376 * tree-vect-loop.c (vect_get_loop_niters): Also return the
1377 number of latch executions.
1378 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
1379 (vect_analyze_loop_form): Likewise.
1380 (vect_generate_tmps_on_preheader): Compute the number of
1381 vectorized iterations differently.
1383 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1385 * config/score/score.c (score_force_temporary): Delete function.
1386 (score_split_symbol): Ditto.
1387 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
1388 parentheses to silence ambiguity warning and reindent.
1390 2013-12-05 Marek Polacek <polacek@redhat.com>
1392 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
1394 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1396 * config.gcc: Support --with-cpu=ia.
1398 * config/i386/i386.c (cpu_names): Add "ia".
1399 (processor_alias_table): Likewise.
1400 (ix86_option_override_internal): Disallow -march=ia.
1401 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
1403 * doc/invoke.texi: Document -mtune=ia.
1405 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
1407 PR rtl-optimization/59317
1408 * lra-constraints.c (in_class_p): Don't ignore insn with constant
1411 2013-12-05 Martin Jambor <mjambor@suse.cz>
1414 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
1415 non-BLKmode in their naturally aligned type.
1417 2013-12-05 Marek Polacek <polacek@redhat.com>
1421 * ubsan.c: Include rtl.h and expr.h.
1422 (ubsan_encode_value): Add new parameter. If expanding, assign
1423 a stack slot for DECL_RTL of the temporary and call expand_assignment.
1424 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
1425 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
1426 * ubsan.h (ubsan_encode_value): Adjust declaration.
1427 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
1428 ubsan_build_overflow_builtin above expand_normal call. Surround
1429 this call with push_temp_slots and pop_temp_slots.
1430 (ubsan_expand_si_overflow_neg_check): Likewise.
1431 (ubsan_expand_si_overflow_mul_check): Likewise.
1433 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
1435 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
1436 the get_alternative_base call with flag_expensive_optimizations.
1437 (alloc_cand_and_find_basis): Likewise.
1439 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
1441 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
1442 vec_select for overlapping register lanes.
1444 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1446 * config/i386/i386.c (ix86_expand_builtin): Generate
1447 reg for readflags built-in when optimizing.
1448 * config/i386/i386.md (*pushfl<mode>): Rename to ...
1449 (pushfl<mode>2): This. Fix iterator.
1450 (*popfl<mode>): Rename to ...
1451 (*popfl<mode>1): This. Fix iterator.
1453 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1455 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
1456 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
1457 (ix86_init_mmx_sse_builtins): Define
1458 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
1459 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
1460 (ix86_expand_builtin): Expand them.
1461 * config/i386/ia32intrin.h (__readeflags): New.
1462 (__writeeflags): Ditto.
1463 * config/i386/i386.md (*pushfl<mode>): Ditto.
1464 (*popfl<mode>1): Ditto.
1466 2013-12-05 Richard Biener <rguenther@suse.de>
1468 PR tree-optimization/59374
1469 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1470 Commonize known and unknown dependence case fixing the allowed
1471 read-write dependence case and dropping code that should not matter.
1473 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
1475 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
1476 generation of predicated version.
1477 (epilogue_deallocate_stack): Ditto.
1478 (prologue_allocate_stack_pr): Add explicit predicated version.
1479 (epilogue_deallocate_stack_pr): Ditto.
1480 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
1482 2013-12-05 Alan Modra <amodra@gmail.com>
1484 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
1486 <recursive call for build != host>: Clear GMPINC. Don't bother
1489 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1490 Marek Polacek <polacek@redhat.com>
1492 * opts.c (common_handle_option): Handle
1493 -fsanitize=signed-integer-overflow.
1494 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
1495 negv<mode>3, negv<mode>3_1): Define expands.
1496 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
1497 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
1498 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
1499 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
1500 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
1501 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
1502 PROB_ALWAYS): Define.
1503 (ubsan_build_overflow_builtin): Declare.
1504 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
1506 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
1507 (ubsan_build_overflow_builtin): New function.
1508 (instrument_si_overflow): Likewise.
1509 (ubsan_pass): Add signed integer overflow checking.
1510 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
1511 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
1512 * internal-fn.c: Include ubsan.h and target.h.
1513 (ubsan_expand_si_overflow_addsub_check): New function.
1514 (ubsan_expand_si_overflow_neg_check): Likewise.
1515 (ubsan_expand_si_overflow_mul_check): Likewise.
1516 (expand_UBSAN_CHECK_ADD): Likewise.
1517 (expand_UBSAN_CHECK_SUB): Likewise.
1518 (expand_UBSAN_CHECK_MUL): Likewise.
1519 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
1520 (-A) + B -> B - A when doing the signed integer overflow checking.
1521 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
1523 * tree-vrp.c (extract_range_basic): Handle internal calls.
1524 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
1526 * asan.c: Include predict.h.
1527 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
1528 * predict.c: Move the PROB_* macros...
1529 * predict.h (enum br_predictor): ...here.
1530 (PROB_LIKELY, PROB_UNLIKELY): Define.
1531 * trans-mem.c: Include predict.h.
1532 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
1533 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
1535 2013-12-04 Jeff Law <law@redhat.com>
1537 * common.opt: Split up -fisolate-erroneous-paths into
1538 -fisolate-erroneous-paths-dereference and
1539 -fisolate-erroneous-paths-attribute.
1540 * invoke.texi: Corresponding changes.
1541 * gimple.c (infer_nonnull_range): Add and use new arguments to control
1542 what kind of statements can be used to infer a non-null range.
1543 * gimple.h (infer_nonnull_range): Update prototype.
1544 * tree-vrp.c (infer_value_range): Corresponding changes.
1545 * opts.c (default_options_table): Update due to option split.
1546 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
1547 (find_implicit_erroneous_behaviour): Pass additional arguments
1548 to infer_nonnull_range.
1549 (find_explicit_erroneous_behaviour): Similarly.
1550 (gate_isolate_erroneous_paths): Check both of the new options.
1552 2013-12-04 Jeff Law <law@redhat.com>
1554 * expr.c (expand_assignment): Update comments.
1556 2013-12-04 Tobias Burnus <burnus@net-b.de>
1559 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
1560 * tree.def (NAMELIST_DECL): Add.
1561 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
1562 * tree.c (initialize_tree_contains_struct): Add asserts for it.
1563 * dwarf2out.c (gen_namelist_decl): New function.
1564 (gen_decl_die, dwarf2out_decl): Call it.
1565 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
1566 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
1567 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
1569 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
1571 2013-12-03 Xinliang David Li <davidxl@google.com>
1573 * tree-ssa-structalias.c (constraint_set_union): Change return type
1575 (merge_node_constraints): Ditto.
1576 (unify_nodes): Update changed set when constraints set changes.
1578 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
1580 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
1582 * configure: Regenerated.
1584 * gdbasan.in: New file.
1586 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1588 PR rtl-optimization/58726
1589 * combine.c (force_to_mode): Fix comment typo. Don't destructively
1590 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
1592 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1593 Uros Bizjak <ubizjak@gmail.com>
1596 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
1597 !TARGET_AVX there is misaligned MEM operand with vector mode
1598 and get_attr_ssememalign is 0, return false.
1599 (ix86_expand_special_args_builtin): Add get_pointer_alignment
1600 computed alignment and for non-temporal loads/stores also
1601 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
1602 * config/i386/sse.md
1603 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
1604 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
1605 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
1606 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
1607 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
1608 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
1609 *vec_interleave_highv2df, *vec_interleave_lowv2df,
1610 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
1611 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
1612 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
1613 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
1614 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
1615 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
1616 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
1617 * config/i386/i386.md (ssememalign): New define_attr.
1619 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1621 PR tree-optimization/59355
1622 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
1623 * opts.c (common_handle_option): Fix comment spelling.
1625 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
1627 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
1628 (name_expansions): New static variable.
1629 (alt_base_map): Ditto.
1630 (get_alternative_base): New function.
1631 (find_basis_for_candidate): For CAND_REF, optionally call
1632 find_basis_for_base_expr with the returned value from
1633 get_alternative_base.
1634 (record_potential_basis): Add new parameter 'base' of type 'tree';
1635 add an assertion of non-NULL base; use base to set node->base_expr.
1636 (alloc_cand_and_find_basis): Update; call record_potential_basis
1637 for CAND_REF with the returned value from get_alternative_base.
1638 (replace_refs): Dump details on the replacing.
1639 (execute_strength_reduction): Call pointer_map_create for
1640 alt_base_map; call free_affine_expand_cache with &name_expansions.
1642 2013-12-03 Wei Mi <wmi@google.com>
1644 PR rtl-optimization/59020
1645 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
1646 (sched_analyze_insn): Call try_group_insn.
1647 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
1648 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
1649 (group_insns_for_macro_fusion): Removed.
1650 (sched_init): Remove calling group_insns_for_macro_fusion.
1652 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
1654 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
1656 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
1658 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
1660 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
1662 (aarch64_can_eliminate): Don't check elimination source when
1663 frame_pointer_required is false.
1665 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1667 * config/avr/avr.c (avr_option_override): Warn if asked to generate
1668 position independent code.
1669 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
1671 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
1674 * config/i386/i386.c (emit_memset): Adjust destination address
1676 (expand_setmem_epilogue): Likewise.
1678 2013-12-03 Marek Polacek <polacek@redhat.com>
1681 * calls.c (expand_call): Disallow passing huge arguments by value.
1683 2013-12-03 Jakub Jelinek <jakub@redhat.com>
1685 PR tree-optimization/59362
1686 * tree-object-size.c (object_sizes): Change into array of
1687 vec<unsigned HOST_WIDE_INT>.
1688 (compute_builtin_object_size): Check computed bitmap for
1689 non-NULL instead of object_sizes. Call safe_grow on object_sizes
1690 vector if new SSA_NAMEs appeared.
1691 (init_object_sizes): Check computed bitmap for non-NULL.
1692 Call safe_grow on object_sizes elements instead of initializing
1694 (fini_object_sizes): Call release on object_sizes elements, don't
1698 * gimplify.c (nonlocal_vla_vars): New variable.
1699 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
1700 nonlocal_vla_vars chain.
1701 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
1702 if outer_bind has DECL_INITIAL (current_function_decl) block.
1705 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
1707 * expr.h (struct saved_pending_stack_adjust): New type.
1708 (save_pending_stack_adjust, restore_pending_stack_adjust): New
1710 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
1711 and get_last_insn before do_pending_stack_adjust, call
1712 restore_pending_stack_adjust after delete_insns_since.
1713 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
1714 before calling emit_conditional_move.
1715 * expmed.c (expand_sdiv_pow2): Likewise.
1716 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
1718 2013-12-02 Jeff Law <law@redhat.com>
1720 PR tree-optimization/59322
1721 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
1722 Remove code which copied jump threading paths.
1724 2013-12-02 Sriraman Tallam <tmsriram@google.com>
1727 * config/i386/i386.opt (ix86_arch_string): Mark this variable
1728 for saving in cl_target_option.
1729 (ix86_tune_string): Ditto.
1730 (ix86_cmodel): Ditto.
1732 (ix86_asm_dialect): Ditto.
1733 (ix86_branch_cost): Ditto.
1734 (ix86_dump_tunes): Ditto.
1735 (ix86_force_align_arg_pointer): Ditto.
1736 (ix86_force_drap): Ditto.
1737 (ix86_incoming_stack_boundary_arg): Ditto.
1738 (ix86_pmode): Ditto.
1739 (ix86_preferred_stack_boundary_arg): Ditto.
1740 (ix86_recip_name): Ditto.
1741 (ix86_regparm): Ditto.
1742 (ix86_section_threshold): Ditto.
1743 (ix86_sse2avx): Ditto.
1744 (ix86_stack_protector_guard): Ditto.
1745 (ix86_stringop_alg): Ditto.
1746 (ix86_tls_dialect): Ditto.
1747 (ix86_tune_ctrl_string): Ditto.
1748 (ix86_tune_memcpy_strategy): Ditto.
1749 (ix86_tune_memset_strategy): Ditto.
1750 (ix86_tune_no_default): Ditto.
1751 (ix86_veclibabi_type): Ditto.
1752 * config/i386/i386.c (function_specific_save): Save the above
1753 variables in gcc_options to cl_target_option.
1754 (function_specific_restore): Do the reverse done in
1755 function_specific_save.
1756 (ix86_valid_target_attribute_tree): Change ix86_arch_string
1757 and ix86_tune_string to use the opts structure.
1758 (ix86_option_override_internal):Change
1759 ix86_incoming_stack_boundary_arg to
1760 opts->x_ix86_incoming_stack_boundary_arg
1762 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
1764 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
1765 in #ifndef IN_LIBGCC2 / #endif.
1767 2013-12-02 Jakub Jelinek <jakub@redhat.com>
1769 PR tree-optimization/59358
1770 * tree-vrp.c (union_ranges): To check for the partially overlapping
1771 ranges or adjacent ranges, also compare *vr0max with vr1max.
1773 2013-12-02 Sterling Augustine  <saugustine@google.com>
1775 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
1776 when there isn't a skeleton die.
1778 2013-12-02 Marek Polacek <polacek@redhat.com>
1781 * doc/invoke.texi: Document -fsanitize=return.
1783 2013-12-02 Tobias Burnus <burnus@net-b.de>
1784 Manuel López-Ibáñez <manu@gcc.gnu.org>
1787 * doc/invoke.texi: Add missing @opindex.
1788 (-fsanitize=): Use @gcctabopt instead of @itemize.
1790 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1792 Fix C++0x memory model for unaligned fields in packed, aligned(4)
1793 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
1794 targets like arm-none-eabi.
1795 * expr.c (expand_assignment): Handle normal fields like bit regions.
1797 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1800 * function.c (invoke_set_current_function_hook): Call
1801 targetm.set_current_function after setting this_fn_optabs.
1803 2013-12-02 Richard Biener <rguenther@suse.de>
1805 PR tree-optimization/59139
1806 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
1807 code in get_val_for.
1808 (get_val_for): Use gcc_checking_asserts.
1810 2013-12-02 Richard Biener <rguenther@suse.de>
1813 * tree-ssa-operands.c (opf_implicit): Remove.
1814 (opf_address_taken): New flag.
1815 (get_expr_operands): Remove early out, pass down opf_address_taken for
1816 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
1817 (get_indirect_ref_operands): Rename to ...
1818 (get_mem_ref_operands): ... this.
1819 (get_asm_expr_operands): Rename to ...
1820 (get_asm_stmt_operands): ... this.
1822 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
1824 * ipa-inline.c (check_callers): Add missed pointer de-reference.
1826 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
1828 PR tree-optimization/59356
1829 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
1830 offset computation using the precision of the index type.
1832 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
1835 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
1836 when rclass is GENERAL_REGS.
1838 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1840 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
1841 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
1843 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
1845 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
1848 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1850 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
1852 2013-11-30 Paulo Matos <pmatos@broadcom.com>
1853 Eric Botcazou <ebotcazou@adacore.com>
1855 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
1856 as applied to nonzero_sign_valid when last_set_mode has less precision
1859 2013-11-30 Tobias Burnus <burnus@net-b.de>
1862 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
1863 environment variable and link to a list with flags.
1864 (-fsanitize=thread): Ditto and update link.
1866 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
1868 PR rtl-optimization/59340
1869 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
1872 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
1874 * lra.c (lra): Set lra_in_progress before check_rtl call.
1875 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1876 adding clobber regs when LRA is running.
1878 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1881 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
1883 2013-11-29 Richard Biener <rguenther@suse.de>
1886 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
1887 free_stmt_operands, update_stmt_operands): Add struct function
1889 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
1890 function argument from fini_ssa_operands, verify_ssa_operands,
1891 free_stmt_operands and update_stmt_operands everywhere.
1892 * tree-ssanames.h (release_ssa_name_fn): New.
1893 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
1894 * tree-ssanames.c (release_ssa_name): Rename to ...
1895 (release_ssa_name_fn): ... this and add struct function argument.
1896 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
1897 (update_stmt_fn): New function.
1898 * tree-cfg.c (move_block_to_fn): Adjust.
1899 * tree-if-conv.c (free_bb_predicate): Likewise.
1900 * tree-ssa.c (verify_ssa): Likewise.
1901 (delete_tree_ssa): Likewise.
1902 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
1903 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
1904 update_stmt_fn instead of update_stmt.
1906 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
1908 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
1911 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
1913 * config/arm/arm.md (store_minmaxsi): Use only when
1914 optimize_function_for_size_p.
1916 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1917 Yury Gribov <y.gribov@samsung.com>
1920 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
1921 * gcc.c: Using libsanitizer spec instead of explicit libs.
1923 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
1926 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1927 * cgraph.h (varpool_node): Add need_bounds_init field.
1928 * lto-cgraph.c (lto_output_varpool_node): Output
1929 need_bounds_init value.
1930 (input_varpool_node): Read need_bounds_init value.
1931 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1934 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1935 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1936 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1937 (gen_type_die_with_usage): Skip pointer bounds.
1938 (dwarf2out_global_decl): Likewise.
1941 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
1942 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
1943 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
1944 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
1945 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
1946 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
1947 (gimple_call_with_bounds_p): New.
1948 (gimple_call_set_with_bounds): New.
1949 (gimple_call_num_nobnd_args): Remove.
1950 (gimple_call_nobnd_arg): Remove.
1951 * tree.h (CALL_WITH_BOUNDS_P): New.
1952 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
1955 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
1956 * common.opt (fcheck-pointer-bounds): Move to ...
1957 * c-family/c.opt: ... here.
1958 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
1959 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
1960 * langhooks.h (lang_hooks): Remove chkp_supported field.
1961 * toplev.c (process_options): Remove chkp_supported check.
1964 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1965 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
1966 * tree.h (POINTER_BOUNDS_P): New.
1967 (BOUNDED_TYPE_P): New.
1969 (pointer_bounds_type_node): New.
1970 * tree.c (build_common_tree_nodes): Initialize
1971 pointer_bounds_type_node.
1972 * gimple.h (gimple_call_get_nobnd_arg_index): New.
1973 (gimple_call_num_nobnd_args): New.
1974 (gimple_call_nobnd_arg): New.
1975 (gimple_return_retbnd): New.
1976 (gimple_return_set_retbnd): New
1977 * gimple.c (gimple_build_return): Increase number of ops
1978 for return statement.
1979 (gimple_call_get_nobnd_arg_index): New.
1980 * gimple-pretty-print.c (dump_gimple_return): Print second op.
1983 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1984 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
1985 with "chkp ctor" and "bnd_legacy" attributes.
1986 * gimplify.c (gimplify_init_constructor): Avoid infinite
1987 loop during gimplification of bounds initializer.
1990 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
1991 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
1992 (handle_bnd_legacy): New.
1993 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
1994 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
1998 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
1999 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
2000 (BT_FN_PTR_CONST_PTR): New.
2001 (BT_FN_CONST_PTR_CONST_PTR): New.
2002 (BT_FN_PTR_CONST_PTR_SIZE): New.
2003 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
2004 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
2005 (BT_FN_VOID_CONST_PTR_SIZE): New.
2006 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
2007 * chkp-builtins.def: New.
2008 * builtins.def: include chkp-builtins.def.
2009 (DEF_CHKP_BUILTIN): New.
2010 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
2011 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
2012 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
2013 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
2014 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
2015 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
2016 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
2017 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
2018 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
2019 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
2020 * common.opt (fcheck-pointer-bounds): New.
2021 * toplev.c (process_options): Check Pointer Bounds Checker is
2023 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
2026 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
2027 * target.def (builtin_chkp_function): New.
2028 (chkp_bound_type): New.
2029 (chkp_bound_mode): New.
2030 (fn_abi_va_list_bounds_size): New.
2031 (load_bounds_for_arg): New.
2032 (store_bounds_for_arg): New.
2033 * targhooks.h (default_load_bounds_for_arg): New.
2034 (default_store_bounds_for_arg): New.
2035 (default_fn_abi_va_list_bounds_size): New.
2036 (default_chkp_bound_type): New.
2037 (default_chkp_bound_mode): New.
2038 (default_builtin_chkp_function): New.
2039 * targhooks.c (default_load_bounds_for_arg): New.
2040 (default_store_bounds_for_arg): New.
2041 (default_fn_abi_va_list_bounds_size): New.
2042 (default_chkp_bound_type): New.
2043 (default_chkp_bound_mode); New.
2044 (default_builtin_chkp_function): New.
2045 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
2046 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2047 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2048 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2049 (TARGET_CHKP_BOUND_TYPE): New.
2050 (TARGET_CHKP_BOUND_MODE): New.
2051 * doc/tm.texi: Regenerated.
2052 * langhooks.h (lang_hooks): Add chkp_supported field.
2053 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
2054 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
2057 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2058 * config/i386/constraints.md (B): New.
2061 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
2062 * config/i386/i386-modes.def (BND32): New.
2064 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
2065 * config/i386/i386.c (isa_opts): Add mmpx.
2066 (regclass_map): Add bound registers.
2067 (dbx_register_map): Likewise.
2068 (dbx64_register_map): Likewise.
2069 (svr4_dbx_register_map): Likewise.
2071 (ix86_option_override_internal): Support MPX ISA.
2072 (ix86_conditional_register_usage): Support bound registers.
2073 (print_reg): Likewise.
2074 (ix86_code_end): Add MPX bnd prefix.
2075 (output_set_got): Likewise.
2076 (ix86_output_call_insn): Likewise.
2077 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
2078 (ix86_print_operand_punct_valid_p): Likewise.
2079 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
2081 (ix86_class_likely_spilled_p): Add bound regs support.
2082 (ix86_hard_regno_mode_ok): Likewise.
2083 (x86_order_regs_for_local_alloc): Likewise.
2084 (ix86_bnd_prefixed_insn_p): New.
2085 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
2086 (FIXED_REGISTERS): Add bound registers.
2087 (CALL_USED_REGISTERS): Likewise.
2088 (REG_ALLOC_ORDER): Likewise.
2089 (HARD_REGNO_NREGS): Likewise.
2091 (VALID_BND_REG_MODE): New.
2092 (FIRST_BND_REG): New.
2093 (LAST_BND_REG): New.
2094 (reg_class): Add BND_REGS.
2095 (REG_CLASS_NAMES): Likewise.
2096 (REG_CLASS_CONTENTS): Likewise.
2098 (ANY_BND_REG_P): New.
2100 (HI_REGISTER_NAMES): Add bound registers.
2101 * config/i386/i386.md (UNSPEC_BNDMK): New.
2102 (UNSPEC_BNDMK_ADDR): New.
2103 (UNSPEC_BNDSTX): New.
2104 (UNSPEC_BNDLDX): New.
2105 (UNSPEC_BNDLDX_ADDR): New.
2106 (UNSPEC_BNDCL): New.
2107 (UNSPEC_BNDCU): New.
2108 (UNSPEC_BNDCN): New.
2109 (UNSPEC_MPX_FENCE): New.
2112 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2113 (length_immediate): Likewise.
2114 (prefix_0f): Likewise.
2116 (prefix_rep): Check for bnd prefix.
2117 (length_nobnd): New.
2118 (length): Use length_nobnd if specified.
2123 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
2126 (simple_return_internal): Likewise.
2127 (simple_return_pop_internal): Likewise.
2128 (*indirect_jump): Add MPX bnd prefix.
2129 (*tablejump_1): Likewise.
2130 (simple_return_internal_long): Likewise.
2131 (simple_return_indirect_internal): Likewise.
2135 (*mov<mode>_internal_mpx): New.
2136 (<mode>_<bndcheck>): New.
2137 (*<mode>_<bndcheck>): New.
2142 * config/i386/predicates.md (lea_address_operand): Rename to...
2143 (address_no_seg_operand): ... this.
2144 (address_mpx_no_base_operand): New.
2145 (address_mpx_no_index_operand): New.
2146 (bnd_mem_operator): New.
2147 * config/i386/i386.opt (mmpx): New.
2148 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
2149 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
2152 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
2153 * mode-classes.def (MODE_POINTER_BOUNDS): New.
2154 * tree.def (POINTER_BOUNDS_TYPE): New.
2155 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
2156 (POINTER_BOUNDS_MODE): New.
2157 (make_pointer_bounds_mode): New.
2158 * machmode.h (POINTER_BOUNDS_MODE_P): New.
2159 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
2160 (layout_type): Support POINTER_BOUNDS_TYPE.
2161 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
2162 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
2163 (type_contains_placeholder_1): Likewise.
2164 * tree.h (POINTER_BOUNDS_TYPE_P): New.
2165 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
2166 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
2168 2013-11-29 Richard Biener <rguenther@suse.de>
2171 * tree-cfg.c (verify_expr): Restrict bounds verification of
2172 BIT_FIELD_REF arguments to non-aggregate typed base objects.
2174 2013-11-29 Richard Biener <rguenther@suse.de>
2176 PR tree-optimization/59334
2177 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
2180 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2181 Richard Biener <rguenther@suse.de>
2184 * omp-low.c (simd_clone_create): Return NULL if for definition
2185 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
2186 before calling cgraph_function_versioning.
2187 (expand_simd_clones): Look for "omp declare simd" attribute first.
2188 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
2189 Punt if node->global.inlined_to.
2190 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
2191 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
2192 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
2194 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2197 * tree-core.h (enum omp_clause_schedule_kind): Add
2198 OMP_CLAUSE_SCHEDULE_LAST.
2199 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
2200 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
2201 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
2202 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
2203 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
2204 (DFS_write_tree_body): Handle OMP_CLAUSE.
2205 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
2206 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
2207 (write_ts_omp_clause_tree_pointers): New function.
2208 (streamer_write_tree_body): Call it for OMP_CLAUSE.
2209 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
2210 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
2211 (unpack_value_fields): Call it for OMP_CLAUSE.
2212 (streamer_alloc_tree): Handle OMP_CLAUSE.
2213 (lto_input_ts_omp_clause_tree_pointers): New function.
2214 (streamer_read_tree_body): Call it for OMP_CLAUSE.
2216 2013-11-29 Joseph Myers <joseph@codesourcery.com>
2218 * doc/implement-c.texi: Document C11 implementation-defined
2219 behavior. Refer to -ffp-contract=fast for contraction behavior.
2220 * doc/invoke.texi (-std=c99, std=c11): Update description of
2222 (-std=gnu99): Don't mention as future default.
2223 (-std=gnu11): Mention as intended future default.
2224 * doc/standards.texi: Update descriptions of C99 and C11 support.
2225 Limit statement about C99 facilities for freestanding
2226 implementations to some platforms only.
2228 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2231 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
2233 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
2236 * ira.h (ira_setup_eliminable_regset): Remove parameter.
2237 * ira.c (ira_setup_eliminable_regset): Ditto. Add
2238 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
2239 Don't call lra_init_elimination.
2240 (ira): Call ira_setup_eliminable_regset without arguments.
2241 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
2242 from ira_setup_eliminable_regset call.
2243 * gcse.c (calculate_bb_reg_pressure): Ditto.
2244 * haifa-sched.c (sched_init): Ditto.
2245 * lra.h (lra_init_elimination): Remove the prototype.
2246 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
2247 used_insn_alternative upper.
2248 (lra_eliminate_regs_1): Add one more parameter.
2249 (lra-eliminate): Ditto.
2250 * lra.c (lra_invalidate_insn_data): Set sp_offset.
2251 (setup_sp_offset): New.
2252 (lra_process_new_insns): Call setup_sp_offset.
2253 (lra): Add argument to lra_eliminate calls.
2254 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
2255 (get_equiv_with_elimination): New.
2256 (process_addr_reg): Call get_equiv_with_elimination instead of
2257 get_equiv_substitution.
2258 (equiv_address_substitution): Ditto.
2259 (loc_equivalence_change_p): Ditto.
2260 (loc_equivalence_callback, lra_constraints): Ditto.
2261 (curr_insn_transform): Ditto. Print the sp offset
2262 (process_alt_operands): Prevent stack pointer reloads.
2263 (lra_constraints): Remove one argument from lra_eliminate call.
2264 Move it up. Mark used hard regs bfore it. Use
2265 get_equiv_with_elimination instead of get_equiv_substitution.
2266 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
2267 assert for param values combination. Use sp offset. Add argument
2268 to lra_eliminate_regs_1 calls.
2269 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
2270 (curr_sp_change): New static var.
2271 (mark_not_eliminable): Add parameter. Update curr_sp_change.
2272 Don't prevent elimination to sp if we can calculate its change.
2273 Pass the argument to mark_not_eliminable calls.
2274 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
2275 argument to lra_eliminate_regs_1 call.
2276 (update_reg_eliminate): Move calculation of hard regs for spill
2277 lower. Switch off lra_in_progress temporarily to generate regs
2278 involved into elimination.
2279 (lra_init_elimination): Rename to init_elimination. Make it
2280 static. Set up insn sp offset, check the offsets at the end of BBs.
2281 (process_insn_for_elimination): Add parameter. Pass its value to
2282 eliminate_regs_in_insn.
2283 (lra_eliminate): : Add parameter. Pass its value to
2284 process_insn_for_elimination. Add assert for param values
2285 combination. Call init_elimination. Don't update offsets in
2286 equivalence substitutions.
2287 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
2288 for created stack slot.
2289 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
2292 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2294 * config/arm/iterators.md (vrint_conds): New int attribute.
2295 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
2296 (smax<mode>3): Likewise.
2297 (smin<mode>3): Likewise.
2299 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
2301 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
2302 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
2303 * tree-ssanames.h (set_range_info): Add range_type argument.
2304 (duplicate_ssa_name_range_info): Likewise.
2305 * tree-ssanames.c (set_range_info): Take the range type as argument
2306 and store it in SSA_NAME_ANTI_RANGE_P.
2307 (duplicate_ssa_name_range_info): Likewise.
2308 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
2309 (set_nonzero_bits): Update call to set_range_info.
2310 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
2311 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2312 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
2313 (vrp_finalize): Likewise, passing anti-ranges directly.
2315 2013-11-28 Richard Biener <rguenther@suse.de>
2317 PR tree-optimization/59330
2318 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
2319 and fix delayed marking of free calls not necessary.
2321 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
2323 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
2325 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2327 2013-11-28 Terry Guo <terry.guo@arm.com>
2329 * config/arm/arm.c (v7m_extra_costs): New table.
2330 (arm_v7m_tune): Use it.
2332 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2334 * config/sol2.h (TIME_LIBRARY): Define.
2336 2013-11-28 Richard Biener <rguenther@suse.de>
2339 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
2340 CONST_DECLs in function context are not indexable.
2342 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
2344 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
2345 not optimized for size.
2347 2013-11-28 Jakub Jelinek <jakub@redhat.com>
2349 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
2351 (expand_stack_vars): For -fsanitize=address, use (and set initially)
2352 data->asan_base as base for vars and update asan_alignb.
2353 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
2354 Pass them to asan_emit_stack_protection.
2355 * asan.c (asan_detect_stack_use_after_return): New variable.
2356 (asan_emit_stack_protection): Add pbase and alignb arguments.
2357 Implement use after return sanitization.
2358 * asan.h (asan_emit_stack_protection): Adjust prototype.
2359 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
2361 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2363 * common.opt: Introduced a new option -fsimd-cost-model.
2364 * doc/invoke.texi: Introduced a new openmp-simd warning and
2365 a new -fsimd-cost-model option.
2366 * tree-vectorizer.h (unlimited_cost_model): Interface updated
2367 to rely on the particular loop info.
2368 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
2369 (vect_peeling_hash_choose_best_peeling): Ditto.
2370 (vect_enhance_data_refs_alignment): Ditto.
2371 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
2372 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
2373 plus added openmp-simd warining.
2375 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
2377 PR rtl-optimization/59311
2378 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
2379 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
2381 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2383 * var-tracking.c (track_expr_p): Do not track declarations for parts
2384 of tracked parameters.
2385 (add_stores): Do not track values for tracked parameters passed in
2387 (vt_get_decl_and_offset): Handle PARALLEL.
2388 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
2390 2013-11-27 Jeff Law <law@redhat.com>
2392 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2393 clobber the loop structure thread_block was unsuccessful. If
2394 thread_block was unsuccessful, cleanup appropriately.
2396 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
2398 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
2399 (score_char_to_class): Likewise.
2401 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
2403 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
2404 the overflow bit set.
2406 2013-11-27 Richard Biener <rguenther@suse.de>
2409 * cgraphbuild.c (build_cgraph_edges): Do not build edges
2411 (rebuild_cgraph_edges): Likewise.
2412 * ipa-inline-analysis.c (estimate_function_body_sizes):
2413 Skip internal calls.
2414 * tree-inline.c (estimate_num_insns): Estimate size of internal
2416 (gimple_expand_calls_inline): Do not try inline-expanding
2418 * lto-streamer-in.c (input_cfg): Stream loop safelen,
2419 force_vect and simduid.
2420 (input_struct_function_base): Stream has_force_vect_loops
2421 and has_simduid_loops.
2422 (input_function): Adjust.
2423 * lto-streamer-out.c (output_cfg): Stream loop safelen,
2424 force_vect and simduid.
2425 (output_struct_function_base): Stream has_force_vect_loops
2426 and has_simduid_loops.
2428 2013-11-27 Kai Tietz <ktietz@redhat.com>
2430 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
2433 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2435 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
2436 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
2438 2013-11-27 Marek Polacek <polacek@redhat.com>
2441 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
2442 instead of walk_gimple_op.
2443 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
2445 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
2446 Jakub Jelinek <jakub@redhat.com>
2448 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
2449 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
2450 (struct cgraph_node): Add simdclone and simd_clones fields.
2451 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
2452 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
2453 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2454 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
2455 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2456 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
2457 * doc/tm.texi: Regenerated.
2458 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
2459 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
2460 attribute is present.
2461 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
2462 (simd_clone_vector_of_formal_parm_types): New function.
2463 (simd_clone_struct_alloc, simd_clone_struct_copy,
2464 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
2465 simd_clone_compute_base_data_type, simd_clone_mangle,
2466 simd_clone_create, simd_clone_adjust_return_type,
2467 create_tmp_simd_array, simd_clone_adjust_argument_types,
2468 simd_clone_init_simd_arrays): New functions.
2469 (struct modify_stmt_info): New type.
2470 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
2471 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
2473 (pass_data_omp_simd_clone): New variable.
2474 (pass_omp_simd_clone): New class.
2475 (make_pass_omp_simd_clone): New function.
2476 * passes.def (pass_omp_simd_clone): New.
2477 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
2478 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
2479 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
2480 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
2481 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
2482 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
2483 * tree-vect-data-refs.c: Include cgraph.h.
2484 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
2485 and find_data_references_in_bb, if find_data_references_in_stmt
2486 fails, still allow calls to #pragma omp declare simd functions
2487 in #pragma omp simd loops unless they contain data references among
2488 the call arguments or in lhs.
2489 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2491 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
2493 * tree-vectorizer.h (enum stmt_vec_info_type): Add
2494 call_simd_clone_vec_info_type.
2495 (struct _stmt_vec_info): Add simd_clone_fndecl field.
2496 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
2497 * tree-vect-stmts.c: Include tree-ssa-loop.h,
2498 tree-scalar-evolution.h and cgraph.h.
2499 (vectorizable_call): Handle calls without lhs. Assert
2500 !stmt_can_throw_internal instead of failing for it. Don't update
2502 (struct simd_call_arg_info): New.
2503 (vectorizable_simd_clone_call): New function.
2504 (vect_transform_stmt): Call it.
2505 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
2507 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
2508 if cgraph_function_with_gimple_body_p is true.
2510 2013-11-27 Tom de Vries <tom@codesourcery.com>
2511 Marc Glisse <marc.glisse@inria.fr>
2514 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
2516 * gimple-fold.c (gimple_fold_indirect_ref): Same.
2517 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
2520 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
2523 * expr.c (emit_group_store): Don't write past the end of the structure.
2524 (store_bit_field): Fix formatting.
2526 2013-11-27 Richard Biener <rguenther@suse.de>
2528 PR tree-optimization/59288
2529 * tree-vect-loop.c (get_initial_def_for_induction): Do not
2530 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
2532 2013-11-27 Marek Polacek <polacek@redhat.com>
2534 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
2535 for a decl, recreate that decl. Save into the hash table VAR_DECLs
2536 rather than ADDR_EXPRs.
2538 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2540 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
2542 2013-11-26 David Malcolm <dmalcolm@redhat.com>
2544 * gengtype.c (struct seen_tag): New.
2545 (already_seen_tag): New.
2546 (mark_tag_as_seen): New.
2547 (walk_subclasses): Support having multiple subclasses using the
2548 same tag by tracking which tags have already been seen, and using
2549 this to avoid adding duplicate cases to the "switch" statement.
2550 The call to already_seen_tag introduces an O(N^2) when running
2551 gengtype on N, the number of tags, due to the repeated linear
2552 search, but currently max(N) is relatively small (the number of
2553 GSS codes, which is 26).
2554 (walk_type): Pass in a seen_tag for use by the walk_subclasses
2557 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
2558 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
2559 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
2560 GIMPLE_OMP_RETURN happens to share the data layout of
2561 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
2562 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
2563 underlying GSS value from GSS_OMP_PARALLEL to
2564 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
2565 not directly related; they merely share in-memory layout.
2566 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
2567 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
2569 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
2571 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
2573 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
2574 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
2575 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
2576 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
2579 * gimple.h (gimple_statement_resx): New subclass of
2580 gimple_statement_eh_ctrl, with the invariant that
2581 stmt->code == GIMPLE_RESX.
2582 (gimple_statement_eh_dispatch): New subclass of
2583 gimple_statement_eh_ctrl, with the invariant that
2584 stmt->code == GIMPLE_EH_DISPATH.
2586 (gimple_statement_omp_parallel): The existing class expressed
2587 a layout (GSS_OMP_PARALLEL), but the codes with that layout
2588 are not all related, so it makes more sense for this class to
2589 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
2590 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
2591 rename the existing gimple_statement_omp_parallel class to...
2592 (gimple_statement_omp_parallel_layout): ...this, expressing
2593 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
2594 (gimple_statement_omp_taskreg): New subclass of
2595 gimple_statement_omp_parallel_layout, expressing the invariant
2596 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
2597 as used by the various gimple_omp_taskreg_ accessors.
2598 (gimple_statement_omp_parallel): Reintroduce this class, this time
2599 as a subclass of gimple_statement_omp_taskreg to express the
2600 invariant stmt->code == GIMPLE_OMP_PARALLEL.
2601 (gimple_statement_omp_target) New class, subclassing
2602 gimple_statement_omp_parallel_layout, to express the invariant
2603 stmt->code == GIMPLE_OMP_TARGET.
2604 (gimple_statement_omp_task): Update to inherit from
2605 gimple_statement_omp_taskreg rather than
2606 gimple_statement_omp_parallel.
2608 (gimple_statement_omp_single): Rename to...
2609 (gimple_statement_omp_single_layout): ...this, expressing the
2610 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
2611 (gimple_statement_omp_single): ...and reintroduce this name as
2612 a subclass of gimple_statement_omp_single_layout, expressing
2613 the invariant that code == GIMPLE_OMP_SINGLE.
2614 (gimple_statement_omp_teams): New class, subclassing
2615 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
2617 (gimple_statement_omp_atomic_store): Rename to...
2618 (gimple_statement_omp_atomic_store_layout): ...this, expressing
2619 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
2620 (gimple_statement_omp_atomic_store): ...and reintroduce this
2621 name as a subclass of gimple_statement_omp_atomic_store_layout
2622 with code == GIMPLE_OMP_ATOMIC_STORE.
2623 (gimple_statement_omp_return): New class, subclassing
2624 gimple_statement_omp_atomic_store_layout for the code
2627 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
2628 (is_a_helper <gimple_statement_resx>::test): New.
2629 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
2630 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
2631 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
2632 (is_a_helper <gimple_statement_omp_return>::test): New.
2633 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
2634 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
2635 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
2637 (is_a_helper <gimple_statement_omp_target>::test): New.
2638 (is_a_helper <gimple_statement_omp_single>::test): Only check
2639 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
2640 (is_a_helper <gimple_statement_omp_teams>::test): New.
2642 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
2643 (is_a_helper <const gimple_statement_resx>::test): New.
2644 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
2645 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
2646 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
2647 (is_a_helper <const gimple_statement_omp_return>::test): New.
2648 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
2649 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
2650 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
2652 (is_a_helper <const gimple_statement_omp_target>::test): New.
2653 (is_a_helper <const gimple_statement_omp_single>::test): Only
2654 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
2655 (is_a_helper <const gimple_statement_omp_teams>::test): New.
2657 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
2658 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
2659 gimple_statement_omp_atomic_store with downcasts to
2660 gimple_statement_omp_return, thus requiring that the code be
2662 (gimple_resx_region, gimple_resx_set_region): Replace bogus
2663 downcasts to gimple_statement_eh_ctrl with downcasts to
2664 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
2665 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
2666 Replace bogus downcasts to const gimple_statement_eh_ctrl with
2667 downcasts to gimple_statement_eh_dispatch, thus requiring that
2668 the code be GIMPLE_EH_DISPATCH.
2669 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
2670 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
2671 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
2672 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
2673 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
2674 gimple_statement_omp_parallel with downcasts to
2675 gimple_statement_omp_taskreg, thus requiring that the code be
2676 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
2677 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
2678 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
2679 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
2680 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
2681 gimple_omp_target_set_data_arg): Replace bogus downcasts to
2682 gimple_statement_omp_parallel with downcasts to
2683 gimple_statement_omp_target, thus requiring that the code be
2685 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
2686 gimple_omp_teams_set_clauses): Replace bogus downcasts to
2687 gimple_statement_omp_single with downcasts to
2688 gimple_statement_omp_teams, thus requiring that the code be
2691 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
2692 gimple_statement_resx.
2693 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
2694 gimple_statement_eh_dispatch.
2696 2013-11-26 Jakub Jelinek <jakub@redhat.com>
2698 PR tree-optimization/59014
2699 * tree-vrp.c (register_edge_assert_for_1): Don't look
2700 through conversions from non-integral types or through
2701 narrowing conversions.
2704 * config/i386/i386.c (device_alg): Fix up formatting.
2705 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
2706 similarly to count && count < epilogue_size_needed. Fix up
2708 * builtins.c (determine_block_size): Fix comment typo.
2711 * ubsan.c (ubsan_source_location): Don't add any location
2712 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
2713 (ubsan_create_data): Strip block info from LOC.
2716 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
2717 if there isn't optab handler for the corresponding vector PLUS_EXPR.
2719 PR rtl-optimization/59166
2720 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
2721 DF_REF_LOC in validate_change call.
2722 (split_live_ranges_for_shrink_wrap): Likewise.
2725 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
2726 of references to constant size types in simd loops, defer emitting
2727 initializer for the new_var, emit it later on only if not using
2731 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
2732 for the inner loop if collapse_bb is non-NULL.
2733 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
2735 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
2737 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
2738 a constant immediate before force_reg.
2740 2013-11-26 Richard Biener <rguenther@suse.de>
2742 PR tree-optimization/59245
2743 * tree-vrp.c (set_value_range): Assert that we don't have
2744 overflowed constants (but our infinities).
2745 (set_value_range_to_value): Drop all overflow flags.
2746 (vrp_visit_phi_node): Likewise.
2747 (vrp_visit_assignment_or_call): Use set_value_range_to_value
2748 to set a constant range.
2750 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2753 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
2754 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
2755 for zero_extend case.
2757 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
2760 * configure.ac (install_gold_as_default): New. Set to yes for
2761 --disable-ld or --enable-gold=default.
2762 (gcc_cv_ld_gold_srcdir): New.
2763 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
2764 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
2765 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
2766 * configure: Regenerated.
2768 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
2769 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
2770 (original) [collect-ld && -fuse-ld=bfd]: Set to
2771 $ORIGINAL_LD_BFD_FOR_TARGET.
2772 (original) [collect-ld && -fuse-ld=gold]: Set to
2773 $ORIGINAL_LD_GOLD_FOR_TARGET.
2774 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
2775 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
2777 2013-11-26 Terry Guo <terry.guo@arm.com>
2779 * config/arm/arm.c (require_pic_register): Handle high pic base
2780 register for thumb-1.
2781 (arm_load_pic_register): Also initialize high pic base register.
2782 * doc/invoke.texi: Update documentation for option -mpic-register.
2784 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
2788 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
2789 Prefix function names with 'sh_'. Make them non-static.
2790 * config/sh/sh-protos.h (sh_disp_addr_displacement,
2791 sh_max_mov_insn_displacement): Add declarations.
2792 * config/sh/constraints.md (Q): Reject QImode.
2793 (Sdd): Use match_code "mem".
2794 (Snd): Fix erroneous matching of non-memory operands.
2795 * config/sh/predicates.md (short_displacement_mem_operand): New
2797 (general_movsrc_operand): Disallow PC relative QImode loads.
2798 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
2799 (*movqi, *movhi): Merge both insns into...
2800 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
2801 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
2802 on the operand types.
2804 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
2806 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2807 Remove unused variable save_config.
2808 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
2811 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2813 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
2814 using other intrinsics.
2815 (vtbx3_<psu>8): Likewise.
2817 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2819 * config/aarch64/aarch64-builtins.c
2820 (aarch64_types_bsl_p_qualifiers): New.
2821 (aarch64_types_bsl_s_qualifiers): Likewise.
2822 (aarch64_types_bsl_u_qualifiers): Likewise.
2823 (TYPES_BSL_P): Likewise.
2824 (TYPES_BSL_S): Likewise.
2825 (TYPES_BSL_U): Likewise.
2826 (BUILTIN_VALLDIF): Likewise.
2827 (BUILTIN_VDQQH): Likewise.
2828 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
2829 * config/aarch64/aarch64-simd.md
2830 (aarch64_simd_bsl<mode>_internal): Handle more modes.
2831 (aarch64_simd_bsl<mode>): Likewise.
2832 * config/aarch64/arm_neon.h
2833 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
2834 * config/aarch64/iterators.md (VALLDIF): New.
2835 (Vbtype): Handle more modes.
2837 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2839 * config/aarch64/aarch64-builtins.c
2840 (aarch64_type_qualifiers): Add qualifier_poly.
2841 (aarch64_build_scalar_type): Also build Poly types.
2842 (aarch64_build_vector_type): Likewise.
2843 (aarch64_build_type): Likewise.
2844 (aarch64_build_signed_type): New.
2845 (aarch64_build_unsigned_type): Likewise.
2846 (aarch64_build_poly_type): Likewise.
2847 (aarch64_init_simd_builtins): Also handle Poly types.
2849 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2851 * config/aarch64/aarch64-builtins.c
2852 (VAR1): Use new naming scheme for aarch64_builtins.
2853 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
2855 2013-11-26 Richard Biener <rguenther@suse.de>
2857 PR tree-optimization/59287
2858 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2859 Remove no longer necessary special-casing of union accesses.
2861 2013-11-26 Richard Biener <rguenther@suse.de>
2863 * pretty-print.c (output_buffer::~output_buffer): Really
2866 2013-11-25 Jeff Law <law@redhat.com>
2868 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
2869 invalidate loop information.
2871 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
2873 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
2875 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
2879 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
2881 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
2882 previously visited basic blocks before recursing instead of only one
2885 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2887 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
2888 * config/aarch64/aarch64-cores.def (cortex-a53):
2889 Use cortexa53 tuning struct.
2891 2013-11-25 Andrew Macleod <amacleod@redhat.com>
2894 * fold-const.c: Include hash-table.h.
2896 2013-11-25 Marek Polacek <polacek@redhat.com>
2899 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
2901 2013-11-25 Richard Biener <rguenther@suse.de>
2903 * tree-dfa.c: Remove unused convert.h include.
2905 2013-11-25 Terry Guo <terry.guo@arm.com>
2907 * doc/invoke.texi (-mslow-flash-data): Document new option.
2908 * config/arm/arm.opt (mslow-flash-data): New option.
2909 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
2911 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
2913 (arm_disable_literal_pool): Declare it.
2914 * config/arm/arm.c (arm_disable_literal_pool): New variable.
2915 (arm_option_override): Handle new option.
2916 (thumb2_legitimate_address_p): Don't allow symbol references when
2917 literal pools are disabled.
2918 (arm_max_const_double_inline_cost): New function.
2919 * config/arm/arm.md (types.md): Include it before ...
2920 (use_literal_pool): New attribute.
2921 (enabled): Use new attribute.
2922 (split pattern): Replace symbol+offset with MOVW/MOVT.
2924 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
2927 Revert previous commit.
2929 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
2931 * jump.c (reset_insn_reg_label_operand_notes): New function,
2933 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
2934 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
2936 (delete_dead_jumptables): ... here. Handle cfglayout mode.
2937 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
2938 expensive CFG cleanup is called for.
2939 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
2940 (cfg_layout_finalize): Delete dead jump tables before re-building
2942 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
2943 basic blocks, not before.
2944 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
2946 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
2947 insns chain of a scheduling extended basic block, they cannot appear
2948 there in cfglayout mode.
2950 2013-11-24 Tobias Burnus <burnus@net-b.de>
2952 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
2954 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2956 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
2959 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
2961 * graphite-sese-to-poly.c: Don't include extra "expr.h".
2963 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
2965 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
2967 2013-11-23 David Edelson <dje.gcc@gmail.com>
2968 Andrew Dixie <andrewd@gentrack.com>
2971 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
2972 (COLLECT_SHARED_FINI_FUNC): Define.
2974 * collect2.c (aix_shared_initname): Declare.
2975 (aix_shared_fininame): Declare.
2976 (symkind): Add SYM_AIXI and SYM_AIXD.
2977 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
2978 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
2979 (aixlazy_flag): Parse.
2980 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
2981 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
2983 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
2985 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
2986 (rs6000_xcoff_select_section): Place decls with stricter alignment
2987 into named sections.
2988 (rs6000_xcoff_unique_section): Allow unique sections for
2989 uninitialized data with strict alignment.
2991 2013-11-23 Jakub Jelinek <jakub@redhat.com>
2993 PR tree-optimization/59154
2994 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
2995 rhs1 of a cast and new_op is invariant, fold_convert it.
2996 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
2997 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
2999 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
3002 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
3003 Declare as MULTI_ARG_1_SF instruction.
3004 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
3005 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
3006 from *xop_vmfrcz_<mode>.
3007 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
3008 to merge scalar result with __A.
3009 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
3012 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
3014 * gimplify.h (recalculate_side_effects): Delete.
3015 * gimplify.c (recalculate_side_effects): Make static and add comment.
3017 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3019 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
3020 for the destination of a define_peephole2. Likewise register_operand
3021 rather than arith_reg_operand. Remove constraints from
3024 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3026 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
3028 (mn10300_store_multiple_operation_p): Declare.
3029 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
3031 (mn10300_store_multiple_operation_p): ...this and remove mode
3033 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
3036 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
3038 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
3039 (pop_multiple_operation): Delete.
3040 (analyze_push_multiple_operation): Declare.
3041 (analyze_pop_multiple_operation): Declare.
3042 * config/bfin/bfin.c (push_multiple_operation): Rename to...
3043 (analyze_push_multiple_operation): ...this and remove mode argument.
3044 (pop_multiple_operation): Rename to...
3045 (analyze_pop_multiple_operation): ...this and remove mode argument.
3046 * config/bfin/predicates.md (push_multiple_operation): Define.
3047 (pop_multiple_operation): Likewise.
3049 2013-11-23 Alan Modra <amodra@gmail.com>
3051 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
3053 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3056 * common.opt (static-liblsan): Add.
3057 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
3059 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
3060 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
3062 * opts.c (common_handle_option): Handle -fsanitize=leak.
3063 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
3064 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
3065 (LIBUBSAN_EARLY_SPEC): Remove.
3066 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
3067 (SANITIZER_SPEC): Add -fsanitize=leak handling.
3068 (sanitize_spec_function): Handle %sanitize(leak).
3069 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
3071 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
3072 Jakub Jelinek <jakub@redhat.com>
3074 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
3075 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
3076 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
3077 (ipa_modify_formal_parameters): Adjust caller. Remove
3078 synth_parm_prefix argument. Use operator enum instead of bit fields.
3079 Add assert for properly handling vector of references. Handle
3080 creating brand new parameters.
3081 (ipa_modify_call_arguments): Use operator enum instead of bit
3083 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
3085 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
3087 (ipa_dump_param_adjustments): Rename reduction to new_decl.
3088 Use operator enum instead of bit fields.
3089 * ipa-prop.h (enum ipa_parm_op): New.
3090 (struct ipa_parm_adjustment): New field op. Rename reduction
3091 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
3093 (ipa_modify_formal_parameters): Remove last argument.
3094 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
3095 ipa_get_adjustment_candidate): New prototypes.
3096 * tree-sra.c (turn_representatives_into_adjustments): Use operator
3097 enum. Set arg_prefix.
3098 (get_adjustment_for_base): Use operator enum.
3099 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
3101 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
3102 (ipa_sra_modify_function_body): Same. No longer static.
3103 (sra_ipa_reset_debug_stmts): Use operator enum.
3104 (modify_function): Do not pass prefix argument.
3106 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3108 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
3109 (ubsan_pass): Ignore clobber stmts.
3111 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
3112 * opts.c (common_handle_option): Add -fsanitize=return.
3113 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
3114 or it into SANITIZE_UNDEFINED.
3116 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
3117 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
3118 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
3119 Don't instrument accesses to VAR_DECLs which are known to fit
3120 into their bounds and the vars are known to have shadow bytes
3121 indicating allowed access.
3122 (asan_dynamic_init_call): New function.
3123 (asan_add_global): If vnode->dynamically_initialized,
3124 set __has_dynamic_init to 1 instead of 0.
3125 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
3126 * asan.h (asan_dynamic_init_call): New prototype.
3127 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
3129 2013-11-22 Martin Jambor <mjambor@suse.cz>
3131 PR rtl-optimization/10474
3132 * ira.c (interesting_dest_for_shprep_1): New function.
3133 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
3134 also check parallels.
3136 2013-11-22 Jeff Law <law@redhat.com>
3138 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
3139 NULL for RHS, which we used to invalidate equivalences.
3140 (record_temporary_equivalences_from_phis): New bitmap arguments
3141 and a boolean indicating if we have passed a backedge. If we
3142 have passed a backedge, then set the appropriate bit in the
3143 bitmaps for the SRC & DEST of PHIs creating equivalences.
3144 (invalidate_equivalences, dummy_simplify): New functions.
3145 (cond_arg_set_in_b): Remove.
3146 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
3147 arguments and a boolean indicating if we have passed a backedge.
3148 If we have passed a backedge, then perform invalidations as needed.
3149 (thread_around_empty_blocks): If we have seen a backedge, then
3150 use the dummy simplify routine.
3151 (thread_through_normal_block): Likewise. Pass bitmaps and
3152 backedge status to children. Do not pessimize so much when
3153 traversing backedges in the CFG.
3154 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
3155 If we have seen a backedge, then use the dummy simplify routine.
3156 Do not pessimize so much when traversing backedges.
3158 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
3160 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
3161 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3163 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
3165 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
3166 PTA_PCLMUL and PTA_RDRND for Silvermont.
3167 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
3170 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
3172 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3174 * hooks.h (hook_uint_mode_0): Add Prototype.
3175 * hooks.c (hook_uint_mode_0): New default function.
3176 * target.def (atomic_align_for_mode): New target hook.
3177 * tree.c (build_atomic_base): Add alignment override parameter.
3178 (build_common_tree_nodes): Use atomic alignment override.
3179 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
3180 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
3182 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3184 * gimple.h: Remove all includes.
3185 (recalculate_side_effects): Move prototype to gimplify.h.
3186 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
3187 * gengtype.c (open_base_files): Add gimple.h include list.
3188 * gimplify.h (recalculate_side_effects): Relocate prototype here.
3189 * gimple.c: Adjust include list.
3190 (recalculate_side_effects): Move to gimplify.c.
3191 * gimplify.c: Adjust include list.
3192 (recalculate_side_effects): Relocate from gimple.c.
3193 * alias.c: Add required include files removed from gimple.h.
3195 * builtins.c: Likewise.
3196 * calls.c: Likewise.
3197 * cfgexpand.c: Likewise.
3198 * cfgloop.c: Likewise.
3199 * cfgloopmanip.c: Likewise.
3200 * cgraphbuild.c: Likewise.
3201 * cgraph.c: Likewise.
3202 * cgraphclones.c: Likewise.
3203 * cgraphunit.c: Likewise.
3204 * cilk-common.c: Likewise.
3205 * data-streamer.c: Likewise.
3206 * data-streamer-in.c: Likewise.
3207 * data-streamer-out.c: Likewise.
3209 * dwarf2out.c: Likewise.
3210 * emit-rtl.c: Likewise.
3211 * except.c: Likewise.
3213 * fold-const.c: Likewise.
3214 * function.c: Likewise.
3215 * gimple-builder.c: Likewise.
3216 * gimple-expr.c: Likewise.
3217 * gimple-fold.c: Likewise.
3218 * gimple-iterator.c: Likewise.
3219 * gimple-low.c: Likewise.
3220 * gimple-pretty-print.c: Likewise.
3221 * gimple-ssa-isolate-paths.c: Likewise.
3222 * gimple-ssa-strength-reduction.c: Likewise.
3223 * gimple-streamer-in.c: Likewise.
3224 * gimple-streamer-out.c: Likewise.
3225 * gimple-walk.c: Likewise.
3226 * gimplify-me.c: Likewise.
3227 * graphite-blocking.c: Likewise.
3228 * graphite.c: Likewise.
3229 * graphite-clast-to-gimple.c: Likewise.
3230 * graphite-dependences.c: Likewise.
3231 * graphite-interchange.c: Likewise.
3232 * graphite-optimize-isl.c: Likewise.
3233 * graphite-poly.c: Likewise.
3234 * graphite-scop-detection.c: Likewise.
3235 * graphite-sese-to-poly.c: Likewise.
3236 * internal-fn.c: Likewise.
3238 * ipa-cp.c: Likewise.
3239 * ipa-devirt.c: Likewise.
3240 * ipa-inline-analysis.c: Likewise.
3241 * ipa-inline.c: Likewise.
3242 * ipa-profile.c: Likewise.
3243 * ipa-prop.c: Likewise.
3244 * ipa-pure-const.c: Likewise.
3245 * ipa-reference.c: Likewise.
3246 * ipa-split.c: Likewise.
3247 * ipa-utils.c: Likewise.
3248 * langhooks.c: Likewise.
3249 * lto-cgraph.c: Likewise.
3250 * lto-compress.c: Likewise.
3251 * lto-opts.c: Likewise.
3252 * lto-section-in.c: Likewise.
3253 * lto-section-out.c: Likewise.
3254 * lto-streamer.c: Likewise.
3255 * lto-streamer-in.c: Likewise.
3256 * lto-streamer-out.c: Likewise.
3257 * omp-low.c: Likewise.
3258 * opts-global.c: Likewise.
3259 * passes.c: Likewise.
3260 * predict.c: Likewise.
3261 * profile.c: Likewise.
3264 * stor-layout.c: Likewise.
3265 * symtab.c: Likewise.
3266 * targhooks.c: Likewise.
3267 * toplev.c: Likewise.
3268 * tracer.c: Likewise.
3269 * trans-mem.c: Likewise.
3270 * tree-affine.c: Likewise.
3272 * tree-call-cdce.c: Likewise.
3273 * tree-cfg.c: Likewise.
3274 * tree-cfgcleanup.c: Likewise.
3275 * tree-chrec.c: Likewise.
3276 * tree-complex.c: Likewise.
3277 * tree-data-ref.c: Likewise.
3278 * tree-dfa.c: Likewise.
3279 * tree-eh.c: Likewise.
3280 * tree-emutls.c: Likewise.
3281 * tree-if-conv.c: Likewise.
3282 * tree-inline.c: Likewise.
3283 * tree-into-ssa.c: Likewise.
3284 * tree-loop-distribution.c: Likewise.
3285 * tree-nested.c: Likewise.
3286 * tree-nrv.c: Likewise.
3287 * tree-object-size.c: Likewise.
3288 * tree-outof-ssa.c: Likewise.
3289 * tree-parloops.c: Likewise.
3290 * tree-phinodes.c: Likewise.
3291 * tree-predcom.c: Likewise.
3292 * tree-pretty-print.c: Likewise.
3293 * tree-profile.c: Likewise.
3294 * tree-scalar-evolution.c: Likewise.
3295 * tree-sra.c: Likewise.
3296 * tree-ssa-address.c: Likewise.
3297 * tree-ssa-alias.c: Likewise.
3298 * tree-ssa.c: Likewise.
3299 * tree-ssa-ccp.c: Likewise.
3300 * tree-ssa-coalesce.c: Likewise.
3301 * tree-ssa-copy.c: Likewise.
3302 * tree-ssa-copyrename.c: Likewise.
3303 * tree-ssa-dce.c: Likewise.
3304 * tree-ssa-dom.c: Likewise.
3305 * tree-ssa-dse.c: Likewise.
3306 * tree-ssa-forwprop.c: Likewise.
3307 * tree-ssa-ifcombine.c: Likewise.
3308 * tree-ssa-live.c: Likewise.
3309 * tree-ssa-loop.c: Likewise.
3310 * tree-ssa-loop-ch.c: Likewise.
3311 * tree-ssa-loop-im.c: Likewise.
3312 * tree-ssa-loop-ivcanon.c: Likewise.
3313 * tree-ssa-loop-ivopts.c: Likewise.
3314 * tree-ssa-loop-manip.c: Likewise.
3315 * tree-ssa-loop-niter.c: Likewise.
3316 * tree-ssa-loop-prefetch.c: Likewise.
3317 * tree-ssa-loop-unswitch.c: Likewise.
3318 * tree-ssa-math-opts.c: Likewise.
3319 * tree-ssanames.c: Likewise.
3320 * tree-ssa-operands.c: Likewise.
3321 * tree-ssa-phiopt.c: Likewise.
3322 * tree-ssa-phiprop.c: Likewise.
3323 * tree-ssa-pre.c: Likewise.
3324 * tree-ssa-propagate.c: Likewise.
3325 * tree-ssa-reassoc.c: Likewise.
3326 * tree-ssa-sccvn.c: Likewise.
3327 * tree-ssa-sink.c: Likewise.
3328 * tree-ssa-strlen.c: Likewise.
3329 * tree-ssa-structalias.c: Likewise.
3330 * tree-ssa-tail-merge.c: Likewise.
3331 * tree-ssa-ter.c: Likewise.
3332 * tree-ssa-threadedge.c: Likewise.
3333 * tree-ssa-threadupdate.c: Likewise.
3334 * tree-ssa-uncprop.c: Likewise.
3335 * tree-ssa-uninit.c: Likewise.
3336 * tree-stdarg.c: Likewise.
3337 * tree-streamer.c: Likewise.
3338 * tree-streamer-in.c: Likewise.
3339 * tree-streamer-out.c: Likewise.
3340 * tree-switch-conversion.c: Likewise.
3341 * tree-tailcall.c: Likewise.
3342 * tree-vect-data-refs.c: Likewise.
3343 * tree-vect-generic.c: Likewise.
3344 * tree-vect-loop.c: Likewise.
3345 * tree-vect-loop-manip.c: Likewise.
3346 * tree-vectorizer.c: Likewise.
3347 * tree-vect-patterns.c: Likewise.
3348 * tree-vect-slp.c: Likewise.
3349 * tree-vect-stmts.c: Likewise.
3350 * tree-vrp.c: Likewise.
3352 * ubsan.c: Likewise.
3353 * value-prof.c: Likewise.
3354 * varpool.c: Likewise.
3355 * var-tracking.c: Likewise.
3356 * vtable-verify.c: Likewise.
3357 * config/darwin.c: Likewise.
3358 * config/aarch64/aarch64-builtins.c: Likewise.
3359 * config/aarch64/aarch64.c: Likewise.
3360 * config/alpha/alpha.c: Likewise.
3361 * config/i386/i386.c: Likewise.
3362 * config/i386/winnt.c: Likewise.
3363 * config/ia64/ia64.c: Likewise.
3364 * config/m32c/m32c.c: Likewise.
3365 * config/mep/mep.c: Likewise.
3366 * config/mips/mips.c: Likewise.
3367 * config/rs6000/rs6000.c: Likewise.
3368 * config/s390/s390.c: Likewise.
3369 * config/sh/sh.c: Likewise.
3370 * config/sparc/sparc.c: Likewise.
3371 * config/spu/spu.c: Likewise.
3372 * config/stormy16/stormy16.c: Likewise.
3373 * config/tilegx/tilegx.c: Likewise.
3374 * config/tilepro/tilepro.c: Likewise.
3375 * config/xtensa/xtensa.c: Likewise.
3377 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
3380 * arm.md (negdi_extendsidi): Fix invalid split.
3382 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
3384 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
3385 (vmov_n_f64): Likewise.
3386 (vmov_n_p8): Likewise.
3387 (vmov_n_p16): Likewise.
3388 (vmov_n_s8): Likewise.
3389 (vmov_n_s16): Likewise.
3390 (vmov_n_s32): Likewise.
3391 (vmov_n_s64): Likewise.
3392 (vmov_n_u8): Likewise.
3393 (vmov_n_u16): Likewise.
3394 (vmov_n_u32): Likewise.
3395 (vmov_n_u64): Likewise.
3396 (vmovq_n_f32): Likewise.
3397 (vmovq_n_f64): Likewise.
3398 (vmovq_n_p8): Likewise.
3399 (vmovq_n_p16): Likewise.
3400 (vmovq_n_s8): Likewise.
3401 (vmovq_n_s16): Likewise.
3402 (vmovq_n_s32): Likewise.
3403 (vmovq_n_s64): Likewise.
3404 (vmovq_n_u8): Likewise.
3405 (vmovq_n_u16): Likewise.
3406 (vmovq_n_u32): Likewise.
3407 (vmovq_n_u64): Likewise.
3409 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3411 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3412 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
3413 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
3414 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
3415 and also change to float UNSPEC.
3416 (reduc_maxmin_uns>_<mode>): Remove V2DI.
3417 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
3418 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
3419 result access for big-endian.
3420 (__LANE0): New macro used to fix up lane access of 'across-lanes'
3421 intrinsics for big-endian.
3422 * config/aarch64/iterators.md (VDQV): Add V2DI.
3424 (vp): New mode attribute.
3426 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3428 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
3429 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
3432 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3434 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
3435 for big-endian element order.
3436 (aarch64_simd_vec_setv2di): Likewise.
3437 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
3438 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
3439 (vec_extract): Expand using aarch64_get_lane.
3440 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
3442 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
3444 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
3445 and stores to be ABI compliant.
3447 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3449 * input.h (input_line): Remove.
3450 (input_filename): Likewise.
3451 (in_system_header): Likewise.
3452 * tree.h (EXPR_LOC_OR_HERE): Remove.
3453 * config/bfin/bfin.c (output_file_start): Remove use of
3454 input_filename macro.
3455 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
3456 * gimplify.c (internal_get_tmp_var): Likewise.
3457 EXPR_LOC_OR_HERE macro.
3458 (shortcut_cond_expr): Likewise.
3459 * tree-diagnostic.c (diagnostic_report_current_function): Remove
3460 use of input_filename macro.
3461 * tree.c (get_file_function_name): Likewise.
3463 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
3465 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
3467 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3469 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
3470 (same sized) elements even if the type of the CONSTRUCTOR has
3471 vector mode and target is a REG.
3473 2013-11-22 Richard Biener <rguenther@suse.de>
3476 2013-11-21 Richard Biener <rguenther@suse.de>
3478 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
3479 nb_iterations_upper_bound by one.
3481 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
3483 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
3486 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
3487 core-avx-i, core-avx2 and slm.
3489 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
3491 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
3493 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
3495 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
3496 (stzx_24_<mode>): Likewise mra_operand.
3498 2013-11-22 Jeff Law <law@redhat.com>
3500 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
3501 (thread_block_1): Do not cancel jump threads which go from
3502 inside a loop, through the header, then back inside the loop.
3503 (bb_ends_with_multiway_branch): New function.
3504 (thread_through_all_blocks): Handle threading cases which start
3505 in a loop through the loop header to a point in the loop.
3507 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
3508 jump thread path properly.
3510 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
3512 * vec.h (auto_vec): New class.
3513 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
3514 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
3515 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
3516 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
3517 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
3518 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
3519 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
3520 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
3521 appropriate instead of vec for local variables.
3523 2013-11-21 Teresa Johnson <tejohnson@google.com>
3526 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
3527 not understood by old_insns_match_p.
3529 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
3531 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
3532 little endian change.
3533 (vec_pack_sfix_trunc_v2df): Likewise.
3534 (vec_pack_ufix_trunc_v2df): Likewise.
3535 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
3536 double checking of endianness.
3538 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3540 * tree-vect-generic.c (optimize_vector_constructor): New function.
3541 (expand_vector_operations_1): Call it.
3543 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
3545 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
3546 ix86_zero_extend_to_Pmode where appropriate.
3547 (ix86_expand_builtin): Ditto.
3549 2013-11-21 Cary Coutant <ccoutant@google.com>
3551 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
3552 (add_linkage_name): Don't add linkage name for -g1.
3553 (decls_for_scope): Process subblocks for -g1.
3554 (dwarf2out_source_line): Output line tables for -g1.
3555 (dwarf2out_finish): Likewise.
3556 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
3557 unused scopes for -g1.
3558 * opts.c (common_handle_option): Handle -g same as -g2.
3559 * doc/invoke.texi: Update description for -g1.
3561 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
3563 * doc/extend.texi: Document htm builtins.
3565 2013-11-21 Jeff Law <law@redhat.com>
3567 PR tree-optimization/59221
3568 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
3569 temporary equivalences when threading through joiner blocks.
3571 2013-11-21 Joseph Myers <joseph@codesourcery.com>
3573 PR rtl-optimization/55950
3574 * real.c (real_sqrt): Remove function.
3575 * real.h (real_sqrt): Remove prototype.
3576 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
3577 SQRT using real_sqrt.
3579 2013-11-21 Richard Biener <rguenther@suse.de>
3581 PR tree-optimization/59058
3582 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
3583 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
3584 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
3585 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
3586 (NITERS_KNOWN_P): Fold into ...
3587 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
3588 (LOOP_VINFO_PEELING_FOR_NITER): Add.
3589 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3590 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3591 (vect_do_peeling_for_alignment): Re-use precomputed niter
3592 instead of re-emitting it.
3593 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3594 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3595 * tree-vect-loop.c (vect_get_loop_niters): Use
3596 number_of_latch_executions.
3597 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
3598 (vect_analyze_loop_form): Simplify.
3599 (vect_analyze_loop_operations): Move epilogue peeling code ...
3600 (vect_analyze_loop_2): ... here and adjust it to compute
3601 LOOP_VINFO_PEELING_FOR_NITER.
3602 (vect_estimate_min_profitable_iters): Use
3603 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
3604 (vect_build_loop_niters): Emit on the preheader.
3605 (vect_generate_tmps_on_preheader): Likewise.
3606 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
3607 of recomputing it. Adjust.
3609 2013-11-21 Richard Biener <rguenther@suse.de>
3611 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3612 LOC_LINE): Remove wrappers and fix all users.
3613 (struct _loop_vec_info): Remove loop_line_number member.
3614 (LOOP_VINFO_LOC): Remove.
3615 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
3616 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
3619 2013-11-21 Richard Biener <rguenther@suse.de>
3621 * tree-ssa-forwprop.c (simplify_vce): New function.
3622 (ssa_forward_propagate_and_combine): Call it.
3624 2013-11-21 Richard Biener <rguenther@suse.de>
3626 * tree-vect-loop-manip.c (vect_build_loop_niters,
3627 vect_generate_tmps_on_preheader): Move ...
3628 * tree-vect-loop.c (vect_build_loop_niters,
3629 vect_generate_tmps_on_preheader): ... here and simplify.
3630 (vect_transform_loop): Call them here and pass down results
3632 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
3633 Get niter variables from caller.
3634 (vect_do_peeling_for_alignment): Likewise.
3635 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
3636 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
3639 2013-11-21 Richard Biener <rguenther@suse.de>
3641 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
3642 nb_iterations_upper_bound by one.
3644 2013-11-21 Richard Biener <rguenther@suse.de>
3646 PR tree-optimization/59058
3647 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
3648 (build_size_arg_loc): Apply niter adjustment here.
3649 (generate_memset_builtin): Adjust.
3650 (generate_memcpy_builtin): Likewise.
3651 (classify_partition): Do not use number_of_exit_cond_executions
3652 but record whether niter needs to be adjusted.
3654 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
3656 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
3659 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
3662 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
3663 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
3664 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
3665 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
3666 sh_optimize_sett_clrt pass.o to extra_objs.
3668 2013-11-20 David Malcolm <dmalcolm@redhat.com>
3670 * cfg.c (dump_edge_info): Remove redundant comment.
3671 * cfgcleanup.c (outgoing_edges_match): Reword reference to
3672 EXIT_BLOCK_PTR in comment.
3673 (try_optimize_cfg): Likewise.
3674 * cfgrtl.c (last_bb_in_partition): Likewise.
3675 * cgraph.c (cgraph_node_cannot_return): Likewise.
3676 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3677 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
3678 * ipa-split.c (consider_split): Likewise.
3679 * profile.c (find_spanning_tree): Likewise.
3680 * sched-int.h (common_sched_info_def.add_block): Likewise.
3681 * dominance.c (calc_dfs_tree_nonrec): Reword references in
3682 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
3683 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
3684 in comments to now removed ENTRY_BLOCK_PTR macro.
3685 (tree_forwarder_block_p): Reword reference in comment to
3687 * tree-inline.c (copy_cfg_body): Reword references in comments to
3688 now removed ENTRY_BLOCK_PTR macro.
3689 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3690 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
3691 a comma to the comment to clarify the meaning.
3693 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
3695 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
3697 (free_gimplify_stack): Add prototype.
3698 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
3699 (struct gimplify_ctx): Relocate here.
3700 (gimplify_ctxp): Make static.
3701 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
3702 list of struct gimplify_ctx.
3703 (push_gimplify_context): Add default parameters and allocate a struct
3705 (pop_gimplify_context): Free a struct back to the pool.
3706 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
3707 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
3708 use a local 'struct gimplify_ctx'.
3709 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
3710 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
3712 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
3713 lower_omp_ordered, lower_omp_critical, lower_omp_for,
3714 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
3715 lower_omp_teams, execute_lower_omp): Likewise.
3716 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
3717 * tree-inline.c (optimize_inline_calls): Likewise.
3719 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3721 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
3722 (vsx_extract_<mode>): Likewise.
3723 (*vsx_extract_<mode>_one_le): New LE variant on
3724 *vsx_extract_<mode>_zero.
3725 (vsx_extract_v4sf): Adjust for little endian.
3727 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
3729 PR rtl-optimization/59133
3730 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
3732 (lra_create_new_reg_with_unique_value): Pass new argument value.
3733 (lra_emit_add, lra_emit_move): Ditto.
3734 * lra-constraints.c (in_class_p): Add check for move for a new insn.
3735 (change_class): Rename to lra_change_class. Move to lra-int.h.
3736 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
3738 (process_addr_reg, process_addr): Ditto.
3739 (curr_insn_transform): Ditto. Add check on old pseudo for
3741 * lra-int.h (lra_get_regno_hard_regno): Move below.
3742 (lra_change_class): Renamed change_class from lra.c.
3744 2013-11-20 David Malcolm <dmalcolm@redhat.com>
3746 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
3747 the children of a NULL pointer.
3749 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
3751 * lra.c (lra): Set lra_in_progress before check_rtl call.
3752 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3753 adding clobber regs when LRA is running.
3755 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
3757 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
3758 restriction for ISA_MIPS32R2.
3759 (ISA_HAS_LXC1_SXC1): New macro.
3760 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
3761 (ISA_HAS_NMADD4_NMSUB4): Likewise.
3762 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
3763 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
3764 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
3765 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
3766 (*<ANYF:storex>_<P:mode>): Likewise.
3768 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
3770 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
3771 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
3772 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
3773 * config/mips/mips.md (recip_condition): Remove mode attribute.
3774 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
3776 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
3778 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
3781 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
3782 Make sure neg2_ovf is set before being used.
3784 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
3786 * plugin.def: Add comment about register_callback and
3787 invoke_plugin_callbacks_full.
3789 * plugin.c (register_callback, invoke_plugin_callbacks_full):
3790 Handle PLUGIN_INCLUDE_FILE event.
3792 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3794 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
3795 allow subregs of TDmode in FPRs of smaller size in little-endian.
3796 (rs6000_split_multireg_move): When splitting an access to TDmode
3797 in FPRs, do not use simplify_gen_subreg.
3799 2013-11-20 Joseph Myers <joseph@codesourcery.com>
3802 * real.c: Remove comment about decimal string conversion and
3804 (real_from_string): Use MPFR to convert nonzero decimal constant
3807 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
3809 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
3810 endianness of the D registers for the legacy encodings.
3812 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
3814 PR rtl-optimization/54300
3815 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
3816 outputs in a single-set are killed from the value chains.
3818 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3820 * cgraph.h (varpool_node): Add need_bounds_init field.
3821 * lto-cgraph.c (lto_output_varpool_node): Output
3822 need_bounds_init value.
3823 (input_varpool_node): Read need_bounds_init value.
3824 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3826 2013-11-20 Jan Hubicka <jh@suse.cz>
3828 * opts.c (finish_options): Imply -ffat-lto-objects with
3829 -fno-use-linker-plugin.
3830 * common.opt (fuse-linker-plugin): Add var.
3832 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3834 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3835 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3836 (gen_type_die_with_usage): Skip pointer bounds.
3837 (dwarf2out_global_decl): Likewise.
3839 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
3841 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
3844 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
3847 * config/i386/i386.c (ix86_option_override_internal): Add missed
3848 argument prefix for 'ix86_fpmath'.
3849 * config/i386/ssemath.h: Add missed definition of
3850 TARGET_FPMATH_DEFAULT_P macros.
3852 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3853 Mike Stump <mikestump@comcast.net>
3854 Richard Sandiford <rdsandiford@googlemail.com>
3856 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
3857 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3858 tree_fits_shwi_p or tree_fits_uhwi_p.
3859 * builtins.c (fold_builtin_powi): Likewise.
3860 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
3862 * dbxout.c (dbxout_symbol): Likewise.
3863 * expr.c (expand_expr_real_1): Likewise.
3864 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
3865 (fold_binary_loc): Likewise.
3866 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
3867 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
3868 * omp-low.c (lower_omp_for_lastprivate): Likewise.
3869 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
3870 * stor-layout.c (compute_record_mode): Likewise.
3871 * tree-cfg.c (verify_expr): Likewise.
3872 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3873 * tree-pretty-print.c (dump_array_domain): Likewise.
3874 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
3875 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3876 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
3877 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
3878 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
3879 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
3880 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3881 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
3882 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
3883 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
3884 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
3885 (create_variable_info_for_1): Likewise.
3886 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3887 (vect_verify_datarefs_alignment): Likewise.
3888 (vect_analyze_data_ref_accesses): Likewise.
3889 (vect_prune_runtime_alias_test_list): Likewise.
3890 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
3892 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
3894 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
3895 overflow. Use tree_to_shwi.
3897 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
3899 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
3900 HOST_WIDE_INTs when folding (x >> c) << c.
3902 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3903 Dominik Vogt <vogt@linux.vnet.ibm.com>
3905 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
3906 int comparisons with an out of range condition code.
3907 (s390_optimize_nonescaping_tx): Skip empty BBs.
3908 Generate the new tbegin RTX when removing the FPR clobbers (with
3910 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
3911 result before doing the retry calculations.
3912 (s390_init_builtins): Make tbegin "returns_twice" and tabort
3914 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
3915 the TDB setting part of an tbegin.
3916 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
3917 ("tx_assist"): Set unused argument to an immediate zero instead of
3918 loading zero into a GPR and pass it as argument.
3919 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
3920 Remove inline and related attributes.
3921 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
3922 (__TM_is_illegal, __TM_is_footprint_exceeded)
3923 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
3925 2013-11-20 Richard Biener <rguenther@suse.de>
3928 * lto-opts.c (lto_write_options): Write defaults only if
3929 they were not explicitely specified. Also write
3930 -ffp-contract default.
3931 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
3933 (run_gcc): Pass through -ffp-contract.
3935 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3937 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
3939 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
3941 * config/aarch64/aarch64-builtins.c
3942 (aarch64_simd_itype): Remove.
3943 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
3944 (VAR1): Use qualifiers.
3945 (aarch64_build_scalar_type): New.
3946 (aarch64_build_vector_type): Likewise.
3947 (aarch64_build_type): Likewise.
3948 (aarch64_init_simd_builtins): Refactor, remove special cases,
3949 consolidate main loop.
3950 (aarch64_simd_expand_args): Likewise.
3952 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3955 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
3957 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
3959 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
3961 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3963 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
3964 to "vec<>" instances.
3965 (build_pretty_printer): Register the vec<>* prettyprinter.
3967 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3969 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
3970 (GdbSubprinter.handles_type): New.
3971 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
3972 (GdbSubprinterRegex): New subclass of GdbSubprinter.
3973 (GdbPrettyPrinters.add_printer): Remove in favor of...
3974 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
3975 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
3976 (GdbPrettyPrinters.__call__): Update search for subprinter
3977 to use handles_type method.
3978 (build_pretty_printer): Update registration of subprinters to
3979 use the new API above, supporting multiple spelling of each type,
3980 and allowing for future regex-based subprinters.
3982 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3984 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
3985 V16QI vector splat case for little endian.
3987 2013-11-19 Jeff Law <law@redhat.com>
3989 * tree-ssa-threadedge.c (thread_across_edge): After threading
3990 through a joiner, allow threading a normal block requiring duplication.
3992 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
3993 jump threading requests that would muck up the loop structures.
3995 * tree-ssa-threadupdate.c: Fix trailing whitespace.
3996 * tree-ssa-threadupdate.h: Likewise.
3998 2013-11-19 Mike Stump <mikestump@comcast.net>
4000 * gdbinit.in: Add pmz to print out mpz values.
4002 2013-11-20 Jan Hubicka <jh@suse.cz>
4004 * common.opt (ffat-lto-objects): Disable by default.
4005 * doc/invoke.texi (fat-lto-objects): Update documentation.
4006 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
4008 2013-11-19 Martin Jambor <mjambor@suse.cz>
4010 PR rtl-optimization/59099
4011 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
4013 (ira): Move init_reg_equiv and call to
4014 split_live_ranges_for_shrink_wrap up, remove analyses around call
4015 to find_moveable_pseudos.
4017 2013-11-20 Alan Modra <amodra@gmail.com>
4019 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
4020 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
4021 to strict alignment on older processors when little-endian.
4022 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
4025 2013-11-19 Teresa Johnson <tejohnson@google.com>
4027 * common/config/i386/i386-common.c: Enable
4028 -freorder-blocks-and-partition at -O2 and up for x86.
4029 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
4030 * opts.c (finish_options): Only warn if
4031 -freorder-blocks-and-partition was set on command line.
4033 2013-11-19 Sriraman Tallam <tmsriram@google.com>
4035 * final.c (final_scan_insn): Emit a label for the split
4036 cold function part. Label name is formed by suffixing
4037 the original function name with "cold".
4039 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4041 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
4042 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
4043 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
4044 (EXIT_BLOCK_PTR_FOR_FN): ...this.
4045 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
4047 (EXIT_BLOCK_PTR): Likewise.
4048 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
4049 (FOR_ALL_BB_FN): Update for renaming of
4050 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
4052 * cfg.c (init_flow): Likewise.
4053 (check_bb_profile): Likewise.
4054 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
4055 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
4056 * cfghooks.c (account_profile_record): Likewise.
4057 * cfgloop.c (init_loops_structure): Likewise.
4058 * cgraphbuild.c (record_eh_tables): Likewise.
4059 (compute_call_stmt_bb_frequency): Likewise.
4060 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
4061 * lto-streamer-in.c (input_cfg): Likewise.
4062 * predict.c (maybe_hot_frequency_p): Likewise.
4063 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4064 * tree-inline.c (initialize_cfun): Likewise.
4065 (copy_cfg_body): Likewise.
4066 (copy_body): Likewise.
4067 (tree_function_versioning): Likewise.
4069 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
4070 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4071 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
4072 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
4073 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4074 (connect_traces): Likewise.
4075 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4076 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
4077 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
4079 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
4081 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
4082 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
4083 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
4084 (rotate_loop): Likewise.
4085 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
4086 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4088 (alloc_aux_for_edges): Likewise.
4089 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
4090 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4092 (compact_blocks): Likewise.
4093 (clear_edges): Likewise.
4094 * cfganal.c (single_pred_before_succ_order): Remove usage of
4095 ENTRY_BLOCK_PTR macro.
4096 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4097 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4098 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
4099 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
4100 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4102 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
4103 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
4105 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
4106 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4107 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4108 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4109 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4110 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
4112 (print_edge_list): Likewise.
4113 (create_edge_list): Likewise.
4114 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4115 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4117 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
4119 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
4120 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4121 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
4122 (try_optimize_cfg): Likewise.
4123 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
4124 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
4125 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
4126 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
4127 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
4128 (try_forward_edges): Likewise.
4129 (try_simplify_condjump): Likewise.
4130 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
4131 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4132 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
4133 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
4135 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
4136 (expand_gimple_tailcall): Likewise.
4137 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
4138 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4139 (tidy_fallthru_edges): Likewise.
4140 (verify_flow_info): Likewise.
4141 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
4142 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
4143 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
4144 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
4145 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
4146 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
4147 (get_loop_body_in_dom_order): Likewise.
4148 (get_loop_body): Likewise.
4149 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
4150 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4151 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
4153 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
4154 (fix_bb_placement): Likewise.
4155 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
4156 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4157 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
4158 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
4160 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4161 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
4162 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4163 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4165 (fixup_fallthru_exit_predecessor): Remove uses of macros:
4166 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4167 (fixup_reorder_chain): Likewise.
4168 (relink_block_chain): Likewise.
4169 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
4170 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4171 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4172 (force_one_exit_fallthru): Likewise.
4173 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
4175 (rtl_verify_edges): Likewise.
4176 (commit_edge_insertions): Likewise.
4177 (commit_one_edge_insertion): Likewise.
4178 (rtl_split_edge): Likewise.
4179 (force_nonfallthru_and_redirect): Likewise.
4180 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
4181 (skip_insns_after_block): Likewise.
4182 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
4184 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
4185 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
4187 (contains_no_active_insn_p): Likewise.
4188 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4189 (entry_of_function): Likewise.
4190 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
4191 (fixup_new_cold_bb): Likewise.
4192 (patch_jump_insn): Likewise.
4193 (try_redirect_by_replacing_jump): Likewise.
4194 (block_label): Likewise.
4195 (could_fall_through): Likewise.
4196 (can_fallthru): Likewise.
4197 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
4198 ENTRY_BLOCK_PTR macro.
4199 (rebuild_cgraph_edges): Likewise.
4200 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
4201 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4202 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
4203 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
4204 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
4205 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
4206 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
4207 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
4209 (reg_nonzero_bits_for_combine): Likewise.
4210 (set_nonzero_bits_and_sign_copies): Likewise.
4211 (combine_instructions): Likewise.
4212 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
4214 (bypass_conditional_jumps): Likewise.
4215 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
4216 (find_implicit_sets): Likewise.
4217 (cprop_jump): Likewise.
4218 * cse.c (cse_cc_succs): Likewise.
4219 (cse_find_path): Likewise.
4220 * df-problems.c (df_lr_confluence_0): Likewise.
4221 * df-scan.c (df_entry_block_defs_collect): Remove usage of
4222 ENTRY_BLOCK_PTR macro.
4223 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
4224 * dominance.c (iterate_fix_dominators): Remove usage of
4225 ENTRY_BLOCK_PTR macro.
4226 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4227 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
4228 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
4230 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
4232 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
4234 * domwalk.c (cmp_bb_postorder): Likewise.
4235 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
4236 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
4238 (sjlj_emit_function_enter): Likewise.
4239 * final.c (compute_alignments): Likewise.
4240 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
4241 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4242 (reposition_prologue_and_epilogue_notes): Remove usage of
4243 EXIT_BLOCK_PTR macro.
4244 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
4246 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
4247 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
4248 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
4249 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
4250 (compute_code_hoist_vbeinout): Likewise.
4251 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4252 (pre_expr_reaches_here_p_work): Likewise.
4253 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
4254 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
4256 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
4257 ENTRY_BLOCK_PTR macro.
4258 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
4260 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
4261 ENTRY_BLOCK_PTR macro.
4262 * graphite-scop-detection.c (build_scops): Likewise.
4263 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
4264 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
4265 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
4267 (unlink_bb_notes): Likewise.
4268 (create_check_block_twin): Likewise.
4269 (init_before_recovery): Likewise.
4270 (sched_extend_bb): Likewise.
4271 (priority): Likewise.
4272 * hw-doloop.c (reorder_loops): Likewise.
4273 (discover_loop): Likewise.
4274 * ifcvt.c (dead_or_predicable): Remove uses of macros:
4275 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4276 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
4277 (block_has_only_trap): Likewise.
4278 (cond_exec_find_if_block): Likewise.
4279 (merge_if_block): Likewise.
4280 * ipa-inline-analysis.c (param_change_prob): Remove usage of
4281 ENTRY_BLOCK_PTR macro.
4282 (record_modified): Likewise.
4283 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
4284 EXIT_BLOCK_PTR macro.
4285 (local_pure_const): Likewise.
4286 * ipa-split.c (split_function): Remove uses of macros:
4287 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4288 (find_split_points): Likewise.
4289 (consider_split): Likewise.
4290 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
4291 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4292 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
4293 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
4294 * ira-emit.c (entered_from_non_parent_p): Remove usage of
4295 ENTRY_BLOCK_PTR macro.
4296 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
4297 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
4298 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
4299 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4300 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
4302 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
4304 (compute_farthest): Likewise.
4305 (compute_available): Likewise.
4306 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
4307 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
4309 (compute_earliest): Likewise.
4310 (compute_antinout_edge): Likewise.
4311 * loop-iv.c (simplify_using_initial_values): Remove usage of
4312 ENTRY_BLOCK_PTR macro.
4313 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
4315 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
4317 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
4319 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
4320 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4321 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
4323 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
4325 * lto-streamer-out.c (output_cfg): Likewise.
4326 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
4328 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
4329 * mode-switching.c (optimize_mode_switching): Likewise.
4330 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
4331 * modulo-sched.c (rest_of_handle_sms): Likewise.
4332 (canon_loop): Likewise.
4333 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
4334 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
4335 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4336 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
4338 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
4339 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
4340 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
4341 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
4342 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
4343 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
4344 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
4345 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4346 (gimple_predict_edge): Likewise.
4347 (probably_never_executed): Likewise.
4348 * profile.c (find_spanning_tree): Remove uses of macros:
4349 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4350 (branch_prob): Likewise.
4351 (compute_branch_probabilities): Likewise.
4352 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
4353 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
4354 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
4355 (set_bb_counts): Likewise.
4356 (correct_negative_edge_counts): Likewise.
4357 (get_exec_counts): Likewise.
4358 (instrument_values): Likewise.
4359 (instrument_edges): Likewise.
4360 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
4362 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
4363 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
4364 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4365 (reg_to_stack): Likewise.
4366 * regs.h (REG_N_SETS): Likewise.
4367 * reload.c (find_dummy_reload): Likewise.
4368 (combine_reloads): Likewise.
4369 (push_reload): Likewise.
4370 * reload1.c (has_nonexceptional_receiver): Remove usage of
4371 EXIT_BLOCK_PTR macro.
4372 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
4374 (find_basic_block): Likewise.
4375 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4376 (schedule_ebbs): Likewise.
4377 * sched-int.h (sel_sched_p): Likewise.
4378 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
4380 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
4381 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
4383 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
4384 (extend_rgns): Likewise.
4385 (find_single_block_region): Likewise.
4386 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
4387 ENTRY_BLOCK_PTR macro.
4388 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
4389 (sel_create_recovery_block): Likewise.
4390 (bb_ends_ebb_p): Likewise.
4391 (sel_bb_end): Likewise.
4392 (sel_bb_head): Likewise.
4393 (free_lv_sets): Likewise.
4394 (init_lv_sets): Likewise.
4395 (tidy_control_flow): Likewise.
4396 (maybe_tidy_empty_bb): Likewise.
4397 * sel-sched-ir.h (_succ_iter_cond): Likewise.
4398 (_succ_iter_start): Likewise.
4399 (sel_bb_empty_or_nop_p): Likewise.
4400 (get_loop_exit_edges_unique_dests): Likewise.
4401 (inner_loop_header_p): Likewise.
4402 * sel-sched.c (create_block_for_bookkeeping): Likewise.
4403 (find_block_for_bookkeeping): Likewise.
4404 * store-motion.c (remove_reachable_equiv_notes): Likewise.
4405 (insert_store): Likewise.
4406 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
4407 ENTRY_BLOCK_PTR macro.
4408 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
4409 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
4410 (gate_tm_init): Likewise.
4411 (tm_region_init): Likewise.
4412 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
4413 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4414 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
4415 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
4417 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
4418 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
4420 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
4422 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
4424 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
4426 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4427 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
4428 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
4429 (build_gimple_cfg): Likewise.
4430 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
4431 (gimple_can_merge_blocks_p): Likewise.
4432 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
4433 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4434 * tree-complex.c (update_parameter_components): Remove usage of
4435 ENTRY_BLOCK_PTR macro.
4436 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
4437 EXIT_BLOCK_PTR macro.
4438 * tree-inline.c (tree_function_versioning): Remove uses of macros:
4439 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4440 (delete_unreachable_blocks_update_callgraph): Likewise.
4441 (initialize_cfun): Likewise.
4442 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
4443 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
4444 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
4445 * tree-into-ssa.c (update_ssa): Likewise.
4446 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
4447 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
4448 (rewrite_into_ssa): Likewise.
4449 (rewrite_debug_stmt_uses): Likewise.
4450 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
4451 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4452 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
4453 ENTRY_BLOCK_PTR macro.
4454 * tree-scalar-evolution.h (block_before_loop): Likewise.
4455 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4456 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
4458 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
4460 (propagate_dereference_distances): Remove uses of macros:
4461 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4462 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
4464 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
4465 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
4466 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
4467 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
4468 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4469 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
4470 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
4471 (mark_control_dependent_edges_necessary): Remove uses of macros:
4472 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4473 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
4474 ENTRY_BLOCK_PTR macro.
4475 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
4476 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
4477 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4478 (calculate_live_on_exit): Likewise.
4479 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
4480 (loe_visit_block): Likewise.
4481 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
4482 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4483 (live_on_entry): Likewise.
4484 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
4485 EXIT_BLOCK_PTR macro.
4486 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
4487 ENTRY_BLOCK_PTR macro.
4488 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
4489 (bound_difference): Likewise.
4490 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
4491 of EXIT_BLOCK_PTR macro.
4492 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
4493 of ENTRY_BLOCK_PTR macro.
4494 * tree-ssa-math-opts.c (register_division_in): Likewise.
4495 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
4496 * tree-ssa-pre.c (compute_avail): Likewise.
4497 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
4498 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
4499 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4500 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
4501 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
4503 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
4504 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
4505 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4506 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
4507 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
4508 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
4509 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
4510 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
4511 (find_pdom): Likewise.
4512 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
4513 * tree-stdarg.c (reachable_at_most_once): Likewise.
4514 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
4515 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4516 (eliminate_tail_call): Likewise.
4517 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
4519 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
4520 * var-tracking.c (vt_initialize): Remove uses of macros:
4521 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
4522 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
4523 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
4524 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
4526 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
4528 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4529 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
4530 of EXIT_BLOCK_PTR macro.
4531 * config/arm/arm.c (require_pic_register): Remove usage of
4532 ENTRY_BLOCK_PTR macro.
4533 (arm_r3_live_at_start_p): Likewise.
4534 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
4535 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4536 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
4537 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
4538 ENTRY_BLOCK_PTR macro.
4539 * config/i386/i386.c (ix86_count_insn): Likewise.
4540 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
4541 (ix86_pad_short_function): Likewise.
4542 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
4543 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
4544 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
4545 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
4546 (ix86_expand_epilogue): Likewise.
4547 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
4548 (ia64_expand_prologue): Likewise.
4550 2013-11-19 Catherine Moore <clm@codesourcery.com>
4552 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
4553 * config/mips/mips.opt (mfix-rm7000): New option.
4554 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
4555 * config/mips/mips.c (mips_reorg_process_insns): Disable
4556 noreorder for TARGET_FIX_RM7000.
4558 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
4560 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
4562 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4564 * config/arm/arm.c (arm_new_rtx_costs):
4565 Handle narrow mode add-shifts properly.
4566 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
4567 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
4570 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
4572 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
4574 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4576 * config/rs6000/vector.md ("mov<mode>"): Do not call
4577 rs6000_emit_le_vsx_move to move into or out of GPRs.
4578 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
4579 source and destination are not GPR hard regs.
4581 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4583 * basic-block.h (n_edges_for_function): Rename macro to...
4584 (n_edges_for_fn): ...this.
4585 (n_edges): Eliminate macro as work towards making uses of
4588 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
4589 to "n_edges_for_fn".
4591 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
4592 (clear_edges): Likewise.
4593 (free_edge): Likewise.
4594 * cfghooks.c (dump_flow_info): Likewise.
4595 * cprop.c (is_too_expensive): Likewise.
4596 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4597 * gcse.c (is_too_expensive): Likewise.
4598 (prune_insertions_deletions): Likewise.
4599 * mcf.c (create_fixup_graph): Likewise.
4600 * sched-rgn.c (haifa_find_rgns): Likewise.
4601 * tree-cfg.c (gimple_dump_cfg): Likewise.
4602 * var-tracking.c (variable_tracking_main_1): Likewise.
4604 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4606 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
4609 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4611 * config/aarch64/aarch64.md
4612 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
4614 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
4616 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
4618 2013-11-19 Joseph Myers <joseph@codesourcery.com>
4620 * varasm.c (align_variable): Give error instead of warning for
4621 unsupported alignment.
4622 (assemble_noswitch_variable): Likewise.
4624 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
4626 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
4629 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
4631 * loop-doloop.c (doloop_optimize_loops): Remove unused
4632 loop iterator argument from FOR_EACH_LOOP.
4634 2013-11-19 David Malcolm <dmalcolm@redhat.com>
4636 Convert gimple types from a union to C++ inheritance.
4637 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
4638 * coretypes.h (union gimple_statement_d): Remove declaration.
4639 (gimple): Convert from being a "union gimple_statement_d *"
4640 to a "struct gimple_statement_base *".
4641 (const_gimple): Likewise (with "const").
4642 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
4643 (ggc_alloc_cleared_gimple_statement_stat): ...this.
4644 * gimple-pretty-print.c (debug): Change parameter from a
4645 "gimple_statement_d &" to a "gimple_statement_base &".
4646 (debug): Change parameter from a "gimple_statement_d *" to
4647 a "gimple_statement_base *".
4648 * gimple-pretty-print.h (debug): Update declarations as above.
4649 * gimple.c (gimple_alloc_stat): Update for renaming of
4650 ggc_alloc_cleared_gimple_statement_d_stat to
4651 ggc_alloc_cleared_gimple_statement_stat.
4652 * gimple.h: Include "is-a.h" for use by is_a_helper
4653 specializations in followup autogenerated patch.
4654 (struct gimple statement_base): Make this type usable as a base
4655 class by adding "desc", "tag" and "variable_size" to GTY, thus
4656 using opting-in to gengtype's support for simple inheritance.
4657 (gimple_statement_with_ops_base): Convert to a subclass of
4658 gimple_statement_base, dropping initial "gsbase" field. Note that
4659 this type is abstract, with no GSS_ value, and thus no GTY tag value.
4660 (gimple_statement_with_ops): Convert to a subclass of
4661 gimple_statement_with_ops_base, dropping initial "opbase" field.
4662 Add tag value to GTY marking. Update marking of op field to
4663 reflect how num_ops field is accessed via inheritance.
4664 (gimple_statement_with_memory_ops_base): Convert to a subclass of
4665 gimple_statement_with_ops_base, dropping initial "opbase" field.
4666 Add tag value to GTY marking.
4667 (gimple_statement_with_memory_ops): Convert to a subclass of
4668 public gimple_statement_with_memory_ops_base, dropping initial
4669 "membase" field. Add tag value to GTY marking. Update marking
4670 of op field to reflect how num_ops field is accessed via inheritance.
4671 (gimple_statement_call): Analogous changes that also update the
4672 marking of the "u" union.
4673 (gimple_statement_omp): Convert to a subclass of
4674 gimple_statement_base, dropping initial "gsbase" field, adding
4675 tag value to GTY marking.
4676 (gimple_statement_bind): Likewise.
4677 (gimple_statement_catch): Likewise.
4678 (gimple_statement_eh_filter): Likewise.
4679 (gimple_statement_eh_else): Likewise.
4680 (gimple_statement_eh_mnt): Likewise.
4681 (gimple_statement_phi): Likewise.
4682 (gimple_statement_eh_ctrl): Likewise.
4683 (gimple_statement_try): Likewise.
4684 (gimple_statement_wce): Likewise.
4685 (gimple_statement_asm): Convert to a subclass of
4686 gimple_statement_with_memory_ops_base, dropping initial
4687 "membase" field, adding tag value to GTY marking, and updating
4688 marking of op field.
4689 (gimple_statement_omp_critical): Convert to a subclass of
4690 gimple_statement_omp, dropping initial "omp" field, adding tag
4691 value to GTY marking.
4692 (gimple_statement_omp_for): Likewise.
4693 (gimple_statement_omp_parallel): Likewise.
4694 (gimple_statement_omp_task): Convert to a subclass of
4695 gimple_statement_omp_parallel, dropping initial "par" field,
4696 adding tag value to GTY marking.
4697 (gimple_statement_omp_sections): Convert to a subclass of
4698 gimple_statement_omp, dropping initial "omp" field, adding
4699 tag value to GTY marking.
4700 (gimple_statement_omp_continue): Convert to a subclass of
4701 gimple_statement_base, dropping initial "gsbase" field, adding
4702 tag value to GTY marking.
4703 (gimple_statement_omp_single): Convert to a subclass of
4704 gimple_statement_omp, dropping initial "omp" field, adding
4705 tag value to GTY marking.
4706 (gimple_statement_omp_atomic_load): Convert to a subclass of
4707 gimple_statement_base, dropping initial "gsbase" field, adding
4708 tag value to GTY marking.
4709 (gimple_statement_omp_atomic_store): Convert to a subclass of
4710 gimple_statement_base, dropping initial "gsbase" field, adding
4711 tag value to GTY marking.
4712 (gimple_statement_transaction): Convert to a subclass of
4713 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
4714 field, adding tag value to GTY marking.
4715 (union gimple_statement_d): Remove.
4716 * system.h (CONST_CAST_GIMPLE): Update to use
4717 "struct gimple_statement_base *" rather than
4718 "union gimple_statement_d *".
4719 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
4720 gimple_statement_d to gimple_statement_base.
4722 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
4723 (gimple_set_use_ops): Port from union to usage of as_a.
4724 (gimple_set_vuse): Likewise.
4725 (gimple_set_vdef): Likewise.
4726 (gimple_call_internal_fn): Port from union to a static_cast,
4727 given that the type has already been asserted.
4728 (gimple_omp_body_ptr): Port from unchecked union usage to
4730 (gimple_omp_set_body): Likewise.
4732 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
4733 gimple types to a true class hierarchy.
4734 (update_call_edge_frequencies): Likewise.
4735 (gsi_insert_seq_nodes_before): Likewise.
4736 (gsi_insert_seq_nodes_after): Likewise.
4737 (gsi_split_seq_after): Likewise.
4738 (gsi_set_stmt): Likewise.
4739 (gsi_split_seq_before): Likewise.
4740 (gsi_remove): Likewise.
4741 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
4742 (gsi_next): Likewise.
4743 (gsi_prev): Likewise.
4744 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
4745 * gimple-ssa.h (gimple_vuse_op): Likewise.
4746 (gimple_vdef_op): Likewise.
4747 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
4748 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
4749 * gimple.c (gimple_set_code): Likewise.
4750 (gimple_alloc_stat): Likewise.
4751 (gimple_set_subcode): Likewise.
4752 (gimple_build_call_internal_1): Likewise.
4753 (gimple_check_failed): Likewise.
4754 (gimple_call_flags): Likewise.
4755 (gimple_set_bb): Likewise.
4756 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
4757 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
4758 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
4759 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
4760 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
4761 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
4762 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
4763 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
4764 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
4765 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
4766 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
4767 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
4768 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
4769 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
4770 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
4771 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
4772 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
4773 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
4774 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
4775 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
4776 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
4777 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
4778 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
4779 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
4780 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
4781 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
4783 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
4785 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
4787 (is_a_helper <const gimple_statement_omp_atomic_store>
4788 (const_gimple)): Likewise.
4789 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
4791 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
4793 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
4795 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
4797 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
4799 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
4801 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
4803 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
4804 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
4806 (gimple_seq_last): Update for conversion of gimple types to a true
4808 (gimple_seq_set_last): Likewise.
4809 (gimple_code): Likewise.
4810 (gimple_bb): Likewise.
4811 (gimple_block): Likewise.
4812 (gimple_set_block): Likewise.
4813 (gimple_location): Likewise.
4814 (gimple_location_ptr): Likewise.
4815 (gimple_set_location): Likewise.
4816 (gimple_no_warning_p): Likewise.
4817 (gimple_set_no_warning): Likewise.
4818 (gimple_set_visited): Likewise.
4819 (gimple_visited_p): Likewise.
4820 (gimple_set_plf): Likewise.
4821 (gimple_plf): Likewise.
4822 (gimple_set_uid): Likewise.
4823 (gimple_uid): Likewise.
4824 (gimple_init_singleton): Likewise.
4825 (gimple_modified_p): Likewise.
4826 (gimple_set_modified): Likewise.
4827 (gimple_expr_code): Likewise.
4828 (gimple_has_volatile_ops): Likewise.
4829 (gimple_set_has_volatile_ops): Likewise.
4830 (gimple_omp_subcode): Likewise.
4831 (gimple_omp_set_subcode): Likewise.
4832 (gimple_omp_return_set_nowait): Likewise.
4833 (gimple_omp_section_set_last): Likewise.
4834 (gimple_omp_parallel_set_combined_p): Likewise.
4835 (gimple_omp_atomic_set_need_value): Likewise.
4836 (gimple_omp_atomic_set_seq_cst): Likewise.
4837 (gimple_num_ops): Likewise.
4838 (gimple_set_num_ops): Likewise.
4839 (gimple_assign_nontemporal_move_p): Likewise.
4840 (gimple_assign_set_nontemporal_move): Likewise.
4841 (gimple_assign_rhs_code): Likewise.
4842 (gimple_assign_set_rhs_code): Likewise.
4843 (gimple_call_internal_p): Likewise.
4844 (gimple_call_with_bounds_p): Likewise.
4845 (gimple_call_set_with_bounds): Likewise.
4846 (gimple_call_set_tail): Likewise.
4847 (gimple_call_tail_p): Likewise.
4848 (gimple_call_set_return_slot_opt): Likewise.
4849 (gimple_call_return_slot_opt_p): Likewise.
4850 (gimple_call_set_from_thunk): Likewise.
4851 (gimple_call_from_thunk_p): Likewise.
4852 (gimple_call_set_va_arg_pack): Likewise.
4853 (gimple_call_va_arg_pack_p): Likewise.
4854 (gimple_call_set_nothrow): Likewise.
4855 (gimple_call_set_alloca_for_var): Likewise.
4856 (gimple_call_alloca_for_var_p): Likewise.
4857 (gimple_call_copy_flags): Likewise.
4858 (gimple_cond_code): Likewise.
4859 (gimple_cond_set_code): Likewise.
4860 (gimple_cond_make_false): Likewise.
4861 (gimple_cond_make_true): Likewise.
4862 (gimple_asm_volatile_p): Likewise.
4863 (gimple_asm_set_volatile): Likewise.
4864 (gimple_asm_set_input): Likewise.
4865 (gimple_asm_input_p): Likewise.
4866 (gimple_try_kind): Likewise.
4867 (gimple_try_set_kind): Likewise.
4868 (gimple_try_catch_is_cleanup): Likewise.
4869 (gimple_try_set_catch_is_cleanup): Likewise.
4870 (gimple_wce_cleanup_eh_only): Likewise.
4871 (gimple_wce_set_cleanup_eh_only): Likewise.
4872 (gimple_debug_bind_p): Likewise.
4873 (gimple_debug_source_bind_p): Likewise.
4874 (gimple_omp_for_set_kind): Likewise.
4875 (gimple_omp_for_set_combined_p): Likewise.
4876 (gimple_omp_for_set_combined_into_p): Likewise.
4877 (gimple_omp_target_set_kind): Likewise.
4878 (gimple_transaction_subcode): Likewise.
4879 (gimple_transaction_set_subcode): Likewise.
4880 (gimple_predict_predictor): Likewise.
4881 (gimple_predict_set_predictor): Likewise.
4882 (gimple_predict_outcome): Likewise.
4883 (gimple_predict_set_outcome): Likewise.
4884 (gimple_transaction_set_label): Likewise.
4885 (gimple_transaction_set_body): Likewise.
4886 (gimple_transaction_label_ptr): Likewise.
4887 (gimple_transaction_label): Likewise.
4888 (gimple_transaction_body_ptr): Likewise.
4889 (gimple_omp_continue_set_control_use): Likewise.
4890 (gimple_omp_continue_control_use_ptr): Likewise.
4891 (gimple_omp_continue_control_use): Likewise.
4892 (gimple_omp_continue_set_control_def): Likewise.
4893 (gimple_omp_continue_control_def_ptr): Likewise.
4894 (gimple_omp_continue_control_def): Likewise.
4895 (gimple_omp_atomic_load_rhs_ptr): Likewise.
4896 (gimple_omp_atomic_load_rhs): Likewise.
4897 (gimple_omp_atomic_load_set_rhs): Likewise.
4898 (gimple_omp_atomic_load_lhs_ptr): Likewise.
4899 (gimple_omp_atomic_load_lhs): Likewise.
4900 (gimple_omp_atomic_load_set_lhs): Likewise.
4901 (gimple_omp_atomic_store_val_ptr): Likewise.
4902 (gimple_omp_atomic_store_val): Likewise.
4903 (gimple_omp_atomic_store_set_val): Likewise.
4904 (gimple_omp_for_cond): Likewise.
4905 (gimple_omp_for_set_cond): Likewise.
4906 (gimple_omp_sections_set_control): Likewise.
4907 (gimple_omp_sections_control_ptr): Likewise.
4908 (gimple_omp_sections_control): Likewise.
4909 (gimple_omp_sections_set_clauses): Likewise.
4910 (gimple_omp_sections_clauses_ptr): Likewise.
4911 (gimple_omp_sections_clauses): Likewise.
4912 (gimple_omp_teams_set_clauses): Likewise.
4913 (gimple_omp_teams_clauses_ptr): Likewise.
4914 (gimple_omp_teams_clauses): Likewise.
4915 (gimple_omp_target_set_data_arg): Likewise.
4916 (gimple_omp_target_data_arg_ptr): Likewise.
4917 (gimple_omp_target_data_arg): Likewise.
4918 (gimple_omp_target_set_child_fn): Likewise.
4919 (gimple_omp_target_child_fn_ptr): Likewise.
4920 (gimple_omp_target_child_fn): Likewise.
4921 (gimple_omp_target_set_clauses): Likewise.
4922 (gimple_omp_target_clauses_ptr): Likewise.
4923 (gimple_omp_target_clauses): Likewise.
4924 (gimple_omp_single_set_clauses): Likewise.
4925 (gimple_omp_single_clauses_ptr): Likewise.
4926 (gimple_omp_single_clauses): Likewise.
4927 (gimple_omp_task_set_arg_align): Likewise.
4928 (gimple_omp_task_arg_align_ptr): Likewise.
4929 (gimple_omp_task_arg_align): Likewise.
4930 (gimple_omp_task_set_arg_size): Likewise.
4931 (gimple_omp_task_arg_size_ptr): Likewise.
4932 (gimple_omp_task_arg_size): Likewise.
4933 (gimple_omp_task_set_copy_fn): Likewise.
4934 (gimple_omp_task_copy_fn_ptr): Likewise.
4935 (gimple_omp_task_copy_fn): Likewise.
4936 (gimple_omp_task_set_data_arg): Likewise.
4937 (gimple_omp_task_data_arg_ptr): Likewise.
4938 (gimple_omp_task_data_arg): Likewise.
4939 (gimple_omp_task_set_child_fn): Likewise.
4940 (gimple_omp_task_child_fn_ptr): Likewise.
4941 (gimple_omp_task_child_fn): Likewise.
4942 (gimple_omp_task_set_clauses): Likewise.
4943 (gimple_omp_task_clauses_ptr): Likewise.
4944 (gimple_omp_task_clauses): Likewise.
4945 (gimple_omp_parallel_set_data_arg): Likewise.
4946 (gimple_omp_parallel_data_arg_ptr): Likewise.
4947 (gimple_omp_parallel_data_arg): Likewise.
4948 (gimple_omp_parallel_set_child_fn): Likewise.
4949 (gimple_omp_parallel_child_fn_ptr): Likewise.
4950 (gimple_omp_parallel_child_fn): Likewise.
4951 (gimple_omp_parallel_set_clauses): Likewise.
4952 (gimple_omp_parallel_clauses_ptr): Likewise.
4953 (gimple_omp_parallel_clauses): Likewise.
4954 (gimple_omp_for_set_pre_body): Likewise.
4955 (gimple_omp_for_pre_body_ptr): Likewise.
4956 (gimple_omp_for_set_incr): Likewise.
4957 (gimple_omp_for_incr_ptr): Likewise.
4958 (gimple_omp_for_incr): Likewise.
4959 (gimple_omp_for_set_final): Likewise.
4960 (gimple_omp_for_final_ptr): Likewise.
4961 (gimple_omp_for_final): Likewise.
4962 (gimple_omp_for_set_initial): Likewise.
4963 (gimple_omp_for_initial_ptr): Likewise.
4964 (gimple_omp_for_initial): Likewise.
4965 (gimple_omp_for_set_index): Likewise.
4966 (gimple_omp_for_index_ptr): Likewise.
4967 (gimple_omp_for_index): Likewise.
4968 (gimple_omp_for_collapse): Likewise.
4969 (gimple_omp_for_set_clauses): Likewise.
4970 (gimple_omp_for_clauses_ptr): Likewise.
4971 (gimple_omp_for_clauses): Likewise.
4972 (gimple_omp_critical_set_name): Likewise.
4973 (gimple_omp_critical_name_ptr): Likewise.
4974 (gimple_omp_critical_name): Likewise.
4975 (gimple_eh_dispatch_set_region): Likewise.
4976 (gimple_eh_dispatch_region): Likewise.
4977 (gimple_resx_set_region): Likewise.
4978 (gimple_resx_region): Likewise.
4979 (gimple_phi_set_arg): Likewise.
4980 (gimple_phi_arg): Likewise.
4981 (gimple_phi_set_result): Likewise.
4982 (gimple_phi_result_ptr): Likewise.
4983 (gimple_phi_result): Likewise.
4984 (gimple_phi_num_args): Likewise.
4985 (gimple_phi_capacity): Likewise.
4986 (gimple_wce_set_cleanup): Likewise.
4987 (gimple_wce_cleanup_ptr): Likewise.
4988 (gimple_try_set_cleanup): Likewise.
4989 (gimple_try_set_eval): Likewise.
4990 (gimple_try_cleanup_ptr): Likewise.
4991 (gimple_try_eval_ptr): Likewise.
4992 (gimple_eh_else_set_e_body): Likewise.
4993 (gimple_eh_else_set_n_body): Likewise.
4994 (gimple_eh_else_e_body_ptr): Likewise.
4995 (gimple_eh_else_n_body_ptr): Likewise.
4996 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4997 (gimple_eh_must_not_throw_fndecl): Likewise.
4998 (gimple_eh_filter_set_failure): Likewise.
4999 (gimple_eh_filter_set_types): Likewise.
5000 (gimple_eh_filter_failure_ptr): Likewise.
5001 (gimple_eh_filter_types_ptr): Likewise.
5002 (gimple_eh_filter_types): Likewise.
5003 (gimple_catch_set_handler): Likewise.
5004 (gimple_catch_set_types): Likewise.
5005 (gimple_catch_handler_ptr): Likewise.
5006 (gimple_catch_types_ptr): Likewise.
5007 (gimple_catch_types): Likewise.
5008 (gimple_asm_string): Likewise.
5009 (gimple_asm_set_label_op): Likewise.
5010 (gimple_asm_label_op): Likewise.
5011 (gimple_asm_set_clobber_op): Likewise.
5012 (gimple_asm_clobber_op): Likewise.
5013 (gimple_asm_set_output_op): Likewise.
5014 (gimple_asm_output_op_ptr): Likewise.
5015 (gimple_asm_output_op): Likewise.
5016 (gimple_asm_set_input_op): Likewise.
5017 (gimple_asm_input_op_ptr): Likewise.
5018 (gimple_asm_input_op): Likewise.
5019 (gimple_asm_nlabels): Likewise.
5020 (gimple_asm_nclobbers): Likewise.
5021 (gimple_asm_noutputs): Likewise.
5022 (gimple_asm_ninputs): Likewise.
5023 (gimple_bind_set_block): Likewise.
5024 (gimple_bind_block): Likewise.
5025 (gimple_bind_add_seq): Likewise.
5026 (gimple_bind_add_stmt): Likewise.
5027 (gimple_bind_set_body): Likewise.
5028 (gimple_bind_body_ptr): Likewise.
5029 (gimple_bind_append_vars): Likewise.
5030 (gimple_bind_set_vars): Likewise.
5031 (gimple_bind_vars): Likewise.
5032 (gimple_call_clobber_set): Likewise.
5033 (gimple_call_use_set): Likewise.
5034 (gimple_call_set_internal_fn): Likewise.
5035 (gimple_call_set_fntype): Likewise.
5036 (gimple_call_fntype): Likewise.
5037 (gimple_omp_return_lhs_ptr): Likewise.
5038 (gimple_omp_return_lhs): Likewise.
5039 (gimple_omp_return_set_lhs): Likewise.
5040 (gimple_omp_taskreg_set_data_arg): Likewise.
5041 (gimple_omp_taskreg_data_arg_ptr): Likewise.
5042 (gimple_omp_taskreg_data_arg): Likewise.
5043 (gimple_omp_taskreg_set_child_fn): Likewise.
5044 (gimple_omp_taskreg_child_fn_ptr): Likewise.
5045 (gimple_omp_taskreg_child_fn): Likewise.
5046 (gimple_omp_taskreg_set_clauses): Likewise.
5047 (gimple_omp_taskreg_clauses_ptr): Likewise.
5048 (gimple_omp_taskreg_clauses): Likewise.
5049 (gimple_vuse): Likewise.
5050 (gimple_vdef): Likewise.
5051 (gimple_vuse_ptr): Likewise.
5052 (gimple_vdef_ptr): Likewise.
5053 * tree-inline.c (copy_debug_stmt): Likewise.
5054 * tree-phinodes.c (make_phi_node): Likewise.
5056 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
5057 (is_a_helper <gimple_statement_with_ops>::test): New.
5058 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
5059 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
5061 * gimple-streamer-in.c (input_gimple_stmt): Port from union
5062 access to use of as_a.
5063 * gimple.c (gimple_build_asm_1): Likewise.
5064 (gimple_build_try): Likewise. Also, return a specific subclass
5065 rather than just gimple.
5066 (gimple_build_resx): Port from union access to use of as_a.
5067 (gimple_build_eh_dispatch): Likewise.
5068 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
5069 now that gengtype no longer provides a typed allocator function.
5070 (gimple_copy): Likewise.
5071 * gimple.h (gimple_build_try): Return a specific subclass rather
5073 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
5074 with subclass access by making use of new return type of
5076 * tree-phinodes.c: (allocate_phi_node): Return a
5077 "gimple_statement_phi *" rather than just a gimple.
5078 (resize_phi_node): Likewise.
5079 (make_phi_node): Replace union access with subclass access by
5080 making use of new return type of allocate_phi_node.
5081 (reserve_phi_args_for_new_edge): Replace union access with as_a.
5082 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
5084 (remove_phi_args): Update for change to remove_phi_arg_num.
5086 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
5087 code field to reflect inheritance, rather than embedding of
5088 the base gimple type.
5090 2013-11-19 Richard Biener <rguenther@suse.de>
5092 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
5093 and destructor and make fel_next a member function.
5094 (fel_next): Transform into ...
5095 (loop_iterator::next): ... this.
5096 (fel_init): Transform into ...
5097 (loop_iterator::loop_iterator): ... this.
5098 (loop_iterator::~loop_iterator): New.
5099 (FOR_EACH_LOOP): Remove loop-iterator argument.
5100 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
5101 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
5102 graphite-clast-to-gimple.c, graphite-scop-detection.c,
5103 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
5104 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
5105 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
5106 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
5107 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
5108 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5109 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
5110 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
5111 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
5112 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
5113 FOR_EACH_LOOP_BREAK with break.
5115 2013-11-19 Richard Biener <rguenther@suse.de>
5117 PR tree-optimization/59164
5118 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5120 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
5121 whether we can create an epilogue loop to reflect thecases where
5124 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
5126 * graphite-sese-to-poly.c: Include expr.h.
5128 2013-11-19 Richard Biener <rguenther@suse.de>
5131 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
5132 loads into stmts that may clobber it.
5134 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
5136 * cgraphunit.c (symtab_terminator): New variable.
5137 (queued_nodes): Renamed from first. Use symtab_terminator as
5139 (analyze_functions): Adjust accordingly.
5140 (cgraph_process_new_functions): Return void.
5141 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
5143 2013-11-19 Marek Polacek <polacek@redhat.com>
5145 * opts.c (common_handle_option): Add -fsanitize=null option.
5146 Turn off -fdelete-null-pointer-checks option when doing the
5147 NULL pointer checking.
5148 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
5149 * tree-pass.h (make_pass_ubsan): Declare.
5150 (make_pass_sanopt): Declare.
5151 * timevar.def (TV_TREE_UBSAN): New timevar.
5152 * passes.def: Add pass_sanopt and pass_ubsan.
5153 * ubsan.h (ubsan_null_ckind): New enum.
5154 (ubsan_mismatch_data): New struct.
5155 (ubsan_expand_null_ifn): Declare.
5156 (ubsan_create_data): Adjust declaration.
5157 (ubsan_type_descriptor): Likewise.
5158 * asan.c: Include "ubsan.h".
5159 (pass_data_sanopt): New pass.
5160 (execute_sanopt): New function.
5161 (gate_sanopt): Likewise.
5162 (make_pass_sanopt): Likewise.
5163 (class pass_sanopt): New class.
5164 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
5165 gimple-iterator.h and cfgloop.h.
5166 (PROB_VERY_UNLIKELY): Define.
5167 (tree_type_map_hash): New function.
5168 (ubsan_type_descriptor): Add new parameter.
5169 Improve type name generation.
5170 (ubsan_create_data): Add new parameter. Add pointer data into
5172 (ubsan_expand_null_ifn): New function.
5173 (instrument_member_call): Likewise.
5174 (instrument_mem_ref): Likewise.
5175 (instrument_null): Likewise.
5176 (ubsan_pass): Likewise.
5177 (gate_ubsan): Likewise.
5178 (make_pass_ubsan): Likewise.
5179 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
5180 (class pass_ubsan): New class.
5181 (pass_data_ubsan): New pass.
5182 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
5183 * internal-fn.c (expand_UBSAN_NULL): New function.
5184 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
5185 even when !flag_toplevel_reorder.
5186 * internal-fn.def (UBSAN_NULL): New.
5188 2013-11-19 Jan Hubicka <jh@suse.cz>
5190 * cgraph.c (cgraph_create_indirect_edge): Use
5191 get_polymorphic_call_info.
5192 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
5193 maybe_in_construction and maybe_derived_type.
5194 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
5195 (ipa_dummy_polymorphic_call_context): New global var.
5196 (possible_polymorphic_call_targets): Add context paramter.
5197 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
5198 (possible_polymorphic_call_target_p): Likewise.
5199 (get_polymorphic_call_info): New function.
5200 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
5201 (add_type_duplicate): Remove forgotten debug output.
5202 (method_class_type): Add sanity check.
5203 (maybe_record_node): Add FINALP parameter.
5204 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
5205 by info by get_binfo_at_offset.
5206 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
5207 parameters; pass them to record-binfo.
5208 (polymorphic_call_target_d): Add context and FINAL.
5209 (polymorphic_call_target_hasher::hash): Hash context.
5210 (polymorphic_call_target_hasher::equal): Compare context.
5211 (free_polymorphic_call_targets_hash):
5212 (get_class_context): New function.
5213 (contains_type_p): New function.
5214 (get_polymorphic_call_info): New function.
5215 (walk_bases): New function.
5216 (possible_polymorphic_call_targets): Add context parameter; honnor it.
5217 (dump_possible_polymorphic_call_targets): Dump context.
5218 (possible_polymorphic_call_target_p): Add context.
5219 (update_type_inheritance_graph): Update comment.s
5220 (ipa_set_jf_known_type): Assert that compoentn type is known.
5221 (ipa_note_param_call): Do not tamper with offsets.
5222 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
5224 (update_indirect_edges_after_inlining): Likewise.
5225 (ipa_write_indirect_edge_info): Stream new fields.
5226 (ipa_read_indirect_edge_info): Stream in new fields.
5228 2013-11-19 Jan Hubicka <jh@suse.cz>
5230 * tree-pretty-print.c (dump_generic_node): Print class type of
5233 2013-11-19 Joey Ye <joey.ye@arm.com>
5235 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
5236 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
5238 * config/arm/arm.c (arm_option_override): By default disable
5239 -marm-pic-data-is-text-relative.
5240 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
5241 (arm_assemble_integer): Likewise.
5242 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
5243 New macro to initialize -marm-pic-data-is-text-relative.
5245 2013-11-19 Bin Cheng <bin.cheng@arm.com>
5247 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
5248 (address_cost_data): New field.
5249 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
5250 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
5252 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5254 * config/aarch64/aarch64.md: Remove v8type from all insns.
5256 2013-11-19 Richard Biener <rguenther@suse.de>
5258 PR tree-optimization/57517
5259 * tree-predcom.c (combinable_refs_p): Verify the combination
5260 is always executed when the refs are.
5262 2013-11-19 Jeff Law <law@redhat.com>
5264 * tree-ssa-threadupdate.c: Include ssa-iterators.h
5265 (copy_phi_arg_into_existing_phi): New function.
5266 (any_remaining_duplicated_blocks): Likewise.
5267 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
5268 blocks on a jump threading path.
5270 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
5271 thread through a joiner which has the latch edge.
5273 2013-11-19 Jan Hubicka <jh@suse.cz>
5275 * md.texi (setmem): Document new parameter.
5276 * optabs.c (maybe_gen_insn): Support 9 operands.
5277 * builtins.c (determine_block_size): Add probable_max_size;
5278 support anti-ranges.
5279 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
5281 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
5282 emit_block_move, clear_storage_hints, set_storage_via_setmem):
5284 * expr.h (emit_block_move_hints, clear_storage_hints,
5285 set_storage_via_setmem): Update prototype.
5286 * i386.md (setmem, movmem patterns): Add 9th operand.
5287 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
5288 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
5289 argument; pass it to decide_alg.
5291 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5293 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
5294 (n_basic_blocks_for_fn): ...this.
5296 (n_basic_blocks): Eliminate macro as work towards making uses of
5299 * cfgloop.c (init_loops_structure): Update for renaming of
5300 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
5301 * graph.c (draw_cfg_nodes_no_loops): Likewise.
5302 * ipa-utils.c (ipa_merge_profiles): Likewise.
5303 * lto-streamer-in.c (make_new_block): Likewise.
5304 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5305 (dump_function_to_file): Likewise.
5307 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
5308 macro with "n_basic_blocks_for_fn (cfun)".
5309 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
5310 (duplicate_computed_gotos): Likewise.
5311 (reorder_basic_blocks): Likewise.
5312 * bt-load.c (augment_live_range): Likewise.
5313 * cfg.c (expunge_block): Likewise.
5314 (compact_blocks): Likewise.
5315 * cfganal.c (single_pred_before_succ_order): Likewise.
5316 (compute_idf): Likewise.
5317 (flow_dfs_compute_reverse_init): Likewise.
5318 (pre_and_rev_post_order_compute): Likewise.
5319 (pre_and_rev_post_order_compute_fn): Likewise.
5320 (inverted_post_order_compute): Likewise.
5321 (post_order_compute): Likewise.
5322 (print_edge_list): Likewise.
5323 (find_unreachable_blocks): Likewise.
5324 (mark_dfs_back_edges): Likewise.
5325 * cfgcleanup.c (try_optimize_cfg): Likewise.
5326 (try_forward_edges): Likewise.
5327 * cfghooks.c (dump_flow_info): Likewise.
5328 * cfgloop.c (verify_loop_structure): Likewise.
5329 (get_loop_body): Likewise.
5330 (flow_loops_find): Likewise.
5331 * cfgloopmanip.c (add_loop): Likewise.
5332 (remove_path): Likewise.
5333 (find_path): Likewise.
5334 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5335 (rtl_verify_bb_layout): Likewise.
5336 (entry_of_function): Likewise.
5337 (rtl_create_basic_block): Likewise.
5338 * coverage.c (coverage_compute_cfg_checksum): Likewise.
5339 * cprop.c (one_cprop_pass): Likewise.
5340 (is_too_expensive): Likewise.
5341 * df-core.c (df_compute_cfg_image): Likewise.
5342 (df_compact_blocks): Likewise.
5343 (df_worklist_dataflow_doublequeue): Likewise.
5344 * dominance.c (calculate_dominance_info): Likewise.
5345 (calc_dfs_tree): Likewise.
5346 (calc_dfs_tree_nonrec): Likewise.
5347 (init_dom_info): Likewise.
5348 * domwalk.c (cmp_bb_postorder): Likewise.
5349 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5350 (generate_setjmp_warnings): Likewise.
5351 * fwprop.c (build_single_def_use_links): Likewise.
5352 * gcse.c (is_too_expensive): Likewise.
5353 (one_code_hoisting_pass): Likewise.
5354 (one_pre_gcse_pass): Likewise.
5355 * graphite.c (graphite_initialize): Likewise.
5356 * haifa-sched.c (haifa_sched_init): Likewise.
5357 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
5358 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
5359 * ira-build.c (ira_build): Likewise.
5360 * lcm.c (compute_nearerout): Likewise.
5361 (compute_available): Likewise.
5362 (compute_laterin): Likewise.
5363 (compute_antinout_edge): Likewise.
5364 * lra-lives.c (lra_create_live_ranges): Likewise.
5365 * lra.c (has_nonexceptional_receiver): Likewise.
5366 * mcf.c (create_fixup_graph): Likewise.
5367 * profile.c (branch_prob): Likewise.
5368 * reg-stack.c (convert_regs_2): Likewise.
5369 * regrename.c (regrename_analyze): Likewise.
5370 * reload1.c (has_nonexceptional_receiver): Likewise.
5371 * reorg.c (dbr_schedule): Likewise.
5372 * sched-deps.c (sched_deps_init): Likewise.
5373 * sched-ebb.c (schedule_ebbs): Likewise.
5374 * sched-rgn.c (extend_regions): Likewise.
5375 (schedule_insns): Likewise.
5376 (sched_rgn_init): Likewise.
5377 (extend_rgns): Likewise.
5378 (haifa_find_rgns): Likewise.
5379 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
5380 (sel_recompute_toporder): Likewise.
5381 * sel-sched.c (run_selective_scheduling): Likewise.
5382 * store-motion.c (one_store_motion_pass): Likewise.
5383 (remove_reachable_equiv_notes): Likewise.
5384 * tracer.c (tracer): Likewise.
5385 (tail_duplicate): Likewise.
5386 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
5387 (dump_cfg_stats): Likewise.
5388 (gimple_dump_cfg): Likewise.
5389 (create_bb): Likewise.
5390 (build_gimple_cfg): Likewise.
5391 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
5392 * tree-inline.c (optimize_inline_calls): Likewise.
5393 (fold_marked_statements): Likewise.
5394 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
5395 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5396 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5397 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
5398 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5399 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5400 * tree-ssa-pre.c (do_pre): Likewise.
5401 (init_pre): Likewise.
5402 (compute_avail): Likewise.
5403 * tree-ssa-reassoc.c (init_reassoc): Likewise.
5404 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
5405 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
5406 (init_worklist): Likewise.
5407 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5408 * var-tracking.c (variable_tracking_main_1): Likewise.
5409 (vt_find_locations): Likewise.
5410 (vt_stack_adjustments): Likewise.
5411 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
5412 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
5414 2013-11-18 Jan Hubicka <jh@suse.cz>
5416 * profile.c (compute_branch_probabilities): Do not sanity check
5419 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
5421 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
5423 * fold-const.c (fold_single_bit_test_into_sign_test)
5424 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
5426 2013-11-18 Teresa Johnson <tejohnson@google.com>
5428 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
5429 cfglayout after bb reordering.
5430 * passes.def: Move compgotos before bb reordering since it goes into
5433 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
5435 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
5436 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
5438 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
5439 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
5440 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
5441 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
5442 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
5443 Remove all_lto_gen_passes.
5444 * passes.c (pass_manager::dump_passes): Remove its use.
5445 (pass_manager::register_pass): Likewise.
5446 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
5447 (pass_manager::pass_manager): Don't initialize or use it.
5448 (write_lto): New static function.
5449 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
5450 instead of using all_lto_gen_passes.
5451 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
5452 pass_ipa_lto_finish_out): Delete.
5453 * tree-pass.h (make_pass_ipa_lto_gimple_out,
5454 make_pass_ipa_lto_finish_out): Don't declare.
5456 2013-11-18 Jeff Law <law@redhat.com>
5458 * tree-ssa-threadupdate.c (redirection_data): Record two
5459 duplicated blocks instead of just one.
5460 (local_info): Explain why we don't create a template for the
5461 second duplicated block in a thread path.
5462 (create_block_for_threading): Accept argument indicating array
5463 index into redirection_data to store its result.
5464 (lookup_redirection_data): Initialize both duplicate blocks.
5465 (ssa_create_duplicates): If a jump threading path needs multiple
5466 blocks duplicated, then duplicate them.
5467 (ssa_fix_duplicate_block_edges): Corresponding changes.
5468 (ssa_fixup_template_block, thread_single_edge): Likewise.
5470 2013-11-18 Marek Polacek <polacek@redhat.com>
5472 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
5474 2013-11-18 Andrew Pinski <apinski@cavium.com>
5475 Steve Ellcey <sellcey@mips.com>
5478 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
5479 type restriction from equality_operator on conditonal move.
5480 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
5481 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
5483 2013-11-18 Jeff Law <law@redhat.com>
5485 * tree-ssa-threadupdate.c: Fix file block comment.
5486 Fix minor indention issue.
5488 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
5490 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
5491 ix86_address_subreg_operand. Move subreg checks to
5492 ix86_validate_address_register. Move address override check to
5493 ix86_legitimate_address_p.
5494 (ix86_validate_address_register): New function.
5495 (ix86_legitimate_address_p): Call ix86_validate_address_register
5496 to validate base and index registers. Add address override check
5497 from ix86_decompose_address.
5498 (ix86_decompose_address): Remove.
5500 2013-11-18 Richard Biener <rguenther@suse.de>
5502 PR tree-optimization/59125
5503 PR tree-optimization/54570
5504 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
5505 is not complete do not treat component-references with offset zero
5506 but different fields as equal.
5507 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
5508 (compute_object_sizes): Apply TLC. Propagate the constant
5509 results into all uses and fold their stmts.
5510 * passes.def (pass_all_optimizations): Move pass_object_sizes
5511 after the first pass_forwprop and before pass_fre.
5513 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5515 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5516 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
5517 (tree_ctz): Remove cast to unsigned type.
5518 * builtins.c (fold_builtin_memory_op): Likewise.
5519 * dwarf2out.c (descr_info_loc): Likewise.
5520 * godump.c (go_output_typedef): Likewise.
5521 * omp-low.c (expand_omp_simd): Likewise.
5522 * stor-layout.c (excess_unit_span): Likewise.
5523 * tree-object-size.c (addr_object_size): Likewise.
5524 * tree-sra.c (analyze_all_variable_accesses): Likewise.
5525 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5526 (simplify_rotate): Likewise.
5527 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
5528 (handle_pointer_plus): Likewise.
5529 * tree-switch-conversion.c (check_range): Likewise.
5530 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
5531 * tsan.c (instrument_builtin_call): Likewise.
5532 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
5533 * trans-mem.c (tm_log_add): Likewise.
5534 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
5535 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
5536 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
5537 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
5539 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5541 * tree.h (host_integerp, tree_low_cst): Delete.
5542 * tree.c (host_integerp, tree_low_cst): Delete.
5544 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5546 * expr.h: Update comments to refer to tree_to_[su]hwi rather
5548 * fold-const.c (fold_binary_loc): Likewise.
5549 * expr.c (store_constructor): Use tree_to_uhwi rather than
5551 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
5552 * stmt.c (emit_case_dispatch_table): Likewise.
5553 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5555 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5557 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
5558 config/aarch64/aarch64.c, config/alpha/predicates.md,
5559 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
5560 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
5561 config/mep/mep-pragma.c, config/mips/mips.c,
5562 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
5563 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
5564 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
5565 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
5566 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
5567 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
5568 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
5569 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
5570 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
5571 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
5573 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5575 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
5576 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
5577 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
5578 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
5579 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
5580 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
5581 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
5582 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
5583 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
5584 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
5585 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
5587 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5589 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
5590 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
5592 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5594 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
5597 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5599 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
5600 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
5601 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
5602 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
5603 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
5604 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
5605 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
5606 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
5607 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
5608 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
5609 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
5610 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
5611 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
5612 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
5613 tree_fits_uhwi_p throughout.
5615 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5617 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
5618 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
5619 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
5620 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
5621 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
5622 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
5623 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
5624 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
5625 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
5626 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
5627 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
5628 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
5629 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
5632 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5634 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
5635 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
5637 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
5639 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
5640 flag if it kills its address, not its post-increment.
5642 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
5644 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
5645 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
5646 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
5647 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
5648 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
5649 (gimple_call_with_bounds_p): New.
5650 (gimple_call_set_with_bounds): New.
5651 (gimple_call_num_nobnd_args): Remove.
5652 (gimple_call_nobnd_arg): Remove.
5653 * tree.h (CALL_WITH_BOUNDS_P): New.
5654 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
5656 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
5658 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
5659 (symtab_node_name): Rename to symtab_node::name.
5660 (cgraph_node_asm_name): Remove.
5661 (varpool_node_asm_name): Remove.
5662 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
5663 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
5664 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
5665 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
5666 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
5668 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5670 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
5671 * config/arm/arm.c (arm_cortex_a53_tune): New.
5672 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
5674 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5676 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
5677 (case ${target}): Add bdver4.
5678 * config/i386/bdver3.md: Add bdver4.
5679 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
5680 -march=native recognize bdver4 processors.
5681 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5682 bdver4 def_and_undef
5683 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
5684 (m_BDVER4): New definition.
5685 (m_AMD_MULTIPLE): Includes m_BDVER4.
5686 (processor_target_table): Add bdver4 entry.
5687 (static const char *const cpu_names): Add bdver4 entry.
5688 (software_prefetching_beneficial_p): Add bdver3.
5689 (ix86_option_override_internal): Add bdver4 instruction sets.
5690 (ix86_issue_rate): Add bdver4.
5691 (ix86_adjust_cost): Add bdver4.
5692 (ia32_multipass_dfa_lookahead): Add bdver4.
5693 (enum processor_model): Add M_AMDFAM15H_BDVER4.
5694 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
5695 (has_dispatch): Add bdver4.
5696 * config/i386/i386.h (TARGET_BDVER4): New definition.
5697 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
5698 (enum processor_type): Add PROCESSOR_BDVER4.
5699 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
5700 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
5701 * doc/extend.texi: Add details about bdver4.
5702 * doc/invoke.texi: Add details about bdver4. Add
5703 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
5705 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5707 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
5708 sdmode_stack_slot also in little-endian mode.
5710 2013-11-17 Jan Hubicka <jh@suse.cz>
5712 * doc/md.texi (setmem, movstr): Update documentation.
5713 * builtins.c (determine_block_size): New function.
5714 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
5715 (expand_builtin_memset_args): Use it and pass it to
5716 set_storage_via_setmem.
5717 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
5718 parameters; update call to expander.
5719 (emit_block_move_hints): Add min_size/max_size parameters.
5720 (clear_storage_hints): Likewise.
5721 (set_storage_via_setmem): Likewise.
5722 (clear_storage): Update.
5723 * expr.h (emit_block_move_hints, clear_storage_hints,
5724 set_storage_via_setmem): Update prototypes.
5725 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
5726 (ix86_expand_movmem, ix86_expand_setmem): Remove.
5727 (ix86_expand_movmem, ix86_expand_setmem): Remove.
5728 * i386.md (movmem, setmem): Pass parameters.
5730 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
5733 * config/i386/i386.c (ix86_address_subreg_operand): Do not
5734 reject non-integer subregs.
5735 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
5736 Move check for invalid x32 constant addresses ...
5737 (ix86_legitimate_address_p): ... here.
5739 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5741 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
5742 parameter and use it in REG_FRAME_RELATED_EXPR note.
5743 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
5745 (rs6000_emit_prologue): Likewise, but for little endian VSX
5746 stores, pass the source register of the store instead.
5748 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
5750 * gimple.h: Reorder prototypes to match .c declaration order, and
5751 remove protyotypes for functions not in gimple.c.
5752 (LABEL): Move to tree-into-ssa.c.
5753 * gimple.c: Remove unused prototypes.
5754 (get_base_address): Move to tree.c.
5755 * tree.c (get_base_address): Relocate from gimple.c.
5756 * builtins.h (validate_gimple_arglist): Add prototype.
5757 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
5758 * cfgexpand.h: New File.
5759 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
5760 * tree.h (build_addr): Move to tree-nested.h.
5761 * tree-nested.h: New File.
5762 (build_addr, lower_nested_functions, insert_field_into_struct): Add
5764 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
5765 * ipa-inline-analysis.c: Include cfgexpand.h.
5766 * cgraphunit.c: Include tree-nested.h.
5767 * omp-low.c: Likewise.
5768 * tree-parloops.c: Likewise.
5769 * gimple-low.h: Likewise.
5770 * tree-profile.h: Likewise.
5771 * expr.c: Include cfgexpand.h.
5772 * tree-affine.c: Likewise.
5773 * tree-ssa.c: Likewise.
5774 * tree-ssa-loop-im.c: Include trans-mem.h.
5775 * tree-ssa-tail-merge.c: Likewise.
5776 * value-prof.c: Include builtins.h and tree-nested.h.
5777 * tree-into-ssa.c (LABEL): Define here.
5779 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
5781 * config/arc/arc.c (arc_predicate_delay_insns): New function.
5782 (pass_data_arc_predicate_delay_insns): New pass_data instance.
5783 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
5784 (make_pass_arc_predicate_delay_insns): New function.
5785 (arc_init): Register pass_arc_predicate_delay_insns if
5786 flag_delayed_branch is active.
5788 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
5790 * config/arc/constraints.md (Rcq): Simplify register number test.
5792 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
5794 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
5796 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
5798 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
5801 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
5803 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
5804 * gimple-pretty-print.c (dump_omp_for): Add case for
5805 GF_OMP_FOR_KIND_CILKSIMD.
5806 * gimple.h (enum gf_mask): Restructure entries to add
5807 GF_OMP_FOR_KIND_CILKSIMD.
5808 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
5809 (gimplify_omp_for): Handle CILK_SIMD.
5810 (gimplify_expr): Add ccase for CILK_SIMD.
5811 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
5812 (build_outer_var_ref): Same.
5813 (check_omp_nesting_restrictions): Same.
5814 (lower_rec_input_clauses): Same.
5815 (lower_lastprivate_clauses): Same.
5816 (expand_omp_for): Same.
5817 (execute_expand_omp): Check flag_enable_cilkplus.
5818 (execute_lower_omp): Same.
5819 (diagnose_sb_0): Handle CILK_SIMD.
5820 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
5821 (setjmp_or_longjmp_p): New.
5822 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
5823 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
5824 * tree.def: Add tree code for CILK_SIMD.
5826 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5828 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
5830 (altivec_vperm_<mode>): Revert earlier little endian change.
5831 (*altivec_vperm_<mode>_internal): Remove.
5832 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
5833 (*altivec_vperm_<mode>_uns_internal): Remove.
5834 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
5836 2013-11-15 Jeff Law <law@redhat.com>
5838 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
5839 has_abnormal_or_outgoing_edge. Check for EH edges as well.
5840 * gimple-ssa-isolate-paths.c
5841 (find_implicit_erroneous_behaviour): Corresponding changes.
5842 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
5843 (find_explicit_erroneous_behaviour): Likewise.
5845 2013-11-15 Jeff Law <law@redhat.com>
5847 * ifcvt.c (find_cond_trap): Properly handle case where
5850 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
5852 * configure: Regenerate.
5854 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
5856 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
5857 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
5858 where it is incorrect or missing.
5860 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5862 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
5864 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
5865 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
5867 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
5868 pair with a TREE_CODE test and TREE_INT_CST_LOW.
5869 * tree-vect-generic.c (expand_vector_divmod): Likewise.
5871 2013-11-15 Richard Biener <rguenther@suse.de>
5873 PR tree-optimization/50262
5874 * tree-ssa-alias.h (struct pt_solution): Split
5875 vars_contains_global into vars_contains_nonlocal,
5876 vars_contains_escaped and vars_contains_escaped_heap.
5877 * tree-ssa-structalias.c (label_visit): Expand comment.
5878 (handle_lhs_call): Adjust comment.
5879 (set_uids_in_ptset): Set the new flags appropriately.
5880 (pt_solution_set): Adjust.
5881 (pt_solution_set_var): Likewise.
5882 (pt_solution_ior_into): Likewise.
5883 (pt_solution_includes_global): Likewise.
5884 (pt_solutions_intersect_1): Optimize escaped handling.
5885 (compute_points_to_sets): Remove heap variable globalization.
5886 (ipa_escaped_pt): Adjust initializer.
5887 (pass_data_ipa_pta): Do not run TODO_update_ssa.
5888 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
5889 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
5891 2013-11-15 Richard Biener <rguenther@suse.de>
5893 * tree-loop-distribution.c (tree_loop_distribution): Make sure
5894 to distribute all stores.
5896 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5898 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
5900 2013-11-15 Joseph Myers <joseph@codesourcery.com>
5902 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
5903 * configure.ac: Determine target_header_dir earlier.
5904 (--with-glibc-version): New configure option.
5905 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
5906 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
5907 * configure: Regenerate.
5908 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
5909 native toolchains for default.
5910 (--with-glibc-version): Document.
5912 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
5914 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
5916 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
5918 * lto-streamer-in.c (input function): Call cgraph_create_node if
5919 cgraph_get_node failed.
5921 2013-11-14 Olivier Hainque <hainque@adacore.com>
5923 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
5924 defer allocation of DECL_IGNORED_P variables at toplevel unless really
5925 small. Factorize size threshold computation from the existing one.
5926 (expand_used_vars): Refine comment.
5928 2013-11-14 Cong Hou <congh@google.com>
5930 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
5931 address field as it can be obtained from dr. Rename the struct.
5932 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
5933 steps of data references during sort.
5934 (vect_prune_runtime_alias_test_list): Adjust with the change to
5935 struct dr_with_seg_len.
5936 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5937 Adjust with the change to struct dr_with_seg_len.
5939 2013-11-14 Jeff Law <law@redhat.com>
5942 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
5943 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
5944 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
5945 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
5946 edges, then ignore it. If the statement exhibiting erroneous
5947 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
5948 then we can not optimize.
5949 (find_explicit_erroneous_behaviour): Likewise.
5951 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
5953 * gimplify-me.h: New file. Add prototypes.
5954 * gimplify.h: Don't include gimple.h.
5955 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
5956 Relocate from gimple.h.
5957 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
5958 is_gimple_sizepos): Move to gimplify.h.
5959 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
5960 (enum gsi_iterator_update): Move to gimple-iterator.h.
5961 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
5962 * gimplify-me.c: New File.
5963 (force_gimple_operand_1, force_gimple_operand,
5964 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
5965 gimple_regimplify_operands): Relocate from gimplify.c.
5966 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
5967 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
5968 gimple_regimplify_operands): Move to gimplify-me.c.
5969 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
5971 * Makefile.in (OBJS): Add gimplify-me.o
5972 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
5974 * cfgloopmanip.c: Likewise.
5975 * cgraphunit.c: Likewise.
5976 * cilk-common.c: Likewise.
5977 * fold-const.c: Likewise.
5978 * function.c: Likewise.
5979 * gimple-expr.c: Likewise.
5980 * gimple-fold.c: Likewise.
5981 * gimple-ssa-strength-reduction.c: Likewise.
5982 * gimple.c: Likewise.
5983 * graphite-clast-to-gimple.c: Likewise.
5984 * graphite-sese-to-poly.c: Likewise.
5985 * ipa-prop.c: Likewise.
5986 * ipa-split.c: Likewise.
5988 * langhooks.c: Likewise.
5989 * omp-low.c: Likewise.
5991 * stor-layout.c: Likewise.
5992 * targhooks.c: Likewise.
5993 * trans-mem.c: Likewise.
5994 * tree-affine.c: Likewise.
5995 * tree-cfg.c: Likewise.
5996 * tree-cfgcleanup.c: Likewise.
5997 * tree-complex.c: Likewise.
5998 * tree-if-conv.c: Likewise.
5999 * tree-inline.c: Likewise.
6000 * tree-loop-distribution.c: Likewise.
6001 * tree-nested.c: Likewise.
6002 * tree-parloops.c: Likewise.
6003 * tree-predcom.c: Likewise.
6004 * tree-profile.c: Likewise.
6005 * tree-scalar-evolution.c: Likewise.
6006 * tree-sra.c: Likewise.
6007 * tree-ssa-address.c: Likewise.
6008 * tree-ssa-ccp.c: Likewise.
6009 * tree-ssa-dce.c: Likewise.
6010 * tree-ssa-forwprop.c: Likewise.
6011 * tree-ssa-ifcombine.c: Likewise.
6012 * tree-ssa-loop-im.c: Likewise.
6013 * tree-ssa-loop-ivopts.c: Likewise.
6014 * tree-ssa-loop-manip.c: Likewise.
6015 * tree-ssa-loop-niter.c: Likewise.
6016 * tree-ssa-loop-prefetch.c: Likewise.
6017 * tree-ssa-loop-unswitch.c: Likewise.
6018 * tree-ssa-math-opts.c: Likewise.
6019 * tree-ssa-phiopt.c: Likewise.
6020 * tree-ssa-phiprop.c: Likewise.
6021 * tree-ssa-pre.c: Likewise.
6022 * tree-ssa-propagate.c: Likewise.
6023 * tree-ssa-reassoc.c: Likewise.
6024 * tree-ssa-sccvn.c: Likewise.
6025 * tree-ssa-strlen.c: Likewise.
6026 * tree-ssa.c: Likewise.
6027 * tree-switch-conversion.c: Likewise.
6028 * tree-tailcall.c: Likewise.
6029 * tree-vect-data-refs.c: Likewise.
6030 * tree-vect-generic.c: Likewise.
6031 * tree-vect-loop-manip.c: Likewise.
6032 * tree-vect-loop.c: Likewise.
6033 * tree-vect-patterns.c: Likewise.
6034 * tree-vect-stmts.c: Likewise.
6037 * value-prof.c: Likewise.
6038 * config/aarch64/aarch64.c: Likewise.
6039 * config/alpha/alpha.c: Likewise.
6040 * config/darwin.c: Likewise.
6041 * config/i386/i386.c: Likewise.
6042 * config/ia64/ia64.c: Likewise.
6043 * config/mep/mep.c: Likewise.
6044 * config/mips/mips.c: Likewise.
6045 * config/rs6000/rs6000.c: Likewise.
6046 * config/s390/s390.c: Likewise.
6047 * config/sh/sh.c: Likewise.
6048 * config/sparc/sparc.c: Likewise.
6049 * config/spu/spu.c: Likewise.
6050 * config/stormy16/stormy16.c: Likewise.
6051 * config/tilegx/tilegx.c: Likewise.
6052 * config/tilepro/tilepro.c: Likewise.
6053 * config/xtensa/xtensa.c: Likewise.
6055 2013-11-14 Diego Novillo <dnovillo@google.com>
6057 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
6059 2013-11-14 Diego Novillo <dnovillo@google.com>
6061 * tree.h: Include fold-const.h.
6062 (aggregate_value_p): Moved to function.h.
6063 (alloca_call_p): Moved to calls.h.
6064 (allocate_struct_function): Moved to function.h.
6065 (apply_tm_attr): Moved to attribs.h.
6066 (array_at_struct_end_p): Moved to expr.h.
6067 (array_ref_element_size): Moved to tree-dfa.h.
6068 (array_ref_low_bound): Moved to tree-dfa.h.
6069 (array_ref_up_bound): Moved to tree.h.
6070 (assemble_alias): Moved to cgraph.h.
6071 (bit_from_pos): Moved to stor-layout.h.
6072 (build_addr): Moved to tree-nested.h.
6073 (build_duplicate_type): Moved to tree-inline.h.
6074 (build_fold_addr_expr): Moved to fold-const.h.
6075 (build_fold_addr_expr_with_type): Moved to fold-const.h.
6076 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
6077 (build_fold_indirect_ref): Moved to fold-const.h.
6078 (build_fold_indirect_ref_loc): Moved to fold-const.h.
6079 (build_personality_function): Moved to tree.h.
6080 (build_range_check): Moved to fold-const.h.
6081 (build_simple_mem_ref): Moved to fold-const.h.
6082 (build_simple_mem_ref_loc): Moved to fold-const.h.
6083 (build_tm_abort_call): Moved to trans-mem.h.
6084 (byte_from_pos): Moved to stor-layout.h.
6085 (call_expr_flags): Moved to calls.h.
6086 (can_move_by_pieces): Moved to expr.h.
6087 (categorize_ctor_elements): Moved to expr.h.
6088 (change_decl_assembler_name): Moved to gcc-symtab.h.
6089 (combine_comparisons): Moved to fold-const.h.
6090 (complete_ctor_at_level_p): Moved to tree.h.
6091 (component_ref_field_offset): Moved to tree-dfa.h.
6092 (compute_builtin_object_size): Moved to tree-object-size.h.
6093 (compute_record_mode): Moved to stor-layout.h.
6094 (constant_boolean_node): Moved to fold-const.h.
6095 (constructor_static_from_elts_p): Moved to varasm.h.
6096 (cxx11_attribute_p): Moved to attribs.h.
6097 (debug_body): Moved to print-tree.h.
6098 (debug_find_tree): Moved to tree-inline.h.
6099 (debug_fold_checksum): Moved to fold-const.h.
6100 (debug_head): Moved to print-tree.h.
6101 (debug_head): Moved to print-tree.h.
6102 (debug_raw): Moved to print-tree.h.
6103 (debug_tree): Moved to print-tree.h.
6104 (debug_vec_tree): Moved to print-tree.h.
6105 (debug_verbose): Moved to print-tree.h.
6106 (debug_verbose): Moved to print-tree.h.
6107 (decl_attributes): Moved to attribs.h.
6108 (decl_binds_to_current_def_p): Moved to varasm.h.
6109 (decl_default_tls_model): Moved to varasm.h.
6110 (decl_replaceable_p): Moved to varasm.h.
6111 (div_if_zero_remainder): Moved to fold-const.h.
6112 (double_int mem_ref_offset): Moved to fold-const.h.
6113 (dump_addr): Moved to print-tree.h.
6114 (element_precision): Moved to machmode.h.
6115 (expand_dummy_function_end): Moved to function.h.
6116 (expand_function_end): Moved to function.h.
6117 (expand_function_start): Moved to function.h.
6118 (expand_label): Moved to stmt.h.
6119 (expr_first): Moved to tree-iterator.h.
6120 (expr_last): Moved to tree-iterator.h.
6121 (finalize_size_functions): Moved to stor-layout.h.
6122 (finish_builtin_struct): Moved to stor-layout.h.
6123 (finish_record_layout): Moved to stor-layout.h.
6124 (fixup_signed_type): Moved to stor-layout.h.
6125 (fixup_unsigned_type): Moved to stor-layout.h.
6126 (flags_from_decl_or_type): Moved to calls.h.
6127 (fold): Moved to fold-const.h.
6128 (fold_abs_const): Moved to fold-const.h.
6129 (fold_binary): Moved to fold-const.h.
6130 (fold_binary_loc): Moved to fold-const.h.
6131 (fold_binary_to_constant): Moved to fold-const.h.
6132 (fold_build1): Moved to fold-const.h.
6133 (fold_build1_initializer_loc): Moved to fold-const.h.
6134 (fold_build1_loc): Moved to fold-const.h.
6135 (fold_build1_stat_loc): Moved to fold-const.h.
6136 (fold_build2): Moved to fold-const.h.
6137 (fold_build2_initializer_loc): Moved to fold-const.h.
6138 (fold_build2_loc): Moved to fold-const.h.
6139 (fold_build2_stat_loc): Moved to fold-const.h.
6140 (fold_build3): Moved to fold-const.h.
6141 (fold_build3_loc): Moved to fold-const.h.
6142 (fold_build3_stat_loc): Moved to fold-const.h.
6143 (fold_build_call_array): Moved to fold-const.h.
6144 (fold_build_call_array_initializer): Moved to fold-const.h.
6145 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
6146 (fold_build_call_array_loc): Moved to fold-const.h.
6147 (fold_build_cleanup_point_expr): Moved to fold-const.h.
6148 (fold_convert): Moved to fold-const.h.
6149 (fold_convert_loc): Moved to fold-const.h.
6150 (fold_convertible_p): Moved to fold-const.h.
6151 (fold_defer_overflow_warnings): Moved to fold-const.h.
6152 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
6153 (fold_fma): Moved to fold-const.h.
6154 (fold_ignored_result): Moved to fold-const.h.
6155 (fold_indirect_ref): Moved to fold-const.h.
6156 (fold_indirect_ref_1): Moved to fold-const.h.
6157 (fold_indirect_ref_loc): Moved to fold-const.h.
6158 (fold_read_from_constant_string): Moved to fold-const.h.
6159 (fold_real_zero_addition_p): Moved to fold-const.h.
6160 (fold_single_bit_test): Moved to fold-const.h.
6161 (fold_strip_sign_ops): Moved to fold-const.h.
6162 (fold_ternary): Moved to fold-const.h.
6163 (fold_ternary_loc): Moved to fold-const.h.
6164 (fold_unary): Moved to tree-data-ref.h.
6165 (fold_unary_ignore_overflow): Moved to fold-const.h.
6166 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
6167 (fold_unary_loc): Moved to fold-const.h.
6168 (fold_unary_to_constant): Moved to fold-const.h.
6169 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
6170 (fold_undefer_overflow_warnings): Moved to fold-const.h.
6171 (folding_initializer): Moved to fold-const.h.
6172 (free_temp_slots): Moved to function.h.
6173 (generate_setjmp_warnings): Moved to function.h.
6174 (get_attribute_name): Moved to attribs.h.
6175 (get_identifier): Moved to stringpool.h.
6176 (get_identifier_with_length): Moved to stringpool.h.
6177 (get_inner_reference): Moved to tree.h.
6178 (gimple_alloca_call_p): Moved to calls.h.
6179 (gimplify_parameters): Moved to function.h.
6180 (highest_pow2_factor): Moved to expr.h.
6181 (indent_to): Moved to print-tree.h.
6182 (init_attributes): Moved to attribs.h.
6183 (init_dummy_function_start): Moved to function.h.
6184 (init_function_start): Moved to function.h.
6185 (init_inline_once): Moved to tree-inline.h.
6186 (init_object_sizes): Moved to tree-object-size.h.
6187 (init_temp_slots): Moved to function.h.
6188 (init_tree_optimization_optabs): Moved to optabs.h.
6189 (initialize_sizetypes): Moved to stor-layout.h.
6190 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
6191 (initializer_constant_valid_p): Moved to varasm.h.
6192 (int_const_binop): Moved to fold-const.h.
6193 (internal_reference_types): Moved to stor-layout.h.
6194 (invert_tree_comparison): Moved to fold-const.h.
6195 (invert_truthvalue): Moved to fold-const.h.
6196 (invert_truthvalue_loc): Moved to fold-const.h.
6197 (is_tm_ending_fndecl): Moved to trans-mem.h.
6198 (is_tm_may_cancel_outer): Moved to trans-mem.h.
6199 (is_tm_pure): Moved to trans-mem.h.
6200 (is_tm_safe): Moved to trans-mem.h.
6201 (layout_decl): Moved to stor-layout.h.
6202 (layout_type): Moved to stor-layout.h.
6203 (lookup_attribute_spec): Moved to attribs.h.
6204 (make_accum_type): Moved to stor-layout.h.
6205 (make_decl_one_only): Moved to varasm.h.
6206 (make_decl_rtl): Moved to tree.h.
6207 (make_decl_rtl_for_debug): Moved to varasm.h.
6208 (make_fract_type): Moved to stor-layout.h.
6209 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
6210 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
6211 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
6212 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
6213 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
6214 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
6215 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
6216 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
6217 (make_range): Moved to fold-const.h.
6218 (make_range_step): Moved to fold-const.h.
6219 (make_sat_signed_accum_type): Moved to stor-layout.h.
6220 (make_sat_signed_fract_type): Moved to stor-layout.h.
6221 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
6222 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
6223 (make_signed_accum_type): Moved to stor-layout.h.
6224 (make_signed_fract_type): Moved to stor-layout.h.
6225 (make_signed_type): Moved to stor-layout.h.
6226 (make_unsigned_accum_type): Moved to stor-layout.h.
6227 (make_unsigned_fract_type): Moved to stor-layout.h.
6228 (make_unsigned_type): Moved to stor-layout.h.
6229 (mark_decl_referenced): Moved to varasm.h.
6230 (mark_referenced): Moved to varasm.h.
6231 (may_negate_without_overflow_p): Moved to fold-const.h.
6232 (maybe_get_identifier): Moved to stringpool.h.
6233 (merge_ranges): Moved to fold-const.h.
6234 (merge_weak): Moved to varasm.h.
6235 (mode_for_size_tree): Moved to stor-layout.h.
6236 (multiple_of_p): Moved to fold-const.h.
6237 (must_pass_in_stack_var_size): Moved to calls.h.
6238 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
6239 (native_encode_expr): Moved to fold-const.h.
6240 (native_interpret_expr): Moved to fold-const.h.
6241 (non_lvalue): Moved to fold-const.h.
6242 (non_lvalue_loc): Moved to fold-const.h.
6243 (normalize_offset): Moved to stor-layout.h.
6244 (normalize_rli): Moved to stor-layout.h.
6245 (notice_global_symbol): Moved to varasm.h.
6246 (omit_one_operand): Moved to fold-const.h.
6247 (omit_one_operand_loc): Moved to fold-const.h.
6248 (omit_two_operands): Moved to fold-const.h.
6249 (omit_two_operands_loc): Moved to fold-const.h.
6250 (operand_equal_p): Moved to tree-data-ref.h.
6251 (parse_input_constraint): Moved to stmt.h.
6252 (parse_output_constraint): Moved to stmt.h.
6253 (place_field): Moved to stor-layout.h.
6254 (pop_function_context): Moved to function.h.
6255 (pop_temp_slots): Moved to function.h.
6256 (pos_from_bit): Moved to stor-layout.h.
6257 (preserve_temp_slots): Moved to function.h.
6258 (print_node): Moved to print-tree.h.
6259 (print_node_brief): Moved to print-tree.h.
6260 (print_rtl): Moved to rtl.h.
6261 (process_pending_assemble_externals): Moved to varasm.h.
6262 (ptr_difference_const): Moved to fold-const.h.
6263 (push_function_context): Moved to function.h.
6264 (push_struct_function): Moved to function.h.
6265 (push_temp_slots): Moved to function.h.
6266 (record_tm_replacement): Moved to trans-mem.h.
6267 (relayout_decl): Moved to stor-layout.h.
6268 (resolve_asm_operand_names): Moved to stmt.h.
6269 (resolve_unique_section): Moved to varasm.h.
6270 (rli_size_so_far): Moved to stor-layout.h.
6271 (rli_size_unit_so_far): Moved to stor-layout.h.
6272 (round_down): Moved to fold-const.h.
6273 (round_down_loc): Moved to fold-const.h.
6274 (round_up): Moved to fold-const.h.
6275 (round_up_loc): Moved to fold-const.h.
6276 (set_decl_incoming_rtl): Moved to emit-rtl.h.
6277 (set_decl_rtl): Moved to tree.h.
6278 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
6279 (set_user_assembler_name): Moved to varasm.h.
6280 (setjmp_call_p): Moved to calls.h.
6281 (size_binop): Moved to fold-const.h.
6282 (size_binop_loc): Moved to fold-const.h.
6283 (size_diffop): Moved to fold-const.h.
6284 (size_diffop_loc): Moved to fold-const.h.
6285 (size_int_kind): Moved to fold-const.h.
6286 (stack_protect_epilogue): Moved to function.h.
6287 (start_record_layout): Moved to stor-layout.h.
6288 (supports_one_only): Moved to varasm.h.
6289 (swap_tree_comparison): Moved to fold-const.h.
6290 (tm_malloc_replacement): Moved to trans-mem.h.
6291 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
6292 (tree build_invariant_address): Moved to fold-const.h.
6293 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
6294 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
6295 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
6296 (tree_expr_nonnegative_p): Moved to fold-const.h.
6297 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
6298 (tree_output_constant_def): Moved to varasm.h.
6299 (tree_overlaps_hard_reg_set): Moved to stmt.h.
6300 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
6301 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
6302 (tree_swap_operands_p): Moved to fold-const.h.
6303 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
6304 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
6305 (update_alignment_for_field): Moved to stor-layout.h.
6306 (use_register_for_decl): Moved to function.h.
6307 (variable_size): Moved to rtl.h.
6308 (vector_type_mode): Moved to stor-layout.h.
6309 * cgraph.h: Corresponding changes.
6310 * emit-rtl.h: Corresponding changes.
6311 * expr.h: Corresponding changes.
6312 * function.h: Corresponding changes.
6313 * optabs.h: Corresponding changes.
6314 * trans-mem.h: Corresponding changes.
6315 Protect against multiple inclusion.
6316 * tree-inline.h: Corresponding changes.
6317 * tree-iterator.h: Corresponding changes.
6318 * tree-dfa.h: Include expr.h.
6319 * tree-ssanames.h: Include stringpool.h.
6320 * attribs.h: New file.
6321 * calls.h: New file.
6322 * fold-const.h: New file.
6323 * gcc-symtab.h: New file.
6324 * print-rtl.h: New file.
6325 * print-tree.h: New file.
6327 * stor-layout.h: New file.
6328 * strinpool.h: New file.
6329 * tree-nested.h: New file
6330 * tree-object-size.h: New file.
6331 * varasm.h: New file.
6333 2013-11-14 Diego Novillo <dnovillo@google.com>
6335 * alias.c: Include varasm.h.
6337 * asan.c: Include calls.h.
6338 Include stor-layout.h.
6340 * attribs.c: Include stringpool.h.
6342 Include stor-layout.h.
6343 * builtins.c: Include stringpool.h.
6344 Include stor-layout.h.
6347 Include tree-object-size.h.
6348 * calls.c: Include stor-layout.h.
6350 Include stringpool.h.
6352 * cfgexpand.c: Include stringpool.h.
6354 Include stor-layout.h.
6356 Include print-tree.h.
6357 * cgraph.c: Include varasm.h.
6359 Include print-tree.h.
6360 * cgraphclones.c: Include stringpool.h.
6363 Move inclusion of rtl.h earlier in the file.
6364 * cgraphunit.c: Include varasm.h.
6365 Include stor-layout.h.
6366 Include stringpool.h.
6367 * cilk-common.c: Include stringpool.h.
6368 Include stor-layout.h.
6369 * combine.c: Include stor-layout.h.
6370 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
6371 Include stringpool.h.
6373 * config/aarch64/aarch64.c: Include stringpool.h.
6374 Include stor-layout.h.
6377 * config/alpha/alpha.c: Include stor-layout.h.
6380 * config/arc/arc.c: Include varasm.h.
6381 Include stor-layout.h.
6382 Include stringpool.h.
6384 * config/arm/arm.c: Include stringpool.h.
6385 Include stor-layout.h.
6388 * config/avr/avr-c.c: Include stor-layout.h.
6389 * config/avr/avr-log.c: Include print-tree.h.
6390 * config/avr/avr.c: Include print-tree.h.
6392 Include stor-layout.h.
6393 Include stringpool.h.
6394 * config/bfin/bfin.c: Include varasm.h.
6396 * config/c6x/c6x.c: Include stor-layout.h.
6399 Include stringpool.h.
6400 * config/cr16/cr16.c: Include stor-layout.h.
6402 * config/cris/cris.c: Include varasm.h.
6403 Include stor-layout.h.
6406 * config/darwin.c: Include stringpool.h.
6408 Include stor-layout.h.
6409 * config/epiphany/epiphany.c: Include stor-layout.h.
6412 Include stringpool.h.
6413 * config/fr30/fr30.c: Include stor-layout.h.
6415 * config/frv/frv.c: Include varasm.h.
6416 Include stor-layout.h.
6417 Include stringpool.h.
6418 * config/h8300/h8300.c: Include stor-layout.h.
6421 Include stringpool.h.
6422 * config/i386/i386.c: Include stringpool.h.
6425 Include stor-layout.h.
6427 * config/i386/winnt-cxx.c: Include stringpool.h.
6429 * config/i386/winnt.c: Include stringpool.h.
6431 * config/ia64/ia64-c.c: Include stringpool.h.
6432 * config/ia64/ia64.c: Include stringpool.h.
6433 Include stor-layout.h.
6436 * config/iq2000/iq2000.c: Include stor-layout.h.
6439 * config/lm32/lm32.c: Include calls.h.
6440 * config/m32c/m32c.c: Include stor-layout.h.
6443 * config/m32r/m32r.c: Include stor-layout.h.
6445 Include stringpool.h.
6447 * config/m68k/m68k.c: Include calls.h.
6448 Include stor-layout.h.
6450 * config/mcore/mcore.c: Include stor-layout.h.
6452 Include stringpool.h.
6454 * config/mep/mep.c: Include varasm.h.
6456 Include stringpool.h.
6457 Include stor-layout.h.
6458 * config/microblaze/microblaze.c: Include varasm.h.
6459 Include stor-layout.h.
6461 * config/mips/mips.c: Include varasm.h.
6462 Include stringpool.h.
6463 Include stor-layout.h.
6465 * config/mmix/mmix.c: Include varasm.h.
6466 Include stor-layout.h.
6468 * config/mn10300/mn10300.c: Include stor-layout.h.
6471 * config/moxie/moxie.c: Include stor-layout.h.
6474 * config/msp430/msp430.c: Include stor-layout.h.
6476 * config/nds32/nds32.c: Include stor-layout.h.
6479 * config/pa/pa.c: Include stor-layout.h.
6480 Include stringpool.h.
6483 * config/pdp11/pdp11.c: Include stor-layout.h.
6486 * config/picochip/picochip.c: Include calls.h.
6487 Include stor-layout.h.
6488 Include stringpool.h.
6490 * config/rl78/rl78.c: Include varasm.h.
6491 Include stor-layout.h.
6493 * config/rs6000/rs6000-c.c: Include stor-layout.h.
6494 Include stringpool.h.
6495 * config/rs6000/rs6000.c: Include stringpool.h.
6496 Include stor-layout.h.
6498 Include print-tree.h.
6500 * config/rx/rx.c: Include varasm.h.
6501 Include stor-layout.h.
6503 * config/s390/s390.c: Include print-tree.h.
6504 Include stringpool.h.
6505 Include stor-layout.h.
6508 * config/score/score.c: Include stringpool.h.
6511 Include stor-layout.h.
6512 * config/sh/sh-c.c: Include stringpool.h.
6513 Include attribs.h.h.
6514 * config/sh/sh.c: Include stringpool.h.
6515 Include stor-layout.h.
6518 * config/sol2-c.c: Include stringpool.h.
6520 * config/sol2-cxx.c: Include stringpool.h.
6521 * config/sol2.c: Include stringpool.h.
6523 * config/sparc/sparc.c: Include stringpool.h.
6524 Include stor-layout.h.
6527 * config/spu/spu-c.c: Include stringpool.h.
6528 * config/spu/spu.c: Include stringpool.h.
6529 Include stor-layout.h.
6532 * config/stormy16/stormy16.c: Include stringpool.h.
6533 Include stor-layout.h.
6536 * config/tilegx/tilegx.c: Include stringpool.h.
6537 Include stor-layout.h.
6540 * config/tilepro/tilepro.c: Include stringpool.h.
6541 Include stor-layout.h.
6544 * config/v850/v850-c.c: Include stringpool.h.
6546 * config/v850/v850.c: Include stringpool.h.
6547 Include stor-layout.h.
6550 * config/vax/vax.c: Include calls.h.
6552 * config/vms/vms.c: Include stringpool.h.
6553 * config/vxworks.c: Include stringpool.h.
6554 * config/xtensa/xtensa.c: Include stringpool.h.
6555 Include stor-layout.h.
6558 * convert.c: Include stor-layout.h.
6559 * coverage.c: Include stringpool.h.
6560 Include stor-layout.h.
6561 * dbxout.c: Include varasm.h.
6562 Include stor-layout.h.
6563 * dojump.c: Include stor-layout.h.
6564 * dse.c: Include stor-layout.h.
6565 * dwarf2asm.c: Include stringpool.h.
6567 * dwarf2cfi.c: Include stor-layout.h.
6568 * dwarf2out.c: Include rtl.h.
6569 Include stringpool.h.
6570 Include stor-layout.h.
6574 Move inclusion of rtl.h earlier in the file.
6575 * emit-rtl.c: Include varasm.h.
6576 * except.c: Include stringpool.h.
6577 Include stor-layout.h.
6578 * explow.c: Include stor-layout.h.
6579 * expmed.c: Include stor-layout.h.
6580 * expr.c: Include stringpool.h.
6581 Include stor-layout.h.
6584 * final.c: Include varasm.h.
6585 * fold-const.c: Include stor-layout.h.
6587 Include tree-iterator.h.
6588 * function.c: Include stor-layout.h.
6590 Include stringpool.h.
6591 * genattrtab.c (write_header): Emit includes for varasm.h,
6592 stor-layout.h and calls.h.
6593 * genautomata.c (main): Likewise.
6594 * genemit.c: Likewise.
6595 * genopinit.c: Likewise.
6596 * genoutput.c (output_prologue): Likewise.
6597 * genpeep.c: Likewise.
6598 * genpreds.c (write_insn_preds_c): Likewise.
6599 * gengtype.c (open_base_files): Add stringpool.h.
6600 * gimple-expr.c: Include stringpool.h.
6601 Include stor-layout.h.
6602 * gimple-fold.c: Include stringpool.h.
6605 Include stor-layout.h.
6606 * gimple-low.c: Include tree-nested.h.
6608 * gimple-pretty-print.c: Include stringpool.h.
6609 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
6611 * gimple-walk.c: Include stmt.h.
6612 * gimple.c: Include calls.h.
6614 Include stor-layout.h.
6615 * gimplify.c: Include stringpool.h.
6618 Include stor-layout.h.
6620 Include print-tree.h.
6622 * gimplify-me.c: Include stmt.h
6623 Include stor-layout.h
6624 * internal-fn.c: Include stor-layout.h.
6625 * ipa-devirt.c: Include print-tree.h.
6627 * ipa-inline-analysis.c: Include stor-layout.h.
6628 Include stringpool.h.
6629 Include print-tree.h.
6630 * ipa-inline.c: Include trans-mem.h.
6632 * ipa-prop.c: Include expr.h.
6633 Include stor-layout.h.
6634 Include print-tree.h.
6635 * ipa-pure-const.c: Include print-tree.h.
6637 * ipa-reference.c: Include calls.h.
6638 * ipa-split.c: Include stringpool.h.
6641 * ipa.c: Include calls.h.
6642 Include stringpool.h.
6643 * langhooks.c: Include stringpool.h.
6645 * lto-cgraph.c: Include stringpool.h.
6646 * lto-streamer-in.c: Include stringpool.h.
6647 * lto-streamer-out.c: Include stor-layout.h.
6648 Include stringpool.h.
6649 * omp-low.c: Include stringpool.h.
6650 Include stor-layout.h.
6652 * optabs.c: Include stor-layout.h.
6653 Include stringpool.h.
6655 * passes.c: Include varasm.h.
6656 * predict.c: Include calls.h.
6657 * print-rtl.c: Include print-tree.h.
6658 * print-tree.c: Include varasm.h.
6659 Include print-rtl.h.
6660 Include stor-layout.h.
6661 * realmpfr.c: Include stor-layout.h.
6662 * reg-stack.c: Include varasm.h.
6663 * sdbout.c: Include varasm.h.
6664 Include stor-layout.h.
6665 * simplify-rtx.c: Include varasm.h.
6666 * stmt.c: Include varasm.h.
6667 Include stor-layout.h.
6668 * stor-layout.c: Include stor-layout.h.
6669 Include stringpool.h.
6671 Include print-tree.h.
6672 * symtab.c: Include rtl.h.
6673 Include print-tree.h.
6677 * targhooks.c: Include stor-layout.h.
6679 * toplev.c: Include varasm.h.
6680 Include tree-inline.h.
6681 * trans-mem.c: Include calls.h.
6685 * tree-affine.c: Include expr.h.
6686 * tree-browser.c: Include print-tree.h.
6687 * tree-call-cdce.c: Include stor-layout.h.
6688 * tree-cfg.c: Include trans-mem.h.
6689 Include stor-layout.h.
6690 Include print-tree.h.
6691 * tree-complex.c: Include stor-layout.h.
6692 * tree-data-ref.c: Include expr.h.
6693 * tree-dfa.c: Include stor-layout.h.
6694 * tree-eh.c: Include expr.h.
6696 * tree-emutls.c: Include stor-layout.h.
6698 * tree-if-conv.c: Include stor-layout.h.
6699 * tree-inline.c: Include stor-layout.h.
6701 * tree-loop-distribution.c: Include stor-layout.h.
6702 * tree-nested.c: Include stringpool.h.
6703 Include stor-layout.h.
6704 * tree-object-size.c: Include tree-object-size.h.
6705 * tree-outof-ssa.c: Include stor-layout.h.
6706 * tree-parloops.c: Include stor-layout.h.
6707 Include tree-nested.h.
6708 * tree-pretty-print.c: Include stor-layout.h.
6710 * tree-profile.c: Include varasm.h.
6711 Include tree-nested.h.
6712 * tree-scalar-evolution.c: Include expr.h.
6713 * tree-sra.c: Include stor-layout.h.
6714 * tree-ssa-address.c: Include stor-layout.h.
6715 * tree-ssa-ccp.c: Include stor-layout.h.
6716 * tree-ssa-dce.c: Include calls.h.
6717 * tree-ssa-dom.c: Include stor-layout.h.
6718 * tree-ssa-forwprop.c: Include stor-layout.h.
6719 * tree-ssa-ifcombine.c: Include stor-layout.h.
6720 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
6721 * tree-ssa-loop-niter.c: Include calls.h.
6723 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
6724 * tree-ssa-math-opts.c: Include stor-layout.h.
6725 * tree-ssa-operands.c: Include stmt.h.
6726 Include print-tree.h.
6727 * tree-ssa-phiopt.c: Include stor-layout.h.
6728 * tree-ssa-reassoc.c: Include stor-layout.h.
6729 * tree-ssa-sccvn.c: Include stor-layout.h.
6730 * tree-ssa-sink.c: Include stor-layout.h.
6731 * tree-ssa-strlen.c: Include stor-layout.h.
6732 * tree-ssa-structalias.c: Include stor-layout.h.
6734 * tree-ssa-tail-merge.c: Include stor-layout.h.
6735 Include trans-mem.h.
6736 * tree-ssa-uncprop.c: Include stor-layout.h.
6737 * tree-ssa.c: Include stor-layout.h.
6738 * tree-ssanames.c: Include stor-layout.h.
6739 * tree-streamer-in.c: Include stringpool.h.
6740 * tree-streamer-out.c: Include stor-layout.h.
6741 * tree-switch-conversion.c: Include varasm.h.
6742 Include stor-layout.h.
6743 * tree-tailcall.c: Include stor-layout.h.
6744 * tree-vect-data-refs.c: Include stor-layout.h.
6745 * tree-vect-generic.c: Include stor-layout.h.
6746 * tree-vect-loop.c: Include stor-layout.h.
6747 * tree-vect-patterns.c: Include stor-layout.h.
6748 * tree-vect-slp.c: Include stor-layout.h.
6749 * tree-vect-stmts.c: Include stor-layout.h.
6750 * tree-vectorizer.c: Include stor-layout.h.
6751 * tree-vrp.c: Include stor-layout.h.
6753 * tree.c: Include stor-layout.h.
6757 * tsan.c: Include expr.h.
6758 * ubsan.c: Include stor-layout.h.
6759 Include stringpool.h.
6760 * value-prof.c: Include tree-nested.h.
6762 * var-tracking.c: Include varasm.h.
6763 Include stor-layout.h.
6764 * varasm.c: Include stor-layout.h.
6765 Include stringpool.h.
6766 Include gcc-symtab.h.
6768 * varpool.c: Include varasm.h.
6769 * vmsdbgout.c: Include varasm.h.
6770 * xcoffout.c: Include varasm.h.
6772 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
6774 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
6777 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6779 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
6781 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6782 Alan Modra <amodra@gmail.com>
6784 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
6785 (RS6000_SAVE_TOC): Remove.
6786 (RS6000_TOC_SAVE_SLOT): New macro.
6787 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
6788 (rs6000_parm_start): Use it.
6789 (rs6000_function_arg_advance_1): Likewise.
6790 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
6791 (rs6000_emit_epilogue): Likewise.
6792 (rs6000_call_aix): Likewise.
6793 (rs6000_output_function_prologue): Do not save/restore r11
6794 around calling _mcount for ABI_ELFv2.
6796 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6797 Alan Modra <amodra@gmail.com>
6799 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
6801 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
6802 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
6803 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
6804 (rs6000_function_parms_need_stack): Likewise.
6805 (rs6000_reg_parm_stack_space): Likewise.
6806 (rs6000_function_arg): Do not replace BLKmode by Pmode when
6807 returning a register argument.
6809 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6810 Michael Gschwind <mkg@us.ibm.com>
6812 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
6813 (ALTIVEC_ARG_MAX_RETURN): Likewise.
6814 (FUNCTION_VALUE_REGNO_P): Use them.
6815 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
6816 (rs6000_return_in_msb): New function.
6817 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
6818 Handle aggregates of up to 16 bytes for ELFv2.
6819 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
6821 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6822 Michael Gschwind <mkg@us.ibm.com>
6824 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
6825 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
6826 (rs6000_discover_homogeneous_aggregate): Likewise.
6827 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
6828 (rs6000_function_arg_advance_1): Likewise.
6829 (rs6000_function_arg): Likewise.
6830 (rs6000_arg_partial_bytes): Likewise.
6831 (rs6000_psave_function_arg): Handle BLKmode arguments.
6833 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6834 Michael Gschwind <mkg@us.ibm.com>
6836 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
6837 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
6838 (rs6000_discover_homogeneous_aggregate): Likewise.
6839 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
6840 (rs6000_function_arg_advance_1): Likewise.
6841 (rs6000_function_arg): Likewise.
6842 (rs6000_arg_partial_bytes): Likewise.
6843 (rs6000_psave_function_arg): Handle BLKmode arguments.
6845 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6847 * config/rs6000/rs6000.c (machine_function): New member
6849 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
6850 (rs6000_output_mi_thunk): Set r2_setup_needed.
6851 (rs6000_output_function_prologue): Output global entry point
6852 prologue and local entry point marker if needed for ABI_ELFv2.
6853 Output -mprofile-kernel code here.
6854 (output_function_profiler): Do not output -mprofile-kernel
6855 code here; moved to rs6000_output_function_prologue.
6856 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
6858 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
6859 (rs6000_output_function_entry): Likewise.
6860 (rs6000_assemble_integer): Likewise.
6861 (rs6000_elf_encode_section_info): Likewise.
6862 (rs6000_elf_declare_function_name): Do not create dot symbols
6863 or .opd section for ABI_ELFv2.
6865 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
6866 (rs6000_trampoline_init): Likewise.
6867 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
6869 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
6870 for function descriptors in ABI_ELFv2.
6872 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
6873 on ABI_AIX only, not ABI_ELFv2.
6874 ("*call_value_indirect_aix<mode>"): Likewise.
6875 ("*call_indirect_elfv2<mode>"): New pattern.
6876 ("*call_value_indirect_elfv2<mode>"): Likewise.
6878 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
6879 check for function descriptors in ABI_ELFv2.
6880 ("current_file_function_operand"): Likewise.
6882 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
6884 (FUNC_NAME): Define ELFv2 variant.
6885 (JUMP_TARGET): Likewise.
6886 (FUNC_START): Likewise.
6887 (HIDDEN_FUNC): Likewise.
6888 (FUNC_END): Likeiwse.
6890 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6892 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
6893 and --with-abi=elfv2.
6894 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
6895 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
6896 (mabi=elfv2): Likewise.
6897 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
6898 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
6900 (ELFv2_ABI_CHECK): New macro.
6901 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
6902 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
6903 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
6904 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
6905 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
6907 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
6908 (debug_stack_info): Likewise.
6909 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
6910 (rs6000_legitimize_tls_address): Likewise.
6911 (rs6000_conditional_register_usage): Likewise.
6912 (rs6000_emit_move): Likewise.
6913 (init_cumulative_args): Likewise.
6914 (rs6000_function_arg_advance_1): Likewise.
6915 (rs6000_function_arg): Likewise.
6916 (rs6000_arg_partial_bytes): Likewise.
6917 (rs6000_output_function_entry): Likewise.
6918 (rs6000_assemble_integer): Likewise.
6919 (rs6000_savres_strategy): Likewise.
6920 (rs6000_stack_info): Likewise.
6921 (rs6000_function_ok_for_sibcall): Likewise.
6922 (rs6000_emit_load_toc_table): Likewise.
6923 (rs6000_savres_routine_name): Likewise.
6924 (ptr_regno_for_savres): Likewise.
6925 (rs6000_emit_prologue): Likewise.
6926 (rs6000_emit_epilogue): Likewise.
6927 (rs6000_output_function_epilogue): Likewise.
6928 (output_profile_hook): Likewise.
6929 (output_function_profiler): Likewise.
6930 (rs6000_trampoline_size): Likewise.
6931 (rs6000_trampoline_init): Likewise.
6932 (rs6000_elf_output_toc_section_asm_op): Likewise.
6933 (rs6000_elf_encode_section_info): Likewise.
6934 (rs6000_elf_reloc_rw_mask): Likewise.
6935 (rs6000_elf_declare_function_name): Likewise.
6936 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
6937 except that rs6000_compat_align_parm is always assumed false.
6938 (rs6000_gimplify_va_arg): Likewise.
6939 (rs6000_call_aix): Update comment.
6940 (rs6000_sibcall_aix): Likewise.
6941 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
6942 Treat ABI_ELFv2 the same as ABI_AIX.
6943 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
6944 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
6945 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
6946 ("load_toc_aix_si"): Likewise.
6947 ("load_toc_aix_di"): Likewise.
6949 ("call_value"): Likewise.
6950 ("*call_local_aix<mode>"): Likewise.
6951 ("*call_value_local_aix<mode>"): Likewise.
6952 ("*call_nonlocal_aix<mode>"): Likewise.
6953 ("*call_value_nonlocal_aix<mode>"): Likewise.
6954 ("*call_indirect_aix<mode>"): Likewise.
6955 ("*call_value_indirect_aix<mode>"): Likewise.
6956 ("sibcall"): Likewise.
6957 ("sibcall_value"): Likewise.
6958 ("*sibcall_aix<mode>"): Likewise.
6959 ("*sibcall_value_aix<mode>"): Likewise.
6960 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
6961 ("current_file_function_operand"): Likewise.
6963 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6965 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
6966 by making use of the fact that for vector / floating point arguments
6967 passed both in VRs/FPRs and in the fixed parameter area, the partial
6968 bytes mechanism is in fact not used.
6970 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6972 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
6973 (rs6000_finish_function_arg): Likewise.
6974 (rs6000_function_arg): Use rs6000_psave_function_arg and
6975 rs6000_finish_function_arg to handle both vector and floating
6976 point arguments that are also passed in GPRs / the stack.
6978 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6980 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
6981 (USE_ALTIVEC_FOR_ARG_P): Likewise.
6982 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
6983 (rs6000_function_arg_advance_1):Likewise.
6984 (rs6000_darwin64_record_arg_recurse): Likewise.
6985 (rs6000_function_arg): Likewise.
6986 (rs6000_arg_partial_bytes): Likewise.
6988 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6990 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
6991 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
6992 (rs6000_savres_strategy): Likewise.
6993 (rs6000_return_addr): Likewise.
6994 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
6995 testing for ABI_V4 (since ABI_DARWIN is impossible here).
6996 (rs6000_emit_prologue): Likewise.
6997 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
6998 (rs6000_elf_declare_function_name): Remove duplicated test.
6999 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
7000 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
7001 ("load_toc_v4_PIC_1_normal"): Likewise.
7002 ("load_toc_v4_PIC_1_476"): Likewise.
7003 ("load_toc_v4_PIC_1b"): Likewise.
7004 ("load_toc_v4_PIC_1b_normal"): Likewise.
7005 ("load_toc_v4_PIC_1b_476"): Likewise.
7006 ("load_toc_v4_PIC_2"): Likewise.
7007 ("load_toc_v4_PIC_3b"): Likewise.
7008 ("load_toc_v4_PIC_3c"): Likewise.
7009 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
7010 (RS6000_SAVE_AREA): Likewise.
7011 (FP_ARG_MAX_REG): Likewise.
7012 (RETURN_ADDRESS_OFFSET): Likewise.
7013 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
7015 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7016 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7018 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7020 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
7021 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
7022 Create call insn directly instead of via various gen_... routines.
7023 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
7024 (rs6000_sibcall_aix): New function.
7025 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
7026 (TOC_SAVE_OFFSET_64BIT): Likewise.
7027 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
7028 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
7029 (AIX_FUNC_DESC_SC_32BIT): Likewise.
7030 (AIX_FUNC_DESC_SC_64BIT): Likewise.
7031 ("call" expander): Call rs6000_call_aix.
7032 ("call_value" expander): Likewise.
7033 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
7034 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7035 ("*call_indirect_aix<mode>"): ... by this insn pattern.
7036 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
7037 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
7038 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
7039 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
7040 ("*call_nonlocal_aix<mode>"): ... this pattern.
7041 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
7042 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
7043 ("*call_local_aix<mode>"): New insn pattern.
7044 ("*call_value_local_aix<mode>"): Likewise.
7045 ("sibcall" expander): Call rs6000_sibcall_aix.
7046 ("sibcall_value" expander): Likewise. Move earlier in file.
7047 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
7048 ("*sibcall_aix<mode>"): ... this pattern.
7049 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
7050 ("*sibcall_value_aix<mode>"): ... this pattern.
7051 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
7052 (rs6000_call_aix): Add prototype.
7053 (rs6000_sibcall_aix): Likewise.
7055 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7058 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
7059 isn't confused by the artificial decl.
7061 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7063 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
7064 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
7065 Instead, add USEs of all modified call-saved CR fields to the
7066 insn storing the result to the stack slot, and provide an
7067 appropriate REG_FRAME_RELATED_EXPR for that insn.
7068 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
7069 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
7071 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7072 Alan Modra <amodra@gmail.com>
7074 * function.c (assign_parms): Use all.reg_parm_stack_space instead
7075 of re-evaluating REG_PARM_STACK_SPACE target macro.
7076 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
7077 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
7078 (assign_parm_find_entry_rtl): Update call.
7079 * calls.c (initialize_argument_information): Update call.
7080 (emit_library_call_value_1): Likewise.
7081 * expr.h (locate_and_pad_parm): Update prototype.
7083 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7085 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
7088 2013-11-14 DJ Delorie <dj@redhat.com>
7090 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
7093 2013-11-14 Jeff Law <law@redhat.com>
7095 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
7096 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
7098 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7100 * doc/invoke.texi: Update documentation for AArch64's -mcpu
7103 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7105 * config/aarch64/aarch64-cores.def (example-1): Remove.
7106 (example-2): Likewise.
7107 * config/aarch64/aarch64-tune.md: Regenerate.
7108 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
7109 (generic_sched): Remove "large", "small".
7110 * config/aarch64/large.md: Delete.
7111 * config/aarch64/small.md: Delete.
7113 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7115 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
7116 * config/aarch64/aarch64-tune.md: Regenerate.
7117 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
7118 (generic_sched): "no" if we are tuning for cortexa15.
7119 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
7122 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7124 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
7125 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
7126 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
7127 (all_cores): Use cortexa53 when tuning for "generic".
7128 (aarch64_override_options): Fix comment.
7129 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
7130 * config/aarch64/aarch64-generic.md: Delete.
7132 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
7134 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
7136 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7138 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
7139 (generic_rtx_cost_table): Remove.
7140 (aarch64_rtx_costs): Use fields from cpu_cost_table.
7141 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
7143 (cpu_rtx_cost_table): Remove.
7145 2013-11-14 Julian Brown <julian@codesourcery.com>
7146 Joey Ye <joey.ye@arm.com>
7148 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
7149 (arm_v7m_tune): New.
7150 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
7151 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
7152 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
7153 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
7155 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7158 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
7161 2013-11-14 Jakub Jelinek <jakub@redhat.com>
7162 Uros Bizjak <ubizjak@gmail.com>
7165 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
7166 operands[2] satisfies_constraint_Z that might have bit 31 set.
7168 2013-11-13 Jeff Law <law@redhat.com>
7170 PR tree-optimization/59102
7171 * gimple-ssa-isolate-paths.c
7172 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
7173 gimple assignment before looking at gimple_assign_lhs.
7175 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7177 * ira.c: Add comment about threads at the top of file.
7179 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7181 * ira-color.c (coalesce_allocnos): Don't allocate and free
7184 2013-11-14 Tom de Vries <tom@codesourcery.com>
7186 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
7187 equality for GIMPLE_ASSIGN.
7189 2013-11-14 Tom de Vries <tom@codesourcery.com>
7191 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
7193 (gimple_equal_p): ... here.
7195 2013-11-14 Tom de Vries <tom@codesourcery.com>
7197 * trans-mem.c (is_tm_ending): New function.
7198 * gimple.h (is_tm_ending): Declare.
7199 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
7201 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
7203 2013-11-14 Tom de Vries <tom@codesourcery.com>
7205 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
7207 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
7209 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
7210 (struct walk_stmt_info): Relocate here from gimple.h.
7211 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
7212 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
7213 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7214 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7215 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7216 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7217 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
7218 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
7219 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
7220 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
7221 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
7222 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
7223 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
7224 (struct walk_stmt_info): Move to gimple-walk.h.
7225 (gimple_seq_set_location): Move to gimple.c
7226 * gimple-walk.c: New File.
7227 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
7228 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
7229 walk_stmt_load_store_ops): Relocate here from gimple.c.
7230 * gimple-iterator.c: Include gimple-iterator.h.
7231 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
7232 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
7233 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
7235 (gimple_seq_set_location): Relocate from gimple.h.
7236 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
7237 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
7238 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
7239 * Makefile.in (OBJS): Add gimple-walk.o
7240 * asan.c: Update Include list as required for gimple-iterator.h and
7242 * cfgexpand.c: Likewise.
7243 * cfgloop.c: Likewise.
7244 * cfgloopmanip.c: Likewise.
7245 * cgraph.c: Likewise.
7246 * cgraphbuild.c: Likewise.
7247 * cgraphunit.c: Likewise.
7248 * gimple-fold.c: Likewise.
7249 * gimple-low.c: Likewise.
7250 * gimple-pretty-print.c: Likewise.
7251 * gimple-ssa-isolate-paths.c: Likewise.
7252 * gimple-ssa-strength-reduction.c: Likewise.
7253 * gimple-streamer-in.c: Likewise.
7254 * gimple-streamer-out.c: Likewise.
7255 * gimplify.c: Likewise.
7256 * graphite-blocking.c: Likewise.
7257 * graphite-clast-to-gimple.c: Likewise.
7258 * graphite-dependences.c: Likewise.
7259 * graphite-interchange.c: Likewise.
7260 * graphite-optimize-isl.c: Likewise.
7261 * graphite-poly.c: Likewise.
7262 * graphite-scop-detection.c: Likewise.
7263 * graphite-sese-to-poly.c: Likewise.
7264 * graphite.c: Likewise.
7265 * ipa-inline-analysis.c: Likewise.
7266 * ipa-profile.c: Likewise.
7267 * ipa-prop.c: Likewise.
7268 * ipa-pure-const.c: Likewise.
7269 * ipa-split.c: Likewise.
7270 * lto-streamer-in.c: Likewise.
7271 * lto-streamer-out.c: Likewise.
7272 * omp-low.c: Likewise.
7273 * predict.c: Likewise.
7274 * profile.c: Likewise.
7276 * tracer.c: Likewise.
7277 * trans-mem.c: Likewise.
7278 * tree-call-cdce.c: Likewise.
7279 * tree-cfg.c: Likewise.
7280 * tree-cfgcleanup.c: Likewise.
7281 * tree-complex.c: Likewise.
7282 * tree-data-ref.c: Likewise.
7283 * tree-dfa.c: Likewise.
7284 * tree-eh.c: Likewise.
7285 * tree-emutls.c: Likewise.
7286 * tree-if-conv.c: Likewise.
7287 * tree-inline.c: Likewise.
7288 * tree-into-ssa.c: Likewise.
7289 * tree-loop-distribution.c: Likewise.
7290 * tree-nested.c: Likewise.
7291 * tree-nrv.c: Likewise.
7292 * tree-object-size.c: Likewise.
7293 * tree-outof-ssa.c: Likewise.
7294 * tree-parloops.c: Likewise.
7295 * tree-predcom.c: Likewise.
7296 * tree-profile.c: Likewise.
7297 * tree-scalar-evolution.c: Likewise.
7298 * tree-sra.c: Likewise.
7299 * tree-ssa-ccp.c: Likewise.
7300 * tree-ssa-coalesce.c: Likewise.
7301 * tree-ssa-copy.c: Likewise.
7302 * tree-ssa-copyrename.c: Likewise.
7303 * tree-ssa-dce.c: Likewise.
7304 * tree-ssa-dom.c: Likewise.
7305 * tree-ssa-dse.c: Likewise.
7306 * tree-ssa-forwprop.c: Likewise.
7307 * tree-ssa-ifcombine.c: Likewise.
7308 * tree-ssa-live.c: Likewise.
7309 * tree-ssa-loop-ch.c: Likewise.
7310 * tree-ssa-loop-im.c: Likewise.
7311 * tree-ssa-loop-ivcanon.c: Likewise.
7312 * tree-ssa-loop-ivopts.c: Likewise.
7313 * tree-ssa-loop-manip.c: Likewise.
7314 * tree-ssa-loop-niter.c: Likewise.
7315 * tree-ssa-loop-prefetch.c: Likewise.
7316 * tree-ssa-loop.c: Likewise.
7317 * tree-ssa-math-opts.c: Likewise.
7318 * tree-ssa-phiopt.c: Likewise.
7319 * tree-ssa-phiprop.c: Likewise.
7320 * tree-ssa-pre.c: Likewise.
7321 * tree-ssa-propagate.c: Likewise.
7322 * tree-ssa-reassoc.c: Likewise.
7323 * tree-ssa-sink.c: Likewise.
7324 * tree-ssa-strlen.c: Likewise.
7325 * tree-ssa-structalias.c: Likewise.
7326 * tree-ssa-tail-merge.c: Likewise.
7327 * tree-ssa-ter.c: Likewise.
7328 * tree-ssa-threadedge.c: Likewise.
7329 * tree-ssa-threadupdate.c: Likewise.
7330 * tree-ssa-uncprop.c: Likewise.
7331 * tree-ssa-uninit.c: Likewise.
7332 * tree-ssa.c: Likewise.
7333 * tree-stdarg.c: Likewise.
7334 * tree-switch-conversion.c: Likewise.
7335 * tree-tailcall.c: Likewise.
7336 * tree-vect-data-refs.c: Likewise.
7337 * tree-vect-generic.c: Likewise.
7338 * tree-vect-loop-manip.c: Likewise.
7339 * tree-vect-loop.c: Likewise.
7340 * tree-vect-patterns.c: Likewise.
7341 * tree-vect-slp.c: Likewise.
7342 * tree-vect-stmts.c: Likewise.
7343 * tree-vectorizer.c: Likewise.
7344 * tree-vrp.c: Likewise.
7347 * value-prof.c: Likewise.
7348 * vtable-verify.c: Likewise.
7350 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7352 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
7355 2013-11-13 Jeff Law <law@redhat.com>
7357 * PR middle-end/59119
7358 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
7359 function, extracted from gimple_ssa_isolate_erroneous_paths.
7360 (find_explicit_erroneous_behaviour): Similarly.
7361 (insert_trap_and_remove_trailing_statements): Remove statements
7364 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
7366 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
7367 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
7368 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
7369 looking at INSN_CODE.
7370 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
7371 active_insn_p object, respect basic block boundaries.
7372 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
7373 follows immediately after the jump table data label.
7374 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
7375 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
7376 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
7378 2013-11-13 Teresa Johnson <tejohnson@google.com>
7381 * predict.c (drop_profile): Error is currently too strict.
7382 (handle_missing_profiles): Pass call_count to drop_profile.
7384 2013-11-13 Teresa Johnson <tejohnson@google.com>
7387 * ipa-inline.c (edge_badness): Fix overflow.
7389 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
7391 PR rtl-optimization/59036
7392 * ira-color.c (struct allocno_color_data): Add new members
7393 first_thread_allocno, next_thread_allocno, thread_freq.
7394 (sorted_copies): New static var.
7395 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
7396 (allocno_thread_conflict_p, merge_threads)
7397 (form_threads_from_copies, form_threads_from_bucket)
7398 (form_threads_from_colorable_allocno, init_allocno_threads): New
7400 (bucket_allocno_compare_func): Add comparison by thread frequency
7402 (add_allocno_to_ordered_bucket): Rename to
7403 add_allocno_to_ordered_colorable_bucket. Remove parameter.
7404 (push_only_colorable): Call form_threads_from_bucket.
7405 (color_pass): Call init_allocno_threads. Use
7406 consideration_allocno_bitmap instead of coloring_allocno_bitmap
7407 for nuillify allocno color data.
7408 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
7409 (coalesce_allocnos): Use static sorted copies.
7411 2013-11-13 Jakub Jelinek <jakub@redhat.com>
7413 * passes.c (execute_todo): Don't call do_per_function if
7415 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
7416 execute_function_dump if dump_file is NULL.
7418 2013-11-13 Martin Jambor <mjambor@suse.cz>
7420 * cgraph.c (cgraph_get_create_node): Do what
7421 cgraph_get_create_real_symbol_node used to do.
7422 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
7423 call cgraph_get_create_node.
7424 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
7425 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
7426 cgraph_get_create_node. Assert we get a node.
7428 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7430 * config/aarch64/aarch64-simd.md (vec_extract): New.
7432 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
7434 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
7437 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7439 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
7440 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
7441 or if optimization is enabled.
7442 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
7443 require that all the names based on a PARM_DECL or a RESULT_DECL that
7444 isn't ignored for debug info be coalesced.
7446 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7448 * config/c6x/c6x.c: Include "gimple-expr.h".
7450 2013-11-13 Richard Biener <rguenther@suse.de>
7452 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
7453 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
7454 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
7455 dealing with type mismatches inside component reference chains.
7457 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
7459 PR tree-optimization/59077
7460 * ipa-pure-const.c (better_state): Update *state.
7462 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
7464 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
7465 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
7466 Update offset calculations.
7468 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
7471 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
7472 for fields. Do not add the attribute if the size is negative.
7474 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7476 * config/arm/arm.c: Include aarch-cost-tables.h.
7477 (generic_extra_costs): Move from here...
7478 * config/arm/aarch-cost-tables.h: ... To here. New file.
7480 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
7481 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7482 Sergey Lega <sergey.s.lega@intel.com>
7483 Anna Tikhonova <anna.tikhonova@intel.com>
7484 Ilya Tocar <ilya.tocar@intel.com>
7485 Andrey Turetskiy <andrey.turetskiy@intel.com>
7486 Ilya Verbin <ilya.verbin@intel.com>
7487 Kirill Yukhin <kirill.yukhin@intel.com>
7488 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7490 * config/i386/i386.c (ix86_print_operand): Support z-masking.
7491 * config/i386/predicate.md (const_0_to_4_operand): New.
7492 (const_0_to_5_operand): Ditto.
7493 * config/i386/sse.md (UNSPEC_COMPRESS): New.
7494 (UNSPEC_COMPRESS_STORE): Ditto.
7495 (UNSPEC_EXPAND): Ditto.
7496 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
7497 (define_mode_attr ssescalarsize): Ditto.
7498 (avx512f_load<mode>_mask): Ditto.
7499 (avx512f_store<mode>_mask): Ditto.
7500 (avx512f_storedqu<mode>_mask): Ditto.
7501 (avx512f_vmcmp<mode>3_mask): Ditto.
7502 (avx512f_fmadd_<mode>_mask): Ditto.
7503 (avx512f_fmadd_<mode>_mask3): Ditto.
7504 (avx512f_fmsub_<mode>_mask): Ditto.
7505 (avx512f_fmsub_<mode>_mask3): Ditto.
7506 (avx512f_fnmadd_<mode>_mask): Ditto.
7507 (avx512f_fnmadd_<mode>_mask3): Ditto.
7508 (avx512f_fnmsub_<mode>_mask): Ditto.
7509 (avx512f_fnmsub_<mode>_mask3): Ditto.
7510 (avx512f_fmaddsub_<mode>_mask): Ditto.
7511 (avx512f_fmaddsub_<mode>_mask3): Ditto.
7512 (avx512f_fmsubadd_<mode>_mask): Ditto.
7513 (avx512f_fmsubadd_<mode>_mask3): Ditto.
7514 (vec_unpacku_float_lo_v16si): Ditto.
7515 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
7516 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
7517 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
7518 (vec_extract_lo_<mode>_maskm): Ditto.
7519 (vec_extract_hi_<mode>_maskm): Ditto.
7520 (avx512f_vternlog<mode>_mask): Ditto.
7521 (avx512f_shufps512_mask): Ditto.
7522 (avx512f_fixupimm<mode>_mask): Ditto.
7523 (avx512f_shufpd512_mask): Ditto.
7524 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
7525 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
7526 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
7527 (ashr<mode>3<mask_name>): Ditto.
7528 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
7529 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
7530 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
7531 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
7532 (avx512f_pshufdv3_mask): Ditto.
7533 (avx512f_perm<mode>_mask): Ditto.
7534 (avx512f_vpermi2var<mode>3_mask): Ditto.
7535 (avx512f_vpermt2var<mode>3_mask): Ditto.
7536 (avx512f_compress<mode>_mask): Ditto.
7537 (avx512f_compressstore<mode>_mask): Ditto.
7538 (avx512f_expand<mode>_mask): Ditto.
7539 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
7541 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
7542 (<plusminus_insn><mode>3<mask_name>): Ditto.
7543 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7544 (mul<mode>3<mask_name>): Ditto.
7545 (*mul<mode>3<mask_name>): Ditto.
7546 (<sse>_div<mode>3<mask_name>): Ditto.
7547 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
7548 (<sse>_sqrt<mode>2<mask_name>): Ditto.
7549 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
7550 (<code><mode>3<mask_name>/smaxmin): Ditto.
7551 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
7552 (*<code><mode>3<mask_name>/smaxmin): Ditto.
7553 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
7554 (ufloatv16siv16sf2<mask_name>): Ditto.
7555 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
7556 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
7557 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
7558 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
7559 (ufloatv8siv8df<mask_name>): Ditto.
7560 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
7561 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
7562 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
7563 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
7564 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
7565 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
7566 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
7567 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
7568 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
7569 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
7570 (vec_extract_lo_<mode><mask_name>): Ditto.
7571 (vec_extract_hi_<mode><mask_name>): Ditto.
7572 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
7573 (avx512f_movddup512<mask_name>): Ditto.
7574 (avx512f_unpcklpd512<mask_name>): Ditto.
7575 (*avx512f_unpcklpd512<mask_name>): Ditto.
7576 (*avx512f_vmscalef<mode>): Ditto.
7577 (avx512f_scalef<mode><mask_name>): Ditto.
7578 (avx512f_getexp<mode><mask_name>): Ditto.
7579 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
7580 (avx512f_rndscale<mode><mask_name>): Ditto.
7581 (avx512f_shufps512_1<mask_name>): Ditto.
7582 (avx512f_shufpd512_1<mask_name>): Ditto.
7583 (<plusminus_insn><mode>3<mask_name>): Ditto.
7584 (*<plusminus_insn><mode>3<mask_name>): Ditto.
7585 (vec_widen_umult_even_v16si<mask_name>): Ditto.
7586 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
7587 (vec_widen_smult_even_v16si<mask_name>): Ditto.
7588 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
7589 (mul<mode>3<mask_name>): Ditto.
7590 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
7591 (<shift_insn><mode>3<mask_name>): Ditto.
7592 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
7593 (avx512f_<rotate><mode><mask_name>): Ditto.
7594 (<code><mode>3<mask_name>/maxmin): Ditto.
7595 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
7596 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
7597 (*andnot<mode>3<mask_name>): Ditto.
7598 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
7599 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
7600 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
7601 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
7602 (vec_set_lo_<mode><mask_name>): Ditto.
7603 (vec_set_hi_<mode><mask_name>): Ditto.
7604 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
7605 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
7606 (avx512f_pshufd_1<mask_name>): Ditto.
7607 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
7608 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
7609 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
7610 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
7611 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
7612 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
7613 (avx512er_exp2<mode><mask_name>): Ditto.
7614 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
7615 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
7616 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
7617 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
7618 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
7619 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
7620 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
7621 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
7622 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
7623 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
7624 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
7625 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
7626 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
7627 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
7628 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
7629 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
7630 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
7631 (avx512f_getmant<mode><mask_name>): Ditto.
7632 (clz<mode>2<mask_name>): Ditto.
7633 (<mask_codefor>conflict<mode><mask_name>): Ditto.
7634 (*srcp14<mode>): Remove visibility.
7635 (*rsqrt14<mode>): Ditto.
7636 (*fma_fmsub_<mode>): Ditto.
7637 (*fma_fnmadd_<mode>): Ditto.
7638 (*avx512f_rndscale<mode>): Ditto.
7639 * config/i386/subst.md: New file.
7641 2013-11-13 Joseph Myers <joseph@codesourcery.com>
7643 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
7644 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
7645 (atomic_load_explicit, atomic_exchange_explicit)
7646 (atomic_compare_exchange_strong_explicit)
7647 (atomic_compare_exchange_weak_explicit): Use __auto_type to
7648 declare variable initialized with PTR argument.
7650 2013-11-12 Jeff Law <law@redhat.com>
7652 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
7653 backedge_seen_p. Set, use and pass it to children appropriately.
7654 (thread_through_normal_block): Similarly.
7655 (thread_across_edge): Similarly.
7657 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
7658 memory references as volatile.
7659 (insert_trap_and_remove_trailing_statements): Fix comment.
7661 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
7664 * ira-costs.c (record_operand_costs): Check operands number for
7667 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7670 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
7671 constraints that would allow DImode into the traditional Altivec
7672 registers, but cause undesirable code generation when loading 0 as
7674 (movdi_internal64): Likewise.
7675 (cmp<mode>_fpr): Do not use %x for CR register output.
7676 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
7677 -mallow-upper-sf debug switches are used.
7679 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
7681 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
7682 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
7683 Relocate prototypes from gimple.h.
7684 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
7685 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
7687 * gimple.h: Move some prototypes to gimplify.h.
7688 (gimple_predicate, enum fallback, enum gimplify_status): Move to
7690 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
7691 Relocate from gimpify.c.
7692 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
7693 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
7694 is_gimple_reg_rhs) Relocate from gimplify.c.
7695 * gimplify.c (mark_addressable): Move to gimple-expr.c.
7696 (gimple_seq_add_stmt_without_update): Move to gimple.c.
7697 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
7698 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
7699 is_gimple_reg_rhs): Move to gimple-expr.c.
7700 (should_carry_location_p): Move to gimple.c.
7701 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
7703 (annotate_one_with_location, annotate_all_with_location_after,
7704 annotate_all_with_location): Move to gimple.c.
7705 (compare_case_labels, sort_case_labels,
7706 preprocess_case_label_vec_for_gimple): Move to gimple.c.
7707 (rhs_predicate_for): Make static.
7708 (gimplify_assign): Relocate from gimple.c.
7709 * gimple.c (gimplify_assign): Move to gimplify.c.
7710 (gimple_seq_add_stmt_without_update, should_carry_location_p,
7711 annotate_one_with_location, annotate_all_with_location_after,
7712 annotate_all_with_location, compare_case_labels, sort_case_labels,
7713 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
7714 * tree.h (unshare_expr, unshare_expr_without_location,
7715 mark_addressable): Move prototypes to gimplify.h.
7716 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
7718 * asan.c: Include gimplify.h rather than gimple.h.
7719 * cfgloopmanip.c: Likewise.
7720 * cgraphunit.c: Likewise.
7721 * cilk-common.c: Likewise.
7722 * dwarf2out.c: Dont include gimple.h.
7723 * fold-const.c: Include gimplify.h rather than gimple.h.
7724 * function.c: Likewise.
7725 * gimple-fold.c: Likewise.
7726 * gimple-ssa-strength-reduction.c: Likewise.
7727 * graphite-clast-to-gimple.c: Likewise.
7728 * graphite-sese-to-poly.c: Likewise.
7729 * ipa-prop.c: Likewise.
7730 * ipa-split.c: Likewise.
7732 * langhooks.c: Dont include gimple.h.
7733 * loop-init.c: Include gimplify.h rather than gimple.h.
7734 * omp-low.c: Likewise.
7736 * stor-layout.c: Likewise.
7737 * targhooks.c: Likewise.
7738 * trans-mem.c: Likewise.
7739 * tree-affine.c: Likewise.
7740 * tree-cfg.c: Likewise.
7741 * tree-cfgcleanup.c: Likewise.
7742 * tree-complex.c: Likewise.
7743 * tree-if-conv.c: Likewise.
7744 * tree-inline.c: Likewise.
7745 * tree-iterator.c: Likewise.
7746 * tree-loop-distribution.c: Likewise.
7747 * tree-nested.c: Likewise.
7748 * tree-parloops.c: Likewise.
7749 * tree-predcom.c: Likewise.
7750 * tree-profile.c: Likewise.
7751 * tree-scalar-evolution.c: Likewise.
7752 * tree-sra.c: Likewise.
7753 * tree-ssa-address.c: Likewise.
7754 * tree-ssa-ccp.c: Likewise.
7755 * tree-ssa-dce.c: Likewise.
7756 * tree-ssa-forwprop.c: Likewise.
7757 * tree-ssa-ifcombine.c: Likewise.
7758 * tree-ssa-loop-im.c: Likewise.
7759 * tree-ssa-loop-ivopts.c: Likewise.
7760 * tree-ssa-loop-manip.c: Likewise.
7761 * tree-ssa-loop-niter.c: Likewise.
7762 * tree-ssa-loop-prefetch.c: Likewise.
7763 * tree-ssa-loop-unswitch.c: Likewise.
7764 * tree-ssa-math-opts.c: Likewise.
7765 * tree-ssa-phiopt.c: Likewise.
7766 * tree-ssa-phiprop.c: Likewise.
7767 * tree-ssa-pre.c: Likewise.
7768 * tree-ssa-propagate.c: Likewise.
7769 * tree-ssa-reassoc.c: Likewise.
7770 * tree-ssa-sccvn.c: Likewise.
7771 * tree-ssa-strlen.c: Likewise.
7772 * tree-ssa.c: Likewise.
7773 * tree-switch-conversio: Likewise.n.c
7774 * tree-tailcall.c: Likewise.
7775 * tree-vect-data-refs.c: Likewise.
7776 * tree-vect-generic.c: Likewise.
7777 * tree-vect-loop-manip.c: Likewise.
7778 * tree-vect-loop.c: Likewise.
7779 * tree-vect-patterns.c: Likewise.
7780 * tree-vect-stmts.c: Likewise.
7782 * value-prof.c: Likewise.
7783 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
7784 * config/alpha/alpha.c: Likewise.
7785 * config/darwin.c: Likewise.
7786 * config/i386/i386.c: Likewise.
7787 * config/ia64/ia64.c: Likewise.
7788 * config/mep/mep.c: Likewise.
7789 * config/mips/mips.c: Likewise.
7790 * config/rs6000/rs6000.c: Likewise.
7791 * config/s390/s390.c: Likewise.
7792 * config/sh/sh.c: Likewise.
7793 * config/sparc/sparc.c: Likewise.
7794 * config/spu/spu.c: Likewise.
7795 * config/stormy16/stormy16.c: Likewise.
7796 * config/tilegx/tilegx.c: Likewise.
7797 * config/tilepro/tilepro.c: Likewise.
7798 * config/xtensa/xtensa.c: Likewise.
7800 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
7802 * tree.c (grow_tree_vec_stat): New function ...
7803 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
7804 and macro front-end.
7806 2013-11-12 Marek Polacek <polacek@redhat.com>
7808 * final.c (update_alignments): Initialize label to NULL_RTX.
7810 2013-11-12 Jeff Law <law@redhat.com>
7812 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
7813 (insert_trap_and_remove_trailing_statements): New argument OP which
7814 is the NULL pointer. Emit the trap after the load/store through
7815 the NULL pointer. Simplify the RHS of a store through a NULL pointer
7816 when trivial to do so.
7817 (isolate_path): Corresponding changes.
7818 (gimple_ssa_isolate_erroneous_path): Likewise.
7820 2013-11-12 Teresa Johnson <tejohnson@google.com>
7821 Jan Hubicka <jh@suse.cz>
7823 * predict.c (drop_profile): New function.
7824 (handle_missing_profiles): Ditto.
7825 (counts_to_freqs): Don't overwrite estimated frequencies
7826 when function has no profile counts.
7827 * predict.h (handle_missing_profiles): Declare.
7828 * tree-inline.c (freqs_to_counts): New function.
7829 (copy_cfg_body): Invoke freqs_to_counts as needed.
7830 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
7832 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
7835 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
7837 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
7839 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
7842 * config/i386/i386.c (ix86_option_override_internal): Check
7843 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
7844 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
7845 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
7846 MASK_AVX256_SPLIT_UNALIGNED_STORE.
7848 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
7849 Clear m_COREI7_AVX and update comments.
7850 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
7852 2013-11-12 Martin Jambor <mjambor@suse.cz>
7854 PR rtl-optimization/10474
7855 * ira.c (interesting_dest_for_shprep): New function.
7856 (split_live_ranges_for_shrink_wrap): Likewise.
7857 (find_moveable_pseudos): Move calculation of dominance info,
7858 df_analysios and the final anlyses to...
7859 (ira): ...here, call split_live_ranges_for_shrink_wrap.
7861 2013-11-12 Bin Cheng <bin.cheng@arm.com>
7863 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
7864 Handle type conversion.
7866 2013-11-11 Martin Liska <marxin.liska@gmail.com>
7867 Jan Hubicka <jh@suse.cz>
7869 * cgraph.c (dump_cgraph_node): Profile dump added.
7870 * cgraph.h (struct cgraph_node): New time profile variable added.
7871 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
7872 * gcov-io.h (gcov_type): New profiler type introduced.
7873 * ipa-profile.c (lto_output_node): Streaming for time profile added.
7874 (input_node): Time profiler is read from LTO stream.
7875 * predict.c (maybe_hot_count_p): Hot prediction changed.
7876 * profile.c (instrument_values): New case for time profiler added.
7877 (compute_value_histograms): Read of time profile.
7878 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
7879 * tree-profile.c (init_ic_make_global_vars): Time profiler
7881 (gimple_init_edge_profiler): TP function instrumentation.
7882 (gimple_gen_time_profiler): New.
7883 * value-prof.c (gimple_add_histogram_value): Support for time profiler
7885 (dump_histogram_value): TP type added to dumps.
7886 (visit_hist): More sensitive check that takes TP into account.
7887 (gimple_find_values_to_profile): TP instrumentation.
7888 * value-prof.h (hist_type): New histogram type added.
7889 (struct histogram_value_t): Pointer to struct function added.
7890 * libgcc/Makefile.in: New GCOV merge function for TP added.
7891 * libgcov.c: function_counter variable introduced.
7892 (_gcov_merge_time_profile): New.
7893 (_gcov_time_profiler): New.
7895 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
7896 Jeff Law <law@redhat.com>
7898 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
7899 ao_ref_init_from_ptr_and_size for builtins.
7901 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
7902 H.J. Lu <hongjiu.lu@intel.com>
7905 * config/i386/x86-tune.def
7906 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
7907 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
7908 * config/i386/i386.h
7909 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
7910 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
7911 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
7912 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
7913 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
7914 misaligned_prologue_used. Check that
7915 desired_aling <= epilogue_size_needed.
7917 2013-11-11 Cong Hou <congh@google.com>
7919 PR tree-optimization/59050
7920 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
7922 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
7925 * expmed.c (emit_store_flag): Fail for const-const comparison.
7927 2013-11-11 Tristan Gingold <gingold@adacore.com>
7928 Eric Botcazou <ebotcazou@adacore.com>
7930 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
7931 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
7932 * tree.def (CONSTRUCTOR): Likewise.
7933 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
7934 * gimplify.c (gimplify_init_constructor): Do not clear the object when
7935 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
7937 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
7939 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
7942 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7944 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
7947 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
7949 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
7951 2013-11-08 Jeff Law <law@redhat.com>
7953 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
7954 threading paths first, then perform PHI node checks if applicable.
7956 2013-11-10 Karlson2k <k2k@narod.ru>
7957 Kai Tietz <ktietz@redhat.com>
7960 * configure.ac: Adding for exported symbols check
7961 and for rdynamic-check executable-extension.
7962 * configure: Regenerated.
7964 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
7966 * mode-switching.c (optimize_mode_switching): Mark block as
7967 nontransparent, if last_mode at block exit is different from no_mode.
7969 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7971 * function.c (NAME__MAIN): Move to...
7972 * cfgexpand.c (NAME__MAIN): ...here.
7974 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
7976 * target.def (can_use_doloop_p): New hook.
7977 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
7978 * doc/tm.texi: Regenerate.
7979 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
7980 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
7981 * hooks.c (hook_bool_dint_dint_uint_true): New function.
7982 * targhooks.h (can_use_doloop_if_innermost): Declare.
7983 * targhooks.c (can_use_doloop_if_innermost): New function.
7984 * target.h: Include double-int.h.
7985 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
7986 Remove iteration count, maximum iteration count, loop depth and
7987 enter-at-top inputs from doloop_begin and doloop_end.
7988 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
7990 * config/arc/arc.c (arc_can_use_doloop_p): New function.
7991 (TARGET_CAN_USE_DOLOOP_P): Define.
7992 * config/arm/thumb2.md (doloop_end): Update for new interface.
7993 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
7994 * config/bfin/bfin.md (doloop_end): Update for new interface.
7995 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
7996 (TARGET_CAN_USE_DOLOOP_P): Define.
7997 * config/c6x/c6x.md (doloop_end): Update for new interface.
7998 * config/ia64/ia64.md (doloop_end): Update for new interface.
7999 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
8000 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
8002 * config/mep/mep.c (mep_emit_doloop): Likewise.
8003 (TARGET_CAN_USE_DOLOOP_P): Define.
8004 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
8005 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
8006 * config/s390/s390.md (doloop_end): Update for new interface.
8007 * config/sh/sh.md (doloop_end): Likewise.
8008 * config/spu/spu.md (doloop_end): Likewise.
8009 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
8010 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
8011 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
8012 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
8013 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
8014 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
8016 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
8018 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
8021 * doc/extend.texi: Move Cilk Plus Builtins node before Other
8024 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
8025 Joseph Myers <joseph@codesourcery.com>
8027 * ginclude/stdatomic.h: New file.
8028 * Makefile.in (USER_H): Add stdatomic.h.
8030 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8032 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
8035 2013-11-08 Jeff Law <law@redhat.com>
8037 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
8038 * tree-ssa-threadupdate.c (delete_thread_path): New function.
8039 (ssa_redirect_edges, thread_block_1): Use it.
8040 (thread_through_loop_header, mark_threaded_blocks): Likewise.
8041 (thread_through_all_blocks, register_jump_thread): Likewise.
8042 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8044 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
8046 * config/arm/aarch-common.c
8047 (search_term): New typedef.
8048 (shift_rtx_costs): New array.
8049 (arm_rtx_shift_left_p): New.
8050 (arm_find_sub_rtx_with_search_term): Likewise.
8051 (arm_find_sub_rtx_with_code): Likewise.
8052 (arm_early_load_addr_dep): Add sanity checking.
8053 (arm_no_early_alu_shift_dep): Likewise.
8054 (arm_no_early_alu_shift_value_dep): Likewise.
8055 (arm_no_early_mul_dep): Likewise.
8056 (arm_no_early_store_addr_dep): Likewise.
8058 2013-11-08 Richard Biener <rguenther@suse.de>
8060 PR tree-optimization/59047
8061 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
8063 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
8065 * common.opt (fcheck-pointer-bounds): Move to ...
8066 * c-family/c.opt: ... here.
8067 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
8068 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
8069 * langhooks.h (lang_hooks): Remove chkp_supported field.
8070 * toplev.c (process_options): Remove chkp_supported check.
8072 2013-11-08 Richard Biener <rguenther@suse.de>
8074 PR tree-optimization/59038
8075 PR tree-optimization/58955
8076 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
8077 previous change. Handle known dependences correctly.
8079 2013-11-08 Tom de Vries <tom@codesourcery.com>
8081 * config/rs6000/t-xilinx: Remove duplicate contents.
8083 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
8084 Joseph Myers <joseph@codesourcery.com>
8086 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
8087 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
8088 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
8089 (struct tree_base): Add atomic_flag field.
8090 * tree.h (TYPE_ATOMIC): New accessor macro.
8091 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
8092 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
8093 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
8094 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
8095 * tree.c (set_type_quals): Set TYPE_ATOMIC.
8096 (find_atomic_core_type): New function.
8097 (build_qualified_type): Adjust alignment for qualified types.
8098 (build_atomic_base): New function
8099 (build_common_tree_nodes): Build atomicQI_type_node,
8100 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
8102 * print-tree.c (print_node): Print atomic qualifier.
8103 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
8104 * target.def (atomic_assign_expand_fenv): New hook.
8105 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
8106 * doc/tm.texi: Regenerate.
8107 * targhooks.c (default_atomic_assign_expand_fenv): New function.
8108 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
8109 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
8110 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
8112 * config/i386/i386.c (enum ix86_builtins): Add
8113 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
8114 IX86_BUILTIN_FNCLEX.
8115 (bdesc_special_args): Add __builtin_ia32_fnstenv,
8116 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
8117 (ix86_expand_builtin): Handle the new built-in functions.
8118 (ix86_atomic_assign_expand_fenv): New function.
8119 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
8120 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
8121 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
8122 (fnstenv, fldenv, fnstsw, fnclex): New insns.
8124 2013-11-07 Steve Ellcey <sellcey@mips.com>
8126 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
8127 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
8128 (MULTILIB_DIRNAMES): Add fp64 directory.
8129 (MULTILIB_EXCEPTIONS): Add new exclusions.
8131 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
8133 * gimplify.c (gimple_regimplify_operands): Do not set
8135 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
8136 (rewrite_close_phi_out_of_ssa): Same.
8137 (rewrite_phi_out_of_ssa): Same.
8138 (rewrite_degenerate_phi): Same.
8139 (handle_scalar_deps_crossing_scop_limits): Same.
8140 * tree-if-conv.c (predicate_scalar_phi): Same.
8141 * tree-parloops.c (create_loads_for_reductions): Same.
8142 (create_final_loads_for_reduction): Same.
8143 (create_loads_and_stores_for_name): Same.
8144 (transform_to_exit_first_loop): Same.
8145 (create_parallel_loop): Same.
8146 * tree-ssa-loop-im.c
8147 (move_computations_dom_walker::before_dom_children): Same.
8148 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
8149 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
8150 * tree-ssa-propagate.c (substitute_and_fold): Same.
8151 * tree-vect-loop.c (vect_finalize_reduction): Same.
8152 * tree-vect-stmts.c (vectorizable_call): Same.
8154 2013-11-07 Mike Stump <mikestump@comcast.net>
8156 * config/pdp11/pdp11.c: Include dbxout.h.
8157 * config/picochip/picochip.c: Likewise.
8159 2013-11-07 Cong Hou <congh@google.com>
8161 PR tree-optimization/56764
8162 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8163 Combine alias checks if it is possible to amortize the runtime
8164 overhead. Return the number of alias checks after merging.
8165 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8166 Use the function vect_create_cond_for_alias_checks () to check
8167 the number of alias checks.
8169 2013-11-07 Jeff Law <law@redhat.com>
8171 * varpool.c (ctor_for_folding): Fix typo in comment.
8173 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
8175 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
8176 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
8178 2013-11-07 Jeff Law <law@redhat.com>
8180 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
8182 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
8183 No longer check if we have __builtin_trap, assume it's available.
8185 2013-11-07 Diego Novillo <dnovillo@google.com>
8187 * attribs.c (lookup_scoped_attribute_spec): Make static.
8188 (get_attribute_namespace): Likewise.
8189 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
8190 (validate_arglist): Move earlier in the file. Make static.
8191 (expand_stack_restore): Move from stmt.c
8192 (expand_stack_save): Move from stmt.c
8193 (rewrite_call_expr_array): Move earlier in the file.
8194 (rewrite_call_expr_valist): Likewise.
8195 * cfgexpand.c: Include hard-reg-set.h before tree.h
8198 (expand_asm_loc): Move from stmt.c.
8199 (n_occurrences): Move from stmt.c.
8200 (check_operand_nalternatives): Move from stmt.c.
8201 (tree_conflicts_with_clobbers_p): Move from stmt.c.
8202 (expand_asm_operands): Move from stmt.c
8203 (expand_asm_stmt): Move from stmt.c
8204 (expand_computed_goto): Move from stmt.c
8205 (expand_goto): Move from stmt.c
8206 (expand_null_return_1): Move from stmt.c
8207 (expand_null_return): Move from stmt.c
8208 (expand_value_return): Move from stmt.c
8209 (expand_return): Move from stmt.c
8210 (expand_main_function): Move from function.c
8211 (stack_protect_prologue): Move from function.c
8212 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
8213 (build_function_decl_skip_args): Move from tree.c.
8214 * explow.c (tree_expr_size): Move from tree.c.
8215 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
8216 (fields_length): Move from tree.c.
8217 * fold-const.c (size_low_cst): Move from tree.c.
8218 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
8219 (tree_expr_nonzero_p): Make static. Move earlier in the file.
8220 (fold_build3_initializer_loc): Remove.
8221 (tree_invalid_nonnegative_warnv_p): Make static.
8222 * function.c (expand_main_function): Move to cfgexpand.c.
8223 (stack_protect_prologue): Move to cfgexpand.c.
8224 (set_insn_locations): Move earlier in the file.
8225 * gimple-fold.c: Include langhooks.h.
8226 (truth_type_for): Move from tree.c.
8227 * print-tree.c (print_vec_tree): Remove.
8228 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
8229 (expand_goto): Move to cfgexpand.c.
8230 (n_occurrences): Move to cfgexpand.c.
8231 (expand_asm_loc): Move to cfgexpand.c
8232 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
8233 (expand_asm_operands): Move to cfgexpand.c.
8234 (expand_asm_stmt): Move to cfgexpand.c.
8235 (check_operand_nalternatives): Move to cfgexpand.c
8236 (expand_null_return): Move to cfgexpand.c.
8237 (expand_value_return): Move to cfgexpand.c.
8238 (expand_null_return_1): Move to cfgexpand.c.
8239 (expand_return): Move to cfgexpand.c.
8240 (expand_stack_save): Move to builtins.c.
8241 (expand_stack_restore): Move to builtins.c
8242 * symtab.c: Include output.h.
8243 (decl_assembler_name_hash): Move from tree.c.
8244 (decl_assembler_name_equal): Move from tree.c.
8245 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
8246 * tree-eh.c (in_array_bounds_p): Move from tree.c.
8247 (range_in_array_bounds_p): Move from tree.c.
8248 * tree-object-size.c (fini_object_sizes): Make static.
8249 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
8250 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
8251 * tree.c (decl_assembler_name_equal): Move to symtab.c.
8252 (tree_expr_size): Move to explow.c.
8253 (decl_assembler_name_hash): Move to symtab.c.
8254 (real_twop): Remove.
8255 (tree_expr_size): Move to explow.c.
8256 (stabilize_reference_1): Move earlier in the file. Make static.
8257 (omp_remove_redundant_declare_simd_attrs): Remove.
8258 (simple_cst_list_equal): Move earlier in the file. Make static.
8259 (size_low_cst): Move to fold-const.c.
8260 (build_type_no_quals): Remove.
8261 (build_function_type_skip_args): Move to cgraphclones.c.
8262 (build_function_decl_skip_args): Move to cgraphclones.c.
8263 (in_array_bounds_p): Move to tree-eh.c.
8264 (range_in_array_bounds_p): Move to tree-eh.c.
8265 (truth_type_for): Move to gimple-fold.c.
8266 (list_equal_p): Remove.
8267 * tree.h (decl_assembler_name_equal): Remove.
8268 (decl_assembler_name_hash): Remove.
8269 (truth_type_for): Remove.
8270 (build_type_no_quals): Remove.
8271 (build_function_decl_skip_args): Remove.
8272 (in_array_bounds_p): Remove.
8273 (range_in_array_bounds_p): Remove.
8274 (size_low_cst): Remove.
8275 (omp_remove_redundant_declare_simd_attrs): Remove.
8276 (tree_expr_size): Remove.
8277 (fields_length): Remove.
8278 (stabilize_reference_1): Remove.
8279 (expand_goto): Remove.
8280 (expand_stack_save): Remove.
8281 (expand_stack_restore): Remove.
8282 (expand_return): Remove.
8283 (fold_build3_initializer_loc): Remove.
8284 (tree_expr_nonzero_p): Remove.
8285 (tree_invalid_nonnegative_warnv_p): Remove.
8286 (tree_expr_nonzero_warnv_p): Remove.
8287 (fold_builtin_snprintf_chk): Remove.
8288 (validate_arglist): Remove.
8289 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
8290 (simple_cst_list_equal): Remove.
8291 (real_twop): Remove.
8292 (expand_main_function): Remove.
8293 (stack_protect_prologue): Remove.
8294 (print_vec_tree): Remove.
8295 (lookup_scoped_attribute_spec): Remove.
8296 (get_attribute_namespace): Remove.
8297 (expand_computed_goto): Remove.
8298 (expand_asm_stmt): Remove.
8299 (list_equal_p): Remove.
8300 (ssa_name_nonnegative_p): Remove.
8301 (fini_object_sizes): Remove.
8302 (addr_expr_of_non_mem_decl_p): Remove.
8303 (is_tm_safe_or_pure): Move to trans-mem.c.
8304 (more_const_call_expr_args_p): Remove.
8305 (save_vtable_map_decl): Remove.
8307 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8309 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
8310 linker plugins, too.
8312 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
8313 link to libgomp and its dependencies.
8314 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8315 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8316 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8317 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
8319 2013-11-07 Jakub Jelinek <jakub@redhat.com>
8321 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
8322 (determine_value_range): Add loop argument. Use get_range_info to
8324 (bound_difference): Adjust caller.
8326 2013-11-07 Richard Biener <rguenther@suse.de>
8327 Jakub Jelinek <jakub@redhat.com>
8329 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
8330 latches from header PHI arguments from the latch edge.
8332 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
8335 * varasm.c (output_constant): Handle NULLPTR_TYPE.
8337 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8339 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
8340 misaligned_prologue_used when it has been set.
8342 2013-11-07 Yury Gribov <y.gribov@samsung.com>
8343 Jakub Jelinek <jakub@redhat.com>
8346 * asan.c (get_mem_refs_of_builtin_call): Allow
8347 integer literals as addresses in instrumented builtins.
8349 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8351 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
8352 Explain why plus_constant is not used.
8354 2013-11-07 Richard Biener <rguenther@suse.de>
8356 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
8357 (canonicalize_value): ... this. Also handle stripping of
8359 (get_value, set_lattice_value, get_value_for_expr): Adjust.
8360 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
8361 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
8363 2013-11-07 Richard Biener <rguenther@suse.de>
8365 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
8367 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
8370 * config/i386/i386.md (push peepholer/splitter): Use Pmode
8371 with stack_pointer_rtx.
8373 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8375 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
8376 using operand_equal_p.
8378 2013-11-07 Bin Cheng <bin.cheng@arm.com>
8380 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
8381 * tree-affine.c (get_inner_reference_aff): Return base.
8382 * tree-affine.h (get_inner_reference_aff): Change prototype.
8384 2013-11-06 Tobias Burnus <burnus@net-b.de>
8386 * doc/invoke.texi (Wdate-time): Fix typo.
8388 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8390 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
8391 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
8392 fp_arith_reg_operand instead of arith_reg_operand.
8394 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
8396 * config/sh/sh.md (adddi3): Remove empty constraints.
8397 Remove can_create_pseudo_p and arith_reg_operand check.
8398 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
8399 Split before reload.
8401 2013-11-06 Jeff Law <law@redhat.com>
8402 Tom Tromey <tromey@redhat.com>
8404 * gdbinit.in: Disable strict type checking.
8406 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
8408 * tree-pass.h (make_pass_live_range_shrinkage): New external.
8409 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
8410 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
8411 (rest_of_handle_live_range_shrinkage): Ditto
8412 (class pass_live_range_shrinkage): Ditto.
8413 (pass_data_live_range_shrinkage): Ditto.
8414 (make_pass_live_range_shrinkage): Ditto.
8415 * sched-int.h (initialize_live_range_shrinkage): New prototype.
8416 (finish_live_range_shrinkage): Ditto.
8417 * sched-deps.c (create_insn_reg_set): Make void return value.
8418 * passes.def: Add pass_live_range_shrinkage.
8419 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
8420 * haifa-sched.c (live_range_shrinkage_p): New.
8421 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
8423 (rank_for_schedule): Add code for pressure relief through live
8425 (schedule_insn): Print more debug info.
8426 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
8427 through live range shrinkage.
8428 * doc/invoke.texi (-flive-range-shrinkage): New.
8429 * common.opt (flive-range-shrinkage): New.
8431 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
8434 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
8435 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
8436 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
8437 RTXes that return in AVX256 register.
8439 2013-11-06 Richard Biener <rguenther@suse.de>
8441 PR tree-optimization/58653
8442 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
8443 (prepare_initializers_chain): Adjust.
8445 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
8447 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
8448 (gimple_in_transaction): Use bb_in_transaction.
8449 * basic-block.h (bb_in_transaction): Relocate here and rename.
8450 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
8452 2013-11-06 Richard Biener <rguenther@suse.de>
8454 * tree.c (drop_tree_overflow): New function.
8455 * tree.h (drop_tree_overflow): Declare.
8456 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
8457 * tree-vrp.c (range_int_cst_singleton_p): Use
8458 is_overflow_infinity instead of testing TREE_OVERFLOW.
8459 (extract_range_from_assert): Likewise.
8460 (zero_nonzero_bits_from_vr): Likewise.
8461 (extract_range_basic): Likewise.
8462 (register_new_assert_for): Use drop_tree_overflow.
8463 (vrp_visit_phi_node): Likewise.
8465 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
8467 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
8468 checking for leaf functions without dynamic stack allocation.
8469 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
8470 (ia64_expand_prologue): Likewise.
8471 * config/mips/mips.c (mips_expand_prologue): Likewise.
8472 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8473 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8474 (sparc_flat_expand_prologue): Likewise.
8476 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8478 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
8479 (__ST3_LANE_FUNC): Likewise.
8480 (__ST4_LANE_FUNC): Likewise.
8482 2013-11-06 Nick Clifton <nickc@redhat.com>
8484 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
8485 name returned by msp430_mcu_name.
8486 (LIB_SPEC): If a -T option has not been specified then set a
8487 default, mcu-specific, linker script.
8488 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
8489 * config/msp430/msp430.c (msp430x_names): Likewise.
8490 Alpha sort the names for ease of comparison.
8491 (msp430_mcu_name): New function: Returns a string suitable for
8492 use as a C preprocessor symbol based upon the name of the MCU
8494 (msp430_option_override): Accept msp430x and msp430xv2 as generic
8496 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
8498 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
8499 unless it is the last part of a spec substring.
8500 * doc/invoke.texi (Spec Files): Document space insertion
8503 2013-11-06 Christian Bruel <christian.bruel@st.com>
8505 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
8506 Factorize probabilities, Use adjust_address instead of
8507 adjust_automodify_address when possible. Enable for optimize.
8508 (sh_expand_strlen): New function.
8509 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
8510 * config/sh/sh.md (strlensi): New pattern.
8511 (UNSPEC_BUILTIN_STRLEN): Define.
8513 2013-11-06 Jakub Jelinek <jakub@redhat.com>
8516 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
8517 (expand_assignment): If *bitpos is negative, set *offset
8518 and adjust *bitpos, so that it is not negative.
8520 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8522 * config/i386/bdver3.md : Added two additional decoder units
8523 to support issue rate of 4 and remodeled vector unit.
8524 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
8525 architectures is set to 4.
8526 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
8527 lookahead is set to 4 for BD architectures.
8529 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8531 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8532 Remove restriction against use of VSX instructions when generating
8533 code for little endian mode.
8535 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8537 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
8538 for both big and little endian.
8539 (mulv8hi3): Swap input operands for merge high and merge low
8540 instructions for little endian.
8542 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8544 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
8545 define_insn to define_expand that uses even patterns for big
8546 endian and odd patterns for little endian.
8547 (vec_widen_smult_even_v16qi): Likewise.
8548 (vec_widen_umult_even_v8hi): Likewise.
8549 (vec_widen_smult_even_v8hi): Likewise.
8550 (vec_widen_umult_odd_v16qi): Likewise.
8551 (vec_widen_smult_odd_v16qi): Likewise.
8552 (vec_widen_umult_odd_v8hi): Likewise.
8553 (vec_widen_smult_odd_v8hi): Likewise.
8554 (altivec_vmuleub): New define_insn.
8555 (altivec_vmuloub): Likewise.
8556 (altivec_vmulesb): Likewise.
8557 (altivec_vmulosb): Likewise.
8558 (altivec_vmuleuh): Likewise.
8559 (altivec_vmulouh): Likewise.
8560 (altivec_vmulesh): Likewise.
8561 (altivec_vmulosh): Likewise.
8563 2013-11-05 Mike Stump <mikestump@comcast.net>
8565 * Makefile.in (mostlyclean): Remove c-family objects.
8567 2013-11-05 Ian Lance Taylor <iant@google.com>
8569 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
8570 If possible, add .cfi directives to record change to bx.
8571 * config/i386/i386.c (ix86_emit_cfi): New function.
8572 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
8574 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
8576 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
8577 immediately after a label for a tablejump pattern.
8579 * config/arm/arm.c (is_jump_table): Remove.
8580 (create_fix_barrier): Use tablejump_p instead.
8581 (arm_reorg): Likewise.
8582 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
8583 (thumb2_output_casesi): Likewise.
8584 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
8585 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
8586 casesi_shift_media, casesi_load_media): Likewise.
8587 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
8588 * config/microblaze/microblaze.md: Likewise.
8590 2013-11-05 Tobias Burnus <burnus@net-b.de>
8592 * doc/invoke.texi (-Wdate-time): Document.
8594 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
8596 * double-int.c (lshift_double, rshift_double): Remove
8597 SHIFT_COUNT_TRUNCATED handling.
8599 2013-11-05 Jeff Law <law@redhat.com>
8601 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
8602 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
8603 * gimple-ssa-isolate-paths.c: New file.
8604 * gimple.c (check_loadstore): New function.
8605 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
8606 Verify OP is in the argument list and the argument corresponding
8607 to OP is a pointer type. Use operand_equal_p rather than
8608 pointer equality when testing if OP is on the nonnull list.
8609 Use check_loadstore rather than count_ptr_derefs. Handle
8610 GIMPLE_RETURN statements.
8611 * tree-vrp.c (infer_nonnull_range): Remove.
8612 * gimple.h (infer_nonnull_range): Declare.
8613 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
8614 * passes.def: Add pass_isolate_erroneous_paths.
8615 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
8616 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
8617 * tree-ssa.c (struct count_ptr_d): Remove.
8618 (count_ptr_derefs, count_uses_and_derefs): Remove.
8619 * tree-ssa.h (count_uses_and_derefs): Remove.
8621 2013-11-05 Jakub Jelinek <jakub@redhat.com>
8623 PR rtl-optimization/58997
8624 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
8625 get_iv_value to be in iv->mode rather than iv->extend_mode.
8626 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
8627 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
8628 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
8631 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
8633 * gimple.h: Move some prototypes to gimple-expr.h and add to include
8635 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
8636 Move to gimple-expr.h.
8637 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
8638 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
8639 is_gimple_id, virtual_operand_p, is_gimple_addressable,
8640 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
8642 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
8643 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
8644 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
8645 is_gimple_address, is_gimple_invariant_address,
8646 is_gimple_ip_invariant_address, is_gimple_min_invariant,
8647 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
8648 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
8649 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
8650 gimple_decl_printable_name, useless_type_conversion_p,
8651 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
8653 * gimple-expr.c: New File.
8654 (useless_type_conversion_p, gimple_set_body, gimple_body,
8655 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
8656 gimple_can_coalesce_p, extract_ops_from_tree_1,
8657 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
8658 is_gimple_address, is_gimple_invariant_address,
8659 is_gimple_ip_invariant_address, is_gimple_min_invariant,
8660 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
8661 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
8662 is_gimple_mem_ref_addr): Relocate here.
8663 * Makefile.in (OBJS): Add gimple-expr.o.
8665 2013-11-05 David Malcolm <dmalcolm@redhat.com>
8667 * gengtype-parse.c (struct_field_seq): Support empty structs.
8669 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
8671 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
8673 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
8675 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
8677 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
8679 (LONG_DOUBLE_TYPE_SIZE): New define.
8680 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
8682 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
8685 * doc/extend.texi [visibility ("visibility_type")]: Add example
8686 about visibility attribute on namespace declaration.
8688 2013-11-05 Richard Biener <rguenther@suse.de>
8691 * passes.def (all_passes): Start with pass_fixup_cfg again.
8693 2013-11-05 Richard Biener <rguenther@suse.de>
8695 PR tree-optimization/58955
8696 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
8699 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8701 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
8703 (vec_pack_ufix_trunc_v2df): Likewise.
8705 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
8708 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
8709 pattern, instead of word_mode.
8711 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
8713 (set_storage_via_setmem): Likewise.
8715 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
8717 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
8718 gimple.h and the rest of the condition in eliminate_build.
8719 (eliminate_build): Call new routine.
8720 * gimple.h (phi_ssa_name_p): Delete.
8722 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
8724 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
8725 case of no prefix and reserving zero slots, because when that's the
8726 case we'll never get here.
8727 * vec.h (va_heap::reserve): Don't try and handle
8728 vec_prefix::calculate_allocation returning zero because that should
8731 2013-11-05 Richard Biener <rguenther@suse.de>
8734 * tree-dfa.c (get_ref_base_and_extent): Merge common code
8735 in MEM_REF and TARGET_MEM_REF handling. Make sure to
8736 process trailing array detection before diving into the
8737 view-converted object (and possibly apply some extra offset).
8739 2013-11-05 Joseph Myers <joseph@codesourcery.com>
8741 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
8743 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
8745 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
8747 PR tree-optimization/58958
8748 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
8749 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
8751 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
8753 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
8754 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
8756 2013-11-05 Jakub Jelinek <jakub@redhat.com>
8758 PR tree-optimization/58984
8759 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
8760 set *SIZE_P if non-NULL on success.
8761 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
8763 (ipcp_transform_function): Likewise. Punt if size of access
8764 is different from TYPE_SIZE on v->value's type.
8766 2013-11-05 Tobias Burnus <burnus@net-b.de>
8768 * doc/invoke.texi (-fopenmp-simd): Document new option.
8769 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
8770 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
8771 * tree.c (attribute_value_equal): Ditto.
8773 2013-11-04 Wei Mi <wmi@google.com>
8775 * sched-rgn.c (add_branch_dependences): Keep insns in
8776 a SCHED_GROUP at the end of BB to remain their location.
8778 2013-11-04 Wei Mi <wmi@google.com>
8780 * config/i386/i386.c (memory_address_length): Extract a part
8781 of code to rip_relative_addr_p.
8782 (rip_relative_addr_p): New Function.
8783 (ix86_macro_fusion_p): Ditto.
8784 (ix86_macro_fusion_pair_p): Ditto.
8785 * config/i386/i386.h: Add new tune features about macro-fusion.
8786 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
8787 * doc/tm.texi: Generated.
8788 * doc/tm.texi.in: Ditto.
8789 * haifa-sched.c (try_group_insn): New Function.
8790 (group_insns_for_macro_fusion): Ditto.
8791 (sched_init): Call group_insns_for_macro_fusion.
8792 * target.def: Add two hooks: macro_fusion_p and
8793 macro_fusion_pair_p.
8795 2013-11-04 Kostya Serebryany <kcc@google.com>
8797 Update to match the changed asan API.
8798 * asan.c (asan_function_start): New function.
8799 (asan_emit_stack_protection): Update the string stored in the
8800 stack red zone to match new API. Store the PC of the current
8801 function in the red zone.
8802 (asan_global_struct): Update the __asan_global definition to match
8804 (asan_add_global): Ditto.
8805 * asan.h (asan_function_start): New prototype.
8806 * final.c (final_start_function): Call asan_function_start.
8807 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
8810 2013-11-04 Wei Mi <wmi@google.com>
8812 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
8813 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
8814 * config/i386/i386.c (ix86_option_override_internal): Ditto.
8815 (ix86_issue_rate): Ditto.
8816 (ix86_adjust_cost): Ditto.
8817 (ia32_multipass_dfa_lookahead): Ditto.
8818 (ix86_sched_init_global): Ditto.
8819 (get_builtin_code_for_version): Ditto.
8820 * config/i386/i386.h (enum target_cpu_default): Ditto.
8821 (enum processor_type): Ditto.
8822 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
8824 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
8826 PR rtl-optimization/58967
8827 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
8828 !lra_in_progress for mode sizes bigger word.
8830 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8832 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
8833 arguments to merge instruction for little endian.
8834 (vec_widen_umult_lo_v16qi): Likewise.
8835 (vec_widen_smult_hi_v16qi): Likewise.
8836 (vec_widen_smult_lo_v16qi): Likewise.
8837 (vec_widen_umult_hi_v8hi): Likewise.
8838 (vec_widen_umult_lo_v8hi): Likewise.
8839 (vec_widen_smult_hi_v8hi): Likewise.
8840 (vec_widen_smult_lo_v8hi): Likewise.
8842 2013-11-04 Ian Lance Taylor <iant@google.com>
8844 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
8845 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
8846 builtins that take pointers.
8847 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
8848 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
8849 (run_gcc): Pass -fnon-call-exceptions.
8851 2013-11-04 Jakub Jelinek <jakub@redhat.com>
8853 * optabs.c (expand_vec_perm): Revert one incorrect line from
8856 PR tree-optimization/58978
8857 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
8858 use_stmt by single_imm_use directly. Only call single_imm_use
8861 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
8863 PR rtl-optimization/58968
8864 * lra-spills.c (return_regno_p): New function.
8865 (lra_final_code_change): Use it.
8867 2013-11-04 Joseph Myers <joseph@codesourcery.com>
8869 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
8870 * target.def (float_exceptions_rounding_supported_p): New hook.
8871 * targhooks.c (default_float_exceptions_rounding_supported_p): New
8873 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
8874 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
8876 * doc/tm.texi: Regenerate.
8877 * config.gcc (powerpc*-*-linux*): Set extra_objs.
8878 * config/rs6000/rs6000-linux.c: New file.
8879 * config/rs6000/rs6000-protos.h
8880 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
8881 * config/rs6000/linux.h
8882 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
8883 * config/rs6000/linux64.h
8884 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
8885 * config/rs6000/t-linux (rs6000-linux.o): New rule.
8886 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
8888 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8890 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
8891 Replace the define_insn_and_split with a define_insn and two
8892 define_splits, with the split after reload re-permuting the source
8893 register to its original value.
8894 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
8895 (*vsx_le_perm_store_v8hi): Likewise.
8896 (*vsx_le_perm_store_v16qi): Likewise.
8898 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8900 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
8903 2013-11-04 Jakub Jelinek <jakub@redhat.com>
8905 PR tree-optimization/58946
8906 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
8907 bbs with bbinfo[idx].op != NULL before all blocks with
8908 bbinfo[idx].op == NULL.
8910 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
8912 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
8913 (avr_dump_double_int_hex): Likewise.
8914 (avr_log_vadump): Remove %D and %X handling.
8915 * config/avr/avr.c (avr_double_int_push_digit): Delete.
8916 (avr_map_op_t): Change map from double_int to unsigned int.
8917 (avr_map_op): Update accordingly.
8918 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
8919 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
8920 unsigned ints rather than double_ints.
8922 2013-11-03 Marek Polacek <polacek@redhat.com>
8924 Implement -fsanitize=vla-bound.
8925 * opts.c (common_handle_option): Handle vla-bound.
8926 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
8927 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
8928 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
8930 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8932 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
8935 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
8937 * config/i386/constraints.md (Ts, Tv): New address constrains.
8938 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
8939 constraint for address_no_seg_operand.
8940 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
8941 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
8942 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
8943 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
8944 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
8945 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
8946 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
8947 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
8948 constraint for vsib_address_operand.
8950 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
8952 * gcse.c (pre_delete): Remove references to regmove from comments.
8953 * recog.c: (validate_replace_rtx_1): Likewise.
8954 * config/rl78/rl78.c: Likewise.
8955 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
8956 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
8957 * common/config/mmix/mmix-common.c: Likewise.
8959 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
8961 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
8962 * gimplify.c (gimplify_compound_lval): Likewise.
8963 * graphite-clast-to-gimple.c (gloog): Likewise.
8964 * graphite-dependences.c (loop_is_parallel_p): Likewise.
8965 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
8966 (limit_scop); Likewise.
8967 (build_scops): Likewise.
8968 (dot_scop): Likewise.
8969 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
8970 (build_scop_drs): Likewise.
8971 (insert_stmts): Likewise.
8972 (insert_out_of_ssa_copy): Likewise.
8973 (remove_phi): Likewise.
8974 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
8975 * hw-doloop.c (discover_loop): Likewise.
8976 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
8977 * tree-dfa.c (dump_enumerated_decls): Likewise.
8978 * tree-if-conv.c (if_convertable_loop_p): Likewise.
8979 * tree-inline.c (tree_function_versioning): Likewise.
8980 * tree-loop-distribution.c (build_rdg): Likewise.
8981 (rdg_flag_vertex_and_dependent): Likewise.
8982 (distribute_loop): Likewise.
8983 * tree-parloops.c (loop_parallel_p): Likewise.
8984 (eliminate_local_variables): Likewise.
8985 (separate_decls_in_region): Likewise.
8986 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
8987 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
8988 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
8989 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
8990 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
8991 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8992 (vectorizable_condition): Likewise.
8994 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
8996 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
8997 * configure: Regenerate.
8998 * config/i386/i386.md (*movdi_internal): Change
8999 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
9000 (*movdf_internal): Ditto.
9001 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
9002 * config/i386/sse.md (vec_concatv2di): Output interunit movq
9003 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
9005 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
9007 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
9010 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9012 Automated part of renaming of symtab_node_base to symtab_node.
9014 Patch autogenerated by rename_symtab.py from
9015 https://github.com/davidmalcolm/gcc-refactoring-scripts
9016 revision 58bb219cc090b2f4516a9297d868c245495ee622
9017 with ChangeLog entry fixed up by hand.
9019 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
9021 (cgraph_node_for_asm): Likewise.
9022 * cgraph.h (symtab_node_base): Likewise.
9023 (cgraph_node): Likewise.
9024 (varpool_node): Likewise.
9025 (is_a_helper <cgraph_node>::test): Likewise.
9026 (is_a_helper <varpool_node>::test): Likewise.
9027 (symtab_nodes): Likewise.
9028 (symtab_register_node): Likewise.
9029 (symtab_unregister_node): Likewise.
9030 (symtab_remove_node): Likewise.
9031 (symtab_get_node): Likewise.
9032 (symtab_node_for_asm): Likewise.
9033 (symtab_node_asm_name): Likewise.
9034 (symtab_node_name): Likewise.
9035 (symtab_insert_node_to_hashtable): Likewise.
9036 (symtab_add_to_same_comdat_group): Likewise.
9037 (symtab_dissolve_same_comdat_group_list): Likewise.
9038 (dump_symtab_node): Likewise.
9039 (debug_symtab_node): Likewise.
9040 (dump_symtab_base): Likewise.
9041 (verify_symtab_node): Likewise.
9042 (verify_symtab_base): Likewise.
9043 (symtab_used_from_object_file_p): Likewise.
9044 (symtab_alias_ultimate_target): Likewise.
9045 (symtab_resolve_alias): Likewise.
9046 (fixup_same_cpp_alias_visibility): Likewise.
9047 (symtab_for_node_and_aliases): Likewise.
9048 (symtab_nonoverwritable_alias): Likewise.
9049 (availability symtab_node_availability): Likewise.
9050 (symtab_semantically_equivalent_p): Likewise.
9051 (fixup_same_cpp_alias_visibility): Likewise.
9052 (symtab_prevail_in_asm_name_hash): Likewise.
9054 (varpool): Likewise.
9055 (varpool_first_variable): Likewise.
9056 (varpool_next_variable): Likewise.
9057 (varpool_first_static_initializer): Likewise.
9058 (varpool_next_static_initializer): Likewise.
9059 (varpool_first_defined_variable): Likewise.
9060 (varpool_next_defined_variable): Likewise.
9061 (cgraph_first_defined_function): Likewise.
9062 (cgraph_next_defined_function): Likewise.
9063 (cgraph_first_function): Likewise.
9064 (cgraph_next_function): Likewise.
9065 (cgraph_first_function_with_gimple_body): Likewise.
9066 (cgraph_next_function_with_gimple_body): Likewise.
9067 (symtab_alias_target): Likewise.
9068 (symtab_real_symbol_p): Likewise.
9069 (symtab_can_be_discarded): Likewise.
9070 * cgraphbuild.c (mark_address): Likewise.
9071 (mark_load): Likewise.
9072 (mark_store): Likewise.
9073 * cgraphunit.c (decide_is_symbol_needed): Likewise.
9075 (enqueue_node): Likewise.
9076 (referred_to_p): Likewise.
9077 (cgraph_process_same_body_aliases): Likewise.
9078 (analyze_functions): Likewise.
9079 (handle_alias_pairs): Likewise.
9080 (output_weakrefs): Likewise.
9081 (compile): Likewise.
9082 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9083 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9084 * ipa-prop.c (remove_described_reference): Likewise.
9085 (try_decrement_rdesc_refcount): Likewise.
9086 (ipa_edge_duplication_hook): Likewise.
9087 * ipa-ref.c (ipa_record_reference): Likewise.
9088 (ipa_maybe_record_reference): Likewise.
9089 (ipa_clone_ref): Likewise.
9090 (ipa_clone_references): Likewise.
9091 (ipa_clone_referring): Likewise.
9092 (ipa_find_reference): Likewise.
9093 (ipa_remove_stmt_references): Likewise.
9094 (ipa_clear_stmts_in_references): Likewise.
9095 * ipa-ref.h (symtab_node_base): Likewise.
9096 (ipa_ref): Likewise.
9097 (ipa_record_reference): Likewise.
9098 (ipa_maybe_record_reference): Likewise.
9099 (ipa_clone_references): Likewise.
9100 (ipa_clone_referring): Likewise.
9101 (ipa_clone_ref): Likewise.
9102 (ipa_find_reference): Likewise.
9103 (ipa_remove_stmt_references): Likewise.
9104 (ipa_clear_stmts_in_references): Likewise.
9105 * ipa-reference.c (ipa_reference_write_optimization_summary):
9107 * ipa.c (enqueue_node): Likewise.
9108 (process_references): Likewise.
9109 (walk_polymorphic_call_targets): Likewise.
9110 (symtab_remove_unreachable_nodes): Likewise.
9111 (address_taken_from_non_vtable_p): Likewise.
9112 (comdat_can_be_unshared_p_1): Likewise.
9113 (comdat_can_be_unshared_p): Likewise.
9114 (can_replace_by_local_alias): Likewise.
9115 (function_and_variable_visibility): Likewise.
9116 * is-a.h: Likewise (within example in comment).
9117 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
9118 (lto_symtab_encoder_encode): Likewise.
9119 (lto_symtab_encoder_delete_node): Likewise.
9120 (lto_symtab_encoder_in_partition_p): Likewise.
9121 (lto_set_symtab_encoder_in_partition): Likewise.
9122 (output_refs): Likewise.
9123 (compute_ltrans_boundary): Likewise.
9124 (output_symtab): Likewise.
9125 (input_node): Likewise.
9126 (input_ref): Likewise.
9127 (input_edge): Likewise.
9128 (input_cgraph_1): Likewise.
9129 (input_refs): Likewise.
9130 (output_cgraph_opt_summary): Likewise.
9131 (input_node_opt_summary): Likewise.
9132 (input_cgraph_opt_section): Likewise.
9133 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
9135 * lto-streamer-out.c (lto_output): Likewise.
9136 (output_symbol_p): Likewise.
9137 (produce_symtab): Likewise.
9138 * lto-streamer.h (lto_encoder_entry): Likewise.
9139 (lto_free_function_in_decl_state_for_node): Likewise.
9140 (lto_symtab_encoder_encode): Likewise.
9141 (lto_symtab_encoder_delete_node): Likewise.
9142 (lto_symtab_encoder_in_partition_p): Likewise.
9143 (lto_set_symtab_encoder_in_partition): Likewise.
9144 (lto_symtab_encoder_lookup): Likewise.
9145 (lsei_node): Likewise.
9146 (lto_symtab_encoder_deref): Likewise.
9147 * symtab.c (symtab_hash): Likewise.
9148 (assembler_name_hash): Likewise.
9149 (symtab_nodes): Likewise.
9150 (hash_node): Likewise.
9151 (eq_node): Likewise.
9152 (hash_node_by_assembler_name): Likewise.
9153 (eq_assembler_name): Likewise.
9154 (insert_to_assembler_name_hash): Likewise.
9155 (unlink_from_assembler_name_hash): Likewise.
9156 (symtab_prevail_in_asm_name_hash): Likewise.
9157 (symtab_register_node): Likewise.
9158 (symtab_insert_node_to_hashtable): Likewise.
9159 (symtab_unregister_node): Likewise.
9160 (symtab_get_node): Likewise.
9161 (symtab_remove_node): Likewise.
9162 (symtab_initialize_asm_name_hash): Likewise.
9163 (symtab_node_for_asm): Likewise.
9164 (symtab_add_to_same_comdat_group): Likewise.
9165 (symtab_dissolve_same_comdat_group_list): Likewise.
9166 (symtab_node_asm_name): Likewise.
9167 (symtab_node_name): Likewise.
9168 (dump_symtab_base): Likewise.
9169 (dump_symtab_node): Likewise.
9170 (dump_symtab): Likewise.
9171 (debug_symtab_node): Likewise.
9172 (verify_symtab_base): Likewise.
9173 (verify_symtab_node): Likewise.
9174 (verify_symtab): Likewise.
9175 (symtab_used_from_object_file_p): Likewise.
9176 (symtab_node_availability): Likewise.
9177 (symtab_alias_ultimate_target): Likewise.
9178 (fixup_same_cpp_alias_visibility): Likewise.
9179 (symtab_resolve_alias): Likewise.
9180 (symtab_for_node_and_aliases): Likewise.
9181 (symtab_for_node_and_aliases): Likewise.
9182 (symtab_nonoverwritable_alias_1): Likewise.
9183 (symtab_nonoverwritable_alias): Likewise.
9184 (symtab_semantically_equivalent_p): Likewise.
9185 * value-prof.c (init_node_map): Likewise.
9186 * varasm.c (find_decl): Likewise.
9187 * varpool.c (varpool_node_for_asm): Likewise.
9188 (varpool_remove_unreferenced_decls): Likewise.
9190 2013-10-31 David Malcolm <dmalcolm@redhat.com>
9192 Manual part of renaming of symtab_node_base to symtab_node.
9194 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
9195 clashes with the preferred name for the base class.
9196 (const_symtab_node): Remove redundant typedef.
9198 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9200 * optabs.c (expand_vec_perm): Avoid vector mode punning
9201 SUBREGs in SET_DEST.
9202 * expmed.c (store_bit_field_1): Likewise.
9203 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
9204 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
9205 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
9206 * config/i386/i386.c (ix86_expand_vector_move_misalign,
9207 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
9208 ix86_expand_sse_unpack, ix86_expand_args_builtin,
9209 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
9210 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
9211 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
9212 expand_vec_perm_vpshufb2_vpermq,
9213 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
9214 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
9215 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
9216 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
9219 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
9221 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
9222 Use gcc_unreachable for unhandled modes. Do not check results of
9223 expand_simple_binop. If not expanded to target, move the result.
9225 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
9226 Shiva Chen <shiva0217@gmail.com>
9228 * config.gcc (nds32*-*-*): Add nds32 target.
9229 * config/nds32/nds32.c: New file.
9230 * config/nds32/nds32.h: New file.
9231 * config/nds32/nds32.md: New file.
9232 * config/nds32/constants.md: New file.
9233 * config/nds32/constraints.md: New file.
9234 * config/nds32/iterators.md: New file.
9235 * config/nds32/nds32-doubleword.md: New file.
9236 * config/nds32/nds32-intrinsic.md: New file.
9237 * config/nds32/nds32_intrinsic.h: New file.
9238 * config/nds32/nds32-modes.def: New file.
9239 * config/nds32/nds32-multiple.md: New file.
9240 * config/nds32/nds32.opt: New file.
9241 * config/nds32/nds32-opts.h: New file.
9242 * config/nds32/nds32-protos.h: New file.
9243 * config/nds32/nds32-peephole2.md: New file.
9244 * config/nds32/pipelines.md: New file.
9245 * config/nds32/predicates.md: New file.
9246 * config/nds32/t-mlibs: New file.
9247 * common/config/nds32: New directory and files.
9249 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
9250 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
9251 * doc/install.texi (Cross-Compiler-Specific Options): Document
9252 --with-nds32-lib for nds32 target.
9253 * doc/extend.texi (Function Attributes, Target Builtins): Document
9254 nds32 specific attributes.
9256 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
9258 * lra-constraints (process_alt_operands): Use the result
9259 elimination register for operand when matching constraints.
9261 2013-10-31 Jakub Jelinek <jakub@redhat.com>
9263 * tree-vrp.c (maybe_set_nonzero_bits): New function.
9264 (remove_range_assertions): Call it.
9266 * tree.c (tree_ctz): New function.
9267 * tree.h (tree_ctz): New prototype.
9268 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
9269 first argument from tree to const_tree.
9270 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
9271 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
9272 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
9274 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
9275 * tree-vect-loop.c (vect_analyze_loop_operations,
9276 vect_transform_loop): Don't force scalar loop for bound just because
9277 number of iterations is unknown, only do it if it is not known to be
9278 a multiple of vectorization_factor.
9279 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
9281 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
9282 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
9283 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
9284 (set_nonzero_bits, get_nonzero_bits): New prototypes.
9285 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
9286 a default def isn't partially constant.
9287 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
9288 is known to be partially zero.
9289 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
9290 to see if a default def isn't partially constant.
9291 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
9292 creation of a range, if VR_RANGE, try to improve nonzero_bits from
9294 (set_nonzero_bits, get_nonzero_bits): New functions.
9296 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
9297 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
9298 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
9299 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
9300 uses but in the condition and ASSERT_EXPR and the other successor of
9301 the predecessor bb is __builtin_unreachable (), set_range_info of the
9302 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
9304 2013-10-31 Martin Jambor <mjambor@suse.cz>
9306 PR rtl-optimization/58934
9308 2013-10-30 Martin Jambor <mjambor@suse.cz>
9309 PR rtl-optimization/10474
9310 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9312 (interesting_dest_for_shprep): New function.
9313 (split_live_ranges_for_shrink_wrap): Likewise.
9314 (ira): Calculate dominance info and df analysis. Call
9315 split_live_ranges_for_shrink_wrap.
9317 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
9318 Yury Gribov <y.gribov@samsung.com>
9321 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
9322 shadow pointer to avoid clobbering the main one.
9324 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9326 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
9328 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9331 * ira-color.c (update_costs_from_copies): Add new parameter. Use
9332 it for calling update_costs_from_allocno.
9333 (assign_hard_reg): Call restore_costs_from_copies only for
9334 !retry_p. Pass new argument to update_costs_from_copies.
9335 (color_pass): Pass new argument to update_costs_from_copies.
9336 (ira_mark_allocation_change): Ditto.
9338 2013-10-30 Sharad Singhai <singhai@google.com>
9341 * opts.c (common_handle_option): Remove deprecated option
9342 -ftree-vectorizer-verbose.
9343 * doc/invoke.texi (Debugging Options): Ditto.
9344 * opts-global.c (handle_common_deferred_options): Ditto.
9345 (dump_remap_tree_vectorizer_verbose): Delete.
9346 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
9348 2013-10-30 DJ Delorie <dj@redhat.com>
9350 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
9351 that take no arguments.
9353 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
9356 * reload1.c (update_eliminables_and_spill): New function, broken
9358 (reload): Use it. Check for frame size change after frame size
9359 alignment, and call update_eliminables_and_spill first if continue-ing.
9361 2013-10-30 Cong Hou <congh@google.com>
9364 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
9365 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
9366 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
9368 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
9370 PR rtl-optimization/58369
9371 * reload1.c (compute_reload_subreg_offset): New function.
9372 (choose_reload_regs): Use it to pass endian-correct
9373 offset to subreg_regno_offset.
9375 2013-10-30 Tobias Burnus <burnus@net-b.de>
9378 * tree-cfg.c (replace_loop_annotate): Replace warning by
9381 2013-10-30 Jason Merrill <jason@redhat.com>
9383 * configure.ac (loose_warn): Add -Wno-format if
9384 --disable-build-format-warnings.
9386 2013-10-30 David Malcolm <dmalcolm@redhat.com>
9388 * cgraphunit.c (analyze_functions): Split symtab_node declarations
9389 onto multiple lines to make things easier for rename_symtab.py.
9391 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
9392 (symtab_semantically_equivalent_p): Likewise.
9394 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9397 * lra.c (check_rtl): Remove address check before LRA work.
9399 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
9401 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
9402 POINTER_PLUS_EXPR in the defining statement.
9404 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
9406 * regmove.c: Remove.
9407 * tree-pass.h (make_pass_regmove): Remove.
9408 * timevar.def (TV_REGMOVE): Remove.
9409 * passes.def (pass_regmove): Remove.
9410 * opts.c (default_options_table): Remove entry for regmove.
9411 * doc/passes.texi: Remove regmove pass description.
9412 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
9414 (-fdump-rtl-regmove): Ditto.
9415 * common.opt (foptimize-register-move, fregmove): Ignore.
9416 * Makefile.in (OBJS): Remove regmove.o.
9417 * regmove.c: Remove.
9418 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
9420 (struct ira_allocno) New member allocno_prefs.
9421 (ALLOCNO_PREFS): New macro.
9422 (ira_prefs, ira_prefs_num): New external vars.
9423 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
9424 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
9425 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
9427 (ira_add_allocno_copy_to_list): Remove prototype.
9428 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
9429 (ira_pref_iterator): New type.
9430 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
9431 (FOR_EACH_PREF): New macro.
9432 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
9433 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
9435 (ira_setup_alts): New function.
9436 (decrease_live_ranges_number): New function.
9437 (ira): Call the above function.
9438 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
9439 (ira_create_allocno): Initialize allocno prefs.
9440 (pref_pool, pref_vec): New static vars.
9441 (initiate_prefs, find_allocno_pref, ira_create_pref): New
9443 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
9444 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
9445 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
9446 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
9447 (ira_add_allocno_copy_to_list): Make static. Rename to
9448 add_allocno_copy_to_list.
9449 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
9450 swap_allocno_copy_ends_if_necessary.
9451 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
9452 ira_remove_allocno_prefs.
9453 (ira_flattening): Ditto.
9454 (ira_build): Call initiate_prefs, print_prefs.
9455 (ira_destroy): Call finish_prefs.
9456 * ira-color.c (struct update_cost_record): New.
9457 (struct allocno_color_data): Add new member update_cost_records.
9458 (update_cost_record_pool): New static var.
9459 (init_update_cost_records, get_update_cost_record): New functions.
9460 (free_update_cost_record_list, finish_update_cost_records): Ditto.
9461 (struct update_cost_queue_elem): Add member from.
9462 (initiate_cost_update): Call init_update_cost_records.
9463 (finish_cost_update): Call finish_update_cost_records.
9464 (queue_update_cost, get_next_update_cost): Add new param from.
9465 (Update_allocno_cost, update_costs_from_allocno): New functions.
9466 (update_costs_from_prefs): Ditto.
9467 (update_copy_costs): Rename to update_costs_from_copies.
9468 (restore_costs_from_copies): New function.
9469 (update_conflict_hard_regno_costs): Don't go back.
9470 (assign_hard_reg): Call restore_costs_from_copies. Add printing
9472 (pop_allocnos): Add priniting more debug info.
9473 (color_allocnos): Remove prefs for conflicting hard regs.
9474 Call update_costs_from_prefs.
9475 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
9476 (get_dup_num): Rename, modify, and move to ira.c
9477 (process_regs_for_copy): Add prefs.
9478 (add_insn_allocno_copies): Put src as first arg of
9479 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
9480 * ira-costs.c (record_reg_classes): Modify and move code into
9481 record_operands_costs.
9482 (find_costs_and_classes): Create prefs for the hard reg of small
9484 (process_bb_node_for_hard_reg_moves): Add prefs.
9486 2013-10-30 Richard Biener <rguenther@suse.de>
9489 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
9490 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
9492 (pre_and_rev_post_order_compute): ... which now wraps it.
9493 * graph.c (draw_cfg_nodes_no_loops): Use
9494 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
9497 2013-10-30 Christian Bruel <christian.bruel@st.com>
9499 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
9500 (sh_expand_cmpstr): Handle known align and schedule improvements.
9501 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
9502 * config/sh/sh.md (cmpstrnsi): New pattern.
9504 2013-10-30 Martin Jambor <mjambor@suse.cz>
9506 PR rtl-optimization/10474
9507 * ira.c (find_moveable_pseudos): Do not calculate dominance info
9509 (interesting_dest_for_shprep): New function.
9510 (split_live_ranges_for_shrink_wrap): Likewise.
9511 (ira): Calculate dominance info and df analysis. Call
9512 split_live_ranges_for_shrink_wrap.
9514 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9517 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
9519 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9521 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9522 * tree.h (POINTER_BOUNDS_P): New.
9523 (BOUNDED_TYPE_P): New.
9525 (pointer_bounds_type_node): New.
9526 * tree.c (build_common_tree_nodes): Initialize
9527 pointer_bounds_type_node.
9528 * gimple.h (gimple_call_get_nobnd_arg_index): New.
9529 (gimple_call_num_nobnd_args): New.
9530 (gimple_call_nobnd_arg): New.
9531 (gimple_return_retbnd): New.
9532 (gimple_return_set_retbnd): New
9533 * gimple.c (gimple_build_return): Increase number of ops
9534 for return statement.
9535 (gimple_call_get_nobnd_arg_index): New.
9536 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9538 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9540 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9541 with "chkp ctor" and "bnd_legacy" attributes.
9542 * gimplify.c (gimplify_init_constructor): Avoid infinite
9543 loop during gimplification of bounds initializer.
9545 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9547 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9548 (handle_bnd_legacy): New.
9549 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
9550 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
9553 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
9555 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
9556 (BT_FN_PTR_CONST_PTR): New.
9557 (BT_FN_CONST_PTR_CONST_PTR): New.
9558 (BT_FN_PTR_CONST_PTR_SIZE): New.
9559 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9560 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9561 (BT_FN_VOID_CONST_PTR_SIZE): New.
9562 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9563 * chkp-builtins.def: New.
9564 * builtins.def: include chkp-builtins.def.
9565 (DEF_CHKP_BUILTIN): New.
9566 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9567 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9568 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9569 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9570 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9571 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9572 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9573 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9574 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
9575 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9576 * common.opt (fcheck-pointer-bounds): New.
9577 * toplev.c (process_options): Check Pointer Bounds Checker is
9579 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
9581 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
9583 * target.def (builtin_chkp_function): New.
9584 (chkp_bound_type): New.
9585 (chkp_bound_mode): New.
9586 (fn_abi_va_list_bounds_size): New.
9587 (load_bounds_for_arg): New.
9588 (store_bounds_for_arg): New.
9589 * targhooks.h (default_load_bounds_for_arg): New.
9590 (default_store_bounds_for_arg): New.
9591 (default_fn_abi_va_list_bounds_size): New.
9592 (default_chkp_bound_type): New.
9593 (default_chkp_bound_mode): New.
9594 (default_builtin_chkp_function): New.
9595 * targhooks.c (default_load_bounds_for_arg): New.
9596 (default_store_bounds_for_arg): New.
9597 (default_fn_abi_va_list_bounds_size): New.
9598 (default_chkp_bound_type): New.
9599 (default_chkp_bound_mode); New.
9600 (default_builtin_chkp_function): New.
9601 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
9602 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9603 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9604 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9605 (TARGET_CHKP_BOUND_TYPE): New.
9606 (TARGET_CHKP_BOUND_MODE): New.
9607 * doc/tm.texi: Regenerated.
9608 * langhooks.h (lang_hooks): Add chkp_supported field.
9609 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
9610 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
9612 2013-10-29 Andrew Pinski <apinski@cavium.com>
9614 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
9615 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
9616 fails, combining the branches anyways.
9617 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
9618 increases the number of combinings.
9619 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
9621 2013-10-29 Mike Stump <mikestump@comcast.net>
9623 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
9624 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
9625 (make_vector_mode): Increase namebuf to 16.
9626 (emit_insn_modes_h): When processing BImode, don't
9627 also match partial int modes.
9628 (emit_class_narrowest_mode): Likewise.
9630 * config/bfin/bfin-modes.def: Add precision to PDI.
9631 * config/m32c/m32c-modes.def: Add precision to PSI.
9632 * config/msp430/msp430-modes.def: Add precision to PSI.
9633 * config/rs6000/rs6000-modes.def: Add precision to PTI.
9634 * config/sh/sh-modes.def: Add precision to PSI and PDI.
9636 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
9639 * config/sh/sh.md (*addc): Rename existing variations to ...
9640 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
9641 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
9642 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
9643 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
9645 2013-10-29 Teresa Johnson <tejohnson@google.com>
9648 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
9649 insanities when updating probabilities.
9651 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9653 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
9654 prettyprinter for cgraph_node to reflect the conversion of the
9655 symtable types to a C++ class hierarchy: it now *is* a
9656 symtab_node_base, rather than having one (named "symbol").
9658 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
9660 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
9661 __cilkrts_pop_frame. If matched, then return true for built-in
9663 (expand_builtin): Added BUILT_IN_CILK_DETACH and
9664 BUILT_IN_CILK_POP_FRAME case.
9665 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
9666 (lhs_cilk_detect_spawn): Likewise.
9667 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
9668 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
9669 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
9670 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
9671 (LANG_HOOKS_CILKPLUS): Likewise.
9672 * tree.h (CILK_SPAWN_FN): Likewise.
9673 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
9674 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
9675 (OBJS): Added cilk-common.o.
9676 (BUILTINS_DEF): Added cilk-builtins.def.
9677 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
9678 (lhd_cilk_detect_spawn): Likewise.
9679 * langhooks.h (lang_hooks_for_cilkplus): New struct.
9680 (struct lang_hooks): Added new field called "cilkplus."
9681 * cilk-common.c: New file.
9683 * cilk-builtins.def: Likewise.
9684 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
9685 "__cilk" macro and set it to 200.
9686 * function.h (struct function::cilk_frame_decl): New field.
9687 (struct function::is_cilk_function): Likewise.
9688 (struct function::calls_cilk_spawn): Likewise.
9689 * gimplify.c (gimplify_call_expr): Added a check if the function call
9690 being gimplified is a spawn detach point. If so, then add pop_frame
9691 and detach function calls.
9692 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
9693 for gimplifying _Cilk_spawn and _Cilk_sync statements.
9694 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
9695 function. If so, added a _Cilk_sync and gimplified it.
9696 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
9697 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
9698 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
9700 (can_inline_edge_p): Prevent inling of spawnee function.
9701 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
9702 for functions that use Cilk keywords.
9703 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
9704 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
9705 CILK_SYNC_STMT cases.
9706 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
9708 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
9709 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
9710 * passes.texi (Cilk Keywords): New section that describes the compiler
9711 code changes for handling Cilk Keywords.
9713 2013-10-29 David Malcolm <dmalcolm@redhat.com>
9715 Patch autogenerated by refactor_symtab.py from
9716 https://github.com/davidmalcolm/gcc-refactoring-scripts
9717 revision 58bb219cc090b2f4516a9297d868c245495ee622
9719 * asan.c (asan_finish_file): Update for conversion of symtab types to
9720 a true class hierarchy.
9721 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9722 * cgraph.c (cgraph_get_body): Likewise.
9723 (cgraph_get_create_real_symbol_node): Likewise.
9724 (verify_cgraph_node): Likewise.
9725 (verify_edge_corresponds_to_fndecl): Likewise.
9726 (verify_edge_count_and_frequency): Likewise.
9727 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
9728 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
9729 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
9730 (cgraph_node_cannot_return): Likewise.
9731 (cgraph_set_pure_flag_1): Likewise.
9732 (cgraph_set_const_flag_1): Likewise.
9733 (cgraph_set_nothrow_flag_1): Likewise.
9734 (cgraph_make_node_local_1): Likewise.
9735 (cgraph_for_node_and_aliases): Likewise.
9736 (cgraph_for_node_thunks_and_aliases): Likewise.
9737 (cgraph_node_can_be_local_p): Likewise.
9738 (cgraph_node_cannot_be_local_p_1): Likewise.
9739 (cgraph_function_body_availability): Likewise.
9740 (dump_cgraph_node): Likewise.
9741 (cgraph_rtl_info): Likewise.
9742 (cgraph_mark_address_taken_node): Likewise.
9743 (cgraph_remove_node): Likewise.
9744 (cgraph_release_function_body): Likewise.
9745 (cgraph_update_edges_for_call_stmt_node): Likewise.
9746 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
9747 (cgraph_make_edge_direct): Likewise.
9748 (cgraph_resolve_speculation): Likewise.
9749 (cgraph_speculative_call_info): Likewise.
9750 (cgraph_turn_edge_to_speculative): Likewise.
9751 (cgraph_create_edge_1): Likewise.
9752 (cgraph_set_call_stmt): Likewise.
9753 (cgraph_node_for_asm): Likewise.
9754 (cgraph_add_thunk): Likewise.
9755 (cgraph_same_body_alias): Likewise.
9756 (cgraph_create_function_alias): Likewise.
9757 (cgraph_create_node): Likewise.
9758 (cgraph_create_empty_node): Likewise.
9759 (record_function_versions): Likewise.
9760 (used_from_object_file_p): Likewise.
9761 * cgraph.h (symtab_can_be_discarded): Likewise.
9762 (symtab_real_symbol_p): Likewise.
9763 (cgraph_mark_force_output_node): Likewise.
9764 (cgraph_edge_recursive_p): Likewise.
9765 (symtab_alias_target): Likewise.
9766 (varpool_all_refs_explicit_p): Likewise.
9767 (varpool_can_remove_if_no_refs): Likewise.
9768 (cgraph_only_called_directly_or_aliased_p): Likewise.
9769 (cgraph_next_function_with_gimple_body): Likewise.
9770 (cgraph_first_function_with_gimple_body): Likewise.
9771 (cgraph_function_with_gimple_body_p): Likewise.
9772 (cgraph_next_function): Likewise.
9773 (cgraph_first_function): Likewise.
9774 (cgraph_next_defined_function): Likewise.
9775 (cgraph_first_defined_function): Likewise.
9776 (varpool_next_defined_variable): Likewise.
9777 (varpool_first_defined_variable): Likewise.
9778 (varpool_next_static_initializer): Likewise.
9779 (varpool_first_static_initializer): Likewise.
9780 (varpool_next_variable): Likewise.
9781 (varpool_first_variable): Likewise.
9782 (varpool_node_name): Likewise.
9783 (varpool): Likewise.
9785 (is_a_helper <varpool_node>::test): Likewise.
9786 (is_a_helper <cgraph_node>::test): Likewise.
9787 (varpool_variable_node): Likewise.
9788 (cgraph_function_or_thunk_node): Likewise.
9789 (varpool_alias_target): Likewise.
9790 (cgraph_alias_target): Likewise.
9791 (cgraph_node_name): Likewise.
9792 (varpool_node_asm_name): Likewise.
9793 (cgraph_node_asm_name): Likewise.
9794 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
9795 (cgraph_rebuild_references): Likewise.
9796 (rebuild_cgraph_edges): Likewise.
9797 (record_eh_tables): Likewise.
9798 (build_cgraph_edges): Likewise.
9799 (mark_store): Likewise.
9800 (mark_load): Likewise.
9801 (mark_address): Likewise.
9802 (record_type_list): Likewise.
9803 (record_reference): Likewise.
9804 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
9805 (cgraph_materialize_clone): Likewise.
9806 (cgraph_function_versioning): Likewise.
9807 (cgraph_copy_node_for_versioning): Likewise.
9808 (update_call_expr): Likewise.
9809 (cgraph_find_replacement_node): Likewise.
9810 (cgraph_create_virtual_clone): Likewise.
9811 (cgraph_clone_node): Likewise.
9812 * cgraphunit.c (compile): Likewise.
9813 (output_weakrefs): Likewise.
9814 (output_in_order): Likewise.
9815 (expand_function): Likewise.
9816 (assemble_thunks_and_aliases): Likewise.
9817 (expand_thunk): Likewise.
9818 (mark_functions_to_output): Likewise.
9819 (handle_alias_pairs): Likewise.
9820 (analyze_functions): Likewise.
9821 (walk_polymorphic_call_targets): Likewise.
9822 (varpool_finalize_decl): Likewise.
9823 (process_function_and_variable_attributes): Likewise.
9824 (cgraph_process_same_body_aliases): Likewise.
9825 (analyze_function): Likewise.
9826 (cgraph_add_new_function): Likewise.
9827 (cgraph_finalize_function): Likewise.
9828 (referred_to_p): Likewise.
9829 (cgraph_reset_node): Likewise.
9830 (cgraph_process_new_functions): Likewise.
9831 (enqueue_node): Likewise.
9832 (decide_is_symbol_needed): Likewise.
9833 * coverage.c (coverage_compute_profile_id): Likewise.
9834 * dbxout.c (dbxout_expand_expr): Likewise.
9835 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
9836 (reference_to_unused): Likewise.
9837 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9838 * gimplify.c (unvisit_body): Likewise.
9839 (unshare_body): Likewise.
9840 * ipa-cp.c (ipcp_generate_summary): Likewise.
9841 (ipcp_decision_stage): Likewise.
9842 (identify_dead_nodes): Likewise.
9843 (decide_whether_version_node): Likewise.
9844 (decide_about_value): Likewise.
9845 (perhaps_add_new_callers): Likewise.
9846 (create_specialized_node): Likewise.
9847 (update_profiling_info): Likewise.
9848 (ipcp_propagate_stage): Likewise.
9849 (estimate_local_effects): Likewise.
9850 (good_cloning_opportunity_p): Likewise.
9851 (devirtualization_time_bonus): Likewise.
9852 (propagate_constants_accross_call): Likewise.
9853 (initialize_node_lattices): Likewise.
9854 (ipcp_cloning_candidate_p): Likewise.
9855 (determine_versionability): Likewise.
9856 (print_all_lattices): Likewise.
9857 (print_lattice): Likewise.
9858 (ipcp_discover_new_direct_edges): Likewise.
9859 * ipa-devirt.c (ipa_devirt): Likewise.
9860 (likely_target_p): Likewise.
9861 (update_type_inheritance_graph): Likewise.
9862 (possible_polymorphic_call_target_p): Likewise.
9863 (dump_possible_polymorphic_call_targets): Likewise.
9864 (devirt_variable_node_removal_hook): Likewise.
9865 (record_binfo): Likewise.
9866 (maybe_record_node): Likewise.
9867 (build_type_inheritance_graph): Likewise.
9868 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9869 (inline_generate_summary): Likewise.
9870 (inline_analyze_function): Likewise.
9871 (do_estimate_growth): Likewise.
9872 (simple_edge_hints): Likewise.
9873 (estimate_node_size_and_time): Likewise.
9874 (estimate_edge_devirt_benefit): Likewise.
9875 (compute_inline_parameters): Likewise.
9876 (estimate_function_body_sizes): Likewise.
9877 (compute_bb_predicates): Likewise.
9878 (initialize_inline_failed): Likewise.
9879 (dump_inline_summary): Likewise.
9880 (dump_inline_edge_summary): Likewise.
9881 * ipa-inline-transform.c (inline_transform): Likewise.
9882 (preserve_function_body_p): Likewise.
9883 (save_inline_function_body): Likewise.
9884 (inline_call): Likewise.
9885 (clone_inlined_nodes): Likewise.
9886 (can_remove_node_now_p): Likewise.
9887 (can_remove_node_now_p_1): Likewise.
9888 * ipa-inline.c (early_inliner): Likewise.
9889 (early_inline_small_functions): Likewise.
9890 (inline_always_inline_functions): Likewise.
9891 (ipa_inline): Likewise.
9892 (flatten_function): Likewise.
9893 (inline_small_functions): Likewise.
9894 (speculation_useful_p): Likewise.
9895 (recursive_inlining): Likewise.
9896 (update_caller_keys): Likewise.
9897 (reset_edge_caches): Likewise.
9898 (update_edge_key): Likewise.
9899 (edge_badness): Likewise.
9900 (relative_time_benefit): Likewise.
9901 (want_inline_self_recursive_call_p): Likewise.
9902 (want_inline_small_function_p): Likewise.
9903 (want_early_inline_function_p): Likewise.
9904 (num_calls): Likewise.
9905 (can_early_inline_edge_p): Likewise.
9906 (can_inline_edge_p): Likewise.
9907 (report_inline_failed_reason): Likewise.
9908 * ipa-profile.c (ipa_profile): Likewise.
9909 (ipa_propagate_frequency): Likewise.
9910 (ipa_propagate_frequency_1): Likewise.
9911 (ipa_profile_generate_summary): Likewise.
9912 * ipa-prop.c (ipcp_transform_function): Likewise.
9913 (read_replacements_section): Likewise.
9914 (ipa_prop_read_section): Likewise.
9915 (ipa_modify_call_arguments): Likewise.
9916 (ipa_print_node_params): Likewise.
9917 (propagate_controlled_uses): Likewise.
9918 (update_indirect_edges_after_inlining): Likewise.
9919 (remove_described_reference): Likewise.
9920 (ipa_make_edge_direct_to_target): Likewise.
9921 (ipa_analyze_node): Likewise.
9922 (ipa_analyze_params_uses): Likewise.
9923 (ipa_compute_jump_functions): Likewise.
9924 (ipa_get_callee_param_type): Likewise.
9925 (ipa_print_node_jump_functions): Likewise.
9926 (ipa_initialize_node_params): Likewise.
9927 (ipa_populate_param_decls): Likewise.
9928 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
9929 (write_agg_replacement_chain): Likewise.
9930 (ipa_write_node_info): Likewise.
9931 (ipa_edge_duplication_hook): Likewise.
9932 (try_decrement_rdesc_refcount): Likewise.
9933 * ipa-pure-const.c (propagate_nothrow): Likewise.
9934 (propagate_pure_const): Likewise.
9935 (pure_const_read_summary): Likewise.
9936 (pure_const_write_summary): Likewise.
9937 (analyze_function): Likewise.
9938 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
9939 (ipa_ref_referring_ref_list): Likewise.
9940 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
9941 (ipa_remove_stmt_references): Likewise.
9942 (ipa_find_reference): Likewise.
9943 (ipa_dump_referring): Likewise.
9944 (ipa_dump_references): Likewise.
9945 (ipa_record_reference): Likewise.
9946 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
9947 (ipa_reference_write_optimization_summary): Likewise.
9948 (write_node_summary_p): Likewise.
9949 (propagate): Likewise.
9950 (read_write_all_from_decl): Likewise.
9951 (generate_summary): Likewise.
9952 (analyze_function): Likewise.
9953 (propagate_bits): Likewise.
9954 (ipa_reference_get_not_written_global): Likewise.
9955 (ipa_reference_get_not_read_global): Likewise.
9956 * ipa-split.c (execute_split_functions): Likewise.
9957 (split_function): Likewise.
9958 * ipa-utils.c (ipa_merge_profiles): Likewise.
9959 (dump_cgraph_node_set): Likewise.
9960 (ipa_reverse_postorder): Likewise.
9961 (ipa_edge_within_scc): Likewise.
9962 (ipa_get_nodes_in_cycle): Likewise.
9963 (ipa_free_postorder_info): Likewise.
9964 (ipa_reduced_postorder): Likewise.
9965 (searchc): Likewise.
9966 (recursive_call_p): Likewise.
9967 * ipa.c (ipa_cdtor_merge): Likewise.
9968 (record_cdtor_fn): Likewise.
9969 (function_and_variable_visibility): Likewise.
9970 (varpool_externally_visible_p): Likewise.
9971 (cgraph_externally_visible_p): Likewise.
9972 (comdat_can_be_unshared_p): Likewise.
9973 (comdat_can_be_unshared_p_1): Likewise.
9974 (address_taken_from_non_vtable_p): Likewise.
9975 (ipa_discover_readonly_nonaddressable_vars): Likewise.
9976 (symtab_remove_unreachable_nodes): Likewise.
9977 (walk_polymorphic_call_targets): Likewise.
9978 (process_references): Likewise.
9979 (enqueue_node): Likewise.
9980 (has_addr_references_p): Likewise.
9981 (cgraph_non_local_node_p_1): Likewise.
9982 * is-a.h (varpool_analyze_node): Likewise.
9983 * lto-cgraph.c (input_symtab): Likewise.
9984 (merge_profile_summaries): Likewise.
9985 (input_cgraph_1): Likewise.
9986 (input_edge): Likewise.
9987 (input_varpool_node): Likewise.
9988 (input_node): Likewise.
9989 (input_overwrite_node): Likewise.
9990 (compute_ltrans_boundary): Likewise.
9991 (output_refs): Likewise.
9992 (lto_output_varpool_node): Likewise.
9993 (lto_output_node): Likewise.
9994 (reachable_from_other_partition_p): Likewise.
9995 (referenced_from_other_partition_p): Likewise.
9996 (lto_output_edge): Likewise.
9997 (output_node_opt_summary): Likewise.
9998 (add_node_to): Likewise.
9999 (reachable_from_this_partition_p): Likewise.
10000 (lto_set_symtab_encoder_in_partition): Likewise.
10001 (lto_symtab_encoder_in_partition_p): Likewise.
10002 (lto_set_symtab_encoder_encode_initializer): Likewise.
10003 (lto_symtab_encoder_encode_initializer_p): Likewise.
10004 (lto_set_symtab_encoder_encode_body): Likewise.
10005 (lto_symtab_encoder_encode_body_p): Likewise.
10006 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10008 * lto-streamer-in.c (lto_read_body): Likewise.
10009 (fixup_call_stmt_edges): Likewise.
10010 (fixup_call_stmt_edges_1): Likewise.
10011 * lto-streamer-out.c (produce_symtab): Likewise.
10012 (output_symbol_p): Likewise.
10013 (write_symbol): Likewise.
10014 (lto_output): Likewise.
10015 (copy_function): Likewise.
10016 (output_function): Likewise.
10017 * passes.c (function_called_by_processed_nodes_p): Likewise.
10018 (ipa_write_optimization_summaries): Likewise.
10019 (ipa_write_summaries): Likewise.
10020 (do_per_function_toporder): Likewise.
10021 (do_per_function): Likewise.
10022 (dump_passes): Likewise.
10023 * symtab.c (symtab_semantically_equivalent_p): Likewise.
10024 (symtab_nonoverwritable_alias): Likewise.
10025 (symtab_nonoverwritable_alias_1): Likewise.
10026 (symtab_for_node_and_aliases): Likewise.
10027 (symtab_resolve_alias): Likewise.
10028 (fixup_same_cpp_alias_visibility): Likewise.
10029 (symtab_alias_ultimate_target): Likewise.
10030 (symtab_used_from_object_file_p): Likewise.
10031 (verify_symtab_base): Likewise.
10032 (dump_symtab_base): Likewise.
10033 (symtab_node_name): Likewise.
10034 (symtab_node_asm_name): Likewise.
10035 (symtab_dissolve_same_comdat_group_list): Likewise.
10036 (symtab_add_to_same_comdat_group): Likewise.
10037 (symtab_unregister_node): Likewise.
10038 (symtab_insert_node_to_hashtable): Likewise.
10039 (symtab_register_node): Likewise.
10040 (unlink_from_assembler_name_hash): Likewise.
10041 (insert_to_assembler_name_hash): Likewise.
10042 (eq_assembler_name): Likewise.
10043 (hash_node_by_assembler_name): Likewise.
10044 (eq_node): Likewise.
10045 (hash_node): Likewise.
10046 * toplev.c (wrapup_global_declaration_2): Likewise.
10047 * trans-mem.c (ipa_tm_execute): Likewise.
10048 (ipa_tm_transform_clone): Likewise.
10049 (ipa_tm_transform_transaction): Likewise.
10050 (ipa_tm_transform_calls_redirect): Likewise.
10051 (ipa_tm_insert_gettmclone_call): Likewise.
10052 (ipa_tm_insert_irr_call): Likewise.
10053 (ipa_tm_create_version): Likewise.
10054 (ipa_tm_create_version_alias): Likewise.
10055 (ipa_tm_mark_forced_by_abi_node): Likewise.
10056 (ipa_tm_mark_force_output_node): Likewise.
10057 (ipa_tm_diagnose_tm_safe): Likewise.
10058 (ipa_tm_mayenterirr_function): Likewise.
10059 (ipa_tm_scan_irr_function): Likewise.
10060 (ipa_tm_note_irrevocable): Likewise.
10061 (ipa_tm_scan_calls_clone): Likewise.
10062 (get_cg_data): Likewise.
10063 * tree-eh.c (tree_could_trap_p): Likewise.
10064 * tree-emutls.c (ipa_lower_emutls): Likewise.
10065 (create_emultls_var): Likewise.
10066 (lower_emutls_function_body): Likewise.
10067 (gen_emutls_addr): Likewise.
10068 (emutls_decl): Likewise.
10069 (new_emutls_decl): Likewise.
10070 * tree-inline.c (tree_function_versioning): Likewise.
10071 (optimize_inline_calls): Likewise.
10072 (expand_call_inline): Likewise.
10073 (estimate_num_insns): Likewise.
10074 (copy_bb): Likewise.
10075 (delete_unreachable_blocks_update_callgraph): Likewise.
10076 * tree-nested.c (gimplify_all_functions): Likewise.
10077 (create_nesting_tree): Likewise.
10078 (check_for_nested_with_variably_modified): Likewise.
10079 * tree-pretty-print.c (dump_function_header): Likewise.
10080 * tree-profile.c (tree_profiling): Likewise.
10081 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
10082 (modify_function): Likewise.
10083 (convert_callers): Likewise.
10084 (convert_callers_for_node): Likewise.
10085 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10086 (associate_varinfo_to_alias): Likewise.
10087 (create_variable_info_for): Likewise.
10088 (get_constraint_for_ssa_var): Likewise.
10089 * tree-vectorizer.c (increase_alignment): Likewise.
10090 * tree.c (find_decls_types_in_var): Likewise.
10091 (find_decls_types_in_node): Likewise.
10092 (free_lang_data_in_decl): Likewise.
10093 * value-prof.c (gimple_ic_transform): Likewise.
10094 (gimple_ic): Likewise.
10095 (check_ic_target): Likewise.
10096 (init_node_map): Likewise.
10097 * varasm.c (decl_binds_to_current_def_p): Likewise.
10098 (default_binds_local_p_1): Likewise.
10099 (dump_tm_clone_pairs): Likewise.
10100 (assemble_alias): Likewise.
10101 (find_decl): Likewise.
10102 (mark_decl_referenced): Likewise.
10103 * varpool.c (varpool_for_node_and_aliases): Likewise.
10104 (varpool_extra_name_alias): Likewise.
10105 (varpool_create_variable_alias): Likewise.
10106 (add_new_static_var): Likewise.
10107 (varpool_finalize_named_section_flags): Likewise.
10108 (varpool_remove_unreferenced_decls): Likewise.
10109 (enqueue_node): Likewise.
10110 (varpool_assemble_decl): Likewise.
10111 (assemble_aliases): Likewise.
10112 (varpool_analyze_node): Likewise.
10113 (cgraph_variable_initializer_availability): Likewise.
10114 (varpool_add_new_variable): Likewise.
10115 (ctor_for_folding): Likewise.
10116 (dump_varpool_node): Likewise.
10117 (varpool_remove_initializer): Likewise.
10118 (varpool_remove_node): Likewise.
10119 (varpool_node_for_decl): Likewise.
10120 (varpool_create_empty_node): Likewise.
10121 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
10122 (ix86_get_function_versions_dispatcher): Likewise.
10124 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10126 * cgraph.h (symtab_node_base): Convert to a class;
10127 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
10128 chain_next/prev from symtab_node_def.
10129 (cgraph_node): Inherit from symtab_node; add GTY option
10130 tag ("SYMTAB_FUNCTION").
10131 (varpool_node): Inherit from symtab_node; add GTY option
10132 tag ("SYMTAB_VARIABLE").
10133 (symtab_node_def): Remove.
10134 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
10135 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
10136 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
10137 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
10139 * ipa-ref.h (symtab_node_def): Drop.
10140 (symtab_node): Change underlying type from symtab_node_def to
10142 (const_symtab_node): Likwise.
10144 * is-a.h: Update examples in comment.
10146 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
10147 (assembler_name_hash): Likewise.
10149 2013-10-29 Martin Liska <marxin.liska@gmail.com>
10151 * doc/tree-ssa.texi (gimple_phi_result): Document.
10152 (gimple_phi_num_args, gimple_phi_arg): Likewise.
10153 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
10154 (PHI_RESULT, PHI_NUM_ARGS): Remove.
10155 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
10157 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10159 * expr.h: Revert change and include tree-core.h.
10160 * rtl.h: Revert change and don't include tree-core.h.
10162 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10164 * config/darwin.c: Include gimple.h.
10165 * config/i386/winnt.c: Likewise.
10167 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
10169 PR tree-optimization/19831
10170 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
10172 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
10174 * tree-outof-ssa.h: Remove include files.
10175 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
10176 * expr.c: Likewise.
10177 * tree-ssa-coalesce.c: Likewise.
10178 * cfgexpand.c: Likewise.
10179 * tree-ssa-ter.c: Likewise.
10180 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
10181 * lto-streamer.h: Likewise.
10182 * cgraphbuild.c: Add gimple.h to include list.
10183 * data-streamer-in.c: Likewise.
10184 * ipa-cp.c: Likewise.
10185 * tree-streamer.c: Likewise.
10186 * lto-compress.c: Likewise.
10187 * ipa-reference.c: Likewise.
10188 * data-streamer-out.c: Likewise.
10189 * lto-cgraph.c: Likewise.
10190 * cgraphclones.c: Likewise.
10191 * ipa-utils.c: Likewise.
10192 * data-streamer.c: Likewise.
10193 * ipa-split.c: Likewise.
10194 * lto-section-in.c: Likewise.
10195 * tree-streamer-out.c: Likewise.
10196 * ipa-prop.c: Likewise.
10197 * tree-streamer-in.c: Likewise.
10198 * symtab.c: Likewise.
10199 * opts-global.c: Likewise.
10200 * lto-opts.c: Likewise.
10201 * lto-section-out.c: Likewise.
10202 * lto-streamer.c: Likewise.
10203 * rtl.h: Add tree-core.h to include list.
10204 * expr.h: Remove tree-core.h from include list.
10205 * gimple.h: Likewise.
10206 * ipa-utils.h: Likewise.
10207 * streamer-hooks.h: Likewise.
10208 * streamer-hooks.c: Include input.h.
10210 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10212 * config/arm/arm.c (cortexa7_extra_costs): New table.
10213 (arm_cortex_a7_tune): New.
10214 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
10216 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
10218 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
10220 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10222 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
10223 to use autogenerated markers for a class-hierarchy, every class
10224 must have a GTY marker.
10225 * gengtype.h (struct type): Add linked list of subclasses to
10226 the "s" member of the union.
10227 (add_subclass): New decl.
10228 * gengtype-state.c (read_state_struct_type): Set up subclass
10230 * gengtype.c (get_ultimate_base_class): New.
10231 (add_subclass): New.
10232 (new_structure): Set up subclass linked list.
10233 (set_gc_used_type): Propagate usage information to subclasses.
10234 (output_mangled_typename): Use get_ultimate_base_class.
10235 (walk_subclasses): Use the subclass linked list, avoiding an
10236 O(N^2) when writing out all types.
10237 (walk_type): Issue an error if the base class is missing a tag,
10238 rather than generating bogus C code. Add a gcc_unreachable
10239 default case, in case people omit tags from concrete subclasses,
10240 or get the values wrong.
10241 (write_func_for_structure): Issue an error for subclasses for
10242 which the base doesn't have a "desc", since otherwise the
10243 autogenerated routines for the base would silently fail to visit
10244 any subclass fields.
10245 (write_root): Use get_ultimate_base_class, tweaking constness of
10246 tp to match that function's signature.
10248 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10250 * doc/gty.texi (GTY Options): Add note about inheritance to
10251 description of desc and tag.
10252 (Inheritance and GTY): New.
10254 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10256 * gengtype-parse.c (opts_have): Drop "static" so that
10257 we can use this from gengtype.c.
10258 * gengtype.c (set_gc_used_type): Mark any base class as used;
10259 update field traversal to visit inherited fields.
10260 (output_mangled_typename): Convert references to classes within
10261 an inheritance hierarchy to reference the ultimate base class,
10262 since only it will have gt_ functions.
10263 (get_string_option): New.
10264 (walk_subclasses): New.
10265 (walk_type): Treat GTY structs that have a "desc" as being the
10266 root of an inheritance hierarchy. Generate a switch on it
10267 within the marking function which walks all subclasses, adding
10268 cases for them via walk_subclasses. For subclasses, visit all
10269 fields of the type (including inherited ones).
10270 (write_func_for_structure): Don't write fns for subclasses, only
10271 for the ultimate base class within an inheritance hierarchy.
10272 Subclasses-marking will be handled by the base class marking functions.
10273 (write_types): Likewise.
10274 (write_local_func_for_structure): Likewise.
10275 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
10276 a "tag" option (and are thus concrete subclasses).
10277 (write_root): Use the marker function for the ultimate base class.
10278 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
10279 (opts_have): Add declaration.
10281 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
10283 * lra-spills.c (lra_final_code_change): Remove useless move insns
10284 originated from moves of pseudos.
10286 2013-10-28 Jeff Law <law@redhat.com>
10288 * lower-subreg.c (resolve_simple_move): Fix comment typo.
10290 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
10292 * df-scan.c (df_collection_rec): Adjust.
10293 (copy_defs): New constant.
10294 (copy_uses): Likewise.
10295 (copy_eq_uses): Likewise.
10296 (copy_mw): Likewise.
10297 (copy_all): Likewise.
10298 (df_insn_rescan): Adjust.
10299 (df_notes_rescan): Likewise.
10300 (df_swap_refs): Likewise.
10301 (df_sort_and_compress_refs): Likewise.
10302 (df_sort_and_compress_mws): Likewise.
10303 (df_install_refs): Likewise.
10304 (df_install_mws): Likewise.
10305 (df_refs_add_to_chains): Add flags parameter controlling which vectors
10307 (df_bb_refs_record): Adjust.
10308 (df_record_entry_block_defs): Likewise.
10309 (df_record_exit_block_defs): Likewise.
10310 (df_refs_verify): Likewise.
10311 (df_mws_verify): Likewise.
10312 (df_insn_refs_verify): Likewise.
10313 (df_bb_verify): Likewise.
10314 * ipa-pure-const.c (finish_state): Remove.
10315 (propagate): Adjust.
10316 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
10317 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
10318 var-tracking.c: Adjust.
10319 * vec.c (stack_vecs): Remove.
10320 (register_stack_vec): Likewise.
10321 (stack_vec_register_index): Likewise.
10322 (unregister_stack_vec): Likewise.
10323 * vec.h (struct va_stack): Remove.
10324 (struct vec<T, A, vl_ptr>): Specialize as
10325 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
10326 allocation strategy compatable with the vl_ptr layout.
10327 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
10328 specialization anyway.
10329 (class stack_vec): New class.
10330 (vec_stack_alloc): Remove.
10331 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
10333 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10334 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10335 Sergey Lega <sergey.s.lega@intel.com>
10336 Anna Tikhonova <anna.tikhonova@intel.com>
10337 Ilya Tocar <ilya.tocar@intel.com>
10338 Andrey Turetskiy <andrey.turetskiy@intel.com>
10339 Ilya Verbin <ilya.verbin@intel.com>
10340 Kirill Yukhin <kirill.yukhin@intel.com>
10341 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10343 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
10344 (*prefetch_avx512pf_<mode>): New.
10345 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
10346 (avx512f_maskcmp<mode>3): Ditto.
10347 (vashrv16si3): Ditto.
10349 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10350 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10351 Sergey Lega <sergey.s.lega@intel.com>
10352 Anna Tikhonova <anna.tikhonova@intel.com>
10353 Ilya Tocar <ilya.tocar@intel.com>
10354 Andrey Turetskiy <andrey.turetskiy@intel.com>
10355 Ilya Verbin <ilya.verbin@intel.com>
10356 Kirill Yukhin <kirill.yukhin@intel.com>
10357 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10359 * config/i386/i386.md (any_truncate): New.
10360 (trunsuffix): Ditto.
10361 * config/i386/predicates.md (const_8_to_9_operand): New.
10362 (const_10_to_11_operand): Ditto.
10363 (const_12_to_13_operand): Ditto.
10364 (const_14_to_15_operand): Ditto.
10365 (const_16_to_19_operand): Ditto.
10366 (const_20_to_23_operand): Ditto.
10367 (const_24_to_27_operand): Ditto.
10368 (const_28_to_31_operand): Ditto.
10369 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
10370 (cvtusi2<ssescalarmodesuffix>32): New.
10371 (cvtusi2<ssescalarmodesuffix>64): Ditto.
10372 (ufloatv16siv16sf2): Ditto.
10373 (avx512f_fix_notruncv16sfv16si): Ditto.
10374 (avx512f_ufix_notruncv16sfv16si): Ditto.
10375 (avx512f_vcvtss2usi): Ditto.
10376 (avx512f_vcvtss2usiq): Ditto.
10377 (avx512f_vcvttss2usi): Ditto.
10378 (avx512f_vcvttss2usiq): Ditto.
10379 (avx512f_vcvtsd2usi): Ditto.
10380 (avx512f_vcvtsd2usiq): Ditto.
10381 (avx512f_vcvttsd2usi): Ditto.
10382 (avx512f_vcvttsd2usiq): Ditto.
10383 (ufloatv8siv8df): Ditto.
10384 (avx512f_cvtdq2pd512_2): Ditto.
10385 (avx512f_cvtpd2dq512): Ditto.
10386 (avx512f_ufix_notruncv8dfv8si): Ditto.
10387 (avx512f_cvtpd2ps512): Ditto.
10388 (vec_unpacks_lo_v16sf): Ditto.
10389 (vec_unpacks_hi_v16sf): Ditto.
10390 (vec_unpacks_float_hi_v16si): Ditto.
10391 (vec_unpacks_float_lo_v16si): Ditto.
10392 (avx512f_unpckhps512): Ditto.
10393 (avx512f_unpcklps512): Ditto.
10394 (avx512f_movshdup512): Ditto.
10395 (avx512f_movsldup512): Ditto.
10396 (vec_extract_lo_v32hi): Ditto.
10397 (vec_extract_hi_v32hi): Ditto.
10398 (vec_extract_lo_v64qi): Ditto.
10399 (vec_extract_hi_v64qi): Ditto.
10400 (avx512f_unpckhpd512): Ditto.
10401 (avx512f_movddup512): Ditto.
10402 (avx512f_unpcklpd512): Ditto.
10403 (*avx512f_unpcklpd512): Ditto.
10404 (avx512f_shufps512_1): Ditto.
10405 (avx512f_shufpd512_1): Ditto.
10406 (avx512f_interleave_highv8di): Ditto.
10407 (avx512f_interleave_lowv8di): Ditto.
10408 (PMOV_DST_MODE): Ditto.
10409 (pmov_src_mode): Ditto.
10410 (pmov_src_lower): Ditto.
10411 (pmov_suff): Ditto.
10412 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
10413 (*avx512f_<code>v8div16qi2): Ditto.
10414 (*avx512f_<code>v8div16qi2_store): Ditto.
10415 (vec_widen_umult_even_v16si): Ditto.
10416 (*vec_widen_umult_even_v16si): Ditto.
10417 (vec_widen_smult_even_v16si): Ditto.
10418 (*vec_widen_smult_even_v16si): Ditto.
10419 (avx512f_interleave_highv16si): Ditto.
10420 (avx512f_interleave_lowv16si): Ditto.
10421 (avx512f_<code>v16qiv16si2): Ditto.
10422 (avx512f_<code>v16hiv16si2): Ditto.
10423 (avx512f_<code>v8qiv8di2): Ditto.
10424 (avx512f_<code>v8hiv8di2): Ditto.
10425 (avx512f_<code>v8siv8di2): Ditto.
10426 (avx512cd_maskb_vec_dupv8di): Ditto.
10427 (avx512cd_maskw_vec_dupv16si): Ditto.
10428 (avx512f_vcvtph2ps512): Ditto.
10429 (avx512f_vcvtps2ph512): Ditto.
10430 (VEC_EXTRACT_MODE): Extened with wider modes.
10431 (VEC_PERM_AVX2): Ditto.
10432 (VEC_PERM_CONST): Ditto.
10434 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
10436 * config/arc/arc.c (arc_ccfsm_post_advance):
10437 Add comment about TYPE_RETURN.
10439 2013-10-28 Bin Cheng <bin.cheng@arm.com>
10441 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
10442 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
10443 (strip_offset): Convert offset to unsigned number.
10445 2013-10-27 Tom de Vries <tom@codesourcery.com>
10447 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
10448 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
10450 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
10452 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
10453 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
10454 (TARGET_BIG_ENDIAN): New macro.
10455 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
10456 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
10457 * config/sh/sh.c: Likewise.
10458 * config/sh/sh.h: Likewise.
10460 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
10462 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
10463 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
10465 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10467 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
10469 (cmpstr_t, cmpstrsi): Fix formatting.
10471 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
10474 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
10475 addressing, do not use general_operand for memory operands.
10477 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10480 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10481 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10483 2013-10-26 Jeff Law <law@redhat.com>
10485 * predict.c (PRED_MUDFLAP): Remove.
10486 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
10488 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
10489 (OBJS): Remove tree-nomudflap.o
10490 (GTFILES): Remove tree-mudflap.c
10491 * builtins.c (expand_builtin_alloc): Remove mudflap support.
10492 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10493 (mfwrap_spec, mflib_spec): Likewise.
10494 (cpp_unique_options, cc1_options, static_specs): Likewise.
10495 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
10496 * passes.def: Likewise.
10497 * toplev.c (compile_file, process_options): Likewise.
10498 * tree-inline.c (copy_tree_r): Likewise.
10499 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
10500 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
10501 (build_constant_desc, output_constant_def_contents): Likewise.
10502 (categorize_decl_for_section): Likewise.
10503 * tree-mudflap.c: Removed.
10504 * tree-mudflap.h: Removed.
10505 * tree-nomudflap.c: Removed.
10506 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
10507 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
10508 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
10509 * config/sol2.h (MFLIB_SPEC): Likewise.
10510 * doc/install.texi: Remove mudflap references.
10511 * doc/passes.texi: Similarly.
10512 * doc/sourcebuild.texi: Similarly.
10513 * doc/invoke.texi: Remove mudlfap related options.
10515 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10517 PR rtl-optimization/58759
10518 * lra-constraints.c (lra_constraints): Remove wrong condition to
10519 remove insn setting up an equivalent pseudo.
10521 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10523 * config/rs6000/rs6000-protos.h
10524 (rs6000_secondary_memory_needed_mode): New prototype.
10525 * config/rs6000/rs6000.c: Include ira.h.
10526 (TARGET_LRA_P): Redefine.
10527 (rs6000_legitimate_offset_address_p): Call
10528 legitimate_constant_pool_address_p in strict mode for LRA.
10529 (rs6000_legitimate_address_p): Ditto.
10530 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
10531 (rs6000_emit_move): Add LRA version of code to generate load/store
10533 (rs6000_secondary_memory_needed_mode): New.
10534 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
10535 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
10536 constants, memory, and FP registers.
10537 (rs6000_lra_p): New.
10538 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
10539 * config/rs6000/rs6000.opt (mlra): New option.
10540 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10542 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
10544 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
10545 has_single_use () and not do the conversion if has_single_use ()
10546 returns false for the multiplication result.
10548 2013-10-25 David Malcolm <dmalcolm@redhat.com>
10550 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
10551 to "NODE", since this works on a "tree", not an
10553 (CONSTANT_CLASS_P): Likewise.
10554 (TYPE_P): Likewise.
10555 (DECL_P): Likewise.
10556 (INDIRECT_REF_P): Likewise.
10557 (REFERENCE_CLASS_P): Likewise.
10558 (COMPARISON_CLASS_P): Likewise.
10559 (UNARY_CLASS_P): Likewise.
10560 (BINARY_CLASS_P): Likewise.
10561 (STATEMENT_CLASS_P): Likewise.
10562 (VL_EXP_CLASS_P): Likewise.
10563 (EXPRESSION_CLASS_P): Likewise.
10564 (IS_TYPE_OR_DECL_P): Likewise.
10566 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
10568 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
10569 ADDR_EXPR in the defining statement.
10571 2013-10-25 Richard Biener <rguenther@suse.de>
10573 PR tree-optimization/58626
10574 * tree-loop-distribution.c (enum rdg_dep_type): Remove
10575 anti_dd, output_dd and input_dd.
10576 (struct rdg_edge): Remove level and relation members.
10577 (RDGE_LEVEL, RDGE_RELATION): Remove.
10578 (dot_rdg_1): Adjust.
10579 (create_rdg_edge_for_ddr): Remove.
10580 (create_rdg_edges_for_scalar): Adjust.
10581 (create_edge_for_control_dependence): Likewise.
10582 (create_rdg_edges): Split into ...
10583 (create_rdg_flow_edges): ... this
10584 (create_rdg_cd_edges): ... and this.
10585 (free_rdg): Adjust.
10586 (build_rdg): Likewise, do not compute data dependences or
10587 add edges for them.
10588 (pg_add_dependence_edges): New function.
10590 (distribute_loop): First apply all non-dependence based
10591 partition mergings. Then compute dependences between partitions
10592 and merge and order partitions according to them.
10594 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
10596 PR rtl-optimization/58831
10597 * alias.c (init_alias_analysis): At the beginning of each iteration,
10598 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
10600 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
10602 * recog.c (search_ofs): New static variable moved from...
10603 (peep2_find_free_register): ...here.
10604 (peephole2_optimize): Initialize it.
10606 2013-10-25 Tobias Burnus <burnus@net-b.de>
10608 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
10610 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
10612 * config/i386/i386.h (TARGET_MPX): New define.
10613 (TARGET_MPX_P): Ditto.
10615 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
10617 * config/i386/constraints.md (B): New.
10620 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
10621 * config/i386/i386-modes.def (BND32): New.
10623 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
10624 * config/i386/i386.c (isa_opts): Add mmpx.
10625 (regclass_map): Add bound registers.
10626 (dbx_register_map): Likewise.
10627 (dbx64_register_map): Likewise.
10628 (svr4_dbx_register_map): Likewise.
10630 (ix86_option_override_internal): Support MPX ISA.
10631 (ix86_conditional_register_usage): Support bound registers.
10632 (print_reg): Likewise.
10633 (ix86_code_end): Add MPX bnd prefix.
10634 (output_set_got): Likewise.
10635 (ix86_output_call_insn): Likewise.
10636 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
10637 (ix86_print_operand_punct_valid_p): Likewise.
10638 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
10640 (ix86_class_likely_spilled_p): Add bound regs support.
10641 (ix86_hard_regno_mode_ok): Likewise.
10642 (x86_order_regs_for_local_alloc): Likewise.
10643 (ix86_bnd_prefixed_insn_p): New.
10644 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
10645 (FIXED_REGISTERS): Add bound registers.
10646 (CALL_USED_REGISTERS): Likewise.
10647 (REG_ALLOC_ORDER): Likewise.
10648 (HARD_REGNO_NREGS): Likewise.
10650 (VALID_BND_REG_MODE): New.
10651 (FIRST_BND_REG): New.
10652 (LAST_BND_REG): New.
10653 (reg_class): Add BND_REGS.
10654 (REG_CLASS_NAMES): Likewise.
10655 (REG_CLASS_CONTENTS): Likewise.
10656 (BND_REGNO_P): New.
10657 (ANY_BND_REG_P): New.
10659 (HI_REGISTER_NAMES): Add bound registers.
10660 * config/i386/i386.md (UNSPEC_BNDMK): New.
10661 (UNSPEC_BNDMK_ADDR): New.
10662 (UNSPEC_BNDSTX): New.
10663 (UNSPEC_BNDLDX): New.
10664 (UNSPEC_BNDLDX_ADDR): New.
10665 (UNSPEC_BNDCL): New.
10666 (UNSPEC_BNDCU): New.
10667 (UNSPEC_BNDCN): New.
10668 (UNSPEC_MPX_FENCE): New.
10671 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
10672 (length_immediate): Likewise.
10673 (prefix_0f): Likewise.
10674 (memory): Likewise.
10675 (prefix_rep): Check for bnd prefix.
10676 (length_nobnd): New.
10677 (length): Use length_nobnd if specified.
10682 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
10683 (*jcc_2): Likewise.
10685 (simple_return_internal): Likewise.
10686 (simple_return_pop_internal): Likewise.
10687 (*indirect_jump): Add MPX bnd prefix.
10688 (*tablejump_1): Likewise.
10689 (simple_return_internal_long): Likewise.
10690 (simple_return_indirect_internal): Likewise.
10694 (*mov<mode>_internal_mpx): New.
10695 (<mode>_<bndcheck>): New.
10696 (*<mode>_<bndcheck>): New.
10698 (*<mode>_ldx): New.
10700 (*<mode>_stx): New.
10701 * config/i386/predicates.md (lea_address_operand): Rename to...
10702 (address_no_seg_operand): ... this.
10703 (address_mpx_no_base_operand): New.
10704 (address_mpx_no_index_operand): New.
10705 (bnd_mem_operator): New.
10706 * config/i386/i386.opt (mmpx): New.
10707 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
10708 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
10710 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
10712 * mode-classes.def (MODE_POINTER_BOUNDS): New.
10713 * tree.def (POINTER_BOUNDS_TYPE): New.
10714 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
10715 (POINTER_BOUNDS_MODE): New.
10716 (make_pointer_bounds_mode): New.
10717 * machmode.h (POINTER_BOUNDS_MODE_P): New.
10718 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
10719 (layout_type): Support POINTER_BOUNDS_TYPE.
10720 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
10721 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
10722 (type_contains_placeholder_1): Likewise.
10723 * tree.h (POINTER_BOUNDS_TYPE_P): New.
10724 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
10725 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
10727 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
10729 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
10730 mode of address computation when calling memory_address_addr_space.
10732 2013-08-24 Richard Henderson <rth@twiddle.net>
10735 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
10736 instead of create_convert_operand_to.
10737 (maybe_emit_sync_lock_test_and_set): Likewise.
10738 (expand_atomic_compare_and_swap): Likewise.
10739 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
10741 2013-08-24 Sriraman Tallam <tmsriram@google.com>
10743 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
10744 Change param_is to use the struct and not the pointer to the struct.
10746 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
10748 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
10749 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
10750 Move to targhooks.c.
10751 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
10752 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
10753 Relocate from gimplify.c.
10754 * targhooks.h: Add 2 prototypes.
10755 * tree.h: Delete 2 prototypes.
10757 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
10759 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
10760 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
10762 2013-10-24 Cong Hou <congh@google.com>
10764 * convert.c (convert_to_real): Guard those unsafe math function
10765 convertions with flag_unsafe_math_optimizations. Handle sqrt()
10768 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
10771 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
10773 (cgraph_create_edge): Use the new argument.
10774 (cgraph_create_indirect_edge): Likewise.
10776 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
10778 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
10779 TYPE_UNCOND_BRANCH.
10780 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
10781 changes statep->state.
10783 2013-10-24 Tobias Burnus <burnus@net-b.de>
10786 * tree-cfg.c (replace_loop_annotate): New function.
10787 (execute_build_cfg): Call it.
10788 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
10789 * internal-fn.c (expand_ANNOTATE): New function.
10790 * internal-fn.def (ANNOTATE): Define as new internal function.
10791 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
10792 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
10793 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
10794 * doc/extend.texi (Pragmas): Document #pragma ivdep.
10795 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
10797 2013-10-17 Ian Bolton <ian.bolton@arm.com>
10798 Marcus Shawcroft <marcus.shawcroft@arm.com>
10800 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
10801 Special case reload SP+C into none GENERAL_REGS.
10803 2013-10-24 Michael Matz <matz@suse.de>
10805 * gengtype.c (is_file_equal): Check that files will be same length.
10807 2013-10-25 Christian Bruel <christian.bruel@st.com>
10809 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
10810 * config/sh/t-sh (sh-mem.o): New rule.
10811 * config/sh/sh-mem.cc (expand_block_move): Moved here.
10812 (sh_expand_cmpstr): New function.
10813 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
10814 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
10815 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
10816 (rotlhi3_8): Rename.
10818 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10820 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
10821 * Makefile.in (CXXDEPMODE): Assign and change users.
10822 (CCDEPMODE): Delete.
10823 * configure: Regenerate.
10825 2013-10-23 David Malcolm <dmalcolm@redhat.com>
10827 * gengtype-parse.c (require_without_advance): New.
10828 (type): For GTY-marked types that are not GTY((user)), parse any
10829 base classes, requiring them to be single-inheritance, and not
10830 be templates. For non-GTY-marked types and GTY((user)),
10831 continue to skip over any C++ inheritance specification.
10832 * gengtype-state.c (state_writer::write_state_struct_type):
10833 Write base class of type (if any).
10834 (read_state_struct_type): Read base class of type (if any).
10835 * gengtype.c (new_structure): Add a "base_class" parameter.
10836 (create_optional_field_): Update for new parameter to new_structure.
10837 (adjust_field_rtx_def): Likewise.
10838 (adjust_field_tree_exp): Likewise.
10839 * gengtype.h (struct type): Add "base_class" field to the s
10841 (new_structure): Add "base" parameter.
10843 2013-10-23 Sriraman Tallam <tmsriram@google.com>
10846 * config/i386/i386.c (ix86_option_override_internal):
10847 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
10848 (ix86_valid_target_attribute_tree):
10849 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
10850 Change TARGET_SSE to TARGET_SSE_P (opts->...)
10852 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
10854 * tree-ssa-loop.h: Remove include files.
10855 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
10856 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
10857 * graphite-clast-to-gimple.c: Likewise.
10858 * graphite-scop-detection.c: Likewise.
10859 * graphite-sese-to-poly.c: Likewise.
10860 * ipa-inline-analysis.c: Likewise.
10861 * ipa-pure-const.c: Likewise.
10862 * loop-init.c: Likewise.
10863 * passes.c: Likewise.
10864 * predict.c: Likewise.
10865 * tree-cfg.c: Likewise.
10866 * tree-cfgcleanup.c: Likewise.
10867 * tree-chrec.c: Likewise.
10868 * tree-data-ref.c: Likewise.
10869 * tree-loop-distribution.c: Likewise.
10870 * tree-parloops.c: Likewise.
10871 * tree-predcom.c: Likewise.
10872 * tree-scalar-evolution.c: Likewise.
10873 * tree-ssa-address.c: Likewise.
10874 * tree-ssa.c: Likewise.
10875 * tree-ssa-dce.c: Likewise.
10876 * tree-ssa-loop.c: Likewise.
10877 * tree-ssa-loop-im.c: Likewise.
10878 * tree-ssa-loop-ivcanon.c: Likewise.
10879 * tree-ssa-loop-ivopts.c: Likewise.
10880 * tree-ssa-loop-manip.c: Likewise.
10881 * tree-ssa-loop-niter.c: Likewise.
10882 * tree-ssa-loop-prefetch.c: Likewise.
10883 * tree-ssa-loop-unswitch.c: Likewise.
10884 * tree-ssa-reassoc.c: Likewise.
10885 * tree-vect-data-refs.c: Likewise.
10886 * tree-vect-loop.c: Likewise.
10887 * tree-vect-loop-manip.c: Likewise.
10888 * tree-vectorizer.c: Likewise.
10889 * tree-vect-stmts.c: Likewise.
10890 * tree-vrp.c: Likewise.
10892 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10894 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
10896 2013-10-23 Jakub Jelinek <jakub@redhat.com>
10898 PR tree-optimization/58775
10899 PR tree-optimization/58791
10900 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
10901 (insert_stmt_after): Rewritten, don't move the stmt, but really
10903 (get_stmt_uid_with_default): Remove.
10904 (build_and_add_sum): Use insert_stmt_after and
10905 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
10906 (update_range_test): Set uid on stmts added by
10907 force_gimple_operand_gsi. Don't immediately modify statements
10908 in inter-bb optimization, just update oe->op values.
10909 (optimize_range_tests): Return bool whether any changed have been made.
10910 (update_ops): New function.
10911 (struct inter_bb_range_test_entry): New type.
10912 (maybe_optimize_range_tests): Perform statement changes here.
10913 (not_dominated_by, appears_later_in_bb, get_def_stmt,
10914 ensure_ops_are_available): Remove.
10915 (find_insert_point): Rewritten.
10916 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
10917 return LHS of the (new resp. old) stmt. Don't call
10918 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
10919 instead of last, move new stmt at the right place.
10920 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
10921 (negate_value): Likewise. Set uids.
10922 (break_up_subtract_bb): Initialize uids.
10923 (reassociate_bb): Adjust rewrite_expr_tree caller.
10924 (do_reassoc): Don't call renumber_gimple_stmt_uids.
10926 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
10929 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
10930 TARGET_32BIT final condition.
10931 (mulsi3_internal2 and splitter): Same.
10933 2013-10-23 Jeff Law <law@redhat.com>
10935 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
10936 through joiner blocks with abnormal outgoing edges.
10938 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
10939 Add parameter JOINERS, to allow/disallow threading through joiner
10941 (thread_block): New. Call thread_block_1.
10942 (mark_threaded_blocks): Remove code to filter out certain cases
10943 of threading through joiner blocks.
10944 (thread_through_all_blocks): Document how we can have a dangling
10945 edge AUX field and clear it.
10947 2013-10-23 Ian Lance Taylor <iant@google.com>
10949 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
10950 (C++ Dialect Options): Likewise.
10951 (Optimize Options): Likewise.
10953 2013-10-23 Tom de Vries <tom@codesourcery.com>
10955 PR tree-optimization/58805
10956 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
10958 2013-10-23 Jakub Jelinek <jakub@redhat.com>
10960 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
10961 sequence based on get_range_info returned range.
10963 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
10965 * tree-ssa.h: Remove all #include's
10966 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
10967 * alias.c: Move required includes from tree-ssa.h.
10968 * asan.c: Likewise.
10969 * builtins.c: Likewise.
10970 * calls.c: Likewise.
10971 * cfgexpand.c: Likewise.
10972 * cfghooks.c: Likewise.
10973 * cfgloop.c: Likewise.
10974 * cfgloopmanip.c: Likewise.
10975 * cgraph.c: Likewise.
10976 * cgraphbuild.c: Likewise.
10977 * cgraphclones.c: Likewise.
10978 * cgraphunit.c: Likewise.
10980 * except.c: Likewise.
10981 * expr.c: Likewise.
10982 * final.c: Likewise.
10983 * fold-const.c: Likewise.
10984 * ggc-page.c: Likewise.
10985 * gimple-builder.c: Likewise.
10986 * gimple-fold.c: Likewise.
10987 * gimple-iterator.c: Likewise.
10988 * gimple-low.c: Likewise.
10989 * gimple-pretty-print.c: Likewise.
10990 * gimple-ssa-strength-reduction.c: Likewise.
10991 * gimple-streamer-in.c: Likewise.
10992 * gimple-streamer-out.c: Likewise.
10993 * gimplify.c: Likewise.
10994 * graphite-blocking.c: Likewise.
10995 * graphite-clast-to-gimple.c: Likewise.
10996 * graphite-dependences.c: Likewise.
10997 * graphite-interchange.c: Likewise.
10998 * graphite-optimize-isl.c: Likewise.
10999 * graphite-poly.c: Likewise.
11000 * graphite-scop-detection.c: Likewise.
11001 * graphite-sese-to-poly.c: Likewise.
11002 * graphite.c: Likewise.
11003 * ipa-cp.c: Likewise.
11004 * ipa-inline-analysis.c: Likewise.
11005 * ipa-inline-transform.c: Likewise.
11006 * ipa-inline.c: Likewise.
11007 * ipa-prop.c: Likewise.
11008 * ipa-pure-const.c: Likewise.
11009 * ipa-reference.c: Likewise.
11010 * ipa-split.c: Likewise.
11011 * ipa-utils.c: Likewise.
11012 * loop-init.c: Likewise.
11013 * lto-cgraph.c: Likewise.
11014 * lto-section-in.c: Likewise.
11015 * lto-section-out.c: Likewise.
11016 * lto-streamer-in.c: Likewise.
11017 * lto-streamer-out.c: Likewise.
11018 * lto-streamer.c: Likewise.
11019 * omp-low.c: Likewise.
11020 * passes.c: Likewise.
11021 * predict.c: Likewise.
11022 * print-tree.c: Likewise.
11023 * profile.c: Likewise.
11024 * sese.c: Likewise.
11025 * targhooks.c: Likewise.
11026 * tracer.c: Likewise.
11027 * trans-mem.c: Likewise.
11028 * tree-call-cdce.c: Likewise.
11029 * tree-cfg.c: Likewise.
11030 * tree-cfgcleanup.c: Likewise.
11031 * tree-chrec.c: Likewise.
11032 * tree-complex.c: Likewise.
11033 * tree-data-ref.c: Likewise.
11034 * tree-dfa.c: Likewise.
11035 * tree-eh.c: Likewise.
11036 * tree-emutls.c: Likewise.
11037 * tree-if-conv.c: Likewise.
11038 * tree-inline.c: Likewise.
11039 * tree-into-ssa.c: Likewise.
11040 * tree-loop-distribution.c: Likewise.
11041 * tree-mudflap.c: Likewise.
11042 * tree-nested.c: Likewise.
11043 * tree-nrv.c: Likewise.
11044 * tree-object-size.c: Likewise.
11045 * tree-outof-ssa.c: Likewise.
11046 * tree-parloops.c: Likewise.
11047 * tree-phinodes.c: Likewise.
11048 * tree-predcom.c: Likewise.
11049 * tree-pretty-print.c: Likewise.
11050 * tree-profile.c: Likewise.
11051 * tree-scalar-evolution.c: Likewise.
11052 * tree-sra.c: Likewise.
11053 * tree-ssa-address.c: Likewise.
11054 * tree-ssa-alias.c: Likewise.
11055 * tree-ssa-ccp.c: Likewise.
11056 * tree-ssa-coalesce.c: Likewise.
11057 * tree-ssa-copy.c: Likewise.
11058 * tree-ssa-copyrename.c: Likewise.
11059 * tree-ssa-dce.c: Likewise.
11060 * tree-ssa-dom.c: Likewise.
11061 * tree-ssa-dse.c: Likewise.
11062 * tree-ssa-forwprop.c: Likewise.
11063 * tree-ssa-ifcombine.c: Likewise.
11064 * tree-ssa-live.c: Likewise.
11065 * tree-ssa-loop-ch.c: Likewise.
11066 * tree-ssa-loop-im.c: Likewise.
11067 * tree-ssa-loop-ivcanon.c: Likewise.
11068 * tree-ssa-loop-ivopts.c: Likewise.
11069 * tree-ssa-loop-manip.c: Likewise.
11070 * tree-ssa-loop-niter.c: Likewise.
11071 * tree-ssa-loop-prefetch.c: Likewise.
11072 * tree-ssa-loop-unswitch.c: Likewise.
11073 * tree-ssa-loop.c: Likewise.
11074 * tree-ssa-math-opts.c: Likewise.
11075 * tree-ssa-operands.c: Likewise.
11076 * tree-ssa-phiopt.c: Likewise.
11077 * tree-ssa-phiprop.c: Likewise.
11078 * tree-ssa-pre.c: Likewise.
11079 * tree-ssa-propagate.c: Likewise.
11080 * tree-ssa-reassoc.c: Likewise.
11081 * tree-ssa-sccvn.c: Likewise.
11082 * tree-ssa-sink.c: Likewise.
11083 * tree-ssa-strlen.c: Likewise.
11084 * tree-ssa-structalias.c: Likewise.
11085 * tree-ssa-tail-merge.c: Likewise.
11086 * tree-ssa-ter.c: Likewise.
11087 * tree-ssa-threadedge.c: Likewise.
11088 * tree-ssa-threadupdate.c: Likewise.
11089 * tree-ssa-uncprop.c: Likewise.
11090 * tree-ssa-uninit.c: Likewise.
11091 * tree-ssa.c: Likewise.
11092 * tree-ssanames.c: Likewise.
11093 * tree-stdarg.c: Likewise.
11094 * tree-streamer-in.c: Likewise.
11095 * tree-switch-conversion.c: Likewise.
11096 * tree-tailcall.c: Likewise.
11097 * tree-vect-data-refs.c: Likewise.
11098 * tree-vect-generic.c: Likewise.
11099 * tree-vect-loop-manip.c: Likewise.
11100 * tree-vect-loop.c: Likewise.
11101 * tree-vect-patterns.c: Likewise.
11102 * tree-vect-slp.c: Likewise.
11103 * tree-vect-stmts.c: Likewise.
11104 * tree-vectorizer.c: Likewise.
11105 * tree-vrp.c: Likewise.
11106 * tree.c: Likewise.
11107 * tsan.c: Likewise.
11108 * value-prof.c: Likewise.
11109 * var-tracking.c: Likewise.
11110 * varpool.c: Likewise.
11111 * vtable-verify.c: Likewise.
11113 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11115 * config/tilegx/tilegx.c: Include "tree.h".
11117 2013-10-23 Jakub Jelinek <jakub@redhat.com>
11119 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
11120 the info, not after it.
11121 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
11122 dump_ssaname_info call.
11123 (pp_gimple_stmt_1): Adjust caller.
11124 (dump_phi_nodes): Likewise. Don't print "# " here.
11126 2013-10-22 Jan Hubicka <jh@suse.cz>
11128 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
11130 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
11131 * i386.c (expand_small_movmem_or_setmem): New function.
11132 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
11134 (alg_usable_p): Add support for value ranges; cleanup.
11135 (ix86_expand_set_or_movmem): Add support for misaligned moves.
11137 2013-10-22 Sterling Augustine <saugustine@google.com>
11139 * doc/invoke.texi: Document -ggnu-pubnames.
11140 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
11142 * dwarf2out.c: Include gdb/gdb-index.h.
11143 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
11144 debug_generate_pub_sections.
11145 (is_java, output_pubtables, output_pubname): New functions.
11146 (include_pubname_in_output): Handle debug_generate_pub_sections at
11148 (size_of_pubnames): Use new local space_for_flags based on
11149 debug_generate_pub_sections.
11150 (output_pubnames): Unify pubnames and pubtypes output logic.
11151 Genericize comments. Call output_pubname.
11152 (dwarf2out_finish): Move logic to output_pubnames and call it.
11154 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
11157 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
11158 Remove CCCmode handling.
11159 <case LTU>: Return 'c' suffix for CCCmode.
11160 <case GEU>: Return 'nc' suffix for CCCmode.
11161 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
11162 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
11163 (*sub<mode>3_cc_overflow): Ditto.
11164 (*subsi3_zext_cc_overflow): Ditto.
11166 2013-10-22 Steve Ellcey <sellcey@mips.com>
11168 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
11169 (AND (NOT OP1) (NOT OP2)).
11171 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
11173 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
11174 meaning of merge-high and merge-low masks for little endian; avoid
11175 use of vector-pack masks for little endian for mismatched modes.
11177 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11179 * config/tilepro/tilepro.c: Include "tree.h".
11181 2013-10-22 Andreas Schwab <schwab@suse.de>
11183 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
11186 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
11188 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
11189 [Ed Smith-Rowland]): New entries.
11190 ([Stephen M. Webb]): Update.
11192 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
11194 * tree-ssa-ter.h: Remove duplicate copy of file contents.
11196 2013-10-21 Marek Polacek <polacek@redhat.com>
11198 PR middle-end/58809
11199 * fold-const.c (fold_range_test): Return 0 if the type is not
11202 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
11204 * system.h: Move hwint.h include further down.
11205 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
11206 gcc_checking_asserts.
11207 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
11209 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11211 Fix volatile issues in optimize_bit_field_compare.
11212 * fold-const.c (optimize_bit_field_compare): Bail out if
11213 lvolatilep or rvolatilep.
11215 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11217 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
11218 and get_inner_reference returning different pmode for non-volatile
11219 bit-field members dependent on flag_strict_volatile_bitfields.
11220 * stor-layout.c (layout_decl): Remove special handling of
11221 flag_strict_volatile_bitfields.
11222 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
11223 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
11225 2013-10-21 Paulo Matos <pmatos@broadcom.com>
11227 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
11230 2013-10-21 Jeff Law <law@redhat.com>
11232 * tree-ssa-threadedge.c (thread_through_normal_block): New
11233 argument VISITED. Remove VISISTED as a local variable. When we
11234 have a threadable jump, verify the destination of the jump has not
11236 (thread_across_edge): Allocate VISITED bitmap once at function
11237 scope and use it throughout. Make sure to set appropriate bits in
11238 VISITED for E (start of jump thread path).
11239 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
11240 through a joiner if any edge on the path has a recorded jump thread.
11242 2013-10-21 Ian Lance Taylor <iant@google.com>
11244 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
11245 don't imply that attributes can solve all problems.
11246 (Directory Options): Fix typo.
11248 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11250 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
11251 extend and extend_add.
11253 2013-10-21 Richard Biener <rguenther@suse.de>
11255 PR tree-optimization/58794
11256 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
11257 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
11259 2013-10-21 Richard Biener <rguenther@suse.de>
11261 PR middle-end/58742
11262 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
11263 to (T) X for sign-changing conversions (or no conversion).
11265 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
11267 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
11269 2013-10-20 Jan Hubicka <jh@suse.cz>
11271 * config/i386/i386-tune.def: Add comment; organize into categories
11273 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
11275 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
11276 argument. Update function comment.
11277 (expand_set_or_movmem_via_rep): New function combining
11278 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
11279 (expand_movmem_via_rep_mov): Remove.
11280 expand_setmem_via_rep_stos): Remove.
11281 (expand_movmem_epilogue): Update calls correspondingly.
11282 (expand_setmem_epilogue_via_loop): Likewise.
11283 (emit_memset): New.
11284 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
11285 (expand_set_or_movmem_prologue): New function combining
11286 expand_movmem_prologue and expand_setmem_prologue.
11287 (expand_movmem_prologue): Remove.
11288 (expand_setmem_prologue): Remove.
11289 (expand_set_or_movmem_constant_prologue): New function combining
11290 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
11291 (expand_constant_movmem_prologue): Remove.
11292 (expand_constant_setmem_prologue): Remove.
11293 (promote_duplicated_reg): Allow vector-const0 value.
11294 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
11295 and ix86_expand_setmem.
11296 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
11297 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
11299 2013-10-21 Diego Novillo <dnovillo@google.com>
11301 * asan.c: Include tree.h
11302 * bb-reorder.c: Likewise.
11303 * cfgcleanup.c: Likewise.
11304 * cfgloopmanip.c: Likewise.
11305 * data-streamer-in.c: Likewise.
11306 * data-streamer-out.c: Likewise.
11307 * data-streamer.c: Likewise.
11308 * dwarf2cfi.c: Likewise.
11309 * graphite-blocking.c: Likewise.
11310 * graphite-clast-to-gimple.c: Likewise.
11311 * graphite-dependences.c: Likewise.
11312 * graphite-interchange.c: Likewise.
11313 * graphite-optimize-isl.c: Likewise.
11314 * graphite-poly.c: Likewise.
11315 * graphite-scop-detection.c: Likewise.
11316 * graphite-sese-to-poly.c: Likewise.
11317 * graphite.c: Likewise.
11318 * ipa-devirt.c: Likewise.
11319 * ipa-profile.c: Likewise.
11322 * loop-init.c: Likewise.
11323 * loop-unroll.c: Likewise.
11324 * lower-subreg.c: Likewise.
11325 * lto/lto-object.c: Likewise.
11326 * recog.c: Likewise.
11327 * reginfo.c: Likewise.
11328 * tree-loop-distribution.c: Likewise.
11329 * tree-parloops.c: Likewise.
11330 * tree-ssa-strlen.c: Likewise.
11331 * tree-streamer.c: Likewise.
11332 * value-prof.c: Likewise.
11333 * target-globals.c: Likewise.
11334 * expr.h: Include tree-core.h instead of tree.h.
11335 * gimple.h: Likewise.
11336 * ipa-prop.h: Likewise.
11337 * ipa-utils.h: Likewise.
11338 * lto-streamer.h: Likewise.
11339 * streamer-hooks.h: Likewise.
11340 * ipa-reference.h: Include cgraph.h instead of tree.h.
11341 * cgraph.h: Include basic-block.h instead of tree.h.
11342 * tree-streamer.h: Do not include tree.h.
11343 * genattrtab.c (write_header): Generate inclusion of tree.h.
11344 * genautomata.c (main): Likewise.
11345 * genemit.c: Likewise.
11346 * genopinit.c: Likewise.
11347 * genoutput.c (output_prologue): Likewise.
11348 * genpeep.c: Likewise.
11350 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11352 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
11354 (vec_unpacku_hi_v8hi): Likewise.
11355 (vec_unpacku_lo_v16qi): Likewise.
11356 (vec_unpacku_lo_v8hi): Likewise.
11358 2013-10-20 Jan Hubicka <jh@suse.cz>
11360 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
11361 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
11362 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
11364 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
11366 * config/mips/mips.h (ISA_HAS_WSBH): Define.
11367 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
11369 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
11371 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
11374 * system.h: Undef m_slot.
11376 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11378 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
11379 all elements for both endian flavors.
11381 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11384 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
11385 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
11386 and SI_REG for 64bit SYSV ABI targets.
11388 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
11390 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
11391 to multi_reg_return. Clarify that we are skipping USEs of multiple
11392 return registers. Use bool type where appropriate.
11394 2013-10-18 Jan Hubicka <jh@suse.cz>
11396 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
11397 for cold functions.
11398 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
11399 (X86_TUNE_PUSH_MEMORY): Likewise.
11400 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
11401 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
11402 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
11404 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
11405 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
11407 (ix86_option_override_internal): Update to use tune features instead
11410 2013-10-18 Cong Hou <congh@google.com>
11412 PR tree-optimization/58508
11413 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
11414 statement that contains data refs with zero-step.
11416 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11418 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
11419 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
11420 * gimple-low.c (gimple_check_call_arg,
11421 gimple_check_call_matching_types): Move to cgraph.c.
11422 * gimple-low.h: Remove prototype.
11423 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
11424 Relocate from gimple-low.c.
11425 * cgraph.h: Add prototype. Don't include basic-block.h.
11426 * gimplify.c: Add gimple-low to include list.
11427 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
11428 * tree-eh.c: Add gimple-low to include list.
11429 * tree-nested.c: Likewise.
11430 * cfgexpand.c: Add tree-ssa-address.h to include list.
11431 * expr.c: Likewise.
11432 * gimple-fold.c: Likewise.
11433 * gimple-ssa-strength-reduction.c: Likewise.
11434 * trans-mem.c: Likewise.
11435 * tree-mudflap.c: Likewise.
11436 * tree-ssa-loop-ivopts.c: Likewise.
11437 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
11438 (degenerate_phi_result): Move to tree-phinodes.c.
11439 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
11440 * tree-ssa-threadedge.c: Likewise.
11441 * tree-vrp.c: Likewise.
11442 * tree-phinodes.c (degenerate_phi_result): Relocate here.
11443 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
11444 * tree-phinodes.h (degenerate_phi_result): Add prototype.
11445 * tree-ssa-copy.c: Include tree-ssa-dom.h.
11446 * tree-ssa-forwprop.c: Likewise.
11447 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
11448 pass_data_cleanup_cfg_post_optimizing,
11449 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
11450 * tree-optimize.c: Delete File.
11451 * graphite.c: Include tree-cfgcleanup.h.
11452 * passes.c: Likewise.
11453 * tree-cfg.c: Likewise.
11454 * tree-profile.c: Likewise.
11455 * tree-ssa-dse.c: Likewise.
11456 * tree-ssa-loop-ivcanon.c: Likewise.
11457 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
11458 * tree-outof-ssa.c: Include sbitmap.h.
11459 * tree-ssa-live.c: Likewise.
11460 * tree-ssa-propagate.c: Likewise.
11461 * tree-ssa-structalias.c: Likewise.
11462 * tree-stdarg.c: Likewise.
11463 * Makefile.in (OBJS): Delete tree-optimize.o.
11464 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
11465 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
11466 * varasm.c: Include basic-block.h.
11467 * cfgloop.h: Include function.h instead of basic-block.h
11468 (bb_loop_depth): Move to cfgloop.c.
11469 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
11471 2013-10-18 Teresa Johnson <tejohnson@google.com>
11473 * predict.c (probably_never_executed): Compare frequency-based
11474 count to number of training runs.
11475 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
11477 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11479 * config/arm/arm.c (cortexa9_extra_costs): New table.
11480 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
11482 2013-10-18 Jeff Law <law@redhat.com>
11484 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
11486 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
11487 (register_jump_thread): Add "registered_jump_thread" debug
11489 * dbgcnt.def (registered_jump_thread): New debug counter.
11491 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11493 * config/rs6000/rs6000.c: Include cgraph.h.
11495 2013-10-18 Teresa Johnson <tejohnson@google.com>
11497 * tree-ssa-tail-merge.c (replace_block_by): Update edge
11498 weights during merging.
11500 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
11502 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
11503 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
11504 * tree-ssa-operands.h: Remove prototype.
11505 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
11506 * gimple.c (virtual_operand_p): Relocate from gimple.c.
11507 * gimple.h: Add prototype.
11508 * gimple-ssa.h: Include tree-ssa-operands.h.
11509 * tree-dump.c: Add tree-cfg.h to include list.
11510 * tree-ssa-alias.c: Add ipa-reference.h to include list.
11511 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
11512 * config/i386/i386.c: Don't include tree-flow.h.
11513 * config/rs6000/rs6000.c: Likewise.
11515 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11517 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
11519 2013-10-18 Richard Biener <rguenther@suse.de>
11521 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
11522 or TYPE_UNSIGNED of integral types.
11523 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
11524 NULL_TREE for zero-precision integral types.
11526 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
11528 * config/aarch64/arm_neon.h
11529 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
11531 2013-10-17 Sriraman Tallam <tmsriram@google.com>
11534 * opth-gen.awk: Define target_flags_explicit.
11536 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11538 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
11539 fields to the reg_addr array that describes the valid addressing
11540 mode for any register, general purpose registers, floating point
11541 registers, and Altivec registers.
11542 (FIRST_RELOAD_REG_CLASS): Likewise.
11543 (LAST_RELOAD_REG_CLASS): Likewise.
11544 (struct reload_reg_map_type): Likewise.
11545 (reload_reg_map_type): Likewise.
11546 (RELOAD_REG_VALID): Likewise.
11547 (RELOAD_REG_MULTIPLE): Likewise.
11548 (RELOAD_REG_INDEXED): Likewise.
11549 (RELOAD_REG_OFFSET): Likewise.
11550 (RELOAD_REG_PRE_INCDEC): Likewise.
11551 (RELOAD_REG_PRE_MODIFY): Likewise.
11552 (reg_addr): Likewise.
11553 (mode_supports_pre_incdec_p): New helper functions to say whether
11554 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
11555 (mode_supports_pre_modify_p): Likewise.
11556 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
11557 print the valid address mode bits for each mode.
11558 (rs6000_debug_print_mode): Likewise.
11559 (rs6000_debug_reg_global): Likewise.
11560 (rs6000_setup_reg_addr_masks): New function to set up the address
11561 mask bits for each type.
11562 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
11563 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
11564 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
11565 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
11566 PRE_MODIFY are supported.
11567 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
11568 registers, instead of {src,dest}_av_p.
11569 (rs6000_print_options_internal): Tweak the debug output slightly.
11571 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11573 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
11576 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
11578 * tree-flow.h (struct omp_region): Move to omp-low.c.
11579 Remove omp_ prototypes and variables.
11580 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
11581 (copy_var_decl): Relocate prototype from tree-flow.h.
11582 * gimple.c (copy_var_decl): Relocate from omp-low.c.
11583 * tree.h: Move prototype to omp-low.h.
11584 * omp-low.h: New File. Relocate prototypes here.
11585 * omp-low.c (struct omp_region): Make local here.
11586 (root_omp_region): Make static.
11587 (copy_var_decl) Move to gimple.c.
11588 (new_omp_region): Make static.
11589 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
11590 * tree-cfg.c: Include omp-low.h.
11591 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
11592 * gimplify.c: Include omp-low.h.
11593 * tree-parloops.c: Likewise.
11595 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
11597 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
11598 operands are in memory, prefer to force non-matched operand 1 to
11601 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
11604 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
11605 restrict TImode addresses to single indirect registers if both
11606 -mquad-memory and -mvsx-timode are used.
11607 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
11608 we should emit load/store quad. Remove using %y for quad memory
11611 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
11612 constraints to allow load/store quad on machines where TImode is
11613 not allowed in VSX registers. Use 'n' instead of 'F' constraint
11614 for TImode to load integer constants.
11616 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11618 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
11620 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
11622 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
11623 handling of STACK_REG.
11625 2013-10-17 Richard Biener <rguenther@suse.de>
11627 PR tree-optimization/58143
11628 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
11630 (rewrite_to_defined_overflow): Likewise.
11631 (move_computations_dom_walker::before_dom): Rewrite stmts
11632 with undefined signed overflow that are not always executed
11633 into unsigned arithmetic.
11635 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
11638 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
11639 explicit isa flag to be an options variable, instead of using
11640 global_options_set. Remove define from rs6000.h.
11641 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
11643 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11644 Initialize rs6000_isa_flags_explicit.
11645 (rs6000_function_specific_save): Add gcc_options* parameter, so
11646 that the powerpc builds after the 2013-10-15 changes.
11647 (rs6000_function_specific_restore): Likewise.
11649 2013-10-16 DJ Delorie <dj@redhat.com>
11651 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
11652 op is a REG before checking REGNO.
11653 (rl78_alloc_physical_registers): Verify pattern is a SET before
11656 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11658 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
11660 (vec_unpacks_lo_v4sf): Likewise.
11661 (vec_unpacks_float_hi_v4si): Likewise.
11662 (vec_unpacks_float_lo_v4si): Likewise.
11663 (vec_unpacku_float_hi_v4si): Likewise.
11664 (vec_unpacku_float_lo_v4si): Likewise.
11666 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11668 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
11669 (vsx_concat_v2sf): Likewise.
11671 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
11673 * config/aarch64/aarch64.md
11674 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
11676 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
11678 PR tree-optimization/58697
11679 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
11680 estimated_loop_iterations_int.
11681 (max_stmt_executions_int): Call get_max_loop_iterations_int.
11682 (get_max_loop_iterations_int): New. HWINT version of
11683 get_max_loop_iterations.
11684 * cfgloop.h: Add prototypes.
11685 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
11686 * loop-unroll.c (decide_peel_once_rolling): Call
11687 get_estimated_loop_iterations_int.
11688 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
11689 * tree-ssa-loop-niter.h: Tweak prototypes.
11691 2013-10-16 David Malcolm <dmalcolm@redhat.com>
11693 * gengtype-parse.c (struct_field_seq): Ignore access-control
11694 keywords ("public:" etc).
11696 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
11698 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
11699 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
11701 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
11703 * config/arm/arm.opt (mlra): New option.
11704 * config/arm/arm.c (arm_lra_p): New function.
11705 (TARGET_LRA_P): Define.
11707 2013-10-16 Paulo Matos <pmatos@broadcom.com>
11709 * tree-core.h (tree_code_name): Remove.
11710 * tree.h (get_tree_code_name): New prototype.
11711 * tree.c (tree_code_name): Make static.
11712 (get_tree_code_name): New function.
11713 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
11714 tree_class_check_failed, tree_range_check_failed,
11715 tree_not_class_check_failed, omp_clause_check_failed,
11716 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
11717 wrapper get_tree_code_name instead of calling tree_code_name directly.
11718 * tree-vrp.c (dump_asserts_for): Likewise.
11719 * tree-dump.c (dequeue_and_dump): Likewise.
11720 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
11721 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
11722 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
11723 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
11724 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
11725 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
11726 dump_gimple_omp_for): Likewise.
11727 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
11728 * tree-ssa-pre.c (print_pre_expr): Likewise.
11729 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
11730 * print-tree.c (print_node_brief, print_node): Likewise.
11731 * gimple.c (gimple_check_failed): Likewise.
11732 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
11733 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
11734 * config/mep/mep.c (mep_validate_vliw): Likewise.
11735 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
11736 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
11738 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11740 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
11743 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
11745 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
11746 (MULTILIB_MATCHES): Add multilib for -march=v8.
11748 2013-10-15 Sriraman Tallam <tmsriram@google.com>
11751 * optc-save-gen.awk: Add extra parameter to the save and restore
11753 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
11754 * tree.c (build_optimization_node): New parameter. Add extra parameter
11755 to call to cl_optimization_save.
11756 (build_target_option_node): New parameter. Add extra parameter
11757 to call to cl_target_option_save.
11758 * tree.h (build_optimization_node): New parameter.
11759 (build_target_option_node): New parameter.
11760 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
11761 build_optimization_node and build_target_option_node.
11762 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
11763 (handle_pragma_push_options): Ditto.
11764 * toplev.c (process_options): Ditto.
11765 * opts.c (init_options_struct): Check for opts_set non-null.
11766 * target.def (target_option.save): New parameter.
11767 (target_option.restore): New parameter.
11768 * tm.texi: Generate.
11769 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
11770 (ix86_pragma_target_parse): Ditto.
11771 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
11773 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
11774 to build_optimization_node and build_target_option_node.
11775 (rs6000_valid_attribute_p): Ditto.
11776 (rs6000_pragma_target_parse): Ditto.
11777 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
11779 * config/i386/i386.h:
11780 TARGET_64BIT_P: New Macro
11781 TARGET_MMX_P: New Macro.
11782 TARGET_3DNOW_P: New Macro.
11783 TARGET_3DNOW_A_P: New Macro.
11784 TARGET_SSE_P: New Macro.
11785 TARGET_SSE2_P: New Macro.
11786 TARGET_SSE3_P: New Macro.
11787 TARGET_SSSE3_P: New Macro.
11788 TARGET_SSE4_1_P: New Macro.
11789 TARGET_SSE4_2_P: New Macro.
11790 TARGET_AVX_P: New Macro.
11791 TARGET_AVX2_P: New Macro.
11792 TARGET_AVX512F_P: New Macro.
11793 TARGET_AVX512PF_P: New Macro.
11794 TARGET_AVX512ER_P: New Macro.
11795 TARGET_AVX512CD_P: New Macro.
11796 TARGET_FMA_P: New Macro.
11797 TARGET_SSE4A_P: New Macro.
11798 TARGET_FMA4_P: New Macro.
11799 TARGET_XOP_P: New Macro.
11800 TARGET_LWP_P: New Macro.
11801 TARGET_ABM_P: New Macro.
11802 TARGET_BMI_P: New Macro.
11803 TARGET_BMI2_P: New Macro.
11804 TARGET_LZCNT_P: New Macro.
11805 TARGET_TBM_P: New Macro.
11806 TARGET_POPCNT_P: New Macro.
11807 TARGET_SAHF_P: New Macro.
11808 TARGET_MOVBE_P: New Macro.
11809 TARGET_CRC32_P: New Macro.
11810 TARGET_AES_P: New Macro.
11811 TARGET_PCLMUL_P: New Macro.
11812 TARGET_CMPXCHG16B_P: New Macro.
11813 TARGET_FSGSBASE_P: New Macro.
11814 TARGET_RDRND_P: New Macro.
11815 TARGET_F16C_P: New Macro.
11816 TARGET_RTM_P: New Macro.
11817 TARGET_HLE_P: New Macro.
11818 TARGET_RDSEED_P: New Macro.
11819 TARGET_PRFCHW_P: New Macro.
11820 TARGET_ADX_P: New Macro.
11821 TARGET_FXSR_P: New Macro.
11822 TARGET_XSAVE_P: New Macro.
11823 TARGET_XSAVEOPT_P: New Macro.
11824 TARGET_LP64_P: New Macro.
11825 TARGET_X32_P: New Macro.
11826 TARGET_FPMATH_DEFAULT_P: New Macro.
11827 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
11828 * config/i386/i386.c (ix86_option_override_internal): New parameters.
11830 Change ix86_tune_string to access opts->x_ix86_tune_string.
11831 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
11832 Change ix86_arch_string to access opts->x_ix86_arch_string.
11833 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
11834 Change ix86_pmode to access opts->x_ix86_pmode.
11835 Change ix86_abi to access opts->x_ix86_abi.
11836 Change ix86_cmodel to access opts->x_ix86_cmodel.
11837 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
11838 Change ix86_isa_flags_explicit to access
11839 opts->x_ix86_isa_flags_explicit.
11840 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
11841 Change ix86_regparm to access opts->x_ix86_regparm.
11842 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
11843 Change ix86_preferred_stack_boundary_arg to access
11844 opts->x_ix86_preferred_stack_boundary_arg.
11845 Change ix86_force_align_arg_pointer to access
11846 opts->x_ix86_force_align_arg_pointer.
11847 Change ix86_incoming_stack_boundar_arg to access
11848 opts->x_ix86_incoming_stack_boundar_arg.
11849 Change ix86_fpmath to access opts->x_ix86_fpmath.
11850 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
11851 Change ix86_recip_name to access opts->x_ix86_recip_name.
11852 Change ix86_stack_protector_guard to access
11853 opts->x_ix86_stack_protector_guard.
11854 Change ix86_tune_memcpy_strategy to access
11855 opts->x_ix86_tune_memcpy_strategy.
11856 Change ix86_tune_memset_strategy to access
11857 opts->x_ix86_tune_memset_strategy.
11858 Change global_options to access opts.
11859 Change global_options_set to access opts_set.
11860 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
11861 Change TARGET_MMX to TARGET_MMX_P (opts->...).
11862 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
11863 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
11864 Change TARGET_SSE to TARGET_SSE_P (opts->...).
11865 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
11866 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
11867 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
11868 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
11869 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
11870 Change TARGET_AVX to TARGET_AVX_P (opts->...).
11871 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
11872 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
11873 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
11874 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
11875 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
11876 Change TARGET_FMA to TARGET_FMA_P (opts->...).
11877 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
11878 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
11879 Change TARGET_XOP to TARGET_XOP_P (opts->...).
11880 Change TARGET_LWP to TARGET_LWP_P (opts->...).
11881 Change TARGET_ABM to TARGET_ABM_P (opts->...).
11882 Change TARGET_BMI to TARGET_BMI_P (opts->...).
11883 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
11884 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
11885 Change TARGET_TBM to TARGET_TBM_P (opts->...).
11886 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
11887 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
11888 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
11889 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
11890 Change TARGET_AES to TARGET_AES_P (opts->...).
11891 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
11892 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
11893 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
11894 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
11895 Change TARGET_F16C to TARGET_F16C_P (opts->...).
11896 Change TARGET_RTM to TARGET_RTM_P (opts->...).
11897 Change TARGET_HLE to TARGET_HLE_P (opts->...).
11898 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
11899 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
11900 Change TARGET_ADX to TARGET_ADX_P (opts->...).
11901 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
11902 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
11903 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
11904 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
11905 Change TARGET_X32 to TARGET_X32_P (opts->...).
11906 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
11907 Change TARGET_FLOAT_RETURNS_IN_80387 to
11908 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
11909 (ix86_function_specific_save): New parameter. Use opts-> fields
11910 to replace global fields.
11911 (ix86_function_specific_restore): Ditto.
11912 (ix86_valid_target_attribute_inner_p): New parameters.
11913 Fix recursive call.
11914 Fix call to ix86_handle_option and set_option.
11915 (ix86_valid_target_attribute_tree): New parameters.
11916 Change global_options to access opts.
11917 Change global_options_set to access opts_set.
11918 Fix call to ix86_valid_target_attribute_inner_p.
11919 Change ix86_tune_string to access opts->x_ix86_tune_string.
11920 Change ix86_arch_string to access opts->x_ix86_arch_string.
11921 Change ix86_fpmath to access opts->x_ix86_fpmath
11922 Fix call to ix86_option_override_internal.
11923 Fix call to ix86_add_new_builtins.
11924 Fix calls to build_optimization_node and build_target_option_node.
11925 (ix86_valid_target_attribute_p): Remove access to global_options.
11926 Use new gcc_options structure func_options.
11927 Fix call to ix86_valid_target_attribute_tree.
11928 Fix call to build_optimization_node.
11929 (get_builtin_code_for_version): Fix call to
11930 ix86_valid_target_attribute_tree.
11932 2013-10-15 David Malcolm <dmalcolm@redhat.com>
11934 * Makefile.in (PICFLAG): New.
11935 (enable_host_shared): New.
11936 (INTERNAL_CFLAGS): Use PICFLAG.
11937 (LIBIBERTY): Use pic build of libiberty.a if configured with
11938 --enable-host-shared.
11939 * configure.ac: Add --enable-host-shared, setting up new
11941 * configure: Regenerate.
11942 * doc/install.texi (--enable-shared): Add note contrasting it with ...
11943 (--enable-host-shared): New option.
11945 2013-10-15 Richard Biener <rguenther@suse.de>
11947 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
11948 for built-in functions.
11950 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
11952 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
11953 (optimize_range_tests_1): New function,
11954 extracted from optimize_range_tests.
11955 (optimize_range_tests_xor): Similarly.
11956 (optimize_range_tests_diff): New function.
11957 (optimize_range_tests): Use optimize_range_tests_1.
11959 2013-10-15 Cong Hou <congh@google.com>
11961 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
11962 requirement of the reduction pattern so that one operand of the
11963 reduction operation can come from outside of the loop.
11965 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11967 * config/arm/neon-schedgen.ml: Remove.
11968 * config/arm/cortex-a9-neon.md: Remove comment regarding
11971 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11973 * config/arm/types: Remove old neon types.
11975 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11977 * config/arm/cortex-a7.md
11978 (cortex_a7_neon_type): New.
11979 (cortex_a7_neon_mul): Update for new types.
11980 (cortex_a7_neon_mla): Likewise.
11981 (cortex_a7_neon): Likewise.
11983 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11985 * config/arm/cortex-a15-neon.md
11986 (cortex_a15_neon_type): New,
11988 (cortex_a15_neon_int_1): Remove.
11989 (cortex_a15_neon_int_2): Likewise.
11990 (cortex_a15_neon_int_3): Likewise.
11991 (cortex_a15_neon_int_4): Likewise.
11992 (cortex_a15_neon_int_5): Likewise.
11993 (cortex_a15_neon_vqneg_vqabs): Likewise.
11994 (cortex_a15_neon_vmov): Likewise.
11995 (cortex_a15_neon_vaba): Likewise.
11996 (cortex_a15_neon_vaba_qqq): Likewise.
11997 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11998 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11999 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12001 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12002 (cortex_a15_neon_mla_qqq_8_16): Likewise.
12003 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
12004 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12005 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12006 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
12007 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12008 (cortex_a15_neon_shift_1): Likewise.
12009 (cortex_a15_neon_shift_2): Likewise.
12010 (cortex_a15_neon_shift_3): Likewise.
12011 (cortex_a15_neon_vshl_ddd): Likewise.
12012 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12013 (cortex_a15_neon_vsra_vrsra): Likewise.
12014 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12015 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12016 (cortex_a15_neon_bp_3cycle): Likewise.
12017 (cortex_a15_neon_ldm_2): Likewise.
12018 (cortex_a15_neon_stm_2): Likewise.
12019 (cortex_a15_neon_mcr): Likewise.
12020 (cortex_a15_neon_mrc): Likewise.
12021 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
12022 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
12023 (cortex_a15_neon_fp_vmul_ddd): Likewise.
12024 (cortex_a15_neon_fp_vmul_qqd): Likewise.
12025 (cortex_a15_neon_fp_vmla_ddd): Likewise.
12026 (cortex_a15_neon_fp_vmla_qqq): Likewise.
12027 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
12028 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
12029 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12030 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12031 (cortex_a15_neon_bp_simple): Likewise.
12032 (cortex_a15_neon_bp_2cycle): Likewise.
12033 (cortex_a15_neon_bp_3cycle): Likewise.
12034 (cortex_a15_neon_vld1_1_2_regs): Likewise.
12035 (cortex_a15_neon_vld1_3_4_regs): Likewise.
12036 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12037 (cortex_a15_neon_vld2_4_regs): Likewise.
12038 (cortex_a15_neon_vld3_vld4): Likewise.
12039 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12040 (cortex_a15_neon_vst1_3_4_regs): Likewise.
12041 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
12042 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
12043 (cortex_a15_neon_vst3_vst4): Rename to...
12044 (cortex_a15_neon_vst4): This, update for new attributes.
12045 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
12046 (cortex_a15_neon_vld3_vld4_lane): Likewise.
12047 (cortex_a15_neon_vst1_vst2_lane): Likewise.
12048 (cortex_a15_neon_vst3_vst4_lane): Likewise.
12049 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
12050 (cortex_a15_neon_ldm_2): Likewise.
12051 (cortex_a15_neon_stm_2): Likewise.
12052 (cortex_a15_neon_mcr): Likewise.
12053 (cortex_a15_neon_mcr_2_mcrr): Likewise.
12054 (cortex_a15_neon_mrc): Likewise.
12055 (cortex_a15_neon_mrrc): Likewise.
12057 (cortex_a15_neon_abd): New.
12058 (cortex_a15_neon_abd_q): Likewise.
12059 (cortex_a15_neon_aba): Likewise.
12060 (cortex_a15_neon_aba_q): Likewise.
12061 (cortex_a15_neon_acc): Likewise.
12062 (cortex_a15_neon_acc_q): Likewise.
12063 (cortex_a15_neon_arith_basic): Likewise.
12064 (cortex_a15_neon_arith_complex): Likewise.
12065 (cortex_a15_neon_multiply): Likewise.
12066 (cortex_a15_neon_multiply_q): Likewise.
12067 (cortex_a15_neon_mla): Likewise.
12068 (cortex_a15_neon_mla_q): Likewise.
12069 (cortex_a15_neon_sat_mla_long): Likewise.
12070 (cortex_a15_neon_shift_acc): Likewise.
12071 (cortex_a15_neon_shift_imm_basic): Likewise.
12072 (cortex_a15_neon_shift_imm_complex): Likewise.
12073 (cortex_a15_neon_shift_reg_basic): Likewise.
12074 (cortex_a15_neon_shift_reg_basic_q): Likewise.
12075 (cortex_a15_neon_shift_reg_complex): Likewise.
12076 (cortex_a15_neon_shift_reg_complex_q): Likewise.
12077 (cortex_a15_neon_fp_negabs): Likewise
12078 (cortex_a15_neon_fp_arith): Likewise
12079 (cortex_a15_neon_fp_arith_q): Likewise
12080 (cortex_a15_neon_fp_cvt_int): Likewise
12081 (cortex_a15_neon_fp_cvt_int_q): Likewise
12082 (cortex_a15_neon_fp_cvt_16): Likewise
12083 (cortex_a15_neon_fp_mul): Likewise
12084 (cortex_a15_neon_fp_mul_q): Likewise
12085 (cortex_a15_neon_fp_mla): Likewise
12086 (cortex_a15_neon_fp_mla_q): Likewise
12087 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
12088 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
12089 (cortex_a15_neon_bitops): Likewise.
12090 (cortex_a15_neon_bitops_q): Likewise.
12091 (cortex_a15_neon_from_gp): Likewise.
12092 (cortex_a15_neon_from_gp_q): Likewise.
12093 (cortex_a15_neon_tbl3_tbl4): Likewise.
12094 (cortex_a15_neon_zip_q): Likewise.
12095 (cortex_a15_neon_to_gp): Likewise.
12096 (cortex_a15_neon_load_a): Likewise.
12097 (cortex_a15_neon_load_b): Likewise.
12098 (cortex_a15_neon_load_c): Likewise.
12099 (cortex_a15_neon_load_d): Likewise.
12100 (cortex_a15_neon_load_e): Likewise.
12101 (cortex_a15_neon_load_f): Likewise.
12102 (cortex_a15_neon_store_a): Likewise.
12103 (cortex_a15_neon_store_b): Likewise.
12104 (cortex_a15_neon_store_c): Likewise.
12105 (cortex_a15_neon_store_d): Likewise.
12106 (cortex_a15_neon_store_e): Likewise.
12107 (cortex_a15_neon_store_f): Likewise.
12108 (cortex_a15_neon_store_g): Likewise.
12109 (cortex_a15_neon_store_h): Likewise.
12110 (cortex_a15_vfp_to_from_gp): Likewise.
12112 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12114 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
12116 (cortex_a9_neon_vshl_ddd): Remove.
12117 (cortex_a9_neon_vst3_vst4): Likewise.
12118 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12120 (cortex_a9_neon_bit_ops_q): New.
12122 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
12123 (cortex_a9_neon_int_2): Likewise.
12124 (cortex_a9_neon_int_3): Likewise.
12125 (cortex_a9_neon_int_4): Likewise.
12126 (cortex_a9_neon_int_5): Likewise.
12127 (cortex_a9_neon_vqneg_vqabs): Likewise.
12128 (cortex_a9_neon_vmov): Likewise.
12129 (cortex_a9_neon_vaba): Likewise.
12130 (cortex_a9_neon_vaba_qqq): Likewise.
12131 (cortex_a9_neon_shift_1): Likewise.
12132 (cortex_a9_neon_shift_2): Likewise.
12133 (cortex_a9_neon_shift_3): Likewise.
12134 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12135 (cortex_a9_neon_vsra_vrsra): Likewise.
12136 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12137 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12138 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12140 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12141 (cortex_a9_neon_mla_qqq_8_16): Likewise.
12142 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12144 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12145 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12146 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
12147 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12148 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
12149 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
12150 (cortex_a9_neon_fp_vsum): Likewise.
12151 (cortex_a9_neon_fp_vmul_ddd): Likewise.
12152 (cortex_a9_neon_fp_vmul_qqd): Likewise.
12153 (cortex_a9_neon_fp_vmla_ddd): Likewise.
12154 (cortex_a9_neon_fp_vmla_qqq): Likewise.
12155 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
12156 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
12157 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12158 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12159 (cortex_a9_neon_bp_simple): Likewise.
12160 (cortex_a9_neon_bp_2cycle): Likewise.
12161 (cortex_a9_neon_bp_3cycle): Likewise.
12162 (cortex_a9_neon_ldr): Likewise.
12163 (cortex_a9_neon_str): Likewise.
12164 (cortex_a9_neon_vld1_1_2_regs): Likewise.
12165 (cortex_a9_neon_vld1_3_4_regs): Likewise.
12166 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12167 (cortex_a9_neon_vld2_4_regs): Likewise.
12168 (cortex_a9_neon_vld3_vld4): Likewise.
12169 (cortex_a9_neon_vld1_vld2_lane): Likewise.
12170 (cortex_a9_neon_vld3_vld4_lane): Likewise.
12171 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
12172 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12173 (cortex_a9_neon_vst1_3_4_regs): Likewise.
12174 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
12175 (cortex_a9_neon_vst1_vst2_lane): Likewise.
12176 (cortex_a9_neon_vst3_vst4_lane): Likewise.
12177 (cortex_a9_neon_mcr): Likewise.
12178 (cortex_a9_neon_mcr_2_mcrr): Likewise.
12179 (cortex_a9_neon_mrc): Likewise.
12180 (cortex_a9_neon_mrrc): Likewise.
12182 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12184 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
12186 (cortex_a8_neon_vshl_ddd): Remove.
12187 (cortex_a8_neon_vst3_vst4): Likewise.
12188 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
12190 (cortex_a8_neon_bit_ops_q): New.
12192 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
12193 (cortex_a8_neon_int_2): Likewise..
12194 (cortex_a8_neon_int_3): Likewise.
12195 (cortex_a8_neon_int_5): Likewise.
12196 (cortex_a8_neon_vqneg_vqabs): Likewise.
12197 (cortex_a8_neon_int_4): Likewise.
12198 (cortex_a8_neon_vaba): Likewise.
12199 (cortex_a8_neon_vaba_qqq): Likewise.
12200 (cortex_a8_neon_shift_1): Likewise.
12201 (cortex_a8_neon_shift_2): Likewise.
12202 (cortex_a8_neon_shift_3): Likewise.
12203 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
12204 (cortex_a8_neon_vsra_vrsra): Likewise.
12205 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12206 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
12207 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
12209 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
12210 (cortex_a8_neon_mla_qqq_8_16): Likewise.
12211 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
12213 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
12214 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
12215 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
12216 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
12217 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
12218 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
12219 (cortex_a8_neon_fp_vsum): Likewise.
12220 (cortex_a8_neon_fp_vmul_ddd): Likewise.
12221 (cortex_a8_neon_fp_vmul_qqd): Likewise.
12222 (cortex_a8_neon_fp_vmla_ddd): Likewise.
12223 (cortex_a8_neon_fp_vmla_qqq): Likewise.
12224 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
12225 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
12226 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
12227 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
12228 (cortex_a8_neon_bp_simple): Likewise.
12229 (cortex_a8_neon_bp_2cycle): Likewise.
12230 (cortex_a8_neon_bp_3cycle): Likewise.
12231 (cortex_a8_neon_ldr): Likewise.
12232 (cortex_a8_neon_str): Likewise.
12233 (cortex_a8_neon_vld1_1_2_regs): Likewise.
12234 (cortex_a8_neon_vld1_3_4_regs): Likewise.
12235 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
12236 (cortex_a8_neon_vld2_4_regs): Likewise.
12237 (cortex_a8_neon_vld3_vld4): Likewise.
12238 (cortex_a8_neon_vld1_vld2_lane): Likewise.
12239 (cortex_a8_neon_vld3_vld4_lane): Likewise.
12240 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
12241 (cortex_a8_neon_vst1_3_4_regs): Likewise.
12242 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
12243 (cortex_a8_neon_vst1_vst2_lane): Likewise.
12244 (cortex_a8_neon_vst3_vst4_lane): Likewise.
12245 (cortex_a8_neon_mcr): Likewise.
12246 (cortex_a8_neon_mcr_2_mcrr): Likewise.
12247 (cortex_a8_neon_mrc): Likewise.
12248 (cortex_a8_neon_mrrc): Likewise.
12250 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12252 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
12254 * config/aarch64/aarch64-simd.md (neon_type): Remove.
12255 (aarch64_simd_dup<mode>): Add "type" attribute.
12256 (aarch64_dup_lane<mode>): Likewise.
12257 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
12258 (*aarch64_simd_mov<mode>): Likewise.
12259 (aarch64_simd_mov_from_<mode>low): Likewise.
12260 (aarch64_simd_mov_from_<mode>high): Likewise.
12261 (orn<mode>3): Likewise.
12262 (bic<mode>3): Likewise.
12263 (add<mode>3): Likewise.
12264 (sub<mode>3): Likewise.
12265 (mul<mode>3): Likewise.
12266 (*aarch64_mul3_elt<mode>): Likewise.
12267 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12268 (*aarch64_mul3_elt_to_128df): Likewise.
12269 (*aarch64_mul3_elt_to_64v2df): Likewise.
12270 (neg<mode>2): Likewise.
12271 (abs<mode>2): Likewise.
12272 (abd<mode>_3): Likewise.
12273 (aba<mode>_3): Likewise.
12274 (fabd<mode>_3): Likewise.
12275 (*fabd_scalar<mode>3): Likewise.
12276 (and<mode>3): Likewise.
12277 (ior<mode>3): Likewise.
12278 (xor<mode>3): Likewise.
12279 (one_cmpl<mode>2): Likewise.
12280 (aarch64_simd_vec_set<mode>): Likewise.
12281 (aarch64_simd_lshr<mode>): Likewise.
12282 (aarch64_simd_ashr<mode>): Likewise.
12283 (aarch64_simd_imm_shl<mode>): Likewise.
12284 (aarch64_simd_reg_sshl<mode): Likewise.
12285 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
12286 (aarch64_simd_reg_shl<mode>_signed): Likewise.
12287 (aarch64_simd_vec_setv2di): Likewise.
12288 (aarch64_simd_vec_set<mode>): Likewise.
12289 (aarch64_mla<mode>): Likewise.
12290 (*aarch64_mla_elt<mode>): Likewise.
12291 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12292 (aarch64_mls<mode>): Likewise.
12293 (*aarch64_mls_elt<mode>): Likewise.
12294 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12295 (<su><maxmin><mode>3): Likewise.
12296 (move_lo_quad_<mode>): Likewise.
12297 (aarch64_simd_move_hi_quad_<mode>): Likewise.
12298 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
12299 (vec_pack_trunc_<mode>): Likewise.
12300 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
12301 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
12302 (*aarch64_<su>mlal_lo<mode>): Likewise.
12303 (*aarch64_<su>mlal_hi<mode>): Likewise.
12304 (*aarch64_<su>mlsl_lo<mode>): Likewise.
12305 (*aarch64_<su>mlsl_hi<mode>): Likewise.
12306 (*aarch64_<su>mlal<mode>): Likewise.
12307 (*aarch64_<su>mlsl<mode>): Likewise.
12308 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
12309 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
12310 (add<mode>3): Likewise.
12311 (sub<mode>3): Likewise.
12312 (mul<mode>3): Likewise.
12313 (div<mode>3): Likewise.
12314 (neg<mode>2): Likewise.
12315 (abs<mode>2): Likewise.
12316 (fma<mode>4): Likewise.
12317 (*aarch64_fma4_elt<mode>): Likewise.
12318 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12319 (*aarch64_fma4_elt_to_128df): Likewise.
12320 (*aarch64_fma4_elt_to_64v2df): Likewise.
12321 (fnma<mode>4): Likewise.
12322 (*aarch64_fnma4_elt<mode>): Likewise.
12323 (*aarch64_fnma4_elt_<vswap_width_name><mode>
12324 (*aarch64_fnma4_elt_to_128df): Likewise.
12325 (*aarch64_fnma4_elt_to_64v2df): Likewise.
12326 (<frint_pattern><mode>2): Likewise.
12327 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
12328 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
12329 (vec_unpacks_lo_v4sf): Likewise.
12330 (aarch64_float_extend_lo_v2df): Likewise.
12331 (vec_unpacks_hi_v4sf): Likewise.
12332 (aarch64_float_truncate_lo_v2sf): Likewise.
12333 (aarch64_float_truncate_hi_v4sf): Likewise.
12334 (aarch64_vmls<mode>): Likewise.
12335 (<su><maxmin><mode>3): Likewise.
12336 (<maxmin_uns><mode>3): Likewise.
12337 (reduc_<sur>plus_<mode>): Likewise.
12338 (reduc_<sur>plus_v2di): Likewise.
12339 (reduc_<sur>plus_v2si): Likewise.
12340 (reduc_<sur>plus_<mode>): Likewise.
12341 (aarch64_addpv4sf): Likewise.
12342 (clz<mode>2): Likewise.
12343 (reduc_<maxmin_uns>_<mode>): Likewise.
12344 (reduc_<maxmin_uns>_v2di): Likewise.
12345 (reduc_<maxmin_uns>_v2si): Likewise.
12346 (reduc_<maxmin_uns>_<mode>): Likewise.
12347 (reduc_<maxmin_uns>_v4sf): Likewise.
12348 (aarch64_simd_bsl<mode>_internal): Likewise.
12349 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
12350 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
12351 (aarch64_get_lane<mode>): Likewise.
12352 (*aarch64_combinez<mode>): Likewise.
12353 (aarch64_combine<mode>): Likewise.
12354 (aarch64_simd_combine<mode>): Likewise.
12355 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
12356 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
12357 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
12358 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
12359 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
12360 (aarch64_<sur>h<addsub><mode>): Likewise.
12361 (aarch64_<sur><addsub>hn<mode>): Likewise.
12362 (aarch64_<sur><addsub>hn2<mode>): Likewise.
12363 (aarch64_pmul<mode>): Likewise.
12364 (aarch64_<su_optab><optab><mode>): Likewise.
12365 (aarch64_<sur>qadd<mode>): Likewise.
12366 (aarch64_sqmovun<mode>): Likewise.
12367 (aarch64_<sur>qmovn<mode>): Likewise.
12368 (aarch64_s<optab><mode>): Likewise.
12369 (aarch64_sq<r>dmulh<mode>): Likewise.
12370 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12371 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
12372 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
12373 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
12374 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12375 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
12376 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
12377 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
12378 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
12379 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
12380 (aarch64_sqdmull<mode>): Likewise.
12381 (aarch64_sqdmull_lane<mode>_internal): Likewise.
12382 (aarch64_sqdmull_n<mode>): Likewise.
12383 (aarch64_sqdmull2<mode>_internal): Likewise.
12384 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
12385 (aarch64_sqdmull2_n<mode>_internal): Likewise.
12386 (aarch64_<sur>shl<mode>): Likewise.
12387 (aarch64_<sur>q<r>shl<mode>
12388 (aarch64_<sur>shll_n<mode>): Likewise.
12389 (aarch64_<sur>shll2_n<mode>): Likewise.
12390 (aarch64_<sur>shr_n<mode>): Likewise.
12391 (aarch64_<sur>sra_n<mode>): Likewise.
12392 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
12393 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
12394 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
12395 (aarch64_cm<optab><mode>): Likewise.
12396 (aarch64_cm<optab>di): Likewise.
12397 (aarch64_cm<optab><mode>): Likewise.
12398 (aarch64_cm<optab>di): Likewise.
12399 (aarch64_cmtst<mode>): Likewise.
12400 (aarch64_cmtstdi): Likewise.
12401 (aarch64_cm<optab><mode>): Likewise.
12402 (*aarch64_fac<optab><mode>): Likewise.
12403 (aarch64_addp<mode>): Likewise.
12404 (aarch64_addpdi): Likewise.
12405 (sqrt<mode>2): Likewise.
12406 (vec_load_lanesoi<mode>): Likewise.
12407 (vec_store_lanesoi<mode>): Likewise.
12408 (vec_load_lanesci<mode>): Likewise.
12409 (vec_store_lanesci<mode>): Likewise.
12410 (vec_load_lanesxi<mode>): Likewise.
12411 (vec_store_lanesxi<mode>): Likewise.
12412 (*aarch64_mov<mode>): Likewise.
12413 (aarch64_ld2<mode>_dreg): Likewise.
12414 (aarch64_ld2<mode>_dreg): Likewise.
12415 (aarch64_ld3<mode>_dreg): Likewise.
12416 (aarch64_ld3<mode>_dreg): Likewise.
12417 (aarch64_ld4<mode>_dreg): Likewise.
12418 (aarch64_ld4<mode>_dreg): Likewise.
12419 (aarch64_tbl1<mode>): Likewise.
12420 (aarch64_tbl2v16qi): Likewise.
12421 (aarch64_combinev16qi): Likewise.
12422 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
12423 (aarch64_st2<mode>_dreg): Likewise.
12424 (aarch64_st2<mode>_dreg): Likewise.
12425 (aarch64_st3<mode>_dreg): Likewise.
12426 (aarch64_st3<mode>_dreg): Likewise.
12427 (aarch64_st4<mode>_dreg): Likewise.
12428 (aarch64_st4<mode>_dreg): Likewise.
12429 (*aarch64_simd_ld1r<mode>): Likewise.
12430 (aarch64_frecpe<mode>): Likewise.
12431 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
12432 (aarch64_frecps<mode>): Likewise.
12434 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12436 * config/arm/iterators.md (V_elem_ch): New.
12438 (VQH_type): Likewise.
12439 * config/arm/arm.md (is_neon_type): New.
12440 (conds): Use is_neon_type.
12441 (anddi3_insn): Update type attribute.
12442 (xordi3_insn): Likewise.
12443 (one_cmpldi2): Likewise.
12444 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
12445 * config/arm/neon.md (neon_mov): Update type attribute.
12446 (*movmisalign<mode>_neon_store): Likewise.
12447 (*movmisalign<mode>_neon_load): Likewise.
12448 (vec_set<mode>_internal): Likewise.
12449 (vec_set<mode>_internal): Likewise.
12450 (vec_setv2di_internal): Likewise.
12451 (vec_extract<mode>): Likewise.
12452 (vec_extract<mode>): Likewise.
12453 (vec_extractv2di): Likewise.
12454 (*add<mode>3_neon): Likewise.
12455 (adddi3_neon): Likewise.
12456 (*sub<mode>3_neon): Likewise.
12457 (subdi3_neon): Likewise.
12458 (fma<VCVTF:mode>4): Likewise.
12459 (fma<VCVTF:mode>4_intrinsic): Likewise.
12460 (*fmsub<VCVTF:mode>4): Likewise.
12461 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
12462 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
12463 (ior<mode>3): Likewise.
12464 (and<mode>3): Likewise.
12465 (orn<mode>3_neon): Likewise.
12466 (orndi3_neon): Likewise.
12467 (bic<mode>3_neon): Likewise.
12468 (bicdi3_neon): Likewise.
12469 (xor<mode>3): Likewise.
12470 (one_cmpl<mode>2): Likewise.
12471 (abs<mode>2): Likewise.
12472 (neg<mode>2): Likewise.
12473 (negdi2_neon): Likewise.
12474 (*umin<mode>3_neon): Likewise.
12475 (*umax<mode>3_neon): Likewise.
12476 (*smin<mode>3_neon): Likewise.
12477 (*smax<mode>3_neon): Likewise.
12478 (vashl<mode>3): Likewise.
12479 (vashr<mode>3_imm): Likewise.
12480 (vlshr<mode>3_imm): Likewise.
12481 (ashl<mode>3_signed): Likewise.
12482 (ashl<mode>3_unsigned): Likewise.
12483 (neon_load_count): Likewise.
12484 (ashldi3_neon_noclobber): Likewise.
12485 (ashldi3_neon): Likewise.
12486 (signed_shift_di3_neon): Likewise.
12487 (unsigned_shift_di3_neon): Likewise.
12488 (ashrdi3_neon_imm_noclobber): Likewise.
12489 (lshrdi3_neon_imm_noclobber): Likewise.
12490 (<shift>di3_neon): Likewise.
12491 (widen_ssum<mode>3): Likewise.
12492 (widen_usum<mode>3): Likewise.
12493 (quad_halves_<code>v4si): Likewise.
12494 (quad_halves_<code>v4sf): Likewise.
12495 (quad_halves_<code>v8hi): Likewise.
12496 (quad_halves_<code>v16qi): Likewise.
12497 (reduc_splus_v2di): Likewise.
12498 (neon_vpadd_internal<mode>): Likewise.
12499 (neon_vpsmin<mode>): Likewise.
12500 (neon_vpsmax<mode>): Likewise.
12501 (neon_vpumin<mode>): Likewise.
12502 (neon_vpumax<mode>): Likewise.
12503 (*ss_add<mode>_neon): Likewise.
12504 (*us_add<mode>_neon): Likewise.
12505 (*ss_sub<mode>_neon): Likewise.
12506 (*us_sub<mode>_neon): Likewise.
12507 (neon_vadd<mode>_unspec): Likewise.
12508 (neon_vaddl<mode>): Likewise.
12509 (neon_vaddw<mode>): Likewise.
12510 (neon_vhadd<mode>): Likewise.
12511 (neon_vqadd<mode>): Likewise.
12512 (neon_vaddhn<mode>): Likewise.
12513 (neon_vmul<mode>): Likewise.
12514 (neon_vfms<VCVTF:mode>): Likewise.
12515 (neon_vmlal<mode>): Likewise.
12516 (neon_vmls<mode>): Likewise.
12517 (neon_vmlsl<mode>): Likewise.
12518 (neon_vqdmulh<mode>): Likewise.
12519 (neon_vqdmlal<mode>): Likewise.
12520 (neon_vqdmlsl<mode>): Likewise.
12521 (neon_vmull<mode>): Likewise.
12522 (neon_vqdmull<mode>): Likewise.
12523 (neon_vsub<mode>_unspec): Likewise.
12524 (neon_vsubl<mode>): Likewise.
12525 (neon_vsubw<mode>): Likewise.
12526 (neon_vqsub<mode>): Likewise.
12527 (neon_vhsub<mode>): Likewise.
12528 (neon_vsubhn<mode>): Likewise.
12529 (neon_vceq<mode>): Likewise.
12530 (neon_vcge<mode>): Likewise.
12531 (neon_vcgeu<mode>): Likewise.
12532 (neon_vcgt<mode>): Likewise.
12533 (neon_vcgtu<mode>): Likewise.
12534 (neon_vcle<mode>): Likewise.
12535 (neon_vclt<mode>): Likewise.
12536 (neon_vcage<mode>): Likewise.
12537 (neon_vcagt<mode>): Likewise.
12538 (neon_vtst<mode>): Likewise.
12539 (neon_vabd<mode>): Likewise.
12540 (neon_vabdl<mode>): Likewise.
12541 (neon_vaba<mode>): Likewise.
12542 (neon_vabal<mode>): Likewise.
12543 (neon_vmax<mode>): Likewise.
12544 (neon_vmin<mode>): Likewise.
12545 (neon_vpaddl<mode>): Likewise.
12546 (neon_vpadal<mode>): Likewise.
12547 (neon_vpmax<mode>): Likewise.
12548 (neon_vpmin<mode>): Likewise.
12549 (neon_vrecps<mode>): Likewise.
12550 (neon_vrsqrts<mode>): Likewise.
12551 (neon_vqabs<mode>): Likewise.
12552 (neon_vqneg<mode>): Likewise.
12553 (neon_vcls<mode>): Likewise.
12554 (clz<mode>2): Likewise.
12555 (popcount<mode>2): Likewise.
12556 (neon_vrecpe<mode>): Likewise.
12557 (neon_vrsqrte<mode>): Likewise.
12558 (neon_vget_lane<mode>_sext_internal): Likewise.
12559 (neon_vget_lane<mode>_zext_internal): Likewise.
12560 (neon_vdup_n<mode>): Likewise.
12561 (neon_vdup_n<mode>): Likewise.
12562 (neon_vdup_nv2di): Likewise.
12563 (neon_vdup_lane<mode>_interal): Likewise.
12564 (*neon_vswp<mode>): Likewise.
12565 (neon_vcombine<mode>): Likewise.
12566 (float<mode><V_cvtto>2): Likewise.
12567 (floatuns<mode><V_cvtto>2): Likewise.
12568 (fix_trunc<mode><V_cvtto>2): Likewise.
12569 (fixuns_trunc<mode><V_cvtto>2
12570 (neon_vcvt<mode>): Likewise.
12571 (neon_vcvt<mode>): Likewise.
12572 (neon_vcvtv4sfv4hf): Likewise.
12573 (neon_vcvtv4hfv4sf): Likewise.
12574 (neon_vcvt_n<mode>): Likewise.
12575 (neon_vcvt_n<mode>): Likewise.
12576 (neon_vmovn<mode>): Likewise.
12577 (neon_vqmovn<mode>): Likewise.
12578 (neon_vqmovun<mode>): Likewise.
12579 (neon_vmovl<mode>): Likewise.
12580 (neon_vmul_lane<mode>): Likewise.
12581 (neon_vmul_lane<mode>): Likewise.
12582 (neon_vmull_lane<mode>): Likewise.
12583 (neon_vqdmull_lane<mode>): Likewise.
12584 (neon_vqdmulh_lane<mode>): Likewise.
12585 (neon_vqdmulh_lane<mode>): Likewise.
12586 (neon_vmla_lane<mode>): Likewise.
12587 (neon_vmla_lane<mode>): Likewise.
12588 (neon_vmlal_lane<mode>): Likewise.
12589 (neon_vqdmlal_lane<mode>): Likewise.
12590 (neon_vmls_lane<mode>): Likewise.
12591 (neon_vmls_lane<mode>): Likewise.
12592 (neon_vmlsl_lane<mode>): Likewise.
12593 (neon_vqdmlsl_lane<mode>): Likewise.
12594 (neon_vext<mode>): Likewise.
12595 (neon_vrev64<mode>): Likewise.
12596 (neon_vrev32<mode>): Likewise.
12597 (neon_vrev16<mode>): Likewise.
12598 (neon_vbsl<mode>_internal): Likewise.
12599 (neon_vshl<mode>): Likewise.
12600 (neon_vqshl<mode>): Likewise.
12601 (neon_vshr_n<mode>): Likewise.
12602 (neon_vshrn_n<mode>): Likewise.
12603 (neon_vqshrn_n<mode>): Likewise.
12604 (neon_vqshrun_n<mode>): Likewise.
12605 (neon_vshl_n<mode>): Likewise.
12606 (neon_vqshl_n<mode>): Likewise.
12607 (neon_vqshlu_n<mode>): Likewise.
12608 (neon_vshll_n<mode>): Likewise.
12609 (neon_vsra_n<mode>): Likewise.
12610 (neon_vsri_n<mode>): Likewise.
12611 (neon_vsli_n<mode>): Likewise.
12612 (neon_vtbl1v8qi): Likewise.
12613 (neon_vtbl2v8qi): Likewise.
12614 (neon_vtbl3v8qi): Likewise.
12615 (neon_vtbl4v8qi): Likewise.
12616 (neon_vtbl1v16qi): Likewise.
12617 (neon_vtbl2v16qi): Likewise.
12618 (neon_vcombinev16qi): Likewise.
12619 (neon_vtbx1v8qi): Likewise.
12620 (neon_vtbx2v8qi): Likewise.
12621 (neon_vtbx3v8qi): Likewise.
12622 (neon_vtbx4v8qi): Likewise.
12623 (*neon_vtrn<mode>_insn): Likewise.
12624 (*neon_vzip<mode>_insn): Likewise.
12625 (*neon_vuzp<mode>_insn): Likewise.
12626 (neon_vld1<mode>): Likewise.
12627 (neon_vld1_lane<mode>): Likewise.
12628 (neon_vld1_lane<mode>): Likewise.
12629 (neon_vld1_dup<mode>): Likewise.
12630 (neon_vld1_dup<mode>): Likewise.
12631 (neon_vld1_dupv2di): Likewise.
12632 (neon_vst1<mode>): Likewise.
12633 (neon_vst1_lane<mode>): Likewise.
12634 (neon_vst1_lane<mode>): Likewise.
12635 (neon_vld2<mode>): Likewise.
12636 (neon_vld2<mode>): Likewise.
12637 (neon_vld2_lane<mode>): Likewise.
12638 (neon_vld2_lane<mode>): Likewise.
12639 (neon_vld2_dup<mode>): Likewise.
12640 (neon_vst2<mode>): Likewise.
12641 (neon_vst2<mode>): Likewise.
12642 (neon_vst2_lane<mode>): Likewise.
12643 (neon_vst2_lane<mode>): Likewise.
12644 (neon_vld3<mode>): Likewise.
12645 (neon_vld3qa<mode>): Likewise.
12646 (neon_vld3qb<mode>): Likewise.
12647 (neon_vld3_lane<mode>): Likewise.
12648 (neon_vld3_lane<mode>): Likewise.
12649 (neon_vld3_dup<mode>): Likewise.
12650 (neon_vst3<mode>): Likewise.
12651 (neon_vst3qa<mode>): Likewise.
12652 (neon_vst3qb<mode>): Likewise.
12653 (neon_vst3_lane<mode>): Likewise.
12654 (neon_vst3_lane<mode>): Likewise.
12655 (neon_vld4<mode>): Likewise.
12656 (neon_vld4qa<mode>): Likewise.
12657 (neon_vld4qb<mode>): Likewise.
12658 (neon_vld4_lane<mode>): Likewise.
12659 (neon_vld4_lane<mode>): Likewise.
12660 (neon_vld4_dup<mode>): Likewise.
12661 (neon_vst4<mode>): Likewise.
12662 (neon_vst4qa<mode>): Likewise.
12663 (neon_vst4qb<mode>): Likewise.
12664 (neon_vst4_lane<mode>): Likewise.
12665 (neon_vst4_lane<mode>): Likewise.
12666 (neon_vec_unpack<US>_lo_<mode>): Likewise.
12667 (neon_vec_unpack<US>_hi_<mode>): Likewise.
12668 (neon_vec_<US>mult_lo_<mode>): Likewise.
12669 (neon_vec_<US>mult_hi_<mode>): Likewise.
12670 (neon_vec_<US>shiftl_<mode>): Likewise.
12671 (neon_unpack<US>_<mode>): Likewise.
12672 (neon_vec_<US>mult_<mode>): Likewise.
12673 (vec_pack_trunc_<mode>): Likewise.
12674 (neon_vec_pack_trunc_<mode>): Likewise.
12675 (neon_vabd<mode>_2): Likewise.
12676 (neon_vabd<mode>_3): Likewise.
12678 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12680 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
12681 (load_pair): Update type attribute.
12682 (store_pair): Update type attribute.
12683 * config/aarch64/iterators.md (q): New.
12685 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
12687 * config/arm/types.md: Add new types for Neon insns.
12689 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12691 Sergey Lega <sergey.s.lega@intel.com>
12692 Anna Tikhonova <anna.tikhonova@intel.com>
12693 Ilya Tocar <ilya.tocar@intel.com>
12694 Andrey Turetskiy <andrey.turetskiy@intel.com>
12695 Ilya Verbin <ilya.verbin@intel.com>
12696 Kirill Yukhin <kirill.yukhin@intel.com>
12697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12699 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
12700 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
12701 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
12702 (rcp14<mode>): New.
12703 (srcp14<mode>): Ditto.
12704 (rsqrt14<mode>): Ditto.
12705 (rsqrt14<mode>): Ditto.
12706 (avx512f_vmscalef<mode>): Ditto.
12707 (avx512f_scalef<mode>): Ditto.
12708 (avx512f_getexp<mode>): Ditto.
12709 (avx512f_sgetexp<mode>): Ditto.
12710 (avx512f_fixupimm<mode>): Ditto.
12711 (avx512f_sfixupimm<mode>): Ditto.
12712 (avx512f_rndscale<mode>): Ditto.
12713 (*avx512er_exp2<mode>): Ditto.
12714 (*avx512er_rcp28<mode>): Ditto.
12715 (avx512er_rsqrt28<mode>): Ditto.
12716 (avx512f_getmant<mode>): Ditto.
12717 (avx512f_getmant<mode>): Ditto.
12718 (avx512f_rndscale<mode>): Fix formatting.
12720 2013-10-15 Martin Jambor <mjambor@suse.cz>
12722 * ipa-utils.h (ipa_edge_within_scc): Declare.
12723 * ipa-cp.c (edge_within_scc): Moved...
12724 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
12726 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12727 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12728 Sergey Lega <sergey.s.lega@intel.com>
12729 Anna Tikhonova <anna.tikhonova@intel.com>
12730 Ilya Tocar <ilya.tocar@intel.com>
12731 Andrey Turetskiy <andrey.turetskiy@intel.com>
12732 Ilya Verbin <ilya.verbin@intel.com>
12733 Kirill Yukhin <kirill.yukhin@intel.com>
12734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12736 * config/i386/predicates.md (const_8_to_15_operand): New.
12737 (const_16_to_31_operand): Ditto.
12738 * config/i386/sse.md (V8FI): New.
12740 (reduc_splus_v8df): Ditto.
12741 (reduc_splus_v16sf): Ditto.
12742 (avx512f_vextract<shuffletype>32x4_1): Ditto.
12743 (vec_extract_hi_<mode>): Ditto.
12744 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
12745 (vec_set_lo_<mode>): Ditto.
12746 (vec_set_hi_<mode>): Ditto.
12747 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
12748 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
12749 (avx512f_pshufd_1): Ditto.
12750 (avx512f_broadcast<mode>): Ditto.
12751 (avx512f_broadcast<mode>): Ditto.
12752 (define_split): Split vec_extract_lo into move.
12753 (ssequartermode): Ditto.
12754 (ssedoublemode): Extened with wider modes.
12755 (vec_extract_lo_<mode>): Ditto.
12757 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12758 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12759 Sergey Lega <sergey.s.lega@intel.com>
12760 Anna Tikhonova <anna.tikhonova@intel.com>
12761 Ilya Tocar <ilya.tocar@intel.com>
12762 Andrey Turetskiy <andrey.turetskiy@intel.com>
12763 Ilya Verbin <ilya.verbin@intel.com>
12764 Kirill Yukhin <kirill.yukhin@intel.com>
12765 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12767 * config/i386/predicates.md (register_or_constm1_operand): New.
12768 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
12769 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
12770 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
12771 UNSPEC_SCATTER_PREFETCH
12773 (avx512f_ucmp<mode>3): Ditto.
12774 (avx512f_vternlog<mode>): Ditto.
12775 (avx512f_align<mode>): Ditto.
12776 (<shift_insn><mode>3): Ditto.
12777 (avx512f_<rotate>v<mode>): Ditto.
12778 (avx512f_<rotate><mode>): Ditto.
12779 (avx512f_eq<mode>3): Ditto.
12780 (avx512f_eq<mode>3_1): Ditto.
12781 (avx512f_gt<mode>3): Ditto.
12782 (avx512f_testm<mode>3): Ditto.
12783 (avx512f_testnm<mode>3): Ditto.
12784 (avx512pf_gatherpf<mode>): Ditto.
12785 (*avx512pf_gatherpf<mode>_mask): Ditto.
12786 (*avx512pf_gatherpf<mode>): Ditto.
12787 (avx512pf_scatterpf<mode>): Ditto.
12788 (*avx512pf_scatterpf<mode>_mask): Ditto.
12789 (*avx512pf_scatterpf<mode>): Ditto.
12790 (avx512f_vec_dup_gpr<mode>): Ditto.
12791 (clz<mode>2): Ditto.
12792 (conflict<mode>): Ditto.
12793 (REDUC_SMINMAX_MODE): Extened with wider modes.
12794 (reduc_<code>_<mode>): Ditto.
12795 (vlshr<mode>3): Ditto.
12796 (vashl<mode>3): Ditto.
12798 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12799 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12800 Sergey Lega <sergey.s.lega@intel.com>
12801 Anna Tikhonova <anna.tikhonova@intel.com>
12802 Ilya Tocar <ilya.tocar@intel.com>
12803 Andrey Turetskiy <andrey.turetskiy@intel.com>
12804 Ilya Verbin <ilya.verbin@intel.com>
12805 Kirill Yukhin <kirill.yukhin@intel.com>
12806 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12808 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
12811 (avx512fmaskmode): Ditto.
12812 (bcstscalarsuff): Ditto.
12813 (avx512f_blendm<mode>): Ditto.
12814 (cmp_imm_predicate): Ditto.
12815 (avx512f_cmp<mode>3): Ditto.
12816 (avx512f_vec_dup<mode>): Ditto.
12817 (avx512f_vec_dup_mem<mode>): Ditto.
12818 (avx512f_vpermi2var<mode>3): Ditto.
12819 (avx512f_vpermt2var<mode>3): Ditto.
12820 (vec_init<mode>): Ditto.
12821 (avx512f_gathersi<mode>): Ditto.
12822 (*avx512f_gathersi<mode>): Ditto.
12823 (*avx512f_gathersi<mode>_2): Ditto.
12824 (avx512f_gatherdi<mode>): Ditto.
12825 (*avx512f_gatherdi<mode>): Ditto.
12826 (*avx512f_gatherdi<mode>_2): Ditto.
12827 (avx512f_scattersi<mode>): Ditto.
12828 (*avx512f_scattersi<mode>): Ditto.
12829 (avx512f_scatterdi<mode>): Ditto.
12830 (*avx512f_scatterdi<mode>): Ditto.
12831 (sseintprefix): Extened with wider modes.
12832 (VEC_GATHER_IDXSI): Ditto.
12833 (VEC_GATHER_IDXDI): Ditto.
12834 (VEC_GATHER_SRCDI): Ditto.
12836 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
12837 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12839 * config/arm/t-aprofile: New file.
12840 * config.gcc: Handle --with-multilib-list option.
12842 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
12844 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
12847 2013-10-15 Richard Biener <rguenther@suse.de>
12849 * tree-loop-distribution.c (build_empty_rdg): Inline into
12851 (rdg_flag_vertex): Inline into single user.
12852 (rdg_flag_vertex_and_dependent): Likewise.
12853 (build_rdg_partition_for_vertex): Remove processed bitmap.
12854 (rdg_build_partitions): Simplify.
12856 2013-10-15 Richard Biener <rguenther@suse.de>
12858 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
12859 Restructure forwarding through conversions and copies to
12860 avoid performing copy-propagation the wrong way. Adjust
12861 recursion invocations.
12862 (forward_propagate_addr_expr): Add argument stating if we
12863 are recursing from a single-use.
12864 (ssa_forward_propagate_and_combine): Adjust.
12866 2013-10-14 David Malcolm <dmalcolm@redhat.com>
12868 * dumpfile.h (gcc::dump_manager): New class, to hold state
12869 relating to dumpfile management.
12870 (get_dump_file_name): Remove in favor of method of dump_manager.
12871 (dump_initialized_p): Likewise.
12872 (dump_start): Likewise.
12873 (dump_finish): Likewise.
12874 (dump_switch_p): Likewise.
12875 (dump_register): Likewise.
12876 (get_dump_file_info): Likewise.
12877 * context.c (gcc::context::context): Construct the dump_manager
12879 * context.h (gcc::context::get_dumps): New.
12880 (gcc::context::m_dumps): New.
12881 * coverage.c (coverage_init): Port to dump_manager API.
12882 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
12883 (extra_dump_files_in_use): Likewise.
12884 (extra_dump_files_alloced): Likewise.
12885 (gcc::dump_manager::dump_manager): New.
12886 (dump_register): Convert to...
12887 (gcc::dump_manager::dump_register): ...method, replacing
12888 function-static next_dump with m_next_dump field.
12889 (get_dump_file_info): Convert to...
12890 (gcc::dump_manager::get_dump_file_info): ...method.
12891 (get_dump_file_name): Convert to...
12892 (gcc::dump_manager::get_dump_file_name): ...method.
12893 (dump_start): Convert to...
12894 (gcc::dump_manager::dump_start): ...method.
12895 (dump_finish): Convert to...
12896 (gcc::dump_manager::dump_finish): ...method.
12897 (dump_begin): Replace body with...
12898 (gcc::dump_manager::dump_begin): ...new method.
12899 (dump_phase_enabled_p): Convert to...
12900 (gcc::dump_manager::dump_phase_enabled_p): ...method.
12901 (dump_phase_enabled_p): Convert to...
12902 (gcc::dump_manager::dump_phase_enabled_p): ...method.
12903 (dump_initialized_p): Convert to...
12904 (gcc::dump_manager::dump_initialized_p): ...method.
12905 (dump_flag_name): Replace body with...
12906 (gcc::dump_manager::dump_flag_name): ...new method.
12907 (dump_enable_all): Convert to...
12908 (gcc::dump_manager::dump_enable_all): ...new method.
12909 (opt_info_enable_passes): Convert to...
12910 (gcc::dump_manager::opt_info_enable_passes): ...new method.
12911 (dump_switch_p_1): Convert to...
12912 (gcc::dump_manager::dump_switch_p_1): ...new method.
12913 (dump_switch_p): Convert to...
12914 (gcc::dump_manager::dump_switch_p): ...new method.
12915 (opt_info_switch_p): Port to dump_manager API.
12916 (enable_rtl_dump_file): Likewise.
12917 * opts-global.c (handle_common_deferred_options): Port to new
12919 * passes.c (pass_manager::finish_optimization_passes): Likewise.
12920 (pass_manager::register_one_dump_file): Likewise.
12921 (pass_manager::register_pass): Likewise.
12922 (pass_init_dump_file): Likewise.
12923 (pass_fini_dump_file): Likewise.
12924 * statistics.c (statistics_early_init): Likewise.
12926 2013-10-14 Richard Biener <rguenther@suse.de>
12928 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
12929 iterative_hash_canonical_type, gimple_canonical_type_hash,
12930 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
12931 gimple_register_canonical_type, print_gimple_types_stats,
12932 free_gimple_type_tables): Move to lto/lto.c
12933 (gt-gimple.h): Do not include.
12934 * gimple.h (gimple_register_canonical_type,
12935 print_gimple_types_stats, free_gimple_type_tables): Remove.
12936 * Makefile.in (GTFILES): Remove gimple.c.
12938 2013-10-14 Travis Snoozy <quandary@remstate.com>
12941 * config/msp430/msp430.c (msp430_option_override): Correct thinko
12942 scanning for msp430x targets.
12944 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
12947 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
12948 (registers_ok_for_ldd_peep): Move around.
12949 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
12950 * config/sparc/sparc.md (widening peepholes): Use it.
12952 2013-10-14 Richard Biener <rguenther@suse.de>
12954 PR middle-end/58712
12955 PR middle-end/55358
12956 * gimple.c (iterative_hash_canonical_type): Make sure to
12957 record the hash into the correct hashtable slot.
12959 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
12961 PR rtl-optimization/58662
12962 * combine.c (try_combine): Take into account death nodes on I2 when
12963 splitting a PARALLEL of two independent SETs. Fix dump message.
12965 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
12968 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
12969 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
12971 * config/sh/t-sh (sh_treg_combine.o): New entry.
12972 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
12973 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
12974 (register_sh_passes): New function. Register sh_treg_combine pass.
12975 (sh_option_override): Invoke it.
12976 (sh_canonicalize_comparison): Handle op0_preserve_value.
12977 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
12978 opportunities. Canonicalize branch condition.
12979 (nott): Allow only if pseudos can be created for non-SH2A.
12981 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
12984 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
12985 (ix86_expand_movmem): Replace copy_addr_to_reg with
12986 ix86_copy_addr_to_reg.
12987 (ix86_expand_setmem): Likewise.
12989 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
12991 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
12992 provided by ix86_fp_compare_mode instead of CCFPUmode.
12994 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
12996 * config/aarch64/arm_neon.h
12997 (vtbx<1,3>_<psu>8): Fix register constriants.
12999 2013-10-11 Jeff Law <law@redhat.com>
13001 PR tree-optimization/58640
13002 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
13003 threading paths that cross over two loop entry points.
13005 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13007 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
13008 handle vector float as well.
13009 (*vsx_le_perm_load_v4si): Likewise.
13010 (*vsx_le_perm_store_v2di): Likewise.
13011 (*vsx_le_perm_store_v4si): Likewise.
13013 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13015 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
13016 directly to circumvent subtract from splat{31} workaround.
13017 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
13019 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
13020 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
13021 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
13022 (altivec_vperm_<mode>): Convert to define_insn_and_split to
13023 separate big and little endian logic.
13024 (*altivec_vperm_<mode>_internal): New define_insn.
13025 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
13026 separate big and little endian logic.
13027 (*altivec_vperm_<mode>_uns_internal): New define_insn.
13028 (vec_permv16qi): Add little endian logic.
13030 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
13032 * doc/extend.texi (returns_nonnull): Remove arguments.
13034 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13035 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13036 Sergey Lega <sergey.s.lega@intel.com>
13037 Anna Tikhonova <anna.tikhonova@intel.com>
13038 Ilya Tocar <ilya.tocar@intel.com>
13039 Andrey Turetskiy <andrey.turetskiy@intel.com>
13040 Ilya Verbin <ilya.verbin@intel.com>
13041 Kirill Yukhin <kirill.yukhin@intel.com>
13042 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13044 * config/i386/sse.md (VI48F_256_512): New.
13045 (avx2_permvar<mode>): Change to ...
13046 (<avx2_avx512f>_permvar<mode>): This.
13048 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13049 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13050 Sergey Lega <sergey.s.lega@intel.com>
13051 Anna Tikhonova <anna.tikhonova@intel.com>
13052 Ilya Tocar <ilya.tocar@intel.com>
13053 Andrey Turetskiy <andrey.turetskiy@intel.com>
13054 Ilya Verbin <ilya.verbin@intel.com>
13055 Kirill Yukhin <kirill.yukhin@intel.com>
13056 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13058 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
13059 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
13060 * config/i386/sse.md (VI4_AVX): New.
13061 (sf2simodelower): Ditto.
13062 (sse2_cvtps2dq): Change to ...
13063 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
13065 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13066 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13067 Sergey Lega <sergey.s.lega@intel.com>
13068 Anna Tikhonova <anna.tikhonova@intel.com>
13069 Ilya Tocar <ilya.tocar@intel.com>
13070 Andrey Turetskiy <andrey.turetskiy@intel.com>
13071 Ilya Verbin <ilya.verbin@intel.com>
13072 Kirill Yukhin <kirill.yukhin@intel.com>
13073 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13075 * config/i386/sse.md (V_512): New.
13077 (vcond<V_512:mode><VF_512:mode>): Ditto.
13078 (vcond<V_512:mode><VI_512:mode>): Ditto.
13079 (vcondu<V_512:mode><VI_512:mode>): Ditto.
13081 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13082 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13083 Sergey Lega <sergey.s.lega@intel.com>
13084 Anna Tikhonova <anna.tikhonova@intel.com>
13085 Ilya Tocar <ilya.tocar@intel.com>
13086 Andrey Turetskiy <andrey.turetskiy@intel.com>
13087 Ilya Verbin <ilya.verbin@intel.com>
13088 Kirill Yukhin <kirill.yukhin@intel.com>
13089 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13091 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
13092 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
13094 (fma<mode>4): Removed condition.
13095 (fms<mode>4): Ditto.
13096 (fnma<mode>4): Ditto.
13097 (fnms<mode>4): Ditto.
13098 (fma4i_fmadd_<mode>): Ditto.
13099 (*fma_fmadd_<mode>): Ditto.
13100 (*fma_fmsub_<mode>): Ditto.
13101 (*fma_fnmadd_<mode>): Ditto.
13102 (*fma_fnmsub_<mode>): Ditto.
13103 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
13104 (*fma_fmaddsub_<mode>): Ditto.
13105 (*fma_fmsubadd_<mode>): Ditto.
13106 (*fmai_fmadd_<mode>): Ditto.
13107 (*fmai_fmsub_<mode>): Ditto.
13108 (*fmai_fnmadd_<mode>): Ditto.
13109 (*fmai_fnmsub_<mode>): Ditto.
13111 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13112 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13113 Sergey Lega <sergey.s.lega@intel.com>
13114 Anna Tikhonova <anna.tikhonova@intel.com>
13115 Ilya Tocar <ilya.tocar@intel.com>
13116 Andrey Turetskiy <andrey.turetskiy@intel.com>
13117 Ilya Verbin <ilya.verbin@intel.com>
13118 Kirill Yukhin <kirill.yukhin@intel.com>
13119 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13121 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
13122 (VI124_256): Changed to ...
13123 (VI124_256_48_512): This.
13124 (ssepackmode): Extended with wider modes.
13125 (<code><mode>3): Changed iterator.
13126 (*avx2_<code><mode>3): Ditto.
13127 (vec_pack_trunc_<mode>): Ditto.
13129 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13131 Sergey Lega <sergey.s.lega@intel.com>
13132 Anna Tikhonova <anna.tikhonova@intel.com>
13133 Ilya Tocar <ilya.tocar@intel.com>
13134 Andrey Turetskiy <andrey.turetskiy@intel.com>
13135 Ilya Verbin <ilya.verbin@intel.com>
13136 Kirill Yukhin <kirill.yukhin@intel.com>
13137 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13139 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
13140 (VI8F_256_512): Ditto.
13141 (abs<mode>2): Changed iterator.
13142 (avx2_perm<mode>): Changed to ...
13143 (<avx2_avx512f>_perm<mode>): This.
13144 (avx2_perm<mode>_1): Changed to ...
13145 (<avx2_avx512f>_perm<mode>_1): This.
13147 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13148 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13149 Sergey Lega <sergey.s.lega@intel.com>
13150 Anna Tikhonova <anna.tikhonova@intel.com>
13151 Ilya Tocar <ilya.tocar@intel.com>
13152 Andrey Turetskiy <andrey.turetskiy@intel.com>
13153 Ilya Verbin <ilya.verbin@intel.com>
13154 Kirill Yukhin <kirill.yukhin@intel.com>
13155 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13157 * config/i386/sse.md (VI48_AVX512F): New.
13158 (VI48_AVX2): Changed to ...
13159 (VI48_AVX2_48_AVX512F): This.
13160 (avx2_ashrv<mode>): Changed to ...
13161 (<avx2_avx512f>_ashrv<mode>): This.
13162 (avx2_<shift_insn>v<mode>): Changed to ...
13163 (<avx2_avx512f>_<shift_insn>v<mode>): This.
13165 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13166 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13167 Sergey Lega <sergey.s.lega@intel.com>
13168 Anna Tikhonova <anna.tikhonova@intel.com>
13169 Ilya Tocar <ilya.tocar@intel.com>
13170 Andrey Turetskiy <andrey.turetskiy@intel.com>
13171 Ilya Verbin <ilya.verbin@intel.com>
13172 Kirill Yukhin <kirill.yukhin@intel.com>
13173 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13175 * config/i386/sse.md (VI4_AVX512F): New.
13176 (VI8_AVX2_AVX512F): Ditto.
13177 (mul<mode>3): Extended with wider modes.
13178 (*<sse4_1_avx2>_mul<mode>3): Ditto.
13179 (mul<mode>3): Ditto.
13180 (vec_widen_<s>mult_odd_<mode>): Ditto.
13182 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13183 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13184 Sergey Lega <sergey.s.lega@intel.com>
13185 Anna Tikhonova <anna.tikhonova@intel.com>
13186 Ilya Tocar <ilya.tocar@intel.com>
13187 Andrey Turetskiy <andrey.turetskiy@intel.com>
13188 Ilya Verbin <ilya.verbin@intel.com>
13189 Kirill Yukhin <kirill.yukhin@intel.com>
13190 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13192 * config/i386/sse.md (VI2_AVX512F): New.
13193 (VI124_AVX512F): Ditto.
13194 (sseunpackmode): Extended with wider modes.
13195 (sseunpackfltmode): Ditto.
13196 (vec_unpacks_float_hi_<mode>): Ditto.
13197 (vec_unpacks_float_lo_<mode>): Ditto.
13198 (vec_unpacku_float_hi_<mode>): Ditto.
13199 (vec_unpacku_float_lo_<mode>): Ditto.
13200 (vec_unpacks_lo_<mode>): Ditto.
13201 (vec_unpacks_hi_<mode>): Ditto.
13202 (vec_unpacku_lo_<mode>): Ditto.
13203 (vec_unpacku_hi_<mode>): Ditto.
13205 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13206 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13207 Sergey Lega <sergey.s.lega@intel.com>
13208 Anna Tikhonova <anna.tikhonova@intel.com>
13209 Ilya Tocar <ilya.tocar@intel.com>
13210 Andrey Turetskiy <andrey.turetskiy@intel.com>
13211 Ilya Verbin <ilya.verbin@intel.com>
13212 Kirill Yukhin <kirill.yukhin@intel.com>
13213 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13215 * config/i386/i386.md (multdiv): New.
13216 (multdiv_mnemonic): Ditto.
13217 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
13218 (<sse>_vm<multdiv_mnemonic><mode>3): This.
13219 (<sse>_vmdiv<mode>3): Removed.
13221 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13222 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13223 Sergey Lega <sergey.s.lega@intel.com>
13224 Anna Tikhonova <anna.tikhonova@intel.com>
13225 Ilya Tocar <ilya.tocar@intel.com>
13226 Andrey Turetskiy <andrey.turetskiy@intel.com>
13227 Ilya Verbin <ilya.verbin@intel.com>
13228 Kirill Yukhin <kirill.yukhin@intel.com>
13229 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13231 * config/i386/sse.md (V): Extended with wider modes.
13233 (ssehalfvecmode): Ditto.
13235 (ssepackfltmode): Ditto.
13236 (avx_vec_concat<mode>): Ditto.
13237 (V_256_512): New iterator.
13238 (VF2_512_256): Ditto.
13239 (si2dfmode): New attribute.
13240 (si2dfmodelower): Ditto.
13241 (sf2dfmode): Ditto.
13242 (concat_tg_mode): Ditto.
13243 (floatv4siv4df2): Changed to ...
13244 (float<si2dfmodelower><mode>2): This.
13245 (avx_cvtps2pd256): Changed to ...
13246 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
13247 (vec_pack_trunc_v4df): Changed to ...
13248 (vec_pack_trunc_<mode>): This.
13249 (avx_vpermil<mode>): Changed to ...
13250 (<sse2_avx_avx512f>_vpermil<mode>): This.
13251 (<fixsuffix>fix_truncv8dfv8si2): New.
13252 (vec_pack_sfix_trunc_v8df): Ditto.
13253 (avx512f_rndscale<mode>): Ditto.
13254 (avx512f_roundpd512): Ditto.
13255 (vec_pack_ufix_trunc_<mode>): Updated iterator.
13257 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13258 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13259 Sergey Lega <sergey.s.lega@intel.com>
13260 Anna Tikhonova <anna.tikhonova@intel.com>
13261 Ilya Tocar <ilya.tocar@intel.com>
13262 Andrey Turetskiy <andrey.turetskiy@intel.com>
13263 Ilya Verbin <ilya.verbin@intel.com>
13264 Kirill Yukhin <kirill.yukhin@intel.com>
13265 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13267 * config/i386/i386.md (any_fix): New iterator.
13268 (fixsuffix): New attribute.
13269 * config/i386/sse.md (VF1): Extened with wider modes.
13273 (sseintvecmodelower): Ditto.
13274 (ssescalarmode): Ditto.
13275 (ssescalarnum): Ditto.
13276 (VF1_128_256): New.
13277 (ssexmmmode): Ditto.
13278 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
13279 (<sse>_rcp<mode>2): Change iterator.
13280 (rsqrt<mode>2): Ditto.
13281 (<sse>_rsqrt<mode>2): Ditto.
13282 (avx2_vec_dup<mode>): Ditto.
13283 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
13284 (round<mode>2_sfix): Ditto.
13285 (avx2_pbroadcast<mode>): Ditto.
13286 (*andnot<mode>3): Handle XI mode.
13287 (*<code><mode>3): Ditto.
13288 (AVXTOSSEMODE): Removed.
13289 (avx_vpermil<mode>): Changed to ...
13290 (<sse2_avx_avx512f>_vpermil<mode>): This.
13292 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13293 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13294 Sergey Lega <sergey.s.lega@intel.com>
13295 Anna Tikhonova <anna.tikhonova@intel.com>
13296 Ilya Tocar <ilya.tocar@intel.com>
13297 Andrey Turetskiy <andrey.turetskiy@intel.com>
13298 Ilya Verbin <ilya.verbin@intel.com>
13299 Kirill Yukhin <kirill.yukhin@intel.com>
13300 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13302 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
13303 (<sse>_comi): Ditto.
13304 (<sse>_ucomi): Ditto.
13305 (sse_cvtss2siq_2): Ditto.
13306 (sse2_cvtsd2si): Ditto.
13307 (sse2_cvtsd2siq): Ditto.
13308 (sse2_cvttsd2si): Ditto.
13309 (sse2_cvttsd2siq): Ditto.
13310 (<shift_insn><mode>3): Ditto.
13311 (sse2_cvtsi2sdq): Update constraint and prefix.
13312 (sse_cvtsi2ss): Update prefix.
13313 (sse_cvtsi2ssq): Ditto.
13315 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13317 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
13318 ignore internal calls.
13320 2013-10-11 Richard Biener <rguenther@suse.de>
13322 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
13323 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
13324 TREE_OVERFLOW is set.
13326 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
13328 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
13330 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
13331 * gimple.h: Likewise.
13333 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
13335 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
13338 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
13340 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
13341 * configure: Regenerate.
13343 2013-10-11 Jakub Jelinek <jakub@redhat.com>
13345 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
13346 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
13347 formatting fixes, use pp_colon instead of pp_character (..., ':'),
13348 similarly pp_right_paren.
13349 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
13350 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
13351 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
13352 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
13354 (omp_declare_simd_clauses_equal,
13355 omp_remove_redundant_declare_simd_attrs): New functions.
13356 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
13357 (walk_tree_1): Handle new OpenMP 4.0 clauses.
13358 * tree.h (OMP_LOOP_CHECK): Define.
13359 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
13360 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
13361 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
13362 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
13363 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
13364 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
13365 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
13366 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
13367 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
13368 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
13369 OMP_CLAUSE_SIMDLEN_EXPR): Define.
13370 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
13371 (omp_remove_redundant_declare_simd_attrs): New prototype.
13372 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
13373 GIMPLE_OMP_TEAMS): New codes.
13374 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
13375 * omp-low.c (struct omp_context): Add cancel_label and cancellable
13377 (target_nesting_level): New variable.
13378 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
13379 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
13380 for collapse > 1 static schedule unless ordered.
13381 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
13382 (determine_parallel_type): Adjust get_ws_args_for caller.
13383 (install_var_field): Handle mask & 4 for double indirection.
13384 (scan_sharing_clauses): Ignore shared clause on teams construct.
13385 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
13386 (create_omp_child_function): If inside target or declare target
13387 constructs, set "omp declare target" attribute on the child function.
13388 (find_combined_for): New function.
13389 (scan_omp_parallel): Handle combined loops.
13390 (scan_omp_target, scan_omp_teams): New functions.
13391 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
13392 restrictions and set ctx->cancellable for cancellable constructs.
13393 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
13394 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
13395 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
13396 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
13397 (omp_clause_aligned_alignment): New function.
13398 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
13399 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
13400 on teams constructs. Handle user defined reductions and new
13401 OpenMP 4.0 clauses.
13402 (lower_reduction_clauses): Don't set placeholder to address of ref
13403 if it has already the right type.
13404 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
13405 (expand_parallel_call): Use the new non-_start suffixed builtins,
13406 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
13407 and GOMP_parallel_end after the call.
13408 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
13409 (expand_omp_for_init_counts): Handle combined loops.
13410 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
13412 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
13413 end of cancellable loops.
13414 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13415 Likewise. Handle collapse > 1 loops.
13416 (expand_omp_simd): Handle combined loops.
13417 (expand_omp_for): Add inner_stmt argument, adjust callers of
13418 expand_omp_for* functions, use expand_omp_for_static*chunk even
13419 for collapse > 1 unless ordered.
13420 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
13421 of cancellable sections.
13422 (expand_omp_single): Remove need_barrier variable, just rely on
13423 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
13424 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
13425 (expand_omp_atomic_load, expand_omp_atomic_store,
13426 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
13427 (expand_omp_target): New function.
13428 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
13429 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
13430 (build_omp_regions_1): Immediately close region for
13431 GF_OMP_TARGET_KIND_UPDATE.
13432 (maybe_add_implicit_barrier_cancel): New function.
13433 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
13435 (lower_omp_single): Likewise. Add clobber after the barrier.
13436 (lower_omp_taskgroup): New function.
13437 (lower_omp_for): Handle combined loops. Adjust
13438 lower_rec_input_clauses caller. Handle cancellation.
13439 (lower_depend_clauses): New function.
13440 (lower_omp_taskreg): Lower depend clauses. Adjust
13441 lower_rec_input_clauses caller. Add clobber after the call. Handle
13443 (lower_omp_target, lower_omp_teams): New functions.
13444 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
13445 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
13446 and GOMP_cancellation_point calls.
13447 (lower_omp): Fold stmts inside of target region.
13448 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
13449 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13450 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
13451 (BT_FN_VOID_OMPFN_PTR_UINT,
13452 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
13453 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
13454 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
13455 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
13456 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
13457 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
13458 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
13459 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
13460 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
13461 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
13462 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13463 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
13464 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
13465 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
13466 BUILT_IN_GOMP_PARALLEL_END.
13467 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
13468 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
13469 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
13470 GF_OMP_FOR_KIND_DISTRIBUTE.
13471 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
13472 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
13473 (dump_gimple_omp_return): Print lhs if it has any.
13474 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
13475 gimple_omp_atomic_seq_cst_p.
13476 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
13477 and GIMPLE_OMP_TEAMS.
13478 * langhooks.c (lhd_omp_mappable_type): New function.
13479 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
13480 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
13482 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
13483 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
13484 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
13485 (struct gimplify_omp_ctx): Add combined_loop field.
13486 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
13487 on stmts inside of target region.
13488 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
13489 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
13490 ORT_TARGET and ORT_TARGET_DATA.
13491 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
13493 (omp_notice_threadprivate_variable): Complain about threadprivate
13494 variables in target region.
13495 (omp_notice_variable): Complain about vars with non-mappable type
13496 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
13497 (omp_check_private): Ignore ORT_TARGET* regions.
13498 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
13499 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
13500 (find_combined_omp_for): New function.
13501 (gimplify_omp_for): Handle gimplification of combined loops.
13502 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
13504 (gimplify_omp_target_update): New function.
13505 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
13506 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
13507 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
13508 (gimplify_body): If fndecl has "omp declare target" attribute, add
13509 implicit ORT_TARGET context around it.
13510 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
13511 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
13512 * tree-nested.c (convert_nonlocal_reference_stmt,
13513 convert_local_reference_stmt, convert_gimple_call): Handle
13514 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13515 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
13516 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
13517 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
13518 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
13519 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
13520 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
13521 BUILT_IN_GOMP_LOOP_END_CANCEL,
13522 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
13523 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
13524 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
13525 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
13526 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
13527 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
13528 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
13529 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
13530 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
13531 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
13532 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
13533 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
13534 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
13535 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
13536 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
13537 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13538 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
13539 gimple_build_omp_teams): New functions.
13540 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
13541 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
13542 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
13543 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13544 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
13545 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
13546 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
13547 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
13548 GF_OMP_ATOMIC_SEQ_CST): New.
13549 (gimple_build_omp_taskgroup, gimple_build_omp_target,
13550 gimple_build_omp_teams): New prototypes.
13551 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
13552 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13553 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
13554 GIMPLE_OMP_SINGLE as end of range.
13555 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
13556 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
13557 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
13558 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
13559 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
13560 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
13561 gimple_omp_target_kind, gimple_omp_target_set_kind,
13562 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
13563 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
13564 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
13565 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
13566 gimple_omp_teams_set_clauses): New inlines.
13567 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
13568 and GIMPLE_OMP_TASKGROUP.
13569 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
13570 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
13571 enum omp_clause_proc_bind_kind): New.
13572 (union omp_clause_subcode): Add depend_kind, map_kind and
13573 proc_bind_kind fields.
13574 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
13575 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
13576 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
13577 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
13578 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
13580 2013-10-10 Teresa Johnson <tejohnson@google.com>
13582 * predict.c (tree_estimate_probability): Add new parameter
13583 for estimate_bb_frequencies.
13584 (estimate_bb_frequencies): Add new parameter to force estimation.
13585 (rebuild_frequencies): When max frequency in function is small,
13586 recompute counts from frequencies.
13587 * predict.h (estimate_bb_frequencies): New parameter.
13589 2013-10-10 David Malcolm <dmalcolm@redhat.com>
13591 * ipa-inline.c (ipa_inline): Fix leak of "order" when
13592 optimizations are disabled.
13594 2013-10-10 David Malcolm <dmalcolm@redhat.com>
13596 * coverage.c (coverage_finish): Fix leak of da_file_name.
13598 2013-10-10 Jan Hubicka <jh@suse.cz>
13600 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
13601 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
13602 Bobcat and generic.
13604 2013-10-10 Jakub Jelinek <jakub@redhat.com>
13606 PR middle-end/58670
13607 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
13608 if any labels are in FALLTHRU_BB, use a special label emitted
13609 immediately after the asm goto insn rather than label_rtx
13611 (expand_asm_stmt): Adjust caller.
13612 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
13613 edge if the last insn in predecessor is a jump with single successor,
13614 but it isn't simplejump_p.
13616 2013-10-10 Richard Biener <rguenther@suse.de>
13618 PR tree-optimization/58656
13619 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
13621 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13623 * gimplify.c: Include expr.h and tm_p.h for targets with special
13624 va-arg padding requirements.
13626 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13628 * tree-flow.h: Move some prototypes to gimple.h.
13629 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
13630 * gimple.h: Relocate some prototypes from tree-flow.h
13631 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
13632 Move to gimplify.c.
13633 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
13634 (build_va_arg_indirect_ref): Relocate and make static.
13635 (std_gimplify_va_arg_expr): Relocate here.
13636 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
13637 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
13639 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13641 * doc/md.texi: Document the mnemonic attribute.
13643 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13646 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
13647 (set_attr_alternative x ...) when searching for user defined
13648 mnemonic attribute.
13650 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
13652 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
13654 2013-10-09 Easwaran Raman <eraman@google.com>
13656 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
13657 * cfgexpand.c (defer_stack_allocation): ...use here
13658 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
13660 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
13662 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
13663 (operand_equal_for_value_replacement): New function, extracted from
13664 value_replacement and enhanced to catch more cases.
13665 (value_replacement): Use operand_equal_for_value_replacement.
13667 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13669 * loop-doloop.c (doloop_modify, doloop_optimize): Use
13670 get_max_loop_iterations.
13672 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13674 * config/arm/aarch-common.c (arm_early_load_addr_dep):
13675 Place comment above function.
13677 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13679 * tree-flow.h: Remove all remaining prototypes, enums and structs that
13680 are not related to tree-cfg.c.
13681 * tree-ssa-address.h: New file. Relocate prototypes.
13682 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
13683 (addr_for_mem_ref): New. Combine call to get_address_description and
13684 return addr_for_mem_ref.
13685 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
13686 * tree-ssa-live.h: Adjust prototypes.
13687 * passes.c: Include tree-ssa-live.h.
13688 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
13689 * graphite.c (graphite_transform_loops): Make static.
13690 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
13691 make_pass_graphite, pass_data_graphite_transforms,
13692 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
13693 * ipa-pure-const.c (warn_function_noreturn): Make static.
13694 (execute_warn_function_noreturn, gate_warn_function_noreturn,
13695 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
13696 Relocate from tree-cfg.c
13697 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
13699 (execute_warn_function_noreturn, gate_warn_function_noreturn,
13700 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
13701 Move to ipa-pure-const.c.
13702 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
13703 Relocate from tree-optimize.c.
13704 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
13705 make_pass_fixup_cfg): Move to tree-cfg.c.
13706 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
13707 Relocate some prototypes.
13708 * tree-data-ref.h (tree_check_data_deps) Add prototype.
13709 * tree-dump.c (dump_function_to_file): Remove prototype.
13710 Add tree-flow.h to the include file.
13711 * tree-dump.h: Remove prototype.
13712 * tree-parloops.h: New File. Add prototypes.
13713 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
13714 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
13715 from tree-ssa-loop.c.
13716 * tree-predcom.c (run_tree_predictive_commoning,
13717 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
13718 Relocate here from tree-ssa-loop.c.
13719 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
13720 ssa_name_values.release ().
13721 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
13722 (ssa_name_values): Relocate from tree-flow.h.
13723 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
13724 * tree-ssa-loop.c (run_tree_predictive_commoning,
13725 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
13726 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
13727 make_pass_graphite, pass_data_graphite_transforms,
13728 make_pass_graphite_transforms, gate_tree_parallelize_loops,
13729 tree_parallelize_loops, pass_data_parallelize_loops,
13730 make_pass_parallelize_loops): Move to other files.
13731 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
13733 * tree.h: Remove prototypes from tree-address.c.
13735 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13737 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
13738 (struct int_tree_map): Move to tree-hasher.h
13739 (SCALE, LABEL, PERCENT): Move to gimple.h
13740 * tree-flow-inline.h: Delete. Move functions to other files.
13741 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
13742 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
13743 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
13744 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
13745 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
13746 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
13747 * tree-hasher.h: Don't include tree-flow.h.
13748 (struct int_tree_map): Relocate from tree-flow.h.
13749 * tree-sra.c (contains_view_convert_expr_p): Relocate from
13750 tree-flow-inline.h and make static.
13751 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
13752 tree-flow-inline.h.
13753 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
13754 tree-flow-inline.h and make static.
13755 * tree.h (is_global_var, may_be_aliased): Relocate from
13756 tree-flow-inline.h.
13757 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
13758 * value-prof.c: No longer include tree-flow-inline.h.
13759 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
13761 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
13763 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
13764 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
13765 (enum move_pos): Move to tree-ssa-loop-im.h
13766 * cfgloop.h: Move some prototypes.
13767 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
13768 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
13769 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
13770 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
13771 (loop_containing_stmt): Relocate from tree-flow-inline.h.
13772 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
13773 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
13774 (enum move_pos): Relocate here.
13775 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
13777 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
13778 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
13779 make_pass_lim): Relocate here from tree-ssa-loop.c.
13780 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
13782 (loop_edge_to_cancel, unloop_loops): Make static.
13783 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
13784 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
13785 (tree_complete_unroll, gate_tree_complete_unroll,
13786 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
13787 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
13788 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
13789 * tree-ssa-loop-ivopts.c: Remove local prototypes.
13790 (stmt_invariant_in_loop_p): Remove unused function.
13791 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
13792 * tree-ssa-loop-manip.h: New file. Add prototypes.
13793 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
13794 (gcov_type_to_double_int): Move to cfgloop.h.
13795 (double_int_cmp, bound_index,
13796 estimate_numbers_of_iterations_loop): Make static.
13797 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
13798 (max_loop_iterations): Factor out get_max_loop_iterations.
13799 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
13801 * tree-ssa-loop-niter.h: New file. Add prototypes.
13802 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
13803 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
13804 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
13805 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
13806 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
13807 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
13808 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
13809 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
13810 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
13811 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
13812 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
13813 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
13814 pass_data_complete_unroll, make_pass_complete_unroll,
13815 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
13816 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
13817 tree-ssa-loop-ivcanon.c.
13818 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
13819 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
13820 tree-ssa-loop-prefetch.c.
13821 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
13822 tree-ssa-loop-im.c.
13823 (get_lsm_tmp_name): Relocate and add suffix parameter.
13824 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
13825 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
13826 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
13827 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
13828 (get_estimated_loop_iterations): Factor out accessor from
13829 estimated_loop_iterations in tree-ssa-loop-niter.c.
13830 (get_max_loop_iterations): Factor out accessor from
13831 _max_loop_iterations in tree-ssa-niter.c.
13832 * loop-unroll.c (decide_unroll_constant_iterations,
13833 decide_unroll_runtime_iterations, decide_peel_simple,
13834 decide_unroll_stupid): Use new get_* accessors.
13836 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
13838 PR tree-optimization/20318
13839 * doc/extend.texi (returns_nonnull): New function attribute.
13840 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
13842 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
13843 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
13845 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
13847 PR middle-end/58570
13848 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
13849 false if both components are bitfields.
13851 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13853 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
13854 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
13855 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
13856 * config/aarch64/aarch64.h
13857 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
13858 * config/aarch64/aarch64-simd-builtins.def
13859 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
13861 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13863 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
13865 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13867 * config/aarch64/arm_neon.h (vdiv_f64): Added.
13869 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
13871 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
13872 (vneg_f64): New intrinsic.
13873 (vneg_s8): Asm replaced with C.
13874 (vneg_s16): Likewise.
13875 (vneg_s32): Likewise.
13876 (vneg_s64): New intrinsic.
13877 (vnegq_f32): Asm replaced with C.
13878 (vnegq_f64): Likewise.
13879 (vnegq_s8): Likewise.
13880 (vnegq_s16): Likewise.
13881 (vnegq_s32): Likewise.
13882 (vnegq_s64): Likewise.
13884 2013-10-09 Renlin Li <Renlin.Li@arm.com>
13886 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
13888 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13890 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
13891 packed stack special handling.
13892 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
13893 back to fixed stack slots for FPRs saved due to stdarg.
13895 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13897 * config/s390/s390.c (s390_frame_info): Restructure function.
13899 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13901 * config/s390/s390.c (struct s390_frame_layout): New field
13903 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
13904 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
13905 regs_ever_clobbered to char*.
13906 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
13907 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
13908 (s390_register_info): Enable FPR save slots. Move/Copy some
13909 functionality into ...
13910 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
13911 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
13913 (s390_frame_info): Do gpr slot allocation here now. stdarg does
13914 not imply a stack frame.
13915 (s390_init_frame_layout): Remove variable clobbered_regs.
13916 (s390_update_register_info): Remove function.
13917 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
13918 cannot be used for register renaming.
13919 (s390_hard_regno_scratch_ok): New function.
13920 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
13921 (s390_initial_elimination_offset): Change offset calculation of
13922 the return address pointer.
13923 (save_gprs): Deal with only r6 being saved from the call-saved regs.
13924 (restore_gprs): Set frame related flag.
13925 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
13926 (s390_emit_prologue): Call s390_register_info instead of
13927 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
13928 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
13929 (s390_optimize_prologue): Call s390_optimize_register_info.
13930 Try to remove also FPR slot save/restore INSNs. Remove frame
13931 related flags from restore INSNs.
13933 2013-10-08 DJ Delorie <dj@redhat.com>
13935 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
13938 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
13939 avoid conflict with the MI use of %c.
13940 * config/rl78/rl78-real.md: change %c to %C throughout.
13941 * config/rl78/rl78-virt.md: Likewise.
13943 2013-10-08 Jan Hubicka <jh@suse.cz>
13945 * config/i386/i386.c (ix86_option_override_internal): Switch
13946 to SSE math for -ffast-math when target ISA supports SSE2.
13948 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
13950 * tree-flow.h: Remove some prototypes.
13951 * tree.h: Remove some protypes, add a couple.
13952 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
13953 using_eh_for_cleanups_p): Add interface routines for front ends.
13954 * tree-eh.h: New file. Add protoptyes.
13955 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
13956 (add_stmt_to_eh_lp_fn): Make static.
13957 (lower_try_finally): Use new using_eh_for_cleanups_p.
13958 * emit-rtl.c: Include tree-eh.h.
13959 * gimple.h: Include tree-eh.h.
13961 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
13963 PR tree-optimization/58480
13964 * tree-vrp.c (infer_nonnull_range): New function.
13965 (infer_value_range): Call infer_nonnull_range.
13967 2013-10-08 Dehao Chen <dehao@google.com>
13969 PR tree-optimization/58619
13970 * tree-inline.c (copy_phis_for_bb): Combine location data
13973 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13976 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
13977 RTX_FRAME_RELATED_P on INSN.
13979 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13981 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
13982 (altivec_expand_vec_perm_const): Call it.
13984 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13986 * config/rs6000/vector.md (mov<mode>): Emit permuted move
13987 sequences for LE VSX loads and stores at expand time.
13988 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
13990 * config/rs6000/rs6000.c (rs6000_const_vec): New.
13991 (rs6000_gen_le_vsx_permute): New.
13992 (rs6000_gen_le_vsx_load): New.
13993 (rs6000_gen_le_vsx_store): New.
13994 (rs6000_gen_le_vsx_move): New.
13995 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
13996 (*vsx_le_perm_load_v4si): New.
13997 (*vsx_le_perm_load_v8hi): New.
13998 (*vsx_le_perm_load_v16qi): New.
13999 (*vsx_le_perm_store_v2di): New.
14000 (*vsx_le_perm_store_v4si): New.
14001 (*vsx_le_perm_store_v8hi): New.
14002 (*vsx_le_perm_store_v16qi): New.
14003 (*vsx_xxpermdi2_le_<mode>): New.
14004 (*vsx_xxpermdi4_le_<mode>): New.
14005 (*vsx_xxpermdi8_le_V8HI): New.
14006 (*vsx_xxpermdi16_le_V16QI): New.
14007 (*vsx_lxvd2x2_le_<mode>): New.
14008 (*vsx_lxvd2x4_le_<mode>): New.
14009 (*vsx_lxvd2x8_le_V8HI): New.
14010 (*vsx_lxvd2x16_le_V16QI): New.
14011 (*vsx_stxvd2x2_le_<mode>): New.
14012 (*vsx_stxvd2x4_le_<mode>): New.
14013 (*vsx_stxvd2x8_le_V8HI): New.
14014 (*vsx_stxvd2x16_le_V16QI): New.
14016 2013-10-07 Renlin Li <Renlin.Li@arm.com>
14018 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
14020 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14022 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
14023 loop to work also for 31bit ABI.
14024 Save the stack pointer for frame_size > 0.
14026 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14028 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
14029 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
14030 constraint letters from expanders.
14031 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
14032 retry count to general_operand.
14033 ("tabort"): Give operand 0 a mode.
14034 ("tabort_1"): Add mode and constraint letter for operand 0.
14035 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
14037 2013-10-04 Jeff Law <law@redhat.com>
14039 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
14041 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
14043 (thread_across_edge): Here. Call it.
14045 2013-10-04 Cary Coutant <ccoutant@google.com>
14047 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
14048 discarding a location list expression (or a piece of one).
14050 2013-10-03 Jan Hubicka <jh@suse.cz>
14052 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
14053 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
14054 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
14056 2013-10-03 Jan Hubicka <jh@suse.cz>
14058 * config/i386/i386.c (ix86_option_override_internal): Do not enable
14059 accumulate-outgoing-args when producing unwind info.
14061 2013-10-03 Wei Mi <wmi@google.com>
14063 * lra-constraints.c (insert_move_for_subreg): New function
14064 extracted from simplify_operand_subreg.
14065 (simplify_operand_subreg): Add reload for paradoxical subreg.
14067 2013-10-03 Rong Xu <xur@google.com>
14069 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
14070 the candidate of builtin_expect such that we should fix the
14071 size/time estimation.
14072 (estimate_function_body_sizes): Do the acutally size/time fix-up
14073 for builtin_expect.
14075 2013-10-03 Rong Xu <xur@google.com>
14077 * predict.c (tree_predict_by_opcode): Get the probability
14078 for builtin_expect from param builtin_expect_probability.
14079 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
14080 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
14081 * doc/invoke.texi: Add documentation for builtin-expect-probability.
14083 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
14086 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
14087 * calls.c (alloca_call_p): Use get_callee_fndecl.
14088 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
14089 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
14091 (vrp_visit_stmt): Remove duplicated code.
14093 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14095 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
14096 ceildf2, btruncdf2, instead of vsx_* name.
14098 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
14099 iterators to only do V2DF and V4SF here. Move the DF code to
14100 rs6000.md where it is combined with SF mode. Replace <VSv> with
14101 just 'v' since only vector operations are handled with these insns
14102 after moving the DF support to rs6000.md.
14103 (vsx_sub<mode>3): Likewise.
14104 (vsx_mul<mode>3): Likewise.
14105 (vsx_div<mode>3): Likewise.
14106 (vsx_fre<mode>2): Likewise.
14107 (vsx_neg<mode>2): Likewise.
14108 (vsx_abs<mode>2): Likewise.
14109 (vsx_nabs<mode>2): Likewise.
14110 (vsx_smax<mode>3): Likewise.
14111 (vsx_smin<mode>3): Likewise.
14112 (vsx_sqrt<mode>2): Likewise.
14113 (vsx_rsqrte<mode>2): Likewise.
14114 (vsx_fms<mode>4): Likewise.
14115 (vsx_nfma<mode>4): Likewise.
14116 (vsx_copysign<mode>3): Likewise.
14117 (vsx_btrunc<mode>2): Likewise.
14118 (vsx_floor<mode>2): Likewise.
14119 (vsx_ceil<mode>2): Likewise.
14120 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
14121 (vsx_sminsf3): Likewise.
14122 (vsx_fmadf4): Likewise.
14123 (vsx_fmsdf4): Likewise.
14124 (vsx_nfmadf4): Likewise.
14125 (vsx_nfmsdf4): Likewise.
14126 (vsx_cmpdf_internal1): Likewise.
14128 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
14129 simpler to select whether a target has SPE or traditional floating
14130 point support in iterators.
14131 (TARGET_DF_SPE): Likewise.
14132 (TARGET_SF_FPR): Likewise.
14133 (TARGET_DF_FPR): Likewise.
14134 (TARGET_SF_INSN): Macros to say whether floating point support
14135 exists for a given operation for expanders.
14136 (TARGET_DF_INSN): Likewise.
14138 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
14139 combining of SF/DF mode operations, using both traditional and VSX
14147 (abs<mode>2): Combine SF/DF modes using traditional floating point
14148 instructions. Add support for using the upper DF registers with
14149 VSX support, and SF registers with power8-vector support. Update
14150 expanders for operations supported by both the SPE and traditional
14151 floating point units.
14152 (abs<mode>2_fpr): Likewise.
14153 (nabs<mode>2): Likewise.
14154 (nabs<mode>2_fpr): Likewise.
14155 (neg<mode>2): Likewise.
14156 (neg<mode>2_fpr): Likewise.
14157 (add<mode>3): Likewise.
14158 (add<mode>3_fpr): Likewise.
14159 (sub<mode>3): Likewise.
14160 (sub<mode>3_fpr): Likewise.
14161 (mul<mode>3): Likewise.
14162 (mul<mode>3_fpr): Likewise.
14163 (div<mode>3): Likewise.
14164 (div<mode>3_fpr): Likewise.
14165 (sqrt<mode>3): Likewise.
14166 (sqrt<mode>3_fpr): Likewise.
14167 (fre<Fs>): Likewise.
14168 (rsqrt<mode>2): Likewise.
14169 (cmp<mode>_fpr): Likewise.
14170 (smax<mode>3): Likewise.
14171 (smin<mode>3): Likewise.
14172 (smax<mode>3_vsx): Likewise.
14173 (smin<mode>3_vsx): Likewise.
14174 (negsf2): Delete SF operations that are merged with DF.
14175 (abssf2): Likewise.
14176 (addsf3): Likewise.
14177 (subsf3): Likewise.
14178 (mulsf3): Likewise.
14179 (divsf3): Likewise.
14181 (fmasf4_fpr): Likewise.
14182 (fmssf4_fpr): Likewise.
14183 (nfmasf4_fpr): Likewise.
14184 (nfmssf4_fpr): Likewise.
14185 (sqrtsf2): Likewise.
14186 (rsqrtsf_internal1): Likewise.
14187 (smaxsf3): Likewise.
14188 (sminsf3): Likewise.
14189 (cmpsf_internal1): Likewise.
14190 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
14191 (negdf2): Delete DF operations that are merged with SF.
14192 (absdf2): Likewise.
14193 (nabsdf2): Likewise.
14194 (adddf3): Likewise.
14195 (subdf3): Likewise.
14196 (muldf3): Likewise.
14197 (divdf3): Likewise.
14199 (rsqrtdf_internal1): Likewise.
14200 (fmadf4_fpr): Likewise.
14201 (fmsdf4_fpr): Likewise.
14202 (nfmadf4_fpr): Likewise.
14203 (nfmsdf4_fpr): Likewise.
14204 (sqrtdf2): Likewise.
14205 (smaxdf3): Likewise.
14206 (smindf3): Likewise.
14207 (cmpdf_internal1): Likewise.
14208 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
14209 (btrunc<mode>2): Delete separate expander, and combine with the
14210 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
14211 (btrunc<mode>2_fpr): Likewise.
14212 (ceil<mode>2): Likewise.
14213 (ceil<mode>2_fpr): Likewise.
14214 (floor<mode>2): Likewise.
14215 (floor<mode>2_fpr): Likewise.
14216 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
14217 Add support for using the upper registers with VSX and
14218 power8-vector. Move insns to be closer to the define_expands. On
14219 VSX systems, prefer the traditional form of FMA over the VSX
14220 version, since the traditional form allows the target not to
14221 overlap with the inputs.
14222 (fms<mode>4_fpr): Likewise.
14223 (nfma<mode>4_fpr): Likewise.
14224 (nfms<mode>4_fpr): Likewise.
14226 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14227 Richard Earnshaw <richard.earnshaw@arm.com>
14229 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
14230 (struct mult_cost_table): Likewise.
14231 (struct mem_cost_table): Likewise.
14232 (struct fp_cost_table): Likewise.
14233 (struct vector_cost_table): Likewise.
14234 (cpu_cost_table): Likewise.
14235 * config/arm/arm.opt (mold-rts-costs): New option.
14236 (mnew-generic-costs): Likewise.
14237 * config/arm/arm.c (generic_extra_costs): New table.
14238 (cortexa15_extra_costs): Likewise.
14239 (arm_slowmul_tune): Use NULL as new costs.
14240 (arm_fastmul_tune): Likewise.
14241 (arm_strongarm_tune): Likewise.
14242 (arm_xscale_tune): Likewise.
14243 (arm_9e_tune): Likewise.
14244 (arm_v6t2_tune): Likewise.
14245 (arm_cortex_a5_tune): Likewise.
14246 (arm_cortex_a9_tune): Likewise.
14247 (arm_v6m_tune): Likewise.
14248 (arm_fa726te_tune): Likewise.
14249 (arm_cortex_a15_tune): Use cortex15_extra_costs.
14250 (arm_cortex_tune): Use generict_extra_costs.
14251 (shifter_op_p): New function.
14252 (arm_unspec_cost): Likewise.
14253 (LIBCALL_COST): Define.
14254 (arm_new_rtx_costs): New function.
14255 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
14256 table is available. Use old costs otherwise unless mnew-generic-costs
14258 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
14259 (cpu_cost_table): Declare.
14261 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
14264 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
14265 (*subs_mul_imm_<mode>)
14266 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
14267 (*sub_<shift>_<mode>)
14268 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
14269 Remove k constraint.
14271 2013-10-03 Ian Bolton <ian.bolton@arm.com>
14273 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
14275 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
14277 2013-10-02 Teresa Johnson <tejohnson@google.com>
14279 * predict.c (probably_never_executed): New function.
14280 (probably_never_executed_bb_p): Invoke probably_never_executed.
14281 (probably_never_executed_edge_p): Ditto.
14282 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
14283 Treat profile insanities conservatively.
14285 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
14287 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
14289 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
14291 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
14292 use it. Use smaller increase for scratch. Don't increase reject
14293 for early clobber scratch.
14294 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
14295 setting eliminated regs except setting fp from hfp.
14296 (lra_eliminate): Check lra_insn_recog_data on NULL.
14298 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14301 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
14302 setting -mvsx-timode by default until the underlying problem is fixed.
14303 (RS6000_CPU, power7 defaults): Likewise.
14305 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14307 * config/x-linux (host-linux.o): Remove header dependencies.
14308 Use $(COMPILE) and $(POSTCOMPILE).
14309 * config/t-linux-android (linux-android.o): Ditto.
14311 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14313 * Makefile.in (expmed.o-warn): Remove.
14315 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14317 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
14318 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
14320 2013-10-02 Teresa Johnson <tejohnson@google.com>
14322 * dojump.c (do_jump_1): Divide probability between
14323 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
14325 2013-10-02 Tom Tromey <tromey@redhat.com>
14327 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
14329 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14331 * tree-flow.h: Remove some prototypes.
14332 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
14333 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
14334 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
14335 mark_virtual_phi_result_for_renaming): Relocate here.
14336 * tree-into-ssa.h: Add prototypes.
14337 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
14338 single_pred_before_succ_order.
14339 (blocks_in_phiopt_order): Rename and move to cfganal.c.
14340 (nonfreeing_call_p) Move to gimple.c.
14341 * cfganal.c (single_pred_before_succ_order): Move and renamed from
14343 * basic-block.h (single_pred_before_succ_order): Add prototype.
14344 * gimple.c (nonfreeing_call_p): Relocate here.
14345 * gimple.h: Add prototype.
14346 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
14347 * tree-ssa-dom.h: New file. Relocate prototypes here.
14348 * tree-ssa.h: Include tree-ssa-dom.h.
14350 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
14352 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
14353 Use $(COMPILE) and $(POSTCOMPILE).
14355 * config/alpha/x-alpha (driver-alpha.o): Ditto.
14357 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14359 * tree-flow.h: Remove some prototypes.
14360 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
14361 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14362 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
14363 propagate_tree_value*): Move from here to...
14364 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
14365 propagate_tree_value*): Relocate here.
14366 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
14367 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
14368 * gimple-fold.c: Remove gimple-fold.h from include list.
14369 * tree-vrp.c: Remove gimple-fold.h from include list.
14370 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
14371 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
14372 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
14373 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
14374 * sese.c: Add tree-ssa-propagate.h to include list.
14376 2013-10-02 Richard Biener <rguenther@suse.de>
14378 * tree-loop-distribution.c: Include tree-vectorizer.h for
14379 find_loop_location.
14380 (enum partition_kind): Remove PKIND_REDUCTION.
14381 (struct partition_s): Remove has_writes member, add reduction_p member.
14382 (partition_alloc): Adjust.
14383 (partition_builtin_p): Likewise.
14384 (partition_has_writes): Remove.
14385 (partition_reduction_p): New function.
14386 (partition_merge_into): Likewise.
14387 (generate_code_for_partition): Commonize builtin partition
14389 (rdg_cannot_recompute_vertex_p): Remove.
14390 (already_processed_vertex_p): Likewise.
14391 (rdg_flag_vertex): Do not set has_writes.
14392 (classify_partition): Adjust.
14393 (rdg_build_partitions): Do not set has_writes, treat all
14394 partitions as useful.
14395 (distribute_loop): Record number of library calls generated. Adjust.
14396 (tree_loop_distribution): Report number of loops and library
14397 calls generated as opt-info.
14399 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
14401 * tree-flow.h: Include new .h files. Move prototypes.
14402 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
14403 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
14404 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
14405 * tree-pretty-print.h: Add prototypes from tree-flow.h.
14406 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
14407 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
14408 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
14409 * tree.h (get_ref_base_and_extent): Move prototype out.
14410 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
14412 * gimple-low.h: New File. Add prototypes from tree-flow.h.
14413 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
14414 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
14415 * tree-scalar-evolution.c: Include tree.h.
14416 * sese.c: Include tree.h.
14417 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
14418 * dwarf2out.c: Include tree-dfa.h.
14419 * tree-chrec.c: Include tree.h.
14420 * tree-data-ref.c: Include tree.h.
14422 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
14424 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
14427 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14429 * config/t-sol2 (sol2-c.o): Remove header dependencies.
14430 Use $(COMPILE) and $(POSTCOMPILE).
14431 (sol2-cxx.o): Likewise.
14432 (sol2-stubs.o): Likewise.
14433 (sol2.o): Likewise.
14434 * config/x-solaris (host-solaris.o): Likewise.
14436 * config/sparc/t-sparc (sparc.o): Remove.
14437 (sparc-c.o): Remove header dependencies.
14438 Use $(COMPILE) and $(POSTCOMPILE).
14439 * config/sparc/x-sparc: Likewise.
14441 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
14443 * config/arc/arc-opts.h: Add 2013 to Copyright years.
14444 * config/arc/arc700.md: Likewise.
14445 * config/arc/arc-modes.def: Likewise.
14446 * config/arc/arc-simd.h: Likewise.
14447 * config/arc/t-arc-uClibc: Likewise.
14448 * config/arc/t-arc-newlib: Likewise.
14450 2013-10-02 Renlin Li <renlin.li@arm.com>
14452 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14454 (aarch64_expand_epilogue): Likewise.
14456 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14457 Yufeng Zhang <yufeng.zhang@arm.com>
14459 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
14461 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
14462 'base_in' represent a conversion and legal_cast_p_1 holds; set
14463 'base_in' with the returned value from get_unwidened.
14465 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14467 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
14468 plus_constant is not used.
14470 2013-10-01 Wei Mi <wmi@google.com>
14472 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
14473 * config/i386/i386.md: Add define_peephole2 to
14474 break partial reg stall for cvtss2sd/cvtsd2ss.
14476 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14478 * config/arc/arc.c (pass_arc_ifcvt::clone):
14479 Update for ctxt_ -> m_ctxt change.
14481 2013-10-01 Jeff Law <law@redhat.com>
14483 * tree-ssa-threadupdate.c (struct redirection_data): Delete
14484 outgoing_edge and intermediate_edge fields. Instead store the path.
14485 (redirection_data::hash): Hash on the last edge's destination index.
14486 (redirection_data::equal): Check the entire thread path.
14487 (lookup_redirectio_data): Corresponding changes.
14488 (create_edge_and_update_destination_phis): Likewise.
14489 (thread_single_edge): Likewise.
14491 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14492 Diego Novillo <dnovillo@google.com>
14494 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
14495 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
14496 (vld32wh_insn, vld32wl_insn): Delete commented-out old
14497 versions of these patterns.
14499 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
14500 (__builtin_arc_aligned): Likewise.
14502 * config/arc/arc.md: Expand adc_0 comment stating the intended
14503 purpose and why it isn't ready.
14504 Replace commented out call_value_via_label_mixed with a
14505 plain comment about bl_s.
14507 * config/arc/arc.c (stdio.h): Don't include directly.
14508 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
14509 Remove if (1) condition.
14510 (arc_encode_section_info): Fix comment.
14512 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14514 * config/arc/arc.c (arc_conditional_register_usage):
14515 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
14516 Also set reg_alloc_order for DMA config regs.
14518 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14519 Jeremy Bennett <jeremy.bennett@embecosm.com>
14521 * doc/install.texi (--with-cpu): Mention ARC.
14522 (arc-*-elf32): New paragraph.
14523 (arc-linux-uclibc): Likewise.
14524 * doc/md.texi (Machine Constraints): Add ARC part.
14525 * doc/invoke.texi: (menu): Add ARC Options.
14526 (Machine Dependent Options) <ARC Options>: Add synopsis.
14527 (node ARC Options): Add.
14528 * doc/extend.texi (long_call / short_call attribute): Add ARC.
14529 (ARC Built-in Functions): New section defining
14530 generic ARC built-in functions.
14531 (ARC SIMD Built-in Functions): New section defining SIMD specific
14532 built-in functions.
14533 (Declaring Attributes of Functions): Extended
14534 description of short_call and long_call attributes for ARC and
14535 added index entries.
14537 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
14538 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
14539 Joern Rennecke <joern.rennecke@embecosm.com>
14540 Muhammad Khurram Riaz <khurram.riaz@arc.com>
14541 Brendan Kehoe <brendan@zen.org>
14542 Michael Eager <eager@eagercon.com>
14543 Simon Cook <simon.cook@embecosm.com>
14544 Jeremy Bennett <jeremy.bennett@embecosm.com>
14546 * config/arc, common/config/arc: New directories.
14548 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
14549 Brendan Kehoe <brendan@zen.org>
14550 Simon Cook <simon.cook@embecosm.com>
14552 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
14554 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14556 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
14557 * tree-ssa-coalesce.h: New. Move prototype to here.
14558 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
14559 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
14560 (gimple_can_coalesce_p): Move to...
14561 * gimple.c (gimple_can_coalesce_p): Here.
14563 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
14565 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
14566 (dump_decl_set): Move to gimple.c.
14567 * gimple.h: Don't include tree-ssa-operands.h.
14568 (dump_decl_set): Add prototype.
14569 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14570 Move to gimple-ssa.h.
14571 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
14572 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
14573 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
14574 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
14575 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
14577 (dump_decl_set): Relocate here.
14578 * gimple-ssa.h: New file.
14579 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
14580 Relocate from gimple.h.
14581 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
14582 * tree-ssa-operands.c (swap_ssa_operands): Rename from
14583 swap_tree_operands and remove non-ssa path.
14584 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
14585 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
14587 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
14588 vect_is_simple_reduction_1): Use swap_ssa_operands.
14589 * tree-flow.h: Move various prototypes to tree-phinodes.h.
14590 (enum need_phi_state): Move to tree-into-ssa.c.
14591 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
14592 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
14593 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
14594 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
14595 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
14596 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
14597 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
14598 num_imm_uses): Move to ssa-iterators.h.
14599 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
14600 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
14602 (op_iter_done, op_iter_next_def, op_iter_next_tree,
14603 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
14604 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
14605 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
14606 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
14607 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
14608 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
14609 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
14610 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
14611 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
14612 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
14613 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
14614 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
14615 (set_phi_nodes): Move to tree-phinodes.h.
14616 * tree-ssa-operands.h (enum ssa_op_iter_type,
14617 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
14618 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
14619 (dump_decl_set): Remove prototype.
14620 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
14621 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
14622 (set_phi_nodes): Relocate from tree-flow-inline.h.
14623 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
14625 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
14626 include list. Temporarily add gimple.h to include list.
14627 * ssa-iterators.h: New file.
14628 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
14629 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
14630 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
14631 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
14632 Relocate from tree-ssa-operands.h.
14633 (delink_imm_use, link_imm_use_to_list, link_imm_use,
14634 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
14635 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
14636 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
14637 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
14638 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
14639 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
14640 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
14641 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
14642 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
14643 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
14644 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
14645 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
14646 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
14647 Relocate from tree-flow-inline.h.
14648 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
14650 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
14653 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
14654 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
14655 Insert '\t' to output template.
14656 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
14657 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
14658 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
14659 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
14661 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
14663 * doc/install.texi (Host/target specific installation notes for GCC):
14664 Put @anchor before @heading.
14665 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
14666 Use @email for email addresses.
14668 2013-10-01 Jeff Law <law@redhat.com>
14670 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
14671 a vec. Only delete the path if we create one without successfully
14672 registering a jump thread.
14673 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
14675 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
14676 (paths): New vector of jump threading paths.
14677 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
14678 (THREAD_PATH): New accessor macro for the entire thread path.
14679 (lookup_redirection_data): Get intermediate and final outgoing edge
14680 from the thread path.
14681 (create_edge_and_update_destination_phis): Copy the threading path.
14682 (ssa_fix_duplicate_block_edges): Get edges and block types from the
14683 jump threading path.
14684 (ssa_redirect_edges): Get edges and block types from the jump threading
14685 path. Free the path vector.
14686 (thread_block): Get edges from the jump threading path. Look at the
14687 entire path to see if we thread to a loop exit. If we cancel a jump
14688 thread request, then free the path vector.
14689 (thread_single_edge): Get edges and block types from the jump threading
14690 path. Free the path vector.
14691 (thread_through_loop_header): Get edges and block types from the jump
14692 threading path. Free the path vector.
14693 (mark_threaded_blocks): Iterate over the vector of paths and store
14694 the path on the appropriate edge. Get edges and block types from the
14695 jump threading path.
14696 (mark_threaded_blocks): Get edges and block types from the jump
14697 threading path. Free the path vector.
14698 (thread_through_all_blocks): Use the vector of paths rather than
14699 a vector of 3-edge sets.
14700 (register_jump_thread): Accept pointer to a path vector rather
14701 than the path vector itself. Store the path vector for later use.
14704 2013-10-01 Jakub Jelinek <jakub@redhat.com>
14705 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14708 * config/s390/s390.c (s390_split_branches): Modify check for table
14710 (s390_chunkify_start): Rearrange table jump insn check in order to
14711 deal with compare and branch insns correctly.
14713 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
14717 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
14718 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
14719 define_insn_and_split.
14720 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
14721 (shiftsi3_compare): New pattern.
14722 (rrx): New pattern.
14723 * config/arm/unspecs.md (UNSPEC_RRX): New.
14725 2013-10-01 Alan Modra <amodra@gmail.com>
14727 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
14728 casing inout operands.
14730 2013-10-01 Richard Biener <rguenther@suse.de>
14732 PR tree-optimization/58553
14733 * tree-loop-distribution.c (struct partition_s): Add niter member.
14734 (classify_partition): Populate niter member for the partition
14735 and properly identify whether the relevant store happens before
14736 or after the loop exit.
14737 (generate_memset_builtin): Use niter member from the partition.
14738 (generate_memcpy_builtin): Likewise.
14740 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
14742 * vec.h (vec_prefix, vec): Prefix member names with "m_".
14743 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
14745 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
14747 * basic-block.h (edge_list): Prefix member names with "m_".
14748 * context.h (context): Likewise.
14749 * domwalk.h (dom_walker): Likewise.
14750 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
14751 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
14752 * hash-table.h (hash_table): Likewise.
14753 * machmode.h (bit_field_mode_iterator): Likewise.
14754 * pass_manager.h (pass_list): Likewise.
14755 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
14756 * tree-pass.h (pass_data): Likewise.
14757 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
14758 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
14759 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
14760 * asan.c (pass_data_asan): Update accordingly.
14761 * cfganal.c (control_dependences::find_control_dependence): Likewise.
14762 (control_dependences::control_dependences): Likewise.
14763 (control_dependences::~control_dependences): Likewise.
14764 (control_dependences::~control_dependences): Likewise.
14765 (control_dependences::get_edges_dependent_on): Likewise.
14766 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
14767 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
14768 * context.c (gcc::context::context): Likewise.
14769 * cprop.c (pass_rtl_cprop::clone): Likewise.
14770 * domwalk.c (dom_walker::walk): Likewise.
14771 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
14772 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
14773 * mode-switching.c (pass_mode_switching::clone): Likewise.
14774 * passes.c (opt_pass::opt_pass): Likewise.
14775 (pass_manager::pass_manager): Likewise.
14776 * predict.c (pass_strip_predict_hints::clone): Likewise.
14777 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
14778 (pass_split_all_insns::clone): Likewise.
14779 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
14781 (bit_field_mode_iterator::next_mode): Likewise.
14782 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
14783 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
14784 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
14785 * tree-complex.c (pass_lower_complex::clone): Likewise.
14786 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
14787 * tree-object-size.c (pass_object_sizes::clone): Likewise.
14788 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
14789 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
14790 (pass_fold_builtins::clone): Likewise.
14791 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
14792 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
14793 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
14794 (pass_cd_dce::clone): Likewise.
14795 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
14796 (pass_phi_only_cprop::clone): Likewise.
14797 * tree-ssa-dse.c (pass_dse::clone): Likewise.
14798 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
14799 * tree-ssa-loop.c (pass_lim::clone): Likewise.
14800 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
14801 * tree-ssa-pre.c (pass_fre::clone): Likewise.
14802 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
14803 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
14804 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
14805 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
14806 * tree-vrp.c (pass_vrp::clone): Likewise.
14807 * tsan.c (pass_tsan::clone): Likewise.
14809 2013-09-30 Jakub Jelinek <jakub@redhat.com>
14811 PR middle-end/58564
14812 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
14813 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
14815 PR middle-end/58564
14816 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
14817 optimization, punt if sign_bit_p looked through any zero extension.
14819 2013-09-30 Teresa Johnson <tejohnson@google.com>
14821 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
14822 Update redirected out edge count in joiner case.
14823 (ssa_redirect_edges): Common the joiner and non-joiner cases
14824 so that joiner case gets profile updates.
14826 2013-09-30 Richard Biener <rguenther@suse.de>
14828 PR tree-optimization/58554
14829 * tree-loop-distribution.c (classify_partition): Require
14830 unconditionally executed stores for memcpy and memset recognition.
14831 (tree_loop_distribution): Calculate dominance info.
14833 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14835 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
14836 (NO_PROFILE_COUNTERS): Likewise.
14837 (PROFILE_HOOK): Likewise.
14838 (FUNCTION_PROFILER): Likewise.
14839 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
14841 2013-09-30 Iain Sandoe <iain@codesourcery.com>
14843 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
14844 calls and defines in TARGET_MACHO conditional.
14845 (load_macho_picbase_di): Likewise.
14846 (reload_macho_picbase): Likewise.
14847 (reload_macho_picbase_si): Likewise.
14848 (reload_macho_picbase_di): Likewise.
14849 (nonlocal_goto_receiver): Likewise.
14851 2013-09-30 Nick Clifton <nickc@redhat.com>
14853 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
14854 that use the MSP430X ISA.
14855 (msp430_option_override): Scan -mmcu command line option for any
14856 MCU name that supports the MSP430X ISA.
14857 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
14858 -mmcu options which enable the MSP430X ISA.
14860 2013-09-30 Richard Biener <rguenther@suse.de>
14862 PR middle-end/58532
14863 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
14864 before looking for setjmp-like calls.
14866 2013-09-29 Iain Sandoe <iain@codesourcery.com>
14869 * config/darwin-protos.h (machopic_get_function_picbase): New.
14870 * config/darwin.c (machopic_get_function_picbase): New.
14871 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
14872 label for a new func. (load_macho_picbase_di): Likewise.
14873 (reload_macho_picbase): New expand.
14874 (reload_macho_picbase_si): New insn.
14875 (reload_macho_picbase_di): New insn.
14876 (nonlocal_goto_receiver): New define and split.
14877 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
14878 (unspecv enum): Add UNSPECV_NLGR.
14880 2013-09-29 Iain Sandoe <iain@codesourcery.com>
14882 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
14883 that altivec registers are correctly sized on Darwin.
14885 2013-09-29 Iain Sandoe <iain@codesourcery.com>
14887 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
14888 darwin-driver.o): Use COMPILE and POSTCOMPILE.
14889 * config/x-darwin (host-darwin.o): Likewise.
14890 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
14891 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
14892 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
14894 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
14896 * doc/invoke.texi: Fix usage of @tie{} command.
14898 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
14900 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
14902 2013-09-28 Jan Hubicka <jh@suse.cz>
14904 * config/i386/x86-tune.def: Add documentation for each of the options;
14907 2013-09-28 Jan Hubicka <jh@suse.cz>
14909 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
14911 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
14912 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
14913 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
14914 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
14915 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
14917 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
14919 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
14920 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
14921 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
14922 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
14923 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
14924 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
14925 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
14926 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
14927 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
14928 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
14929 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
14930 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
14931 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
14932 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
14933 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
14934 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
14935 gimple.h, godump.c, graphite-clast-to-gimple.c,
14936 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
14937 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
14938 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
14939 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
14940 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
14941 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
14942 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
14943 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
14944 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
14945 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
14946 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
14947 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
14948 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
14949 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
14950 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
14951 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
14952 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
14953 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
14954 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
14955 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
14956 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
14957 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
14958 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
14959 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
14960 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14961 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14962 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
14963 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
14964 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14965 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14966 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14967 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
14968 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
14969 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
14970 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14971 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
14972 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
14973 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
14974 whitespace before "(".
14976 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
14978 * expr.h (extract_bit_field): Remove packedp parameter.
14979 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
14980 from forward declaration.
14981 (store_split_bit_field): Remove packedp arg from calls to
14982 extract_fixed_bit_field.
14983 (extract_bit_field_1): Remove packedp parameter and packedp
14984 argument from recursive calls and calls to extract_fixed_bit_field.
14985 (extract_bit_field): Remove packedp parameter and corresponding
14986 arg to extract_bit_field_1.
14987 (extract_fixed_bit_field): Remove packedp parameter. Remove code
14989 (extract_split_bit_field): Remove packedp arg from call to
14990 extract_fixed_bit_field.
14991 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
14992 (copy_blkmode_from_reg): Likewise.
14993 (copy_blkmode_to_reg): Likewise.
14994 (read_complex_part): Likewise.
14995 (store_field): Likewise.
14996 (expand_expr_real_1): Likewise.
14997 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
14998 to extract_bit_field.
14999 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
15000 call to extract_bit_field.
15001 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
15002 call to extract_bit_field.
15003 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
15004 and special packedp behavior from -fstrict-volatile-bitfields
15007 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15009 * lra-eliminations.c (init_elim_table): Guard value_p.
15011 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15013 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
15014 DFmode, DImode, and SFmode in the upper VSX registers based on the
15015 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
15016 if -mpower8-vector. Combine -mvsx-timode handling with the rest
15017 of the VSX register handling.
15019 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
15020 (f32_sv): Likewise.
15021 (zero_extendsidi2_lfiwzx): Add support for loading into the
15022 Altivec registers with -mpower8-vector. Use wu/wv constraints to
15023 only do VSX memory options on Altivec registers.
15024 (extendsidi2_lfiwax): Likewise.
15025 (extendsfdf2_fpr): Likewise.
15026 (mov<mode>_hardfloat, SF/SD modes): Likewise.
15027 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
15028 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
15029 (movdi_internal64): Likewise.
15031 2013-09-27 Xinliang David Li <davidxl@google.com>
15033 * opts.c (finish_options): Adjust parameters
15034 according to vect cost model.
15035 (common_handle_option): Set dynamic vect cost
15037 targhooks.c (default_add_stmt_cost): Compute stmt cost
15039 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15040 Use helper function.
15041 * tree-vectorizer.h (unlimited_cost_model): New function.
15042 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
15043 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
15045 (vect_enhance_data_refs_alignment): Ditto.
15046 * flag-types.h: New enum.
15047 * common/config/i386/i386-common.c (ix86_option_init_struct):
15048 No need to initialize vect_cost_model flag.
15049 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
15052 2013-09-27 Diego Novillo <dnovillo@google.com>
15054 * gimple.h (enum ssa_mode): Remove.
15056 2013-09-27 Paulo Matos <pmatos@broadcom.com>
15058 * cfgloop.h (number_of_loops): Fix typo in check for null.
15060 2013-09-27 Jakub Jelinek <jakub@redhat.com>
15062 PR middle-end/58551
15063 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
15064 are children of outermost saved_cfun's loop, and set it up to
15065 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
15066 if loop != loop0 and SESE region contains bbs that belong to loop0.
15068 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15070 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
15071 (binary_scale_code_p, get_base_term, get_index_term): New functions.
15072 (set_address_segment, set_address_base, set_address_index)
15073 (set_address_disp): Accept the argument unconditionally.
15074 (baseness): Remove must_be_base_p and must_be_index_p checks.
15075 (decompose_normal_address): Classify as much as possible in the
15078 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
15080 * cse.c (count_reg_usage): Handle INT_LIST.
15081 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
15082 * reginfo.c (reg_scan_mark_refs): Likewise.
15083 * reload1.c (eliminate_regs_1): Likewise.
15085 2013-09-27 Iain Sandoe <iain@codesourcery.com>
15087 PR middle-end/58547
15088 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
15091 2013-09-27 Richard Biener <rguenther@suse.de>
15093 PR tree-optimization/58459
15094 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
15095 restriction not propagating into loops.
15097 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
15099 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
15100 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
15101 * doc/tree-ssa.texi (Walking use-def chains): Delete.
15103 2013-09-26 Richard Biener <rguenther@suse.de>
15105 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
15107 2013-09-26 Richard Biener <rguenther@suse.de>
15109 * alias.h (component_uses_parent_alias_set): Rename to ...
15110 (component_uses_parent_alias_set_from): ... this.
15111 * alias.c (component_uses_parent_alias_set): Rename to ...
15112 (component_uses_parent_alias_set_from): ... this and return
15113 the desired parent.
15114 (reference_alias_ptr_type_1): Use the result from
15115 component_uses_parent_alias_set_from instead of stripping
15116 components one at a time.
15117 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
15119 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15121 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
15122 Move prototypes to...
15123 * tree-ssa-ter.h: New File. Move prototypes here.
15124 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
15125 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
15126 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
15127 from is_replaceable_p.
15128 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
15129 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
15130 (process_replaceable): Use ter_is_replaceable_p.
15131 (find_replaceable_in_bb): Use ter_is_replaceable_p.
15132 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
15133 newly refactored ssa_is_replaceable_p.
15134 * cfgexpand.c: Include tree-outof-ssa.h.
15135 * ssaexpand.h: Delete.
15137 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
15139 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
15140 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
15142 (create_gimple_tmp): Delete.
15143 (get_expr_type, build_assign, build_type_cast): Move to...
15144 * gimple-builder.c: New File.
15145 (get_expr_type): Relocate from gimple.c.
15146 (build_assign, build_type_cast): Change to only create ssanames.
15147 * gimple.h: Move prototypes to...
15148 * gimple-builder.h: New File. Here.
15149 * tree-ssa.h: And here.
15150 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
15151 count_uses_and_derefs): Relocate from gimple.c.
15152 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
15153 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
15154 * tree-ssa-math-opts (execute_cse_reciprocals): Use
15155 gimple_replace_ssa_lhs.
15156 * asan.c: Include gimple-builder.h.
15157 * Makefile.in: Add gimple-builder.o.
15159 2013-09-26 Richard Biener <rguenther@suse.de>
15161 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
15162 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
15163 (loe_visit_block): Use gcc_checking_assert.
15164 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
15165 gimple_assign_ssa_name_copy_p.
15166 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
15169 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
15171 * config/rs6000/t-rs6000 (rs6000.o): Remove.
15172 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
15174 2013-09-26 Richard Biener <rguenther@suse.de>
15176 PR tree-optimization/58539
15177 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
15178 the fact that debug statements are not taking part in loop-closed
15181 2013-09-26 Nick Clifton <nickc@redhat.com>
15183 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
15184 time warning message.
15185 (msp430_print_operand_raw): Delete unused letter parameter.
15186 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15187 (msp430_print_operand_address): New function.
15188 (msp430_print_operand): Move address printing code from here to
15190 * config/msp430/msp430.md (movsipsi2): Add comment in generated
15192 (zero_extendpsisi2): Likewise.
15193 (extendpsisi2): New pattern.
15194 (andneghi3): New pattern.
15196 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
15198 * config/aarch64/aarch64.opt (mlra): New option.
15199 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
15200 (TARGET_LRA_P): Define.
15202 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
15204 * expr.c (expand_assignment): Remove obsolete comment.
15206 2013-09-25 Jeff Law <law@redhat.com>
15208 * tree-flow.h (thread_through_all_blocks): Prototype moved into
15209 tree-ssa-threadupdate.h.
15210 (register_jump_thread): Similarly.
15211 * tree-ssa-threadupdate.h: New header file.
15212 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
15213 * tree-vrp.c: Likewise.
15214 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
15215 (thread_around_empty_blocks): Change type of path vector argument to
15216 an edge,type pair from just an edge. Initialize both elements when
15217 appending to a jump threading path. Tweak references to elements
15219 (thread_across_edge): Similarly. Release memory for the elements
15221 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
15222 (dump_jump_thread_path): New function broken out from
15223 register_jump_thread.
15224 (register_jump_thread): Use dump_jump_thread_path. Change type of
15225 path vector entries. Search the path for NULL edges and dump
15226 the path if one is found. Tweak the conversion of path to 3-edge
15227 form to use the block copy type information embedded in the path.
15229 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15231 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
15233 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
15234 Vladimir Makarov <vmakarov@redhat.com>
15236 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
15237 from the least significant bit.
15238 (strip_address_mutations): Add bitfield operations handling.
15239 (must_be_index_p): Add shifting and rotate operations handling.
15240 (set_address_base): Use must_be_base_p predicate.
15241 (set_address_index): Use must_be_index_p predicate.
15243 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
15244 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15245 Sergey Lega <sergey.s.lega@intel.com>
15246 Anna Tikhonova <anna.tikhonova@intel.com>
15247 Ilya Tocar <ilya.tocar@intel.com>
15248 Andrey Turetskiy <andrey.turetskiy@intel.com>
15249 Ilya Verbin <ilya.verbin@intel.com>
15250 Kirill Yukhin <kirill.yukhin@intel.com>
15251 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15253 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
15255 (ix86_expand_vector_move_misalign): Support new unaligned load and
15256 stores and use new names.
15257 (CODE_FOR_sse2_storedqu): Rename to ...
15258 (CODE_FOR_sse2_storedquv16qi): ... this.
15259 (CODE_FOR_sse2_loaddqu): Rename to ...
15260 (CODE_FOR_sse2_loaddquv16qi): ... this.
15261 (CODE_FOR_avx_loaddqu256): Rename to ...
15262 (CODE_FOR_avx_loaddquv32qi): ... this.
15263 (CODE_FOR_avx_storedqu256): Rename to ...
15264 (CODE_FOR_avx_storedquv32qi): ... this.
15265 * config/i386/i386.md (fpint_logic): New.
15266 * config/i386/sse.md (VMOVE): Extend for AVX512.
15270 (VI_UNALIGNED_LOADSTORE): Ditto.
15271 (sse2_avx_avx512f): Ditto.
15272 (sse2_avx2): Extend for AVX512.
15273 (sse4_1_avx2): Ditto.
15274 (avx2_avx512f): New.
15275 (sse): Extend for AVX512.
15278 (avxsizesuffix): Ditto.
15279 (sseintvecmode): Ditto.
15280 (ssePSmode): Ditto.
15281 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
15282 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
15283 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15284 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
15285 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
15286 (<sse2_avx_avx512f>_storedqu<mode): ... this.
15287 (<sse>_movnt<mode>): Replace constraint "x" with "v".
15288 (STORENT_MODE): Extend for AVX512.
15289 (*absneg<mode>2): Replace constraint "x" with "v".
15290 (*mul<mode>3): Ditto.
15291 (*ieee_smin<mode>3): Ditto.
15292 (*ieee_smax<mode>3): Ditto.
15293 (avx_cmp<mode>3): Replace VF with VF_128_256.
15294 (*<sse>_maskcmp<mode>3_comm): Ditto.
15295 (<sse>_maskcmp<mode>3): Ditto.
15296 (<sse>_andnot<mode>3): Extend for AVX512.
15297 (<code><mode>3, anylogic): Replace VF with VF_128_256.
15298 (<code><mode>3, fpint_logic): New.
15299 (*<code><mode>3): Extend for AVX512.
15300 (avx512flogicsuff): New.
15301 (avx512f_<logic><mode>): Ditto.
15302 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
15304 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
15305 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
15306 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
15307 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
15308 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
15309 (xop_vpermil2<mode>3): Ditto.
15310 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
15311 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
15312 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
15313 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
15315 2013-09-25 Tom Tromey <tromey@redhat.com>
15317 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
15318 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
15319 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
15320 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
15321 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
15322 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
15323 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
15324 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
15325 (GRAPHITE_HTAB_H): Remove.
15327 2013-09-25 Tom Tromey <tromey@redhat.com>
15329 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
15331 2013-09-25 Tom Tromey <tromey@redhat.com>
15333 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
15335 2013-09-25 Tom Tromey <tromey@redhat.com>
15337 * config/i386/t-i386 (i386.o): Remove.
15338 (i386-c.o): Use COMPILE and POSTCOMPILE.
15340 2013-09-25 Tom Tromey <tromey@redhat.com>
15342 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
15344 2013-09-25 Tom Tromey <tromey@redhat.com>
15346 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
15347 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
15348 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
15349 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
15350 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
15351 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
15352 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
15353 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
15354 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
15355 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
15356 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
15357 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
15358 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
15359 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
15360 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
15361 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
15362 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
15363 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
15364 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
15365 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
15366 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
15367 (tree-ssa-pre.o, tree-ssa-sccvn.o)
15368 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
15369 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
15370 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
15371 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
15372 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
15373 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
15374 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
15375 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
15376 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
15377 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
15378 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
15379 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
15380 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
15381 (graphite-clast-to-gimple.o, graphite-dependences.o)
15382 (graphite-interchange.o, graphite-poly.o)
15383 (graphite-scop-detection.o, graphite-sese-to-poly.o)
15384 (graphite-optimize-isl.o, tree-vect-loop.o)
15385 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
15386 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
15387 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
15388 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
15389 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
15390 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
15391 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
15392 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
15393 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
15394 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
15395 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
15396 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
15397 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
15398 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
15399 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
15400 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
15401 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
15402 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
15403 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
15404 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
15405 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
15406 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
15407 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
15408 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
15409 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
15410 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
15411 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
15412 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
15413 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
15414 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
15415 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
15416 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
15417 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
15418 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
15419 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
15420 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
15421 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
15422 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
15423 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
15424 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
15425 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
15426 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
15427 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
15428 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
15429 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
15430 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
15431 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
15432 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
15433 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
15434 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
15435 (gcov-dump.o): Remove.
15436 (default-c.o): Use COMPILE and POSTCOMPILE.
15437 (CFLAGS-gcc.o): New variable.
15438 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
15440 2013-09-25 Tom Tromey <tromey@redhat.com>
15442 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
15443 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
15444 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
15445 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
15446 (c-family/c-pragma.o, c-family/c-pretty-print.o)
15447 (c-family/c-semantics.o, c-family/c-ada-spec.o)
15448 (c-family/array-notation-common.o, c-family/stub-objc.o)
15449 (c-family/c-ubsan.o): Remove.
15451 2013-09-25 Tom Tromey <tromey@redhat.com>
15453 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
15455 2013-09-25 Tom Tromey <tromey@redhat.com>
15457 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
15458 to add -DENABLE_SHARED_LIBGCC.
15459 (gcc.o): Don't use subshell.
15461 2013-09-25 Tom Tromey <tromey@redhat.com>
15463 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
15464 * configure.ac: Don't invoke AM_PROG_CC_C_O.
15465 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
15466 * configure, config.in: Rebuild.
15468 2013-09-25 Tom Tromey <tromey@redhat.com>
15470 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
15471 (COMPILE, POSTCOMPILE): New variables.
15472 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
15473 (DEPFILES): New variable.
15474 Include ".Po" files.
15475 * configure.ac: Add checks for dependency checking.
15476 * configure, aclocal.m4: Regenerate.
15478 2013-09-25 Tom Tromey <tromey@redhat.com>
15480 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
15481 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
15483 2013-09-25 Tom Tromey <tromey@redhat.com>
15485 * Makefile.in (generated_files): Add options.h,
15486 target-hooks-def.h, insn-opinit.h,
15487 common/common-target-hooks-def.h, pass-instances.def,
15488 c-family/c-target-hooks-def.h.
15490 2013-09-25 Jeff Law <law@redhat.com>
15492 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
15493 than foo[foo.length () - 1] to access last member in a vec.
15494 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
15496 2013-09-25 Richard Biener <rguenther@suse.de>
15498 PR middle-end/58521
15499 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
15501 2013-09-25 Jan Hubicka <jh@suse.cz>
15503 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
15506 2013-09-25 Marek Polacek <polacek@redhat.com>
15509 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
15510 when determining the type name.
15512 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
15514 * config/sh/sh.md: Fix formatting.
15516 2013-09-24 Xinliang David Li <davidxl@google.com>
15518 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
15519 max peel iterations parameter.
15520 * param.def: New parameter.
15521 * doc/invoke.texi: Document New parameter.
15523 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
15525 * gimple-pretty-print.c: Various whitespace tweaks.
15526 * tree-core.h: Likewise.
15527 * tree-pretty-print.c: Likewise.
15528 * tree-ssa-alias.c: Likewise.
15529 * tree-ssa-copy.c: Likewise.
15530 * tree-ssanames.c: Likewise.
15531 * tree-ssanames.h: Likewise.
15532 * tree-vrp.c: Likewise.
15534 2013-09-24 Alan Modra <amodra@gmail.com>
15536 PR middle-end/57134
15537 PR middle-end/57586
15538 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
15539 for output operands that disallow regs. Don't use EXPAND_WRITE on
15542 2013-09-24 Richard Biener <rguenther@suse.de>
15544 PR middle-end/58513
15545 * tree.c (reference_alias_ptr_type): Move ...
15546 * alias.c (reference_alias_ptr_type): ... here and implement
15547 in terms of the new reference_alias_ptr_type_1.
15548 (ref_all_alias_ptr_type_p): New helper.
15549 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
15550 use ref_all_alias_ptr_type_p.
15551 (get_deref_alias_set): Add flag_strict_aliasing check here.
15552 (reference_alias_ptr_type_1): New function, split out from ...
15553 (get_alias_set): ... here.
15554 (alias_ptr_types_compatible_p): New function.
15555 * alias.h (reference_alias_ptr_type): Declare.
15556 (alias_ptr_types_compatible_p): Likewise.
15557 * tree.h (reference_alias_ptr_type): Remove.
15558 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
15559 to compare MEM_REF alias types.
15561 2013-09-24 Richard Biener <rguenther@suse.de>
15563 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
15565 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15567 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
15568 reload helper function arrays into a single array reg_addr.
15569 (reload_fpr_gpr): Likewise.
15570 (reload_gpr_vsx): Likewise.
15571 (reload_vsx_gpr): Likewise.
15572 (struct rs6000_reg_addr): Likewise.
15573 (reg_addr): Likewise.
15574 (rs6000_debug_reg_global): Change rs6000_vector_reload,
15575 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
15576 (rs6000_init_hard_regno_mode_ok): Likewise.
15577 (rs6000_secondary_reload_direct_move): Likewise.
15578 (rs6000_secondary_reload): Likewise.
15580 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
15581 constraints: wu, ww, and wy. Repurpose wv constraint added during
15582 power8 changes. Put wg constraint in alphabetical order.
15584 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
15585 for future work to add ISA 2.07 VSX single precision support.
15586 (-mvsx-scalar-double): Change default from -1 to 1, update
15587 documentation comment.
15588 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
15589 (-mupper-regs-df): New debug switch to control whether DF values
15590 can go in the traditional Altivec registers.
15591 (-mupper-regs-sf): New debug switch to control whether SF values
15592 can go in the traditional Altivec registers.
15594 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
15595 and wy constraints.
15596 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
15597 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
15598 Add new constraints, wu/ww/wy. Repurpose wv constraint.
15599 (rs6000_debug_legitimate_address_p): Print if we are running
15600 before, during, or after reload.
15601 (rs6000_secondary_reload): Add a comment.
15602 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
15604 * config/rs6000/constraints.md (wa constraint): Sort w<x>
15605 constraints. Update documentation string.
15606 (wd constraint): Likewise.
15607 (wf constraint): Likewise.
15608 (wg constraint): Likewise.
15609 (wn constraint): Likewise.
15610 (ws constraint): Likewise.
15611 (wt constraint): Likewise.
15612 (wx constraint): Likewise.
15613 (wz constraint): Likewise.
15614 (wu constraint): New constraint for ISA 2.07 SFmode scalar
15616 (ww constraint): Likewise.
15617 (wy constraint): Likewise.
15618 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
15619 in the previous submissions.
15620 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
15622 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
15624 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
15625 (REG_BR_PROB): Say that the probability is stored in an int_list.
15626 * reg-notes.def: Update commentary to mention INT_LIST.
15627 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
15628 (INT_LIST): New rtx.
15629 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
15630 * rtlanal.c (int_reg_note_p): New function.
15631 (alloc_reg_note): Assert that the note does not have an int argument.
15632 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
15633 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
15634 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
15635 rather than an INSN_LIST. Handle INT_LIST.
15636 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
15637 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
15638 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
15639 Manipulate them as ints rather than rtxes.
15640 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
15641 * regmove.c (copy_src_to_dest): Likewise.
15642 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
15644 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
15645 into the cases that need it.
15646 * config/arm/arm.c (arm_unwind_emit): Likewise.
15648 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
15649 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
15650 * loop-doloop.c (add_test, doloop_modify): Likewise.
15651 * loop-unswitch.c (compare_and_jump_seq): Likewise.
15652 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
15653 * predict.c (combine_predictions_for_insn): Likewise.
15654 * print-rtl.c (print_rtx): Handle INT_LIST.
15655 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
15656 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
15657 * config/arm/arm.c (emit_unlikely_jump): Likewise.
15658 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
15659 (ix86_split_fp_branch, predict_jump): Likewise.
15660 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
15661 * config/sh/sh.c (expand_cbranchsi4): Likewise.
15662 * config/spu/spu.c (ea_load_store_inline): Likewise.
15664 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
15665 value of a REG_BR_PROB note.
15666 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
15667 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
15668 * emit-rtl.c (try_split): Likewise.
15669 * predict.c (br_prob_note_reliable_p): Likewise.
15670 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
15671 * reorg.c (mostly_true_jump): Likewise.
15672 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
15673 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
15674 * config/i386/i386.c (ix86_print_operand): Likewise.
15675 * config/ia64/ia64.c (ia64_print_operand): Likewise.
15676 * config/mmix/mmix.c (mmix_print_operand): Likewise.
15677 * config/rs6000/rs6000.c (output_cbranch): Likewise.
15678 * config/s390/s390.c (s390_expand_tbegin): Likewise.
15679 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
15680 * config/sparc/sparc.c (output_cbranch): Likewise.
15681 * config/spu/spu.c (get_branch_target): Likewise.
15682 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
15683 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
15685 2013-09-23 Jan Hubicka <jh@suse.cz>
15687 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
15689 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
15690 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
15692 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
15693 (gimple_fold_call): Dump inconsistent devirtualizations; add
15694 sanity check for type based devirtualizations.
15695 * ipa-prop.c: Include ipa-utils.h
15696 (ipa_intraprocedural_devirtualization): Add sanity check.
15697 (try_make_edge_direct_virtual_call): Likewise.
15699 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
15701 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
15702 assignment statements.
15704 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15706 * gimple-pretty-print.c (dump_ssaname_info): New function.
15707 (dump_gimple_phi): Call it.
15708 (pp_gimple_stmt_1): Likewise.
15709 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
15710 (range_info_def): Declare.
15711 * tree-pretty-print.c (pp_double_int): New function.
15712 (dump_generic_node): Call it.
15713 * tree-pretty-print.h (pp_double_int): Declare.
15714 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
15715 * tree-ssanames.h (range_info_def): New structure.
15716 (value_range_type): Move definition here.
15717 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
15719 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
15721 (set_range_info): New function.
15722 (get_range_info): Likewise.
15723 (duplicate_ssa_name_range_info): Likewise.
15724 (duplicate_ssa_name_fn): Check pointer type and call
15725 duplicate_ssa_name_range_info.
15726 * tree-ssa-copy.c (fini_copy_prop): Likewise.
15727 * tree-vrp.c (value_range_type): Remove definition, now in
15729 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
15730 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
15731 (SSA_NAME_RANGE_INFO): New macro.
15733 2013-09-23 Richard Biener <rguenther@suse.de>
15735 PR tree-optimization/58464
15736 * tree-ssa-pre.c (phi_trans_lookup): Remove.
15737 (phi_trans_add): Change to add conditionally on being not present.
15738 (phi_translate_1): Remove recursion detection here.
15739 (phi_translate): Pre-seed the cache with NULL to catch
15740 recursion here in a more generic way.
15741 (bitmap_find_leader): Adjust comment.
15742 (get_representative_for): Dump value-numbers.
15743 (create_expression_by_pieces): Likewise.
15744 (insert_into_preds_of_block): Likewise.
15746 2013-09-23 Christian Bruel <christian.bruel@st.com>
15749 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
15750 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
15752 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
15755 2013-09-20 Renlin Li <renlin.li@arm.com>
15757 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15759 (aarch64_expand_epilogue): Likewise.
15760 (aarch64_legitimize_reload_address): Likewise.
15762 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
15764 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
15765 NULL_TREE before pushing them onto the vector. Likewise for labels.
15767 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
15769 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
15770 comparison operators when -fno-trapping-math is in effect.
15771 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
15772 comparison operators in TFmode and assert that unsupported operators
15774 (ia64_print_operand): Likewise.
15776 2013-09-21 Jan Hubicka <jh@suse.cz>
15778 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
15779 (sse_typeless_stores): Enable for core
15780 (sse_load0_by_pxor): Likewise.
15781 (four_jump_limit): Disable for core.
15782 (pad_returns): Likewise.
15783 (avoid_vector_decode): Likewise.
15784 (fuse_cmp_and_branch): Enable for cores.
15785 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
15787 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
15789 PR middle-end/56791
15790 * config/pa/pa.c (pa_option_override): Disable auto increment and
15791 decrement instructions until reload is completed.
15793 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
15794 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
15795 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
15797 2013-09-20 DJ Delorie <dj@redhat.com>
15798 Nick Clifton <nickc@redhat.com>
15800 * config/rl78/rl78.c: Various whitespace and comment tweaks.
15801 (need_to_save): Save bank 0 on interrupts.
15802 (characterize_address): Strip far address wrappers.
15803 (rl78_as_legitimate_address): Likewise.
15804 (transcode_memory_rtx): Likewise.
15805 (rl78_peep_movhi_p): Disable this peephole after devirt.
15806 (rl78_propogate_register_origins): Forget all origins when a
15808 * config/rl78/rl78-virt.md: Various whitespace tweaks.
15809 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
15811 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
15812 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
15813 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
15815 * config/rl78/constraints.md: Various whitespace and paren tweaks.
15817 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
15819 * config/pa/pa.md: In "scc" insn patterns, change output template to
15820 handle const0_rtx in reg_or_0_operand operands.
15822 2013-09-20 Martin Husemann <martin@NetBSD.org>
15825 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
15826 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
15828 2013-09-20 Richard Biener <rguenther@suse.de>
15830 PR middle-end/58484
15831 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
15832 remembering SSA name version and block index.
15833 (new_scev_info_str): Adjust.
15834 (hash_scev_info): Likewise. Also hash the block index.
15835 (eq_scev_info): Adjust.
15836 (find_var_scev_info): Likewise.
15837 (struct instantiate_cache_entry): Remove.
15838 (struct instantiate_cache_type): Use a htab to map name, block
15840 (instantiate_cache_type::~instantiate_cache_type): Adjust.
15841 (get_instantiated_value_entry): Likewise.
15842 (hash_idx_scev_info, eq_idx_scev_info): New functions.
15843 (instantiate_scev_name): Adjust.
15845 2013-09-20 Jeff Law <law@redhat.com>
15847 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
15849 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
15851 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
15852 Call aarch64_simd_expand_args to update op[argc].
15854 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
15856 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
15859 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
15861 * gengtype.c (file_rules): Added rule for *.cc files.
15862 (get_output_file_with_visibility): Give fatal message when no
15865 2013-09-20 Renlin Li <renlin.li@arm.com>
15867 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
15868 (aarch64_expand_epilogue): Likewise.
15869 (aarch64_legitimize_reload_address): Likewise.
15871 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15873 PR middle-end/57748
15874 * expr.c (expand_assignment): Remove misalignp code path.
15876 2013-09-20 Marek Polacek <polacek@redhat.com>
15879 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
15880 TYPE_PRECISION. Add asserts.
15882 2013-09-20 Richard Biener <rguenther@suse.de>
15884 PR tree-optimization/58453
15885 * tree-loop-distribution.c (distribute_loop): Apply the cost
15886 model for -ftree-loop-distribute-patterns, too.
15888 2013-09-20 Richard Biener <rguenther@suse.de>
15890 PR middle-end/58473
15891 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
15892 make type comparison less strict.
15894 2013-09-20 Alan Modra <amodra@gmail.com>
15896 * configure: Regenerate.
15897 * aclocal.m4: Regenerate.
15899 2013-09-20 Marek Polacek <polacek@redhat.com>
15902 * doc/extend.texi: Document that attribute used is meant to be used
15903 on variables with static storage duration.
15905 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15907 PR tree-optimization/58472
15908 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
15909 simd_lane_access set inv_p = false.
15910 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
15911 the simduid magic VAR_DECL.
15913 2013-09-19 Jan Hubicka <jh@suse.cz>
15915 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
15917 2013-09-17 Jeff Law <law@redhat.com>
15919 * tree-ssa-dom.c (record_temporary_equivalences): New function
15920 split out of dom_opt_dom_walker::after_dom_children.
15921 (dom_opt_dom_walker::thread_across_edge): Move common code
15922 in here from dom_opt_dom_walker::after_dom_children.
15923 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
15925 2013-09-19 Jan Hubicka <jh@suse.cz>
15927 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
15928 (TARGET_GENERIC): Use PROCESOR_GENERIC
15929 (enum processor_type): Unify generic32 and 64.
15930 * i386.md (cpu): Likewise.
15931 * x86-tune.def (use_leave): Enable for generic32.
15932 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
15933 * athlon.md: Change generic64 to generic in all occurences.
15934 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
15935 (ix86_target_macros_internal): Likewise.
15936 * driver-i386.c (host_detect_local_cpu): Likewise.
15937 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
15939 (generic_memcpy, generic_memset, generic_cost): This one.
15940 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
15941 (m_GENERIC32, m_GENERIC64): Remove.
15942 (m_GENERIC): Turn into one flag.
15943 (processor_target): Unify generic tunnings.
15944 (ix86_option_override_internal): Replace generic32/64 by generic.
15945 (ix86_issue_rate): Likewise.
15946 (ix86_adjust_cost): Likewise.
15948 2013-09-19 Jan Hubicka <jh@suse.cz>
15950 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
15951 of speculative flag.
15953 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15955 * omp-low.c (expand_omp_sections): Always pass len - 1 to
15956 GOMP_sections_start, even if !exit_reachable.
15958 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
15960 * lra-constraints.c (need_for_all_save_p): Use macro
15961 HARD_REGNO_CALL_PART_CLOBBERED.
15962 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
15963 set up pseudo conflict hard regs.
15965 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
15968 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
15971 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
15973 PR rtl-optimization/58438
15974 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
15975 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
15976 from previous subpasses.
15978 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
15980 * arm.c (arm_get_frame_offsets): Validate architecture supports
15981 LDRD/STRD before accepting the tuning preference.
15982 (arm_expand_prologue): Likewise.
15983 (arm_expand_epilogue): Likewise.
15985 2013-09-18 Richard Biener <rguenther@suse.de>
15987 PR tree-optimization/58417
15988 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
15989 have chrecs with symbols defined in the loop as operands.
15990 (chrec_fold_multiply): Likewise.
15991 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
15992 parameters before folding binary operations.
15993 (struct instantiate_cache_entry_hasher): Remove.
15994 (struct instantiate_cache_type): Use a pointer-map.
15995 (instantiate_cache_type::instantiate_cache_type): New function.
15996 (instantiate_cache_type::get): Likewise.
15997 (instantiate_cache_type::set): Likewise.
15998 (instantiate_cache_type::~instantiate_cache_type): Adjust.
15999 (get_instantiated_value_entry): Likewise.
16000 (global_cache): New global.
16001 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
16002 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
16003 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
16004 (instantiate_scev_name): Adjust.
16005 (instantiate_scev): Construct global instead of local cache.
16006 (resolve_mixers): Likewise.
16008 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
16009 Paolo Carlini <paolo.carlini@oracle.com>
16012 * doc/implement-cxx.texi: Fix references to the C++ standards.
16014 2013-09-18 Jakub Jelinek <jakub@redhat.com>
16016 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
16017 * tree-vect-data-refs.c (vect_analyze_data_refs): For
16018 simd_lane_access drs, update also DR_ALIGNED_TO.
16020 2013-09-18 Marek Polacek <polacek@redhat.com>
16023 * doc/extend.texi: Document no_sanitize_undefined attribute.
16024 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
16025 no_sanitize_undefined attribute.
16027 2013-09-18 Nick Clifton <nickc@redhat.com>
16029 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
16030 (ASM_DECLARE_FUNCTION_NAME): Define.
16032 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
16034 * compare-elim.c (find_comparison_dom_walker): New class
16035 (find_comparisons_in_bb): Rename to
16036 find_comparison_dom_walker::before_dom_children
16037 (find_comparisons): Adjust
16038 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
16040 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
16041 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
16042 (init_walk_dominator_tree): Remove declaration.
16043 (fini_walk_dominator_tree): Remove declaration.
16044 * fwprop.c (single_def_use_dom_walker): New class
16045 (single_def_use_enter_block): Convert to
16046 single_def_use_dom_walker::before_dom_children.
16047 (single_def_use_leave_block): Convert to
16048 single_def_use_dom_walker::after_dom_children.
16049 (build_single_def_use_links): Adjust.
16050 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
16052 (find_candidates_in_block): Convert to
16053 find_candidates_dom_walker::before_dom_children.
16054 (execute_strength_reduction): Adjust.
16055 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
16056 (sese_dom_walker): New class.
16057 (sese_dom_walker::sese_dom_walker): New constructor.
16058 (sese_dom_walker::~sese_dom_walker): New destructor.
16059 (build_sese_conditions_before): Convert to
16060 sese_dom_walker::before_dom_children.
16061 (build_sese_conditions_after): Convert to
16062 sese_dom_walker::after_dom_children.
16063 (build_poly_scop): Adjust
16064 * tree-into-ssa.c (rewrite_dom_walker): New class
16065 (rewrite_enter_block): Convert to
16066 rewrite_dom_walker::before_dom_children.
16067 (rewrite_leave_block): Convert to
16068 rewrite_dom_walker::after_dom_children.
16069 (rewrite_update_dom_walker): New class.
16070 (rewrite_update_enter_block): Convert to
16071 rewrite_update_dom_walker::before_dom_children.
16072 (rewrite_update_leave_block): Convert to
16073 rewrite_update_dom_walker::after_dom_children.
16074 (rewrite_blocks, rewrite_into_ssa): Adjust.
16075 (mark_def_dom_walker): New class.
16076 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
16077 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
16078 (mark_def_sites_blocks): Convert to
16079 mark_def_dom_walker::before_dom_children.
16080 (mark_def_site_blocks): Remove.
16081 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
16082 (tree_ssa_dominator_optimize): Adjust.
16083 (dom_thread_across_edge): Convert to method
16084 dom_opt_dom_walker::thread_across_edge.
16085 (dom_opt_enter_block): Convert to member function
16086 dom_opt_dom_walker::before_dom_children.
16087 (dom_opt_leave_block): Convert to member function
16088 dom_opt_dom_walker::after_dom_children.
16089 * tree-ssa-dse.c (dse_dom_walker): New class.
16090 (dse_enter_block): Convert to member function
16091 dse_dom_walker::before_dom_children.
16092 (tree_ssa_dse): Adjust.
16093 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
16094 (determine_invariantness_stmt): Convert to method
16095 invariantness_dom_walker::before_dom_children.
16096 (determine_invariantness): Remove
16097 (move_computations_dom_walker): New class.
16098 (move_computations_stmt): Convert to method
16099 move_computations_dom_walker::before_dom_children.
16100 (move_computations, tree_ssa_lim): Adjust.
16101 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
16102 (nt_init_block): Convert to method
16103 notrappping_dom_walker::before_dom_children.
16104 (nt_fini_block): Convert to method
16105 method nontrapping_dom_walker::after_dom_children.
16106 (get_non_trapping): Adjust.
16107 * tree-ssa-pre.c (eliminate_dom_walker): New class.
16108 (eliminate_bb): Convert to method
16109 eliminate_dom_walker::before_dom_children.
16110 (eliminate_leave_block): Convert to method
16111 eliminate_dom_walker::after_dom_children.
16112 (eliminate): Adjust.
16113 * tree-ssa-strlen.c (strlen_dom_walker): New class.
16114 (strlen_enter_block): Convert to method
16115 strlen_dom_walker::before_dom_children.
16116 (strlen_leave_block): Convert to method
16117 method strlen_dom_walker::after_dom_children.
16118 (tree_ssa_strlen): Adjust.
16119 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
16120 (tree_ssa_uncprop): Adjust.
16121 (uncprop_leave_block): Convert to method
16122 uncprop_dom_walker::after_dom_children.
16123 (uncprop_leave_block): Convert to method
16124 uncprop_dom_walker::before_dom_children.
16126 2013-09-18 Bin Cheng <bin.cheng@arm.com>
16128 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
16129 branch in same basic block. Check both src and dest of the move insn.
16131 2013-09-17 Nick Clifton <nickc@redhat.com>
16133 * config/rl78/rl78-real.md (bf): New pattern.
16135 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
16136 (rl78_print_operand): Do not put a # before a %B.
16137 * config/rl78/rl78.opt: Tweak doc strings.
16139 2013-09-17 DJ Delorie <dj@redhat.com>
16141 * config/rl78/constraints.md (Wcv): Allow up to $r31.
16142 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
16143 (rl78_option_override): Likewise, if -mallregs.
16144 (is_virtual_register): Likewise.
16145 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
16146 (REGNO_OK_FOR_BASE_P): Likewise.
16147 * config/rl78/rl78.opt (-mallregs): New.
16149 2013-09-17 Nick Clifton <nickc@redhat.com>
16151 * config/rl78/rl78.c (need_to_save): Change return type to bool.
16152 For interrupt functions: save all call clobbered registers if the
16153 interrupt handler is not a leaf function.
16154 (rl78_expand_prologue): Always recompute the frame information.
16155 For interrupt functions: only select bank 0 if one of the bank 0
16156 registers is going to be psuhed.
16158 2013-09-17 DJ Delorie <dj@redhat.com>
16160 * config/rl78/constraints.md: For each W* constraint, rename to C*
16161 and create a W* constraint that checks for an optional ES: prefix
16163 * config/rl78/rl78.md (UNS_ES_ADDR): New.
16164 (es_addr): New. Used to wrap far addresses.
16165 * config/rl78/rl78-protos.h (rl78_es_addr): New.
16166 (rl78_es_base): New.
16167 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
16168 wrapped far addresses.
16169 (rl78_print_operand_1): Unwrap far addresses before processing.
16170 (rl78_lo16): Wrap far addresses in unspecs.
16171 (rl78_es_addr): New.
16172 (rl78_es_base): New.
16173 (insn_ok_now): Check for not-yet-wrapped far addresses.
16174 (transcode_memory_rtx): Properly re-wrap far addresses.
16176 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
16178 * config/sparc/t-rtems: Add leon3 multilibs.
16180 2013-09-17 Cong Hou <congh@google.com>
16182 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
16183 when checking the dot production pattern. The type of rhs operand
16184 of multiply is now checked correctly.
16186 2013-09-17 Jeff Law <law@redhat.com>
16188 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16189 edge implied equivalences into successor phis.
16190 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
16191 here from tree-ssa-threadedge.c.
16192 (mark_threaded_blocks): When threading through a joiner, if both
16193 successors of the joiner's clone reach the same block, verify the
16194 PHI arguments are equal. If not, cancel the jump threading request.
16195 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
16196 tree-ssa-threadupdate.c
16197 (thread_across_edge): Don't check PHI argument equality when
16198 threading through joiner block here.
16200 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
16202 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
16203 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
16204 (warn_uninit, warn_uninitialized_vars,
16205 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16206 Move to tree-ssa-uninit.c.
16207 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
16208 (has_undefined_value_p): New. Pass dependant parts of
16209 ssa_undefined_value_p.
16210 (uninit_undefined_value_p): Use has_undefined_value_p.
16211 (warn_uninit, warn_uninitialized_vars,
16212 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
16213 Move from tree-ssa.c.
16214 * tree-ssa.h: Adjust prototypes.
16216 2013-09-17 Jan Hubicka <jh@suse.cz>
16218 PR middle-end/58332
16219 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
16220 * ipa-inline.c (can_inline_edge_p): Do not downgrade
16221 FUNCTION_NOT_OPTIMIZED.
16222 * ipa-inline-analysis.c (compute_inline_parameters): Function
16223 not optimized is not inlinable unless it is alwaysinline.
16224 (inline_analyze_function): Force calls in not optimized
16225 function not inlinable.
16227 2013-09-17 Jan Hubicka <jh@suse.cz>
16229 PR middle-end/58329
16230 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
16232 * ipa.c (function_and_variable_visibility): Likewise.
16233 * ipa-profile.c (ipa_profile): Likewise.
16235 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
16238 * cgraph.c (cgraph_function_body_availability): Check for ifunc
16239 attribute, and don't inline the resolver in this case.
16241 2013-09-17 Teresa Johnson <tejohnson@google.com>
16243 * coverage.c (get_coverage_counts): Add missing newline.
16245 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16247 PR tree-optimization/58088
16248 * fold-const.c (mask_with_trailing_zeros): New function.
16249 (fold_binary_loc): Make sure we don't recurse infinitely
16250 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
16251 Use mask_with_trailing_zeros where appropriate.
16253 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16255 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
16256 of 'prev' var to get better distance estimation.
16258 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
16260 * tree-inline.h (struct copy_body_data): Add transform_parameter.
16261 * tree-inline.c (is_parameter_of): New predicate.
16262 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
16263 a parameter has been remapped.
16264 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
16265 (optimize_inline_calls): Initialize transform_parameter.
16266 (copy_gimple_seq_and_replace_locals): Likewise.
16267 (tree_function_versioning): Likewise.
16268 (maybe_inline_call_in_expr): Likewise.
16270 2013-09-17 Nick Clifton <nickc@redhat.com>
16272 * config/msp430/msp430-protos.h: Add prototypes for new functions.
16273 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
16274 interrupt handlers.
16275 (is_attr_func): New function.
16276 (msp430_is_interrupt_func): New function.
16277 (is_naked_func): New function.
16278 (is_reentrant_func): New function.
16279 (is_critical_func): New function.
16280 (msp430_start_function): Add annotations for function attributes.
16281 (msp430_attr): New function.
16282 (msp430_attribute_table): New.
16283 (msp430_function_section): New function.
16284 (TARGET_ASM_FUNCTION_SECTION): Define.
16285 (msp430_builtin): New enum.
16286 (msp430_init_builtins): New function.
16287 (msp430_builtin_devl): New function.
16288 (msp430_expand_builtin): New function.
16289 (TARGET_INIT_BUILTINS): Define.
16290 (TARGET_EXPAND_BUILTINS): Define.
16291 (TARGET_BUILTIN_DECL): Define.
16292 (msp430_expand_prologue): Add support for naked, interrupt,
16293 critical and reentrant functions.
16294 (msp430_expand_epilogue): Likewise.
16295 (msp430_print_operand): Handle 'O' character.
16296 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
16298 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
16299 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
16300 (pushm): Use a 'n' rather than an 'i' constraint.
16301 (msp_return): Add generation of the interrupt return instruction.
16302 (disable_interrupts): New pattern.
16303 (enable_interrupts): New pattern.
16304 (push_intr_state): New pattern.
16305 (pop_intr_state): New pattern.
16306 (bic_SR): New pattern.
16307 (bis_SR): New pattern.
16308 * doc/extend.texi: Document MSP430 function attributes and builtin
16311 2013-09-17 Richard Biener <rguenther@suse.de>
16313 PR tree-optimization/58432
16314 * tree-loop-distribution.c (tree_loop_distribution): Also
16315 scan PHIs for outside loop uses and seed a partition from them.
16317 2013-09-17 Bin Cheng <bin.cheng@arm.com>
16319 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
16320 (restructure_reference): Call backtrace_base_for_ref.
16322 2013-09-17 Alan Modra <amodra@gmail.com>
16325 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
16328 2013-09-16 DJ Delorie <dj@redhat.com>
16330 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
16331 vregs location for RL78/G10.
16332 (rl78_expand_prologue): Avoid SEL on G10.
16333 (rl78_expand_epilogue): Likewise.
16334 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
16335 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16336 __RL78_G10__ when appropriate.
16337 (ASM_SPEC): Pass -mg10 along to the assembler.
16338 * config/rl78/rl78.md (sel_rb): Disable for G10.
16339 * config/rl78/rl78.opt: Add -mg10 option.
16340 * config/rl78/t-rl78: Add -mg10 multilib.
16342 2013-09-16 Xinliang David Li <davidxl@google.com>
16344 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
16345 * omp-low.c (omp_max_vf): Ditto.
16346 (expand_omp_simd): Ditto.
16347 * tree-vectorizer.c (vectorize_loops): Ditto.
16348 (gate_vect_slp): Ditto.
16349 (gate_increase_alignment): Ditto.
16350 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
16351 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
16352 (gate_tree_vectorize): Name change.
16353 (tree_vectorize): Ditto.
16354 (pass_vectorize::gate): Call new function.
16355 (pass_vectorize::execute): Ditto.
16356 * opts.c: O3 default setting change.
16357 (finish_options): Check new flag.
16358 * doc/invoke.texi: Document new flags.
16359 * common.opt: New flags.
16361 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
16363 * doc/tm.texi.in (Cond Exec Macros): Remove node.
16364 (Condition Code): Don't reference it.
16365 * doc/tm.texi: Regenerate.
16367 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
16369 PR middle-end/58418
16370 * lra-constraints.c (undo_optional_reloads): Consider all optional
16371 reload even if it did not get a hard reg.
16373 2013-09-16 Teresa Johnson <tejohnson@google.com>
16375 * dumpfile.c (dump_loc): Remove newline emission.
16376 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
16377 emission to dump_printf_loc calls where missing.
16378 (vect_mark_for_runtime_alias_test): Ditto.
16379 (vect_analyze_data_ref_dependence): Ditto.
16380 (vect_analyze_data_ref_dependences): Ditto.
16381 (vect_slp_analyze_data_ref_dependence): Ditto.
16382 (vect_slp_analyze_data_ref_dependences): Ditto.
16383 (vect_compute_data_ref_alignment): Ditto.
16384 (vect_update_misalignment_for_peel): Ditto.
16385 (vect_verify_datarefs_alignment): Ditto.
16386 (vector_alignment_reachable_p): Ditto.
16387 (vect_get_data_access_cost): Ditto.
16388 (vect_enhance_data_refs_alignment): Ditto.
16389 (vect_find_same_alignment_drs): Ditto.
16390 (vect_analyze_data_refs_alignment): Ditto.
16391 (vect_analyze_group_access): Ditto.
16392 (vect_analyze_data_ref_access): Ditto.
16393 (vect_analyze_data_ref_accesses): Ditto.
16394 (vect_prune_runtime_alias_test_list): Ditto.
16395 (vect_analyze_data_refs): Ditto.
16396 (vect_create_addr_base_for_vector_ref): Ditto.
16397 (vect_create_data_ref_ptr): Ditto.
16398 (vect_grouped_store_supported): Ditto.
16399 (vect_grouped_load_supported): Ditto.
16400 * value-prof.c (check_counter): Ditto.
16401 (check_ic_target): Ditto.
16402 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
16403 (vect_recog_widen_mult_pattern): Ditto.
16404 (vect_recog_widen_sum_pattern): Ditto.
16405 (vect_recog_over_widening_pattern): Ditto.
16406 (vect_recog_widen_shift_pattern): Ditto.
16407 (vect_recog_rotate_pattern): Ditto.
16408 (vect_recog_vector_vector_shift_pattern): Ditto.
16409 (vect_recog_divmod_pattern): Ditto.
16410 (vect_recog_mixed_size_cond_pattern): Ditto.
16411 (vect_recog_bool_pattern): Ditto.
16412 (vect_pattern_recog_1): Ditto.
16413 (vect_pattern_recog): Ditto.
16414 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
16415 (vect_is_simple_iv_evolution): Ditto.
16416 (vect_analyze_scalar_cycles_1): Ditto.
16417 (vect_get_loop_niters): Ditto.
16418 (vect_analyze_loop_1): Ditto.
16419 (vect_analyze_loop_form): Ditto.
16420 (vect_analyze_loop_operations): Ditto.
16421 (vect_analyze_loop_2): Ditto.
16422 (vect_analyze_loop): Ditto.
16423 (report_vect_op): Ditto.
16424 (vect_is_slp_reduction): Ditto.
16425 (vect_is_simple_reduction_1): Ditto.
16426 (vect_get_known_peeling_cost): Ditto.
16427 (vect_estimate_min_profitable_iters): Ditto.
16428 (vect_model_reduction_cost): Ditto.
16429 (vect_model_induction_cost): Ditto.
16430 (get_initial_def_for_induction): Ditto.
16431 (vect_create_epilog_for_reduction): Ditto.
16432 (vectorizable_reduction): Ditto.
16433 (vectorizable_induction): Ditto.
16434 (vectorizable_live_operation): Ditto.
16435 (vect_loop_kill_debug_uses): Ditto.
16436 (vect_transform_loop): Ditto.
16437 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
16438 (vect_stmt_relevant_p): Ditto.
16439 (process_use): Ditto.
16440 (vect_mark_stmts_to_be_vectorized): Ditto.
16441 (vect_model_simple_cost): Ditto.
16442 (vect_model_promotion_demotion_cost): Ditto.
16443 (vect_model_store_cost): Ditto.
16444 (vect_get_store_cost): Ditto.
16445 (vect_model_load_cost): Ditto.
16446 (vect_get_load_cost): Ditto.
16447 (vect_init_vector_1): Ditto.
16448 (vect_get_vec_def_for_operand): Ditto.
16449 (vect_finish_stmt_generation): Ditto.
16450 (vectorizable_call): Ditto.
16451 (vectorizable_conversion): Ditto.
16452 (vectorizable_assignment): Ditto.
16453 (vectorizable_shift): Ditto.
16454 (vectorizable_operation): Ditto.
16455 (vectorizable_store): Ditto.
16456 (vectorizable_load): Ditto.
16457 (vectorizable_condition): Ditto.
16458 (vect_analyze_stmt): Ditto.
16459 (vect_transform_stmt): Ditto.
16460 (vect_is_simple_use): Ditto.
16461 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
16462 (vect_can_advance_ivs_p): Ditto.
16463 (vect_update_ivs_after_vectorizer): Ditto.
16464 (vect_do_peeling_for_loop_bound): Ditto.
16465 (vect_gen_niters_for_prolog_loop): Ditto.
16466 (vect_update_inits_of_drs): Ditto.
16467 (vect_create_cond_for_alias_checks): Ditto.
16468 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
16469 (vect_build_slp_tree_1): Ditto.
16470 (vect_supported_load_permutation_p): Ditto.
16471 (vect_analyze_slp_instance): Ditto.
16472 (vect_analyze_slp): Ditto.
16473 (vect_make_slp_decision): Ditto.
16474 (vect_detect_hybrid_slp): Ditto.
16475 (vect_bb_vectorization_profitable_p): Ditto.
16476 (vect_slp_analyze_bb_1): Ditto.
16477 (vect_update_slp_costs_according_to_vf): Ditto.
16478 (vect_get_mask_element): Ditto.
16479 (vect_transform_slp_perm_load): Ditto.
16480 (vect_schedule_slp_instance): Ditto.
16481 (vect_schedule_slp): Ditto.
16482 (vect_slp_transform_bb): Ditto.
16483 * profile.c (read_profile_edge_counts): Ditto.
16484 (compute_branch_probabilities): Ditto.
16485 * coverage.c (get_coverage_counts): Ditto.
16487 2013-09-16 Diego Novillo <dnovillo@google.com>
16489 * tree-core.h: Add missing comment lines from refactoring of tree.h.
16491 2013-09-16 Jan Hubicka <jh@suse.cz>
16493 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
16494 abstract functions; for static functions check the presence of body.
16496 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16498 * config/aarch64/aarch64-simd-builtins.def (fma): New.
16499 * config/aarch64/aarch64-simd.md
16500 (aarch64_mla_elt<mode>): New.
16501 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
16502 (aarch64_mls_elt<mode>): Likewise.
16503 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
16504 (aarch64_fma4_elt<mode>): Likewise.
16505 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
16506 (aarch64_fma4_elt_to_128v2df): Likewise.
16507 (aarch64_fma4_elt_to_64df): Likewise.
16508 (fnma<mode>4): Likewise.
16509 (aarch64_fnma4_elt<mode>): Likewise.
16510 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
16511 (aarch64_fnma4_elt_to_128v2df): Likewise.
16512 (aarch64_fnma4_elt_to_64df): Likewise.
16513 * config/aarch64/iterators.md (VDQSF): New.
16514 * config/aarch64/arm_neon.h
16515 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
16516 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
16518 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16520 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
16521 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
16522 (aarch64_mul3_elt_to_128df): Likewise.
16523 (aarch64_mul3_elt_to_64v2df): Likewise.
16524 * config/aarch64/iterators.md (VEL): Also handle DFmode.
16526 (VMUL_CHANGE_NLANES) Likewise.
16529 * config/aarch64/arm_neon.h
16530 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
16532 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
16534 * config/aarch64/arm_neon.h
16535 (vcvtx_high_f32_f64): Fix parameters.
16537 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16538 Uros Bizjak <ubizjak@gmail.com>
16540 * config/alpha.c: Include tree-ssanames.h.
16542 2013-09-16 Richard Biener <rguenther@suse.de>
16544 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
16545 (dot_rdg_1): Handle control_dd.
16546 (create_edge_for_control_dependence): New function.
16547 (create_rdg_edges): Add control dependences if asked for.
16548 (build_rdg): Likewise.
16549 (generate_loops_for_partition): If there are not necessary
16550 control stmts remove all their dependencies.
16551 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
16552 (distribute_loop): Pass on control dependences.
16553 (tree_loop_distribution): Compute control dependences and remove
16554 restriction on number of loop nodes.
16556 2013-09-16 Jakub Jelinek <jakub@redhat.com>
16558 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
16559 for internal calls.
16561 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
16563 * cse.c (try_const_anchors): Punt on CC modes.
16565 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16567 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
16569 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
16572 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
16573 calls to word_mode.
16575 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16578 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
16580 (darwin_objc1_section): Likewise.
16581 (darwin_file_end): Emit Image Info section when required.
16583 2013-09-14 Jan Hubicka <jh@suse.cz>
16585 * tree-into-ssa.c (gate_into_ssa): New.
16586 (pass_data_build_ssa): Use it.
16587 * cgraph.h (expand_thunk): Update prototype.
16588 * cgraphunit.c (analyze_function): Expand thunks early.
16589 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
16590 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
16591 set lowered flag; do not add new function.
16592 (assemble_thunks_and_aliases): Update.
16593 * tree-ssa.c (gate_init_datastructures): New gate.
16594 (pass_data_init_datastructures): Use it.
16596 2013-09-14 Iain Sandoe <iain@codesourcery.com>
16599 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
16600 xmm register set described in the psABI.
16602 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
16604 * dwarf2out.c (should_emit_struct_debug): Add check
16605 for type_decl variable is not NULL.
16607 2013-09-13 Jacek Caban <jacek@codeweavers.com>
16609 * config.gcc: Use new winnt-c.c target hooks
16610 * config/t-winnt: New file
16611 * config/winnt-c.c: New file
16612 * doc/tm.texi.in: Document new hook
16613 * doc/tm.texi: Regenerated
16615 2013-09-13 Jan Hubicka <jh@suse.cz>
16617 PR middle-end/58094
16618 * ipa-inline.c (check_callers): New function.
16619 (check_caller_edge): Remove.
16620 (want_inline_function_to_all_callers_p): Also permit alises that are
16622 (inline_to_all_callers): Terminate the walk when devirtualization
16623 introduce new calls.
16625 2013-09-13 Jan Hubicka <jh@suse.cz>
16627 * ipa-inline-analysis.c (struct growth_data): Add node.
16628 (do_estimate_growth_1): Fix detection of recursion.
16630 2013-09-13 Jakub Jelinek <jakub@redhat.com>
16632 PR tree-optimization/58392
16633 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
16634 to avoid shadowing of outer loop variable. If
16635 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
16636 replace_by_duplicate_decl simduid of loops that have it set and
16637 set dest_cfun->has_simduid_loops and/or
16638 dest_cfun->has_force_vect_loops.
16639 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
16640 instead of maybe_lookup_decl.
16641 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
16642 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
16643 call. Copy over force_vect and copy and remap simduid. Set
16644 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
16645 (copy_cfg_body): Remove blocks_to_copy argument. Use
16646 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
16647 caller. Don't set cfun->has_simduid_loops and/or
16648 cfun->has_force_vect_loops here.
16649 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
16651 (expand_call_inline, tree_function_versioning): Adjust copy_body
16654 2013-09-13 Martin Jambor <mjambor@suse.cz>
16657 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
16658 the assert if the edge was a speculative one.
16660 2013-09-13 Richard Biener <rguenther@suse.de>
16662 * tree-data-ref.h (known_dependences_p): Move here ...
16663 * tree-loop-distribution.c (known_dependences_p): ... from here.
16664 (dump_rdg_component, debug_rdg_component): Remove.
16665 (dump_rdg): Adjust.
16666 (generate_loops_for_partition): Use gimple_uid instead of
16667 relying on matching stmt visit order.
16668 (rdg_build_partitions): Take starting stmt vector.
16669 (ldist_gen): Merge into ...
16670 (distribute_loop): ... this function. Do not compute starting
16672 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
16674 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16676 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
16677 Set type attribute correctly. Set predicable_short_it attribute.
16678 (cmpsi_shiftsi): Remove %? from output template.
16680 2013-09-13 Richard Biener <rguenther@suse.de>
16682 * tree-loop-distribution.c (struct rdg_component,
16683 rdg_defs_used_in_other_loops_p, free_rdg_components,
16684 rdg_build_components): Remove.
16685 (stmts_from_loop): Do not record virtual PHIs.
16686 (generate_loops_for_partition): Skip virtual PHIs.
16687 (build_rdg_partition_for_component): Rename to ...
16688 (build_rdg_partition_for_vertex): ... this and adjust.
16689 (rdg_build_partitions): Take a vector of starting vertices
16690 instead of components. Remove unnecessary leftover handling.
16691 (ldist_gen): Do not build components or record other stores.
16692 (distribute_loop): Do not distribute loops containing stmts
16695 2013-09-13 Christian Bruel <christian.bruel@st.com>
16698 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
16700 2013-09-13 Kai Tietz <ktietz@redhat.com>
16702 * config.gcc: Separate cases for mingw and cygwin targets,
16703 and add 64-bit cygwin target case.
16705 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
16706 dll-export inline-functions.
16707 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
16709 2013-09-13 Jeff Law <law@redhat.com>
16711 PR middle-end/58387
16713 2013-09-06 Jeff Law <law@redhat.com>
16715 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16716 edge implied equivalences into successor phis.
16718 2013-09-12 DJ Delorie <dj@redhat.com>
16720 * config/rl78/rl78-virt.md: Change from | to \; for asm line
16723 2013-09-12 Brooks Moses <bmoses@google.com>
16726 * Makefile.in: Do not install driver binaries in $(target)/bin.
16728 2013-09-12 DJ Delorie <dj@redhat.com>
16730 * config/rl78/rl78.opt (mrelax): New.
16731 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
16732 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
16734 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
16736 (rl78_expand_epilogue): Likewise.
16738 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
16740 PR middle-end/58335
16741 * lra-eliminations.c (remove_reg_equal_offset_note): New.
16742 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
16743 pointer elimination with using remove_reg_equal_offset_note.
16745 2013-09-12 DJ Delorie <dj@redhat.com>
16747 * config/msp430/: New port.
16748 * config.gcc (msp430): Added.
16749 * doc/invoke.texi: Document MSP430 options.
16750 * doc/install.texi: Document msp430-elf
16751 * doc/md.texi: Document msp430-elf
16752 * doc/contrib.texi: Document msp430-elf
16754 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
16757 2013-09-12 Martin Jambor <mjambor@suse.cz>
16760 * ipa-prop.c (remove_described_reference): Give up if the edge in the
16761 reference descriptor is NULL.
16762 (ipa_edge_removal_hook): If owning a reference descriptor, set its
16765 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
16767 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
16768 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
16769 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
16770 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
16771 make_temp_ssa_name): move to tree-ssanames.h
16772 * tree-ssa-alias.h: Move prototype.
16773 * tree-ssa.h: Include tree-ssanames.h.
16774 * tree-ssanames.c (FREE_SSANAMES): Move to here.
16775 * tree-ssanames.h: New. Move items from tree-flow*.h
16776 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
16778 2013-09-12 Richard Biener <rguenther@suse.de>
16780 PR tree-optimization/58404
16781 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
16782 propagate non-invariant addresses into dereferences wrapped
16783 in component references.
16785 2013-09-12 Richard Biener <rguenther@suse.de>
16787 PR tree-optimization/58402
16788 * passes.def: Move pass_late_warn_uninitialized later.
16790 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
16792 * tree-ssa.h: New. Move content from tree-flow.h and
16793 tree-flow-inline.h.
16794 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
16795 Move prototypes belonging to tree-ssa.c.
16796 * tree-flow-inline.h (redirect_edge_var_map_def,
16797 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
16799 * gimple.h: Adjust prototypes.
16800 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
16802 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
16803 * tree.h: Move prototype to tree-ssa.h.
16804 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
16805 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
16806 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
16807 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
16808 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
16809 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
16810 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
16811 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
16812 graphite-blocking.c, graphite-clast-to-gimple.c,
16813 graphite-dependences.c, graphite-interchange.c,
16814 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
16815 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
16816 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
16817 ipa-reference.c, ipa-split.c, ipa-utils.c,
16818 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
16819 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
16820 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
16821 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
16822 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
16823 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
16824 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
16825 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
16826 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
16827 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
16828 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
16829 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
16830 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
16831 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
16832 value-prof.c, var-tracking.c,
16833 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
16835 2013-09-12 Richard Biener <rguenther@suse.de>
16837 PR tree-optimization/58396
16838 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
16839 (build_rdg): Take a loop-nest parameter, fix memleaks.
16840 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
16842 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
16844 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
16847 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
16849 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
16850 The FMA instruction names should have a 'v' prefix.
16852 2013-09-12 Richard Biener <rguenther@suse.de>
16854 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
16855 (dot_rdg): Use popen instead of system in optional code.
16856 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
16857 (already_processed_vertex_p): Adjust.
16858 (has_anti_or_output_dependence, predecessor_has_mem_write,
16859 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
16860 rdg_flag_uses): Remove.
16861 (rdg_flag_vertex): Simplify.
16862 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
16864 (build_rdg_partition_for_component): Process the first vertex
16865 of a component only.
16866 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
16868 2013-09-12 Alan Modra <amodra@gmail.com>
16870 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
16872 2013-09-11 DJ Delorie <dj@redhat.com>
16873 Nick Clifton <nickc@redhat.com>
16875 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
16876 (rl78_stack_based_mem): New.
16877 * config/rl78/constraints.md (Iv08): New.
16886 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
16888 (movsi): Change from expand to insn-and-split.
16889 (ashrsi3): Clobber AX.
16893 * config/rl78/rl78.md (CC_REG): Fix.
16894 (addsi3): Allow memory and immediate operands.
16895 (addsi3_internal): Split into...
16896 (addsi3_internal_virt): ...new, and ...
16897 (addsi3_internal_real): ...new.
16899 (subsi3_internal_virt): New.
16900 (subsi3_internal_real): New.
16901 (mulsi3): Add memory operand.
16902 (mulsi3_rl78): Likewise.
16903 (mulsi3_g13): Likewise.
16904 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
16905 (cbranchqi4_real): Add more constraint options.
16906 (cbranchhi4_real): Expand pattern.
16907 (cbranchhi4_real_signed): New.
16908 (cbranchhi4_real_inverted): New.
16909 (cbranchsi4_real_lt): New.
16910 (cbranchsi4_real_ge): New.
16911 (cbranchsi4_real_signed): New.
16912 (cbranchsi4_real): New.
16914 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
16916 (lshrsi3_virt): Likewise.
16917 (ashlsi3_virt): Likewise.
16918 (cbranchqi4_virt_signed): New.
16919 (cbranchhi4_virt_signed): New.
16920 (cbranchsi4_virt): New.
16921 * config/rl78/rl78.c: Whitespace fixes throughout.
16922 (move_elim_pass): New.
16923 (pass_data_rl78_move_elim): New.
16924 (pass_rl78_move_elim): New.
16925 (make_pass_rl78_move_elim): New.
16926 (rl78_devirt_info): Run devirt earlier.
16927 (rl78_move_elim_info): New.
16928 (rl78_asm_file_start): Register it.
16929 (rl78_split_movsi): New.
16930 (rl78_as_legitimate_address): Allow virtual base registers when
16932 (rl78_addr_space_convert): Remove spurious debug stuff.
16933 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
16934 (rl78_print_operand): More cases for not printing '#'.
16935 (rl78_expand_compare): Remove most of the logic.
16936 (content_memory): New.
16937 (clear_content_memory): New.
16938 (get_content_index): New.
16939 (get_content_name): New.
16940 (display_content_memory): New.
16941 (update_content): New.
16942 (record_content): New.
16943 (already_contains): New.
16944 (insn_ok_now): Re-recog insns with virtual registers.
16945 (add_postponed_content_update): New.
16946 (process_postponed_content_update): New.
16947 (gen_and_emit_move): New.
16948 (transcode_memory_rtx): Record new location content.
16949 Use gen_and_emit_move.
16950 (force_into_acc): New.
16951 (move_to_acc): Use gen_and_emit_move.
16952 (move_from_acc): Likewise.
16953 (move_acc_to_reg): Likewise.
16954 (move_to_x): Likewise.
16955 (move_to_hl): Likewise.
16956 (move_to_de): Likewise.
16957 (rl78_alloc_physical_registers_op1): Record location content.
16958 (has_constraint): New.
16959 (rl78_alloc_physical_registers_op2): Record location content.
16960 Optimize use of HL.
16961 (rl78_alloc_physical_registers_ro1): Likewise.
16962 (rl78_alloc_physical_registers_cmp): Likewise.
16963 (rl78_alloc_physical_registers_umul): Likewise.
16964 (rl78_alloc_address_registers_macax): New.
16965 (rl78_alloc_physical_registers): Initialize and set location
16966 content memory as needed.
16967 (rl78_reorg): Make sure split2 is called.
16968 (rl78_rtx_costs): New.
16970 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
16972 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
16973 for (not (neg ...)) and (neg (not ...)) cases.
16975 2013-09-11 Richard Biener <rguenther@suse.de>
16977 PR middle-end/58377
16978 * passes.def: Split critical edges before late uninit warning passes.
16979 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
16981 2013-09-11 Jakub Jelinek <jakub@redhat.com>
16983 PR tree-optimization/58385
16984 * fold-const.c (build_range_check): If both low and high are NULL,
16985 use omit_one_operand_loc to preserve exp side-effects.
16987 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16989 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
16991 2013-09-11 Richard Biener <rguenther@suse.de>
16993 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
16994 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
16995 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
16996 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
16997 stmts_from_loop, known_dependences_p, build_empty_rdg,
16998 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
16999 * tree-loop-distribution.c: ... here.
17000 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
17001 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
17002 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
17003 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
17004 * tree-loop-distribution.c: ... here.
17005 * tree-loop-distribution.c: Include gimple-pretty-print.h.
17006 (struct partition_s): Add loops member.
17007 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
17008 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
17009 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
17011 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17012 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17013 Sergey Lega <sergey.s.lega@intel.com>
17014 Anna Tikhonova <anna.tikhonova@intel.com>
17015 Ilya Tocar <ilya.tocar@intel.com>
17016 Andrey Turetskiy <andrey.turetskiy@intel.com>
17017 Ilya Verbin <ilya.verbin@intel.com>
17018 Kirill Yukhin <kirill.yukhin@intel.com>
17019 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17021 * config/i386/constraints.md (k): New.
17023 * config/i386/i386.c (const regclass_map): Add new mask registers.
17024 (dbx_register_map): Ditto.
17025 (dbx64_register_map): Ditto.
17026 (svr4_dbx_register_map): Ditto.
17027 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
17029 (ix86_preferred_reload_class): Disable constants for mask registers.
17030 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
17031 (ix86_hard_regno_mode_ok): Support new mask registers.
17032 (x86_order_regs_for_local_alloc): Ditto.
17033 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
17034 (FIXED_REGISTERS): Add new mask registers.
17035 (CALL_USED_REGISTERS): Ditto.
17036 (REG_ALLOC_ORDER): Ditto.
17037 (VALID_MASK_REG_MODE): New.
17038 (FIRST_MASK_REG): Ditto.
17039 (LAST_MASK_REG): Ditto.
17040 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
17041 (MAYBE_MASK_CLASS_P): New.
17042 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
17043 (REG_CLASS_CONTENTS): Ditto.
17044 (MASK_REGNO_P): New.
17045 (ANY_MASK_REG_P): Ditto.
17046 (HI_REGISTER_NAMES): Add new mask registers.
17047 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
17048 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
17050 (attribute "type"): Add mskmov, msklog.
17051 (attribute "length_immediate"): Support them.
17052 (attribute "memory"): Ditto.
17053 (attribute "prefix_0f"): Ditto.
17054 (*movhi_internal): Support new mask registers.
17055 (*movqi_internal): Ditto.
17056 (define_split): Split out clobber pattern is a logic
17057 insn on mask registers.
17058 (*k<logic><mode>): New.
17059 (*andhi_1): Extend to support mask regs.
17060 (*andqi_1): Extend to support mask regs.
17061 (kandn<mode>): New.
17062 (define_split): Split and-not to and and not if operands
17064 (*<code><mode>_1): Separate HI mode to new pattern...
17065 (*<code>hi_1): This.
17066 (*<code>qi_1): Extend to support mask regs.
17067 (kxnor<mode>): New.
17068 (kortestzhi): Ditto.
17069 (kortestchi): Ditto.
17071 (*one_cmpl<mode>2_1): Remove HImode and handle it...
17072 (*one_cmplhi2_1): ...Here, now with mask registers support.
17073 (*one_cmplqi2_1): Support new mask registers.
17074 (HI/QImode arithmetics splitter): Don't split if mask registers
17076 (HI/QImode not splitter): Ditto.
17077 * config/i386/predicated.md (mask_reg_operand): New.
17078 (general_reg_operand): Ditto.
17080 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
17082 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
17083 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
17085 2013-09-10 Jeff Law <law@redhat.com>
17087 PR tree-optimization/58380
17088 * tree-ssa-threadupdate.c (thread_block): Recognize another case
17089 of threading through a buried loop header.
17091 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
17092 return value for single successor case.
17094 2013-09-10 Jan Hubicka <jh@suse.cz>
17096 * ipa-devirt.c (ipa_devirt): Enable with LTO.
17098 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
17101 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
17102 support conditional execution.
17103 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
17105 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
17107 * lra.c (lra): Clear lra_optional_reload_pseudos before every
17109 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
17110 Check destination too to check move insn.
17111 (undo_optional_reloads): Add check that the original peudo did not
17112 changed its allocation and the optional reload was inherited on last
17113 inheritance pass. Break loop after deciding to keep optional reload.
17114 (lra_undo_inheritance): Add check that inherited pseudo still in
17117 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
17119 * config/aarch64/aarch64.md (generic_sched): New.
17120 * config/aarch64/aarch64-generic.md (load): Make conditional
17121 on generic_sched attribute.
17122 (nonload): Likewise.
17124 2013-09-10 Jan Hubicka <jh@suse.cz>
17126 * lto-cgraph.c: Include ipa-utils.h.
17127 (compute_ltrans_boundary): Also add possible targets into the boundary.
17129 2013-09-10 Jan Hubicka <jh@suse.cz>
17131 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
17132 VAR_DECL of vtable rather than full expression.
17134 2013-09-10 Jan Hubicka <jh@suse.cz>
17135 Paolo Carlini <paolo.carlini@oracle.com>
17137 * cgraphunit.c (analyze_functions): Save input_location, set it
17138 to UNKNOWN_LOCATION and restore it at the end.
17140 2013-09-10 Martin Jambor <mjambor@suse.cz>
17142 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
17143 represented by a thunk.
17145 2013-09-10 Jeff Law <law@redhat.com>
17147 PR tree-optimization/58343
17148 * tree-ssa-threadupdate.c (thread_block): Identify and disable
17149 jump threading requests through loop headers buried in the middle
17150 of a jump threading path.
17152 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
17153 in return value/type.
17155 2013-09-10 Jakub Jelinek <jakub@redhat.com>
17157 PR rtl-optimization/58365
17158 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
17159 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
17162 2013-09-10 Richard Biener <rguenther@suse.de>
17164 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
17165 * tree-data-ref.c (create_rdg_vertices): Collect all data
17166 references, signal failure to the caller, use data-ref API.
17167 (build_rdg): Compute data references only once. Maintain lifetime
17168 of data references and data dependences from within RDG.
17169 (free_rdg): Free dependence relations.
17170 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
17171 inventing extra dependences.
17172 (distribute_loop): Update for RDG API changes.
17174 2013-09-10 Kai Tietz <ktietz@redhat.com>
17176 * doc/invoke.texi (fms-extensions): Document changed
17177 behavior for ms-abi targets.
17178 * config/i386/i386.c (ix86_option_override_internal):
17179 Set default value of option -fms-extension for ms-abi targets.
17181 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
17183 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
17185 2013-09-10 Alan Modra <amodra@gmail.com>
17188 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
17190 2013-09-10 Alan Modra <amodra@gmail.com>
17192 * config/rs6000/predicates.md (add_cint_operand): New.
17193 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
17194 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
17195 using add_cint_operand.
17196 (largetoc_high_plus_aix): Likewise.
17198 2013-09-09 Jakub Jelinek <jakub@redhat.com>
17200 PR tree-optimization/58364
17201 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
17202 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
17203 the current range can't be an unconditional true or false.
17205 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
17207 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
17209 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
17211 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
17213 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17216 * doc/invoke.texi (-Wdelete-incomplete): Document it.
17218 2013-09-09 Ian Bolton <ian.bolton@arm.com>
17220 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
17221 NO_REGS for immediate that can't be moved directly into FP_REGS.
17223 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17225 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
17226 comparison with negated operand.
17227 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
17230 2013-09-09 Richard Biener <rguenther@suse.de>
17232 PR middle-end/58326
17233 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
17234 of a subloop record all its block as affecting loop-closed SSA form.
17236 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17238 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
17239 of an rtx/bitpos pair.
17240 (store_fixed_bit_field): Update accordingly.
17242 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17244 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
17246 * builtins.c (expand_errno_check): Likewise.
17247 * dwarf2cfi.c (init_return_column_size): Likewise.
17248 * except.c (sjlj_mark_call_sites): Likewise.
17249 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
17250 * lra-constraints.c (emit_inc): Likewise.
17251 * ree.c (combine_set_extension): Likewise.
17252 * regmove.c (fixup_match_2): Likewise.
17253 * reload1.c (inc_for_reload): Likewise.
17255 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17257 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
17258 (force_to_mode, simplify_shift_const_1, simplify_comparison):
17259 Use gen_int_mode with the mode of the associated simplify_* call.
17260 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
17261 * expmed.c (expand_shift_1): Likewise.
17262 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17263 * loop-iv.c (iv_number_of_iterations): Likewise.
17264 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17265 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17267 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17269 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
17270 of the associated expand_* call.
17271 (asan_emit_stack_protection): Likewise.
17272 * builtins.c (round_trampoline_addr): Likewise.
17273 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
17274 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
17275 (emit_store_flag): Likewise.
17276 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
17277 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
17279 * function.c (instantiate_virtual_regs_in_insn): Likewise.
17280 * ifcvt.c (noce_try_store_flag_constants): Likewise.
17281 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
17282 * modulo-sched.c (generate_prolog_epilog): Likewise.
17283 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
17284 (expand_ctz, expand_ffs, expand_unop): Likewise.
17286 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17288 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
17289 of the associated gen_rtx_* call.
17290 * caller-save.c (init_caller_save): Likewise.
17291 * combine.c (find_split_point, make_extraction): Likewise.
17292 (make_compound_operation): Likewise.
17293 * dwarf2out.c (mem_loc_descriptor): Likewise.
17294 * explow.c (plus_constant, probe_stack_range): Likewise.
17295 * expmed.c (expand_mult_const): Likewise.
17296 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
17297 * reload1.c (init_reload): Likewise.
17298 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17299 * var-tracking.c (adjust_mems): Likewise.
17300 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
17301 rather than gen_rtx_fmt_ee.
17303 2013-09-09 Jan Hubicka <jh@suse.cz>
17305 PR middle-end/58294
17306 * value-prof.c (gimple_ic): Copy also abnormal edges.
17308 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
17310 * asan.c (asan_shadow_cst): Use gen_int_mode.
17312 2013-09-08 Jan Hubicka <jh@suse.cz>
17314 * ipa-profile.c: Add toplevel comment.
17315 (ipa_propagate_frequency_1): Be more conservative when profile is read.
17316 (contains_hot_call_p): New function.
17317 (ipa_propagate_frequency): Set frequencies based on counts when
17319 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
17320 profile; do not tamper with profile after inlining if it is read.
17322 2013-09-08 Jan Hubicka <jh@suse.cz>
17324 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
17327 2013-09-08 Jan Hubicka <jh@suse.cz>
17329 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
17330 summary generation.
17332 2013-09-08 Jeff Law <law@redhat.com>
17335 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
17338 2013-09-08 Andi Kleen <ak@linux.intel.com>
17340 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
17342 2013-09-08 Jan Hubicka <jh@suse.cz>
17344 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
17346 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
17348 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
17349 for non-debug insns.
17350 * lra.c (new_insn_reg): Take the containing insn as a parameter.
17351 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
17352 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
17355 2013-09-08 Jan Hubicka <jh@suse.cz>
17357 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
17358 targets and devirtualize to BUILT_IN_UNREACHABLE.
17359 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
17360 * ipa.c (walk_polymorphic_call_targets): New function.
17361 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
17362 functions; use the new timevar.
17363 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
17364 was removed from the program.
17365 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
17366 not consider it in the walk when its vtable is dead.
17367 (possible_polymorphic_call_targets_1): Pass anonymous flag to
17369 (devirt_variable_node_removal_hook): New function.
17370 (possible_polymorphic_call_targets): Also register
17371 devirt_variable_node_removal_hook.
17372 (ipa_devirt): Do not do non-speculative devirtualization.
17373 (gate_ipa_devirt): One execute if devirtualizing speculatively.
17375 2013-09-08 Jan Hubicka <jh@suse.cz>
17377 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
17378 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
17379 varpool_remove_variable_insertion_hook): Declare.
17380 * varpool.c (varpool_node_hook_list): New structure.
17381 (first_varpool_node_removal_hook,
17382 first_varpool_variable_insertion_hook): New variables.
17383 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
17384 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
17385 varpool_remove_variable_insertion_hook,
17386 varpool_call_variable_insertion_hooks): New functions.
17387 (varpool_remove_node): Use it.
17389 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
17392 * diagnostic.c (diagnostic_build_prefix): When s.file is
17393 "<built-in>" don't output line and column numbers.
17395 2013-09-06 Jan Hubicka <jh@suse.cz>
17397 * cgraphunit.c (expand_thunk): Get body before touching arguments.
17398 * lto-streamer-out.c: Stream thunks, too.
17399 * lto-streamer-in.c (input_function): Pop cfun here
17400 (lto_read_body): Instead of here.
17402 2013-09-06 Caroline Tice <cmtice@google.com>
17404 * doc/install.texi: Add documentation for the --enable-vtable-verify
17405 and the --disable-libvtv configure options.
17407 2013-09-06 Jeff Law <law@redhat.com>
17409 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17410 edge implied equivalences into successor phis.
17412 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
17414 * resource.c (mark_referenced_resources): Handle COND_EXEC.
17416 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
17418 * resource.c (mark_target_live_regs): Compute resources taking
17419 into account if a call is predicated or not.
17421 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
17423 * toplev.c (output_stack_usage): Be prepared for suffixes created by
17424 the compiler in the function names.
17426 2013-09-06 Jan Hubicka <jh@suse.cz>
17428 PR middle-end/58094
17429 * ipa-inline.c (has_caller_p): New function.
17430 (want_inline_function_to_all_callers_p): Use it.
17431 (sum_callers, inline_to_all_callers): Break out from ...
17432 (ipa_inline): ... here.
17434 2013-09-06 Jan Hubicka <jh@suse.cz>
17436 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
17437 only when AVX is enabled.
17439 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17441 * config/aarch64/aarch64.md
17442 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
17443 is fpsimd_<load/store>2.
17444 (load_pair<mode>): Likewise.
17445 (store_pair<mode>): Likewise.
17447 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17449 * config/arm/types.md (type): Add "mrs" type.
17450 * config/aarch64/aarch64.md
17451 (aarch64_load_tp_hard): Make type "mrs".
17452 * config/arm/arm.md
17453 (load_tp_hard): Make type "mrs".
17454 * config/arm/cortex-a15.md: Update with new attributes.
17455 * config/arm/cortex-a5.md: Update with new attributes.
17456 * config/arm/cortex-a53.md: Update with new attributes.
17457 * config/arm/cortex-a7.md: Update with new attributes.
17458 * config/arm/cortex-a8.md: Update with new attributes.
17459 * config/arm/cortex-a9.md: Update with new attributes.
17460 * config/arm/cortex-m4.md: Update with new attributes.
17461 * config/arm/cortex-r4.md: Update with new attributes.
17462 * config/arm/fa526.md: Update with new attributes.
17463 * config/arm/fa606te.md: Update with new attributes.
17464 * config/arm/fa626te.md: Update with new attributes.
17465 * config/arm/fa726te.md: Update with new attributes.
17467 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17469 * config/aarch64/aarch64.md
17470 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
17471 (*movtf_aarch64): Likewise.
17472 * config/arm/arm.md
17473 (thumb1_movdi_insn): Use "multiple" for type where more than one
17474 instruction is used for a move.
17475 (*arm32_movhf): Likewise.
17476 (*thumb_movdf_insn): Likewise.
17478 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17480 * config/arm/types.md (type): Rename fcpys to fmov.
17481 * config/arm/vfp.md
17482 (*arm_movsi_vfp): Rename type fcpys as fmov.
17483 (*thumb2_movsi_vfp): Likewise
17484 (*movhf_vfp_neon): Likewise
17485 (*movhf_vfp): Likewise
17486 (*movsf_vfp): Likewise
17487 (*thumb2_movsf_vfp): Likewise
17488 (*movsfcc_vfp): Likewise
17489 (*thumb2_movsfcc_vfp): Likewise
17490 * config/aarch64/aarch64-simd.md
17491 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
17492 * config/aarch64/aarch64.md
17493 (*movsi_aarch64): Replace type mov_reg with fmovs.
17494 (*movdi_aarch64): Likewise
17495 (*movsf_aarch64): Likewise
17496 (*movdf_aarch64): Likewise
17498 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
17499 * config/arm/iwmmxt.md
17500 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
17501 * config/arm/arm1020e.md: Update with new attributes.
17502 * config/arm/cortex-a15-neon.md: Update with new attributes.
17503 * config/arm/cortex-a5.md: Update with new attributes.
17504 * config/arm/cortex-a53.md: Update with new attributes.
17505 * config/arm/cortex-a7.md: Update with new attributes.
17506 * config/arm/cortex-a8-neon.md: Update with new attributes.
17507 * config/arm/cortex-a9.md: Update with new attributes.
17508 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17509 * config/arm/cortex-r4f.md: Update with new attributes.
17510 * config/arm/marvell-pj4.md: Update with new attributes.
17511 * config/arm/vfp11.md: Update with new attributes.
17513 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17515 * config/aarch64/aarch64.md
17516 (*madd<mode>): Fix type attribute.
17517 (*maddsi_uxtw): Likewise.
17518 (*msub<mode>): Likewise.
17519 (*msubsi_uxtw): Likewise.
17520 (<su_optab>maddsidi4): Likewise.
17521 (<su_optab>msubsidi4): Likewise.
17523 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17525 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
17526 * config/arm/arm.md (core_cycles): Remove fdiv.
17527 * config/arm/vfp.md:
17528 (*sqrtsf2_vfp): Update for attribute changes.
17529 (*sqrtdf2_vfp): Likewise.
17530 * config/aarch64/aarch64.md:
17531 (sqrt<mode>2): Update for attribute changes.
17532 * config/arm/arm1020e.md: Update with new attributes.
17533 * config/arm/cortex-a15-neon.md: Update with new attributes.
17534 * config/arm/cortex-a5.md: Update with new attributes.
17535 * config/arm/cortex-a53.md: Update with new attributes.
17536 * config/arm/cortex-a7.md: Update with new attributes.
17537 * config/arm/cortex-a8-neon.md: Update with new attributes.
17538 * config/arm/cortex-a9.md: Update with new attributes.
17539 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17540 * config/arm/cortex-r4f.md: Update with new attributes.
17541 * config/arm/marvell-pj4.md: Update with new attributes.
17542 * config/arm/vfp11.md: Update with new attributes.
17544 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17546 * config/arm/types.md
17547 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
17548 * config/aarch64/aarch64.md
17549 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
17551 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17552 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
17553 (float<GPI:mode><GPF:mode>2): Likewise.
17554 * config/arm/vfp.md
17555 (*truncsisf2_vfp): Update with new attributes.
17556 (*truncsidf2_vfp): Likewise.
17557 (fixuns_truncsfsi2): Likewise.
17558 (fixuns_truncdfsi2): Likewise.
17559 (*floatsisf2_vfp): Likewise.
17560 (*floatsidf2_vfp): Likewise.
17561 (floatunssisf2): Likewise.
17562 (floatunssidf2): Likewise.
17563 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
17564 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
17565 * config/arm/arm1020e.md: Update with new attributes.
17566 * config/arm/cortex-a15-neon.md: Update with new attributes.
17567 * config/arm/cortex-a5.md: Update with new attributes.
17568 * config/arm/cortex-a53.md: Update with new attributes.
17569 * config/arm/cortex-a7.md: Update with new attributes.
17570 * config/arm/cortex-a8-neon.md: Update with new attributes.
17571 * config/arm/cortex-a9.md: Update with new attributes.
17572 * config/arm/cortex-m4-fpu.md: Update with new attributes.
17573 * config/arm/cortex-r4f.md: Update with new attributes.
17574 * config/arm/marvell-pj4.md: Update with new attributes.
17575 * config/arm/vfp11.md: Update with new attributes.
17577 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17579 * config/aarch64/arm_neon.h
17580 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
17581 (vqtbx<1,2,3,4><q>_s8): Likewise.
17583 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17585 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
17586 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
17587 (add<mode>3): Add type attribute.
17588 (add<mode>3): Likewise.
17589 (usadd<mode>3): Likewise.
17590 (ssadd<mode>3): Likewise.
17591 (sub<mode>3): Likewise.
17592 (sub<mode>3): Likewise.
17593 (ussub<mode>3): Likewise.
17594 (sssub<mode>3): Likewise.
17595 (ssmulsa3): Likewise.
17596 (usmulusa3): Likewise.
17597 (arm_usatsihi): Likewise.
17598 * config/arm/vfp.md
17599 (*movdi_vfp): Add types for all instructions.
17600 (*movdi_vfp_cortexa8): Likewise.
17601 (*movhf_vfp_neon): Likewise.
17602 (*movhf_vfp): Likewise.
17603 (*movdf_vfp): Likewise.
17604 (*thumb2_movdf_vfp): Likewise.
17605 (*thumb2_movdfcc_vfp): Likewise.
17606 * config/arm/arm.md: Add type attribute to all insn patterns.
17607 (*thumb1_adddi3): Add type attribute.
17608 (*arm_adddi3): Likewise.
17609 (*adddi_sesidi_di): Likewise.
17610 (*adddi_zesidi_di): Likewise.
17611 (*thumb1_addsi3): Likewise.
17612 (addsi3_compare0): Likewise.
17613 (*addsi3_compare0_scratch): Likewise.
17614 (*compare_negsi_si): Likewise.
17615 (cmpsi2_addneg): Likewise.
17616 (*addsi3_carryin_<optab>): Likewise.
17617 (*addsi3_carryin_alt2_<optab>): Likewise.
17618 (*addsi3_carryin_clobercc_<optab>): Likewise.
17619 (*subsi3_carryin): Likewise.
17620 (*subsi3_carryin_const): Likewise.
17621 (*subsi3_carryin_compare): Likewise.
17622 (*subsi3_carryin_compare_const): Likewise.
17623 (*arm_subdi3): Likewise.
17624 (*thumb_subdi3): Likewise.
17625 (*subdi_di_zesidi): Likewise.
17626 (*subdi_di_sesidi): Likewise.
17627 (*subdi_zesidi_di): Likewise.
17628 (*subdi_sesidi_di): Likewise.
17629 (*subdi_zesidi_ze): Likewise.
17630 (thumb1_subsi3_insn): Likewise.
17631 (*arm_subsi3_insn): Likewise.
17632 (*anddi3_insn): Likewise.
17633 (*anddi_zesidi_di): Likewise.
17634 (*anddi_sesdi_di): Likewise.
17635 (*ne_zeroextracts): Likewise.
17636 (*ne_zeroextracts): Likewise.
17637 (*ite_ne_zeroextr): Likewise.
17638 (*ite_ne_zeroextr): Likewise.
17639 (*anddi_notdi_di): Likewise.
17640 (*anddi_notzesidi): Likewise.
17641 (*anddi_notsesidi): Likewise.
17642 (andsi_notsi_si): Likewise.
17643 (thumb1_bicsi3): Likewise.
17644 (*iordi3_insn): Likewise.
17645 (*iordi_zesidi_di): Likewise.
17646 (*iordi_sesidi_di): Likewise.
17647 (*thumb1_iorsi3_insn): Likewise.
17648 (*xordi3_insn): Likewise.
17649 (*xordi_zesidi_di): Likewise.
17650 (*xordi_sesidi_di): Likewise.
17651 (*arm_xorsi3): Likewise.
17652 (*andsi_iorsi3_no): Likewise.
17653 (*smax_0): Likewise.
17654 (*smax_m1): Likewise.
17655 (*arm_smax_insn): Likewise.
17656 (*smin_0): Likewise.
17657 (*arm_smin_insn): Likewise.
17658 (*arm_umaxsi3): Likewise.
17659 (*arm_uminsi3): Likewise.
17660 (*minmax_arithsi): Likewise.
17661 (*minmax_arithsi_): Likewise.
17662 (*satsi_<SAT:code>): Likewise.
17663 (arm_ashldi3_1bit): Likewise.
17664 (arm_ashrdi3_1bit): Likewise.
17665 (arm_lshrdi3_1bit): Likewise.
17666 (*arm_negdi2): Likewise.
17667 (*thumb1_negdi2): Likewise.
17668 (*arm_negsi2): Likewise.
17669 (*thumb1_negsi2): Likewise.
17670 (*negdi_extendsid): Likewise.
17671 (*negdi_zero_extend): Likewise.
17672 (*arm_abssi2): Likewise.
17673 (*thumb1_abssi2): Likewise.
17674 (*arm_neg_abssi2): Likewise.
17675 (*thumb1_neg_abss): Likewise.
17676 (one_cmpldi2): Likewise.
17677 (extend<mode>di2): Likewise.
17678 (*compareqi_eq0): Likewise.
17679 (*arm_extendhisi2addsi): Likewise.
17680 (*arm_movdi): Likewise.
17681 (*thumb1_movdi_insn): Likewise.
17682 (*arm_movt): Likewise.
17683 (*thumb1_movsi_insn): Likewise.
17684 (pic_add_dot_plus_four): Likewise.
17685 (pic_add_dot_plus_eight): Likewise.
17686 (tls_load_dot_plus_eight): Likewise.
17687 (*thumb1_movhi_insn): Likewise.
17688 (*thumb1_movsf_insn): Likewise.
17689 (*movdf_soft_insn): Likewise.
17690 (*thumb_movdf_insn): Likewise.
17691 (cbranchsi4_insn): Likewise.
17692 (cbranchsi4_scratch): Likewise.
17693 (*negated_cbranchsi4): Likewise.
17694 (*tbit_cbranch): Likewise.
17695 (*tlobits_cbranch): Likewise.
17696 (*tstsi3_cbranch): Likewise.
17697 (*cbranchne_decr1): Likewise.
17698 (*addsi3_cbranch): Likewise.
17699 (*addsi3_cbranch_scratch): Likewise.
17700 (*arm_cmpdi_insn): Likewise.
17701 (*arm_cmpdi_unsig): Likewise.
17702 (*arm_cmpdi_zero): Likewise.
17703 (*thumb_cmpdi_zero): Likewise.
17704 (*deleted_compare): Likewise.
17705 (*mov_scc): Likewise.
17706 (*mov_negscc): Likewise.
17707 (*mov_notscc): Likewise.
17708 (*cstoresi_eq0_thumb1_insn): Likewise.
17709 (cstoresi_nltu_thumb1): Likewise.
17710 (cstoresi_ltu_thu): Likewise.
17711 (thumb1_addsi3_addgeu): Likewise.
17712 (*arm_jump): Likewise.
17713 (*thumb_jump): Likewise.
17714 (*check_arch2): Likewise.
17715 (arm_casesi_internal): Likewise.
17716 (thumb1_casesi_dispatch): Likewise.
17717 (*arm_indirect_jump): Likewise.
17718 (*thumb1_indirect_jump): Likewise.
17720 (*and_scc): Likewise.
17721 (*ior_scc): Likewise.
17722 (*compare_scc): Likewise.
17723 (*cond_move): Likewise.
17724 (*cond_arith): Likewise.
17725 (*cond_sub): Likewise.
17726 (*cmp_ite0): Likewise.
17727 (*cmp_ite1): Likewise.
17728 (*cmp_and): Likewise.
17729 (*cmp_ior): Likewise.
17730 (*ior_scc_scc): Likewise.
17731 (*ior_scc_scc_cmp): Likewise.
17732 (*and_scc_scc): Likewise.
17733 (*and_scc_scc_cmp): Likewise.
17734 (*and_scc_scc_nod): Likewise.
17735 (*negscc): Likewise.
17736 (movcond_addsi): Likewise.
17737 (movcond): Likewise.
17738 (*ifcompare_plus_move): Likewise.
17739 (*if_plus_move): Likewise.
17740 (*ifcompare_move_plus): Likewise.
17741 (*if_move_plus): Likewise.
17742 (*ifcompare_arith_arith): Likewise.
17743 (*if_arith_arith): Likewise.
17744 (*ifcompare_arith_move): Likewise.
17745 (*if_arith_move): Likewise.
17746 (*ifcompare_move_arith): Likewise.
17747 (*if_move_arith): Likewise.
17748 (*ifcompare_move_not): Likewise.
17749 (*if_move_not): Likewise.
17750 (*ifcompare_not_move): Likewise.
17751 (*if_not_move): Likewise.
17752 (*ifcompare_shift_move): Likewise.
17753 (*if_shift_move): Likewise.
17754 (*ifcompare_move_shift): Likewise.
17755 (*if_move_shift): Likewise.
17756 (*ifcompare_shift_shift): Likewise.
17757 (*ifcompare_not_arith): Likewise.
17758 (*ifcompare_arith_not): Likewise.
17759 (*if_arith_not): Likewise.
17760 (*ifcompare_neg_move): Likewise.
17761 (*if_neg_move): Likewise.
17762 (*ifcompare_move_neg): Likewise.
17763 (*if_move_neg): Likewise.
17764 (prologue_thumb1_interwork): Likewise.
17765 (*cond_move_not): Likewise.
17766 (*sign_extract_onebit): Likewise.
17767 (*not_signextract_onebit): Likewise.
17768 (stack_tie): Likewise.
17769 (align_4): Likewise.
17770 (align_8): Likewise.
17771 (consttable_end): Likewise.
17772 (consttable_1): Likewise.
17773 (consttable_2): Likewise.
17774 (consttable_4): Likewise.
17775 (consttable_8): Likewise.
17776 (consttable_16): Likewise.
17777 (*thumb1_tablejump): Likewise.
17778 (prefetch): Likewise.
17779 (force_register_use): Likewise.
17780 (thumb_eh_return): Likewise.
17781 (load_tp_hard): Likewise.
17782 (load_tp_soft): Likewise.
17783 (tlscall): Likewise.
17784 (*arm_movtas_ze): Likewise.
17785 (*arm_rev): Likewise.
17786 (*arm_revsh): Likewise.
17787 (*arm_rev16): Likewise.
17788 * config/arm/thumb2.md
17789 (*thumb2_smaxsi3): Likewise.
17790 (*thumb2_sminsi3): Likewise.
17791 (*thumb32_umaxsi3): Likewise.
17792 (*thumb2_uminsi3): Likewise.
17793 (*thumb2_negdi2): Likewise.
17794 (*thumb2_abssi2): Likewise.
17795 (*thumb2_neg_abss): Likewise.
17796 (*thumb2_movsi_insn): Likewise.
17797 (tls_load_dot_plus_four): Likewise.
17798 (*thumb2_movhi_insn): Likewise.
17799 (*thumb2_mov_scc): Likewise.
17800 (*thumb2_mov_negs): Likewise.
17801 (*thumb2_mov_negs): Likewise.
17802 (*thumb2_mov_nots): Likewise.
17803 (*thumb2_mov_nots): Likewise.
17804 (*thumb2_movsicc_): Likewise.
17805 (*thumb2_movsfcc_soft_insn): Likewise.
17806 (*thumb2_indirect_jump): Likewise.
17807 (*thumb2_and_scc): Likewise.
17808 (*thumb2_ior_scc): Likewise.
17809 (*thumb2_ior_scc_strict_it): Likewise.
17810 (*thumb2_cond_move): Likewise.
17811 (*thumb2_cond_arith): Likewise.
17812 (*thumb2_cond_ari): Likewise.
17813 (*thumb2_cond_sub): Likewise.
17814 (*thumb2_negscc): Likewise.
17815 (*thumb2_movcond): Likewise.
17816 (thumb2_casesi_internal): Likewise.
17817 (thumb2_casesi_internal_pic): Likewise.
17818 (*thumb2_alusi3_short): Likewise.
17819 (*thumb2_mov<mode>_shortim): Likewise.
17820 (*thumb2_addsi_short): Likewise.
17821 (*thumb2_subsi_short): Likewise.
17822 (thumb2_addsi3_compare0): Likewise.
17823 (*thumb2_cbz): Likewise.
17824 (*thumb2_cbnz): Likewise.
17825 (*thumb2_one_cmplsi2_short): Likewise.
17826 (*thumb2_negsi2_short): Likewise.
17827 (*orsi_notsi_si): Likewise.
17828 * config/arm/arm1020e.md: Update with new attributes.
17829 * config/arm/arm1026ejs.md: Update with new attributes.
17830 * config/arm/arm1136jfs.md: Update with new attributes.
17831 * config/arm/arm926ejs.md: Update with new attributes.
17832 * config/arm/cortex-a15.md: Update with new attributes.
17833 * config/arm/cortex-a5.md: Update with new attributes.
17834 * config/arm/cortex-a53.md: Update with new attributes.
17835 * config/arm/cortex-a7.md: Update with new attributes.
17836 * config/arm/cortex-a8.md: Update with new attributes.
17837 * config/arm/cortex-a9.md: Update with new attributes.
17838 * config/arm/cortex-m4.md: Update with new attributes.
17839 * config/arm/cortex-r4.md: Update with new attributes.
17840 * config/arm/fa526.md: Update with new attributes.
17841 * config/arm/fa606te.md: Update with new attributes.
17842 * config/arm/fa626te.md: Update with new attributes.
17843 * config/arm/fa726te.md: Update with new attributes.
17845 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
17847 * config/aarch64/aarch64-simd.md
17848 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
17849 <vwx> iterator to ensure correct register choice.
17850 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
17851 (aarch64_sqdmull_n<mode>): Likewise.
17852 (aarch64_sqdmull2_n<mode>_internal): Likewise.
17853 * config/aarch64/arm_neon.h
17854 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
17855 (vml<as><q>_n_<su>16): Likewise.
17856 (vml<as>l_high_lane<q>_<su>16): Likewise.
17857 (vml<as>l_high_n_<su>16): Likewise.
17858 (vml<as>l_lane<q>_<su>16): Likewise.
17859 (vml<as>l_n_<su>16): Likewise.
17860 (vmul<q>_lane<q>_<su>16): Likewise.
17861 (vmul<q>_n_<su>16): Likewise.
17862 (vmull_lane<q>_<su>16): Likewise.
17863 (vmull_n_<su>16): Likewise.
17864 (vmull_high_lane<q>_<su>16): Likewise.
17865 (vmull_high_n_<su>16): Likewise.
17866 (vqrdmulh<q>_n_s16): Likewise.
17868 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
17870 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
17871 have the correct lane parameter.
17873 2013-09-06 Richard Biener <rguenther@suse.de>
17875 * cfganal.c (control_dependences::~control_dependences):
17876 Properly free all of the vector.
17878 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
17881 * config/i386/i386.c (ix86_conditional_register_usage):
17882 Proper initialize extended SSE registers.
17884 2013-09-06 Jan Hubicka <jh@suse.cz>
17886 PR tree-optimization/58311
17887 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
17889 2013-09-06 Jan Hubicka <jh@suse.cz>
17891 * Makefile.in (tree-sra.o): Update dependencies.
17892 * tree-sra.c: Include ipa-utils.h
17893 (scan_function): Use recursive_call_p.
17894 (has_caller_p): New function.
17895 (cgraph_for_node_and_aliases): Count also callers of aliases.
17897 2013-09-06 Jan Hubicka <jh@suse.cz>
17899 PR middle-end/58094
17900 * cgraph.h (symtab_semantically_equivalent_p): Declare.
17901 * tree-tailcall.c: Include ipa-utils.h.
17902 (find_tail_calls): Use it.
17903 * ipa-pure-const.c (check_call): Likewise.
17904 * ipa-utils.c (recursive_call_p): New function.
17905 * ipa-utils.h (recursive_call_p): Dclare.
17906 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
17907 (symtab_semantically_equivalent_p): New function.
17908 * Makefile.in (tree-tailcall.o): Update dependencies.
17910 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
17912 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
17913 non-inlinable part.
17915 2013-09-06 Richard Biener <rguenther@suse.de>
17917 * lto-streamer.h (lto_global_var_decls): Remove.
17918 * Makefile.in (OBJS): Remove lto-symtab.o.
17919 (lto-symtab.o): Remove.
17920 (GTFILES): Remove lto-symtab.c
17921 * lto-symtab.c: Move to lto/
17923 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17925 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
17926 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
17927 (UNSPEC_FPINT_RINT): New constant definitions.
17928 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
17929 definition with 2 attributes.
17930 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
17931 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
17934 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17936 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
17937 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
17938 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
17939 attribute to "z196_alone".
17940 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
17943 2013-09-06 Richard Biener <rguenther@suse.de>
17945 * basic-block.h (class control_dependences): New.
17946 * tree-ssa-dce.c (control_dependence_map): Remove.
17948 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
17949 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
17950 find_pdom, find_control_dependence, find_all_control_dependences):
17952 (mark_control_dependent_edges_necessary,
17953 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
17954 tree_dce_done, perform_tree_ssa_dce): Adjust.
17955 * cfganal.c (set_control_dependence_map_bit,
17956 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
17957 find_all_control_dependences): Move from tree-ssa-dce.c and
17958 implement as methods of control_dependences class.
17959 (control_dependences::control_dependences): New.
17960 (control_dependences::~control_dependences): Likewise.
17961 (control_dependences::get_edges_dependent_on): Likewise.
17962 (control_dependences::get_edge): Likewise.
17964 2013-09-04 Jan Hubicka <jh@suse.cz>
17966 * tree.c (types_same_for_odr): Drop overactive check.
17967 * ipa-devirt.c (hash_type_name): Likewise.
17969 2013-09-04 Jan Hubicka <jh@suse.cz>
17971 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
17972 (analyze_functions): ... here.
17974 2013-09-04 Jan Hubicka <jh@suse.cz>
17976 PR middle-end/58201
17977 * cgraphunit.c (analyze_functions): Clear AUX fields
17978 after processing; initialize assembler name has.
17980 2013-09-05 Jeff Law <law@redhat.com>
17982 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
17983 from thread_around_empty_block. Record threading path into PATH.
17984 Recurse if threading through the initial block is successful.
17985 (thread_across_edge): Corresponding changes to slightly simplify.
17987 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17989 * config/aarch64/aarch64.md
17990 (type): Remove frecpe, frecps, frecpx.
17991 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
17992 fix to be a TARGET_SIMD instruction.
17993 (aarch64_frecps): Remove.
17994 * config/aarch64/aarch64-simd.md
17995 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
17996 (aarch64_frecps<mode>): Handle all float/vector of float modes.
17998 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17999 Sofiane Naci <sofiane.naci@arm.com>
18001 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
18002 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
18003 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
18004 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
18005 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
18006 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
18007 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
18008 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
18009 into "clz, "rbit". Rename "shift" to "shift_imm".
18010 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
18011 changes. Update for attribute changes all occurrences of arlo_* and
18013 * config/arm/arm-fixed.md: Update for attribute changes
18014 all occurrences of arlo_* types.
18015 * config/arm/thumb2.md: Update for attribute changes all occurrences
18017 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
18018 (cortexa7_older_only): Likewise.
18019 (cortexa7_younger): Likewise.
18020 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
18021 (1020alu_shift_op): Likewise.
18022 (1020alu_shift_reg_op): Likewise.
18023 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
18024 (alu_shift_op): Likewise.
18025 (alu_shift_reg_op): Likewise.
18026 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
18027 (11_alu_shift_op): Likewise.
18028 (11_alu_shift_reg_op): Likewise.
18029 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
18030 (9_alu_shift_reg_op): Likewise.
18031 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
18033 (cortex_a15_alu_shift): Likewise.
18034 (cortex_a15_alu_shift_reg): Likewise.
18035 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
18037 (cortex_a5_alu_shift): Likewise.
18038 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
18040 (cortex_a53_alu_shift): Likewise.
18041 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
18043 (cortex_a7_alu_reg): Likewise.
18044 (cortex_a7_alu_shift): Likewise.
18045 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
18047 (cortex_a8_alu_shift): Likewise.
18048 (cortex_a8_alu_shift_reg): Likewise.
18049 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
18050 (cortex_a9_dp_shift): Likewise.
18051 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
18053 * config/arm/cortex-r4.md
18054 (cortex_r4_alu): Update for attribute changes.
18055 (cortex_r4_mov): Likewise.
18056 (cortex_r4_alu_shift_reg): Likewise.
18057 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
18058 (526_alu_shift_op): Likewise.
18059 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
18060 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
18061 (626te_alu_shift_op): Likewise.
18062 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
18063 (726te_alu_shift_op): Likewise.
18064 (726te_alu_shift_reg_op): Likewise.
18065 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
18066 (mp626_alu_shift_op): Likewise.
18067 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
18068 (pj4_alu_conds): Likewise.
18069 (pj4_shift): Likewise.
18070 (pj4_shift_conds): Likewise.
18071 (pj4_alu_shift): Likewise.
18072 (pj4_alu_shift_conds): Likewise.
18073 * config/aarch64/aarch64.md: Update for attribute change
18074 all occurrences of arlo_* and shift* types.
18076 2013-09-05 Mike Stump <mikestump@comcast.net>
18078 * tree.h: Move documentation for tree_function_decl to tree-core.h
18079 with the declaration.
18081 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
18084 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
18085 looking for widest mode.
18087 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
18089 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
18091 2013-09-05 Richard Biener <rguenther@suse.de>
18093 PR tree-optimization/58137
18094 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
18095 Do not create vectors of pointers.
18096 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
18097 types for the components of the vector initializer.
18098 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
18099 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
18101 2013-09-05 Martin Jambor <mjambor@suse.cz>
18103 * ipa-prop.c (remove_described_reference): Accept missing references,
18104 return false if that hppens, otherwise return true.
18105 (cgraph_node_for_jfunc): New function.
18106 (try_decrement_rdesc_refcount): Likewise.
18107 (try_make_edge_direct_simple_call): Use them.
18108 (ipa_edge_removal_hook): Remove references from rdescs.
18109 (ipa_edge_duplication_hook): Clone rdescs and their references
18110 when the new edge has the same caller as the old one.
18111 * cgraph.c (cgraph_resolve_speculation): Remove speculative
18112 reference before removing any edges.
18114 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
18116 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
18118 * thumb2.md (thumb2_storewb_parisi): New pattern.
18120 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
18122 * config/aarch64/aarch64-option-extensions.def: Add
18123 AARCH64_OPT_EXTENSION of 'crc'.
18124 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
18125 (AARCH64_ISA_CRC): Ditto.
18126 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
18127 description of the CRC extension.
18129 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
18131 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
18132 * config/rs6000/linux.h: Ditto.
18133 * alpha/linux.h: Ditto.
18134 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
18135 no_c99_libc_has_function.
18136 * config/c6x/uclinux-elf.h: Ditto.
18137 * config/lm32/uclinux-elf.h: Ditto.
18138 * config/m68k/uclinux.h: Ditto.
18139 * config/moxie/uclinux.h: Ditto.
18140 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
18141 (crisv32-*-linux*, cris-*-linux*): Ditto.
18142 * config/bfin/bfin.c: Include "tm_p.h".
18144 2013-09-05 Richard Biener <rguenther@suse.de>
18146 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
18147 check for a definition without a basic-block.
18149 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
18150 Sofiane Naci <sofiane.naci@arm.com>
18152 * config/aarch64/aarch64.md
18153 (*movti_aarch64): Rename r_2_f and f_2_r.
18154 (*movsf_aarch64): Likewise.
18155 (*movdf_aarch64): Likewise.
18156 (*movtf_aarch64): Likewise.
18157 (aarch64_movdi_<mode>low): Likewise.
18158 (aarch64_movdi_<mode>high): Likewise.
18159 (aarch64_mov<mode>high_di): Likewise.
18160 (aarch64_mov<mode>low_di): Likewise.
18161 (aarch64_movtilow_tilow): Likewise.
18162 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
18163 values to config/arm/types.md
18164 (attribute "conds"): Update for attribute change.
18165 (anddi3_insn): Likewise.
18166 (iordi3_insn): Likewise.
18167 (xordi3_insn): Likewise.
18168 (one_cmpldi2): Likewise.
18169 * config/arm/types.md (type): Add Neon types.
18170 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
18171 use "type" attribute.
18172 (movmisalign<mode>_neon_store): Likewise.
18173 (movmisalign<mode>_neon_load): Likewise.
18174 (vec_set<mode>_internal): Likewise.
18175 (vec_setv2di_internal): Likewise.
18176 (vec_extract<mode>): Likewise.
18177 (vec_extractv2di): Likewise.
18178 (add<mode>3_neon): Likewise.
18179 (adddi3_neon): Likewise.
18180 (sub<mode>3_neon): Likewise.
18181 (subdi3_neon): Likewise.
18182 (mul<mode>3_neon): Likewise.
18183 (mul<mode>3add<mode>_neon): Likewise.
18184 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18185 (fma<VCVTF:mode>4)): Likewise.
18186 (fma<VCVTF:mode>4_intrinsic): Likewise.
18187 (fmsub<VCVTF:mode>4)): Likewise.
18188 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
18189 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
18190 (ior<mode>3): Likewise.
18191 (and<mode>3): Likewise.
18192 (anddi3_neon): Likewise.
18193 (orn<mode>3_neon): Likewise.
18194 (orndi3_neon): Likewise.
18195 (bic<mode>3_neon): Likewise.
18196 (bicdi3_neon): Likewise.
18197 (xor<mode>3): Likewise.
18198 (one_cmpl<mode>2): Likewise.
18199 (abs<mode>2): Likewise.
18200 (neg<mode>2): Likewise.
18201 (umin<mode>3_neon): Likewise.
18202 (umax<mode>3_neon): Likewise.
18203 (smin<mode>3_neon): Likewise.
18204 (smax<mode>3_neon): Likewise.
18205 (vashl<mode>3): Likewise.
18206 (vashr<mode>3_imm): Likewise.
18207 (vlshr<mode>3_imm): Likewise.
18208 (ashl<mode>3_signed): Likewise.
18209 (ashl<mode>3_unsigned): Likewise.
18210 (neon_load_count): Likewise.
18211 (ashldi3_neon_noclobber): Likewise.
18212 (signed_shift_di3_neon): Likewise.
18213 (unsigned_shift_di3_neon): Likewise.
18214 (ashrdi3_neon_imm_noclobber): Likewise.
18215 (lshrdi3_neon_imm_noclobber): Likewise.
18216 (widen_ssum<mode>3): Likewise.
18217 (widen_usum<mode>3): Likewise.
18218 (quad_halves_<code>v4si): Likewise.
18219 (quad_halves_<code>v4sf): Likewise.
18220 (quad_halves_<code>v8hi): Likewise.
18221 (quad_halves_<code>v16qi): Likewise.
18222 (reduc_splus_v2di): Likewise.
18223 (neon_vpadd_internal<mode>): Likewise.
18224 (neon_vpsmin<mode>): Likewise.
18225 (neon_vpsmax<mode>): Likewise.
18226 (neon_vpumin<mode>): Likewise.
18227 (neon_vpumax<mode>): Likewise.
18228 (ss_add<mode>_neon): Likewise.
18229 (us_add<mode>_neon): Likewise.
18230 (ss_sub<mode>_neon): Likewise.
18231 (us_sub<mode>_neon): Likewise.
18232 (neon_vadd<mode>_unspec): Likewise.
18233 (neon_vaddl<mode>): Likewise.
18234 (neon_vaddw<mode>): Likewise.
18235 (neon_vhadd<mode>): Likewise.
18236 (neon_vqadd<mode>): Likewise.
18237 (neon_vaddhn<mode>): Likewise.
18238 (neon_vmul<mode>): Likewise.
18239 (neon_vmla<mode>): Likewise.
18240 (neon_vmlal<mode>): Likewise.
18241 (neon_vmls<mode>): Likewise.
18242 (neon_vmlsl<mode>): Likewise.
18243 (neon_vqdmulh<mode>): Likewise.
18244 (neon_vqdmlal<mode>): Likewise.
18245 (neon_vqdmlsl<mode>): Likewise.
18246 (neon_vmull<mode>): Likewise.
18247 (neon_vqdmull<mode>): Likewise.
18248 (neon_vsub<mode>_unspec): Likewise.
18249 (neon_vsubl<mode>): Likewise.
18250 (neon_vsubw<mode>): Likewise.
18251 (neon_vqsub<mode>): Likewise.
18252 (neon_vhsub<mode>): Likewise.
18253 (neon_vsubhn<mode>): Likewise.
18254 (neon_vceq<mode>): Likewise.
18255 (neon_vcge<mode>): Likewise.
18256 (neon_vcgeu<mode>): Likewise.
18257 (neon_vcgt<mode>): Likewise.
18258 (neon_vcgtu<mode>): Likewise.
18259 (neon_vcle<mode>): Likewise.
18260 (neon_vclt<mode>): Likewise.
18261 (neon_vcage<mode>): Likewise.
18262 (neon_vcagt<mode>): Likewise.
18263 (neon_vtst<mode>): Likewise.
18264 (neon_vabd<mode>): Likewise.
18265 (neon_vabdl<mode>): Likewise.
18266 (neon_vaba<mode>): Likewise.
18267 (neon_vabal<mode>): Likewise.
18268 (neon_vmax<mode>): Likewise.
18269 (neon_vmin<mode>): Likewise.
18270 (neon_vpaddl<mode>): Likewise.
18271 (neon_vpadal<mode>): Likewise.
18272 (neon_vpmax<mode>): Likewise.
18273 (neon_vpmin<mode>): Likewise.
18274 (neon_vrecps<mode>): Likewise.
18275 (neon_vrsqrts<mode>): Likewise.
18276 (neon_vqabs<mode>): Likewise.
18277 (neon_vqneg<mode>): Likewise.
18278 (neon_vcls<mode>): Likewise.
18279 (clz<mode>2): Likewise.
18280 (popcount<mode>2): Likewise.
18281 (neon_vrecpe): Likewise.
18282 (neon_vrsqrte): Likewise.
18283 (neon_vget_lane<mode>_sext_internal): Likewise.
18284 (neon_vget_lane<mode>_zext_internal): Likewise.
18285 (neon_vdup_n<mode>): Likewise.
18286 (neon_vdup_nv2di): Likewise.
18287 (neon_vdpu_lane<mode>_internal): Likewise.
18288 (neon_vswp<mode>): Likewise.
18289 (float<mode><V_cvtto>2): Likewise.
18290 (floatuns<mode><V_cvtto>2): Likewise.
18291 (fix_trunc<mode><V_cvtto>)2): Likewise
18292 (fixuns_trunc<mode><V_cvtto)2): Likewise.
18293 (neon_vcvt<mode>): Likewise.
18294 (neon_vcvtv4sfv4hf): Likewise.
18295 (neon_vcvtv4hfv4sf): Likewise.
18296 (neon_vcvt_n<mode>): Likewise.
18297 (neon_vmovn<mode>): Likewise.
18298 (neon_vqmovn<mode>): Likewise.
18299 (neon_vqmovun<mode>): Likewise.
18300 (neon_vmovl<mode>): Likewise.
18301 (neon_vmul_lane<mode>): Likewise.
18302 (neon_vmull_lane<mode>): Likewise.
18303 (neon_vqdmull_lane<mode>): Likewise.
18304 (neon_vqdmulh_lane<mode>): Likewise.
18305 (neon_vmla_lane<mode>): Likewise.
18306 (neon_vmlal_lane<mode>): Likewise.
18307 (neon_vqdmlal_lane<mode>): Likewise.
18308 (neon_vmls_lane<mode>): Likewise.
18309 (neon_vmlsl_lane<mode>): Likewise.
18310 (neon_vqdmlsl_lane<mode>): Likewise.
18311 (neon_vext<mode>): Likewise.
18312 (neon_vrev64<mode>): Likewise.
18313 (neon_vrev32<mode>): Likewise.
18314 (neon_vrev16<mode>): Likewise.
18315 (neon_vbsl<mode>_internal): Likewise.
18316 (neon_vshl<mode>): Likewise.
18317 (neon_vqshl<mode>): Likewise.
18318 (neon_vshr_n<mode>): Likewise.
18319 (neon_vshrn_n<mode>): Likewise.
18320 (neon_vqshrn_n<mode>): Likewise.
18321 (neon_vqshrun_n<mode>): Likewise.
18322 (neon_vshl_n<mode>): Likewise.
18323 (neon_vqshl_n<mode>): Likewise.
18324 (neon_vqshlu_n<mode>): Likewise.
18325 (neon_vshll_n<mode>): Likewise.
18326 (neon_vsra_n<mode>): Likewise.
18327 (neon_vsri_n<mode>): Likewise.
18328 (neon_vsli_n<mode>): Likewise.
18329 (neon_vtbl1v8qi): Likewise.
18330 (neon_vtbl2v8qi): Likewise.
18331 (neon_vtbl3v8qi): Likewise.
18332 (neon_vtbl4v8qi): Likewise.
18333 (neon_vtbx1v8qi): Likewise.
18334 (neon_vtbx2v8qi): Likewise.
18335 (neon_vtbx3v8qi): Likewise.
18336 (neon_vtbx4v8qi): Likewise.
18337 (neon_vtrn<mode>_internal): Likewise.
18338 (neon_vzip<mode>_internal): Likewise.
18339 (neon_vuzp<mode>_internal): Likewise.
18340 (neon_vld1<mode>): Likewise.
18341 (neon_vld1_lane<mode>): Likewise.
18342 (neon_vld1_dup<mode>): Likewise.
18343 (neon_vld1_dupv2di): Likewise.
18344 (neon_vst1<mode>): Likewise.
18345 (neon_vst1_lane<mode>): Likewise.
18346 (neon_vld2<mode>): Likewise.
18347 (neon_vld2_lane<mode>): Likewise.
18348 (neon_vld2_dup<mode>): Likewise.
18349 (neon_vst2<mode>): Likewise.
18350 (neon_vst2_lane<mode>): Likewise.
18351 (neon_vld3<mode>): Likewise.
18352 (neon_vld3qa<mode>): Likewise.
18353 (neon_vld3qb<mode>): Likewise.
18354 (neon_vld3_lane<mode>): Likewise.
18355 (neon_vld3_dup<mode>): Likewise.
18356 (neon_vst3<mode>): Likewise.
18357 (neon_vst3qa<mode>): Likewise.
18358 (neon_vst3qb<mode>): Likewise.
18359 (neon_vst3_lane<mode>): Likewise.
18360 (neon_vld4<mode>): Likewise.
18361 (neon_vld4qa<mode>): Likewise.
18362 (neon_vld4qb<mode>): Likewise.
18363 (neon_vld4_lane<mode>): Likewise.
18364 (neon_vld4_dup<mode>): Likewise.
18365 (neon_vst4<mode>): Likewise.
18366 (neon_vst4qa<mode>): Likewise.
18367 (neon_vst4qb<mode>): Likewise.
18368 (neon_vst4_lane<mode>): Likewise.
18369 (neon_vec_unpack<US>_lo_<mode>): Likewise.
18370 (neon_vec_unpack<US>_hi_<mode>): Likewise.
18371 (neon_vec_<US>mult_lo_<mode>): Likewise.
18372 (neon_vec_<US>mult_hi_<mode>): Likewise.
18373 (neon_vec_<US>shiftl_<mode>): Likewise.
18374 (neon_unpack<US>_<mode>): Likewise.
18375 (neon_vec_<US>mult_<mode>): Likewise.
18376 (vec_pack_trunc_<mode>): Likewise.
18377 (neon_vec_pack_trunk_<mode>): Likewise.
18378 (neon_vabd<mode>_2): Likewise.
18379 (neon_vabd<mode>_3): Likewise.
18380 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
18381 (thumb2_movsi_vfp): Likewise.
18382 (movdi_vfp): Likewise.
18383 (movdi_vfp_cortexa8): Likewise.
18384 (movhf_vfp_neon): Likewise.
18385 (movhf_vfp): Likewiwse.
18386 (movsf_vfp): Likewiwse.
18387 (thumb2_movsf_vfp): Likewiwse.
18388 (movdf_vfp): Likewise.
18389 (thumb2_movdf_vfp): Likewise.
18390 (movsfcc_vfp): Likewise.
18391 (thumb2_movsfcc_vfp): Likewise.
18392 (movdfcc_vfp): Likewise.
18393 (thumb2_movdfcc_vfp): Likewise.
18394 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
18395 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
18396 (v10_v2c): Likewise.
18397 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
18399 (cortex_a15_neon_int_2): Likewise.
18400 (cortex_a15_neon_int_3): Likewise.
18401 (cortex_a15_neon_int_4): Likewise.
18402 (cortex_a15_neon_int_5): Likewise.
18403 (cortex_a15_neon_vqneg_vqabs): Likewise.
18404 (cortex_a15_neon_vmov): Likewise.
18405 (cortex_a15_neon_vaba): Likewise.
18406 (cortex_a15_neon_vaba_qqq): Likewise.
18407 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18408 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18409 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
18410 scalar_64_32_long_scalar): Likewise.
18411 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18412 (cortex_a15_neon_mla_qqq_8_16): Likewise.
18413 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18414 lotype_qdd_64_32_long): Likewise.
18415 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18416 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18417 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
18418 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18419 (cortex_a15_neon_shift_1): Likewise.
18420 (cortex_a15_neon_shift_2): Likewise.
18421 (cortex_a15_neon_shift_3): Likewise.
18422 (cortex_a15_neon_vshl_ddd): Likewise.
18423 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18424 (cortex_a15_neon_vsra_vrsra): Likewise.
18425 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
18426 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
18427 (cortex_a15_neon_fp_vmul_ddd): Likewise.
18428 (cortex_a15_neon_fp_vmul_qqd): Likewise.
18429 (cortex_a15_neon_fp_vmla_ddd): Likewise.
18430 (cortex_a15_neon_fp_vmla_qqq): Likewise.
18431 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
18432 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
18433 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18434 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18435 (cortex_a15_neon_bp_simple): Likewise.
18436 (cortex_a15_neon_bp_2cycle): Likewise.
18437 (cortex_a15_neon_bp_3cycle): Likewise.
18438 (cortex_a15_neon_vld1_1_2_regs): Likewise.
18439 (cortex_a15_neon_vld1_3_4_regs): Likewise.
18440 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18441 (cortex_a15_neon_vld2_4_regs): Likewise.
18442 (cortex_a15_neon_vld3_vld4): Likewise.
18443 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18444 (cortex_a15_neon_vst1_3_4_regs): Likewise.
18445 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
18446 (cortex_a15_neon_vst3_vst4): Likewise.
18447 (cortex_a15_neon_vld1_vld2_lane): Likewise.
18448 (cortex_a15_neon_vld3_vld4_lane" 10
18449 (cortex_a15_neon_vst1_vst2_lane): Likewise.
18450 (cortex_a15_neon_vst3_vst4_lane): Likewise.
18451 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
18452 (cortex_a15_neon_ldm_2): Likewise.0
18453 (cortex_a15_neon_stm_2): Likewise.
18454 (cortex_a15_neon_mcr): Likewise.
18455 (cortex_a15_neon_mcr_2_mcrr): Likewise.
18456 (cortex_a15_neon_mrc): Likewise.
18457 (cortex_a15_neon_mrrc): Likewise.
18458 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
18460 (cortex_a15_alu_shift): Likewise.
18461 (cortex_a15_alu_shift_reg): Likewise.
18462 (cortex_a15_mult32): Likewise.
18463 (cortex_a15_mult64): Likewise.
18464 (cortex_a15_block): Likewise.
18465 (cortex_a15_branch): Likewise.
18466 (cortex_a15_load1): Likewise.
18467 (cortex_a15_load3): Likewise.
18468 (cortex_a15_store1): Likewise.
18469 (cortex_a15_store3): Likewise.
18470 (cortex_a15_call): Likewise.
18471 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
18472 (cortex_a5_f2r): Likewise.
18473 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
18475 (cortex_a53_f2r): Likewise.
18476 * config/arm/cortex-a7.md
18477 (cortex_a7_branch): Update for attribute change.
18478 (cortex_a7_call): Likewise.
18479 (cortex_a7_alu_imm): Likewise.
18480 (cortex_a7_alu_reg): Likewise.
18481 (cortex_a7_alu_shift): Likewise.
18482 (cortex_a7_mul): Likewise.
18483 (cortex_a7_load1): Likewise.
18484 (cortex_a7_store1): Likewise.
18485 (cortex_a7_load2): Likewise.
18486 (cortex_a7_store2): Likewise.
18487 (cortex_a7_load3): Likewise.
18488 (cortex_a7_store3): Likewise.
18489 (cortex_a7_load4): Likewise.
18490 (cortex_a7_store4): Likewise.
18491 (cortex_a7_fpalu): Likewise.
18492 (cortex_a7_fconst): Likewise.
18493 (cortex_a7_fpmuls): Likewise.
18494 (cortex_a7_neon_mul): Likewise.
18495 (cortex_a7_fpmacs): Likewise.
18496 (cortex_a7_neon_mla: Likewise.
18497 (cortex_a7_fpmuld: Likewise.
18498 (cortex_a7_fpmacd: Likewise.
18499 (cortex_a7_fpfmad: Likewise.
18500 (cortex_a7_fdivs: Likewise.
18501 (cortex_a7_fdivd: Likewise.
18502 (cortex_a7_r2f: Likewise.
18503 (cortex_a7_f2r: Likewise.
18504 (cortex_a7_f_flags: Likewise.
18505 (cortex_a7_f_loads: Likewise.
18506 (cortex_a7_f_loadd: Likewise.
18507 (cortex_a7_f_stores: Likewise.
18508 (cortex_a7_f_stored: Likewise.
18509 (cortex_a7_neon): Likewise.
18510 * config/arm/cortex-a8-neon.md
18511 (cortex_a8_neon_mrc): Update for attribute change.
18512 (cortex_a8_neon_mrrc): Likewise.
18513 (cortex_a8_neon_int_1): Likewise.
18514 (cortex_a8_neon_int_2): Likewise.
18515 (cortex_a8_neon_int_3): Likewise.
18516 (cortex_a8_neon_int_4): Likewise.
18517 (cortex_a8_neon_int_5): Likewise.
18518 (cortex_a8_neon_vqneg_vqabs): Likewise.
18519 (cortex_a8_neon_vmov): Likewise.
18520 (cortex_a8_neon_vaba): Likewise.
18521 (cortex_a8_neon_vaba_qqq): Likewise.
18522 (cortex_a8_neon_vsma): Likewise.
18523 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18524 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18525 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18526 long_scalar): Likewise.
18527 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18528 (cortex_a8_neon_mla_qqq_8_16): Likewise.
18529 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18530 long_scalar_qdd_64_32_long): Likewise.
18531 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18532 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18533 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
18534 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18535 (cortex_a8_neon_shift_1): Likewise.
18536 (cortex_a8_neon_shift_2): Likewise.
18537 (cortex_a8_neon_shift_3): Likewise.
18538 (cortex_a8_neon_vshl_ddd): Likewise.
18539 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18540 (cortex_a8_neon_vsra_vrsra): Likewise.
18541 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
18542 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
18543 (cortex_a8_neon_fp_vsum): Likewise.
18544 (cortex_a8_neon_fp_vmul_ddd): Likewise.
18545 (cortex_a8_neon_fp_vmul_qqd): Likewise.
18546 (cortex_a8_neon_fp_vmla_ddd): Likewise.
18547 (cortex_a8_neon_fp_vmla_qqq): Likewise.
18548 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
18549 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
18550 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18551 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18552 (cortex_a8_neon_bp_simple): Likewise.
18553 (cortex_a8_neon_bp_2cycle): Likewise.
18554 (cortex_a8_neon_bp_3cycle): Likewise.
18555 (cortex_a8_neon_ldr): Likewise.
18556 (cortex_a8_neon_str): Likewise.
18557 (cortex_a8_neon_vld1_1_2_regs): Likewise.
18558 (cortex_a8_neon_vld1_3_4_regs): Likewise.
18559 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18560 (cortex_a8_neon_vld2_4_regs): Likewise.
18561 (cortex_a8_neon_vld3_vld4): Likewise.
18562 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18563 (cortex_a8_neon_vst1_3_4_regs): Likewise.
18564 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
18565 (cortex_a8_neon_vst3_vst4): Likewise.
18566 (cortex_a8_neon_vld1_vld2_lane): Likewise.
18567 (cortex_a8_neon_vld3_vld4_lane): Likewise.
18568 (cortex_a8_neon_vst1_vst2_lane): Likewise.
18569 (cortex_a8_neon_vst3_vst4_lane): Likewise.
18570 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
18571 (cortex_a8_neon_mcr): Likewise.
18572 (cortex_a8_neon_mcr_2_mcrr): Likewise.
18573 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
18574 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
18576 (ca9_neon_mrrc): Likewise.
18577 (cortex_a9_neon_int_1): Likewise.
18578 (cortex_a9_neon_int_2): Likewise.
18579 (cortex_a9_neon_int_3): Likewise.
18580 (cortex_a9_neon_int_4): Likewise.
18581 (cortex_a9_neon_int_5): Likewise.
18582 (cortex_a9_neon_vqneg_vqabs): Likewise.
18583 (cortex_a9_neon_vmov): Likewise.
18584 (cortex_a9_neon_vaba): Likewise.
18585 (cortex_a9_neon_vaba_qqq): Likewise.
18586 (cortex_a9_neon_vsma): Likewise.
18587 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18588 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
18589 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
18590 long_scalar): Likewise.
18591 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
18592 (cortex_a9_neon_mla_qqq_8_16): Likewise.
18593 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
18594 long_scalar_qdd_64_32_long): Likewise.
18595 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
18596 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
18597 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
18598 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
18599 (cortex_a9_neon_shift_1): Likewise.
18600 (cortex_a9_neon_shift_2): Likewise.
18601 (cortex_a9_neon_shift_3): Likewise.
18602 (cortex_a9_neon_vshl_ddd): Likewise.
18603 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
18604 (cortex_a9_neon_vsra_vrsra): Likewise.
18605 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
18606 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
18607 (cortex_a9_neon_fp_vsum): Likewise.
18608 (cortex_a9_neon_fp_vmul_ddd): Likewise.
18609 (cortex_a9_neon_fp_vmul_qqd): Likewise.
18610 (cortex_a9_neon_fp_vmla_ddd): Likewise.
18611 (cortex_a9_neon_fp_vmla_qqq): Likewise.
18612 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
18613 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
18614 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
18615 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
18616 (cortex_a9_neon_bp_simple): Likewise.
18617 (cortex_a9_neon_bp_2cycle): Likewise.
18618 (cortex_a9_neon_bp_3cycle): Likewise.
18619 (cortex_a9_neon_ldr): Likewise.
18620 (cortex_a9_neon_str): Likewise.
18621 (cortex_a9_neon_vld1_1_2_regs): Likewise.
18622 (cortex_a9_neon_vld1_3_4_regs): Likewise.
18623 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
18624 (cortex_a9_neon_vld2_4_regs): Likewise.
18625 (cortex_a9_neon_vld3_vld4): Likewise.
18626 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
18627 (cortex_a9_neon_vst1_3_4_regs): Likewise.
18628 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
18629 (cortex_a9_neon_vst3_vst4): Likewise.
18630 (cortex_a9_neon_vld1_vld2_lane): Likewise.
18631 (cortex_a9_neon_vld3_vld4_lane): Likewise.
18632 (cortex_a9_neon_vst1_vst2_lane): Likewise.
18633 (cortex_a9_neon_vst3_vst4_lane): Likewise.
18634 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
18635 (cortex_a9_neon_mcr): Likewise.
18636 (cortex_a9_neon_mcr_2_mcrr): Likewise.
18637 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
18638 (cortex_a9_fps): Likewise.
18639 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
18641 (cortex_m4_fmuls): Likewise.
18642 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
18644 (cortex_r4_mrc): Likewise.
18645 * config/arm/iterators.md: Update comment referring to neon_type.
18646 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
18647 (iwmmxt_movsi_insn): Likewise.
18648 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
18650 (pj4_core_to_vfp): Likewise.
18651 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
18653 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
18654 (vfp_fstore): Likewise.
18655 * doc/md.texi: Change references to neon_type to refer to type.
18657 2013-09-04 Dodji Seketeli <dodji@redhat.com>
18659 * tree.h (DECL_BUILT_IN): Fix typo in comment.
18661 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
18663 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
18664 lglobl if not weak.
18666 2013-09-04 Easwaran Raman <eraman@google.com>
18668 PR middle-end/57370
18669 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
18670 (build_and_add_sum): Use it.
18671 (appears_later_in_bb): Simplify code.
18673 2013-09-04 Teresa Johnson <tejohnson@google.com>
18675 * dumpfile.c (dump_finish): Don't close stderr/stdout.
18677 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
18679 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
18681 2013-09-04 Jan Hubicka <jh@suse.cz>
18683 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
18684 * ipa-devirt.c: Include diganostic.h
18685 (odr_type_d): Add types and types_set.
18686 (hash_type_name): Work for types with vtables during LTO.
18687 (odr_hasher::remove): Fix comment; destroy types_set.
18688 (add_type_duplicate): New function,
18689 (get_odr_type): Use it.
18690 (dump_type_inheritance_graph): Dump type duplicates.
18691 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
18693 * tree.c (types_same_for_odr): Give exact answers on types with
18696 2013-09-04 Dodji Seketeli <dodji@redhat.com>
18698 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
18699 explaining their differences.
18701 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
18703 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
18705 2013-09-03 Jeff Law <law@redhat.com>
18707 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
18708 when not threading through a joiner block. Pass joiner/no joiner
18709 state to register_jump_thread.
18710 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
18711 state from argument rather than implying on path length.
18712 Dump the entire jump thread path into debugging dump.
18713 * tree-flow.h (register_jump_thread): Update prototype.
18715 2013-08-29 Xinliang David Li <davidxl@google.com>
18717 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18718 Remove a trivial gcc_assert.
18720 2013-08-29 Xinliang David Li <davidxl@google.com>
18722 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
18723 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
18724 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18725 Delay base decl alignment adjustment.
18726 * tree-vectorizer.c (vect_destroy_datarefs): New function.
18727 * tree-vectorizer.h: New data structure.
18728 (set_dr_misalignment): New function.
18729 (dr_misalignment): Ditto.
18730 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
18731 (vectorizable_load): Ditto.
18732 (ensure_base_align): New function.
18733 (vectorize_loops): Add dbg_cnt support.
18734 (execute_vect_slp): Ditto.
18735 * dbgcnt.def: New debug counter.
18736 * Makefile: New dependency.
18738 2013-09-03 Meador Inge <meadori@codesourcery.com>
18742 2013-08-30 Meador Inge <meadori@codesourcery.com>
18744 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
18746 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
18748 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
18749 function descriptor.
18751 2013-09-03 Richard Biener <rguenther@suse.de>
18753 * tree-affine.c (add_elt_to_tree): Fix association issue,
18754 avoid useless converts and make sure to always return a
18755 properly typed result.
18757 2013-09-03 Richard Biener <rguenther@suse.de>
18759 PR middle-end/57656
18760 * fold-const.c (negate_expr_p): Fix division case.
18761 (negate_expr): Likewise.
18763 2013-09-03 Richard Biener <rguenther@suse.de>
18766 * tree-streamer-out.c: Include tm.h.
18767 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
18769 2013-09-03 Jan Hubicka <jh@suse.cz>
18771 * tree-profile.c (tree_profiling): Cleanup CFG when done.
18773 2013-09-03 Alan Modra <amodra@gmail.com>
18775 * config.gcc (powerpc*-*-linux*): Add support for little-endian
18776 multilibs to big-endian target and vice versa.
18777 * config/rs6000/t-linux64: Use := assignment on all vars.
18778 (MULTILIB_EXTRA_OPTS): Remove fPIC.
18779 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
18780 * config/rs6000/t-linux64le: New file.
18781 * config/rs6000/t-linux64bele: New file.
18782 * config/rs6000/t-linux64lebe: New file.
18784 2013-09-02 Jan Hubicka <jh@suse.cz>
18786 * ipa-inline-transform.c (inline_transform): Do not
18787 optimize_inline_calls when not optimizing.
18789 2013-09-02 Jan Hubicka <jh@suse.cz>
18791 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
18792 duplicated nodes for assembler names.
18793 * symtab.c (symtab_unregister_node): Do not attempt to unlink
18794 hard registers from assembler name hash.
18796 2013-09-02 Jan Hubicka <jh@suse.cz>
18798 * ipa-split.c (execute_split_functions): Split externally visible
18799 functions called once.
18801 2013-09-02 Martin Jambor <mjambor@suse.cz>
18804 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
18805 linked list. When finding the correct duplicate, also consider also
18806 the caller in additon to its inlined_to node.
18808 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
18810 * config/aarch64/aarch64-simd-builtins.def
18811 (dup_lane_scalar): Remove.
18812 * config/aarch64/aarch64-simd.md
18813 (aarch64_simd_dup): Add 'w->w' alternative.
18814 (aarch64_dup_lane<mode>): Allow for VALL.
18815 (aarch64_dup_lane_scalar<mode>): Remove.
18816 (aarch64_dup_lane_<vswap_width_name><mode>): New.
18817 (aarch64_get_lane_signed<mode>): Add w->w altenative.
18818 (aarch64_get_lane_unsigned<mode>): Likewise.
18819 (aarch64_get_lane<mode>): Likewise.
18820 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
18821 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
18822 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
18823 (VCON): Change container of V2SF.
18824 (vswap_width_name): Likewise.
18825 * config/aarch64/arm_neon.h
18826 (__aarch64_vdup_lane_any): New.
18827 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
18828 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
18829 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
18831 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
18833 PR middle-end/56382
18834 * expr.c (emit_move_complex): Do not move complex FP values as parts if
18835 the source or the destination is a single hard register.
18837 2013-09-02 Richard Biener <rguenther@suse.de>
18839 PR middle-end/57511
18840 * tree-scalar-evolution.c (instantiate_scev_name): Allow
18843 2013-09-02 Richard Biener <rguenther@suse.de>
18845 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
18846 arithmetic to sizetype.
18848 2013-09-02 Bin Cheng <bin.cheng@arm.com>
18850 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
18851 Find auto-increment use both before and after candidate.
18853 2013-09-02 Marek Polacek <polacek@redhat.com>
18855 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
18857 2013-09-01 Jan Hubicka <jh@suse.cz>
18859 * Makefile.in: Add ipa-profile.o
18860 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
18861 * cgraph.c (struct cgraph_propagate_frequency_data,
18862 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
18863 ipa-profile.c; replace cgraph_ by ipa_ prefix.
18864 * cgraph.h (cgraph_propagate_frequency): Remove.
18865 * ipa-inline-analysis.c: Include ipa-utils.h;
18866 drop duplicated cfgloop.h.
18867 (inline_update_callee_summaries): Update.
18868 * ipa-profile.c: New file.
18869 * ipa-utils.h (ipa_propagate_frequency): Declare.
18870 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
18871 data-streamer.h, value-prof.h.
18872 (symtab_remove_unreachable_nodes): Update profile.
18873 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
18874 account_time_size, cmp_counts, dump_histogram,
18875 ipa_profile_generate_summary, ipa_profile_write_summary,
18876 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
18877 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
18878 Move to ipa-profile.c.
18880 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
18882 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
18884 2013-09-01 Jan Hubicka <jh@suse.cz>
18886 * common.opt (fdevirtualize-speculatively): New function.
18887 * invoke.texi (fdevirtualize-speculatively): Document.
18888 * ipa-devirt.c: Include ipa-inline.h
18889 (likely_target_p): New function.
18890 (ipa_devirt): New function.
18891 (gate_ipa_devirt): New function.
18892 (pass_data_ipa_devirt): New static var.
18893 (pass_ipa_devirt): Likewise.
18894 (make_pass_ipa_devirt): New function.
18895 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
18896 (common_handle_option): Disable devirtualization when
18897 value range profiling is available.
18898 * passes.def (pass_ipa_devirt): Add.
18899 * timever.def (TV_IPA_DEVIRT): New timevar.
18900 * tree-pass.h (make_pass_ipa_devirt):
18902 2013-09-01 Iain Sandoe <iain@codesourcery.com>
18904 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
18905 include sanitize(undefined).
18907 2013-08-31 Diego Novillo <dnovillo@google.com>
18909 * Makefile.in (TREE_CORE_H): Define.
18911 (GTFILES): Add tree-core.h.
18912 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
18914 * tree-core.h: New file.
18915 Move all data structures, enum, typedefs, global
18916 declarations and constants from ...
18917 * tree.h: ... here.
18919 2013-08-31 Jan Hubicka <jh@suse.cz>
18921 * bulitins.c (expand_builtin): Do not early exit for gcov
18922 instrumented functions.
18924 2013-08-31 Marek Polacek <polacek@redhat.com>
18926 * ubsan.c: Include tm_p.h.
18928 2013-08-31 Jan Hubicka <jh@suse.cz>
18930 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
18933 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
18934 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
18935 * tree-cfg.c (verify_gimple_label): ... here.
18936 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
18937 (ipa_merge_profiles): New function.
18938 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
18939 (lto_input_function_body): Likewise.
18940 * ipa-utils.h (ipa_merge_profiles): Declare.
18941 * lto-streamer.h (lto_input_function_body): Update prototype.
18942 (emit_label_in_global_context_p): Remove.
18943 * lto-symtab.c: Include ipa-utils.h
18944 (lto_cgraph_replace_node): Use ipa_merge_profiles.
18946 2013-08-31 Jan Hubicka <jh@suse.cz>
18948 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
18950 2013-08-31 Jan Hubicka <jh@suse.cz>
18952 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
18954 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
18956 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
18957 "cmp" RTX before signed_comparison_operator check to account
18958 for "code" changes.
18960 2013-08-30 Jan Hubicka <jh@suse.cz>
18962 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
18963 (detect_type_change_1): Rename to ...
18964 (detect_type_change): ... this one; early return on non-polymorphic
18966 (detect_type_change_ssa): Add comp_type parameter; update
18967 use of detect_type_change.
18968 (compute_complex_assign_jump_func): Add param_type parameter;
18969 update use of detect_type_change_ssa.
18970 (compute_complex_ancestor_jump_func): Likewise.
18971 (ipa_get_callee_param_type): New function.
18972 (ipa_compute_jump_functions_for_edge): Compute parameter type;
18973 update calls to the jump function computation functions.
18975 2013-08-30 Teresa Johnson <tejohnson@google.com>
18976 Steven Bosscher <steven@gcc.gnu.org>
18978 * cfgrtl.c (fixup_new_cold_bb): New routine.
18979 (commit_edge_insertions): Invoke fixup_partitions.
18980 (find_partition_fixes): New routine.
18981 (fixup_partitions): Ditto.
18982 (verify_hot_cold_block_grouping): Update comments.
18983 (rtl_verify_edges): Invoke find_partition_fixes.
18984 (rtl_verify_bb_pointers): Update comments.
18985 (rtl_verify_bb_layout): Ditto.
18986 * basic-block.h (probably_never_executed_edge_p): Declare.
18987 (fixup_partitions): Ditto.
18988 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
18989 * bb-reorder.c (sanitize_hot_paths): New function.
18990 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
18991 sanitize_hot_paths.
18992 * predict.c (probably_never_executed_edge_p): New routine.
18993 * cfg.c (check_bb_profile): Add partition insanity warnings.
18995 2013-08-30 Meador Inge <meadori@codesourcery.com>
18997 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
18999 2013-08-30 Marek Polacek <polacek@redhat.com>
19001 * Makefile.in (ubsan.o): Add.
19002 (c-family/c-ubsan.o): Add.
19003 (builtins.o): Add ubsan.h dependency.
19004 * ubsan.h: New file.
19005 * ubsan.c: New file.
19006 * common.opt: Add -fsanitize=undefined option.
19007 (flag_sanitize): Add variable.
19008 (fsanitize=): Add option. Add Driver.
19009 (fsanitize=thread): Remove option.
19010 (fsanitize=address): Likewise.
19011 (static-libubsan): New option.
19012 * doc/invoke.texi: Document the new flag and -static-libubsan.
19013 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
19014 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
19015 * builtin-attrs.def (ATTR_COLD): Define.
19016 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19017 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
19018 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
19019 * flag-types.h (sanitize_code): New enum.
19020 * opts.c (common_handle_option): Parse command line arguments
19021 of -fsanitize=. Add -fsanitize=unreachable option.
19022 * varasm.c (get_variable_section): Adjust.
19023 (assemble_noswitch_variable): Likewise.
19024 (assemble_variable): Likewise.
19025 (output_constant_def_contents): Likewise.
19026 (categorize_decl_for_section): Likewise.
19027 (place_block_symbol): Likewise.
19028 (output_object_block): Likewise.
19029 * builtins.def: Likewise.
19030 * toplev.c (compile_file): Likewise.
19031 (process_options): Likewise.
19032 * cppbuiltin.c: Likewise.
19033 * tsan.c (tsan_pass): Likewise.
19034 (tsan_gate): Likewise.
19035 (tsan_gate_O0): Likewise.
19036 * cfgexpand.c (partition_stack_vars): Likewise.
19037 (expand_stack_vars): Likewise.
19038 (defer_stack_allocation): Likewise.
19039 (expand_used_vars): Likewise.
19040 * cfgcleanup.c (old_insns_match_p): Likewise.
19041 * asan.c (asan_finish_file): Likewise.
19042 (asan_instrument): Likewise.
19043 (gate_asan): Likewise.
19044 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
19045 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
19046 (asan_global_struct): Use pointer_sized_int_node instead
19047 calling build_nonstandard_integer_type.
19048 (initialize_sanitizer_builtins): Likewise.
19049 (asan_finish_file): Likewise.
19050 * gcc.c: Document %{%:function(args):X}.
19051 (static_spec_functions): Add sanitize.
19052 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
19053 store funcval != NULL there.
19054 (do_spec_1): Adjust handle_spec_function caller.
19055 (handle_braces): Allow %:function(args) as condition.
19056 (sanitize_spec_function): New function.
19057 (ADD_STATIC_LIBUBSAN_LIBS): Define.
19058 (LIBUBSAN_SPEC): Likewise.
19059 (LIBUBSAN_EARLY_SPEC): Likewise.
19060 (SANITIZER_SPEC): Handle libubsan.
19061 (SANITIZER_EARLY_SPEC): Likewise.
19062 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
19063 instead of fsanitize=address.
19064 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
19065 instead of fsanitize=address*.
19066 * builtins.c: Include ubsan.h.
19067 (fold_builtin_0): Instrument __builtin_unreachable.
19068 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
19069 instead of flag_asan.
19070 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
19071 (pointer_sized_int_node): Define.
19072 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
19074 2013-08-30 Mike Stump <mikestump@comcast.net>
19076 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
19079 2013-08-29 Jan Hubicka <jh@suse.cz>
19081 * cgraph.c (cgraph_function_body_availability): Handle weakref
19083 * passes.def: Remove pass_fixup_cfg.
19084 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
19085 track when we need to remove functions.
19086 (gate_ipa_inline): Execute inlining always; add comment why.
19087 (pass_data_ipa_inline): Remove TODO_remove_functions.
19088 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
19089 do not produce summaries.
19090 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
19091 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
19092 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
19093 constant pool and vtable.
19095 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
19097 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
19098 New arm_neon.h's internal macros to specify 64-bit constants.
19099 Avoid using stdint.h's macros.
19101 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
19103 * recog.c (verify_changes): Verify that changes[i].old is non-zero
19104 before applying REG_P.
19106 2013-08-30 Jakub Jelinek <jakub@redhat.com>
19108 PR tree-optimization/58277
19109 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
19110 after seeing too many stmts with vdef in between dombb and current
19111 bb, invalidate everything.
19113 2013-08-30 Richard Biener <rguenther@suse.de>
19115 * fold-const.c (fold_single_bit_test): Fix overflow test.
19117 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
19119 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
19120 and which can live in a register, always retrieve the value on entry.
19121 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
19122 passed by invisible reference specially.
19123 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
19124 (vt_add_function_parameter): Correctly deal with a parameter passed by
19125 invisible reference.
19127 2013-08-30 Jan Hubicka <jh@suse.cz>
19129 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
19131 2013-08-30 Richard Biener <rguenther@suse.de>
19133 PR tree-optimization/58228
19134 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
19135 allow invariant loads in nested loop vectorization.
19137 2013-08-30 Richard Biener <rguenther@suse.de>
19139 PR tree-optimization/58223
19140 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
19141 (has_anti_or_output_dependence): ... this and adjust to also
19142 look for output dependences.
19143 (mark_nodes_having_upstream_mem_writes): Adjust.
19144 (rdg_flag_uses): Likewise.
19146 2013-08-30 Richard Biener <rguenther@suse.de>
19148 PR tree-optimization/58010
19149 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
19150 assert that we have a loop-closed PHI.
19152 2013-08-29 Jan Hubicka <jh@suse.cz>
19154 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
19155 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
19156 * lto-section-in.c (lto_free_function_in_decl_state): New function.
19157 (lto_free_function_in_decl_state_for_node): New function.
19159 2013-08-29 Xinliang David Li <davidxl@google.com>
19161 * loop-unroll.c (report_unroll_peel): Minor message change.
19162 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
19163 Emit alignment peeling message with default -fopt-info.
19164 (vect_loop_versioning): Emit loop version info message.
19165 * tree-vectorizer.c (vectorize_loops): Minor message change.
19166 (execute_vect_slp): Ditto.
19168 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
19170 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
19171 of the clone from the DECL_NAME of the original function.
19173 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
19175 * passes.c (register_pass): Add overload.
19176 * tree-pass.h (register_pass): Forward declare it. Add comment.
19178 2013-08-29 Jan Hubicka <jh@suse.cz>
19180 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
19181 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
19182 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
19183 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19184 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
19185 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
19186 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
19187 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
19189 2013-08-29 Teresa Johnson <tejohnson@google.com>
19191 * dumpfile.c (dump_loc): Output column number.
19192 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
19193 * doc/invoke.texi: Document optall -fopt-info flag.
19194 * profile.c (read_profile_edge_counts): Use new dump framework.
19195 (compute_branch_probabilities): Ditto.
19196 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
19197 when pass not in any opt group.
19198 * pass_manager.h (pass_manager::get_pass_profile): New method.
19199 * value-prof.c (check_counter): Use new dump framework.
19200 (check_ic_target): Ditto.
19201 * coverage.c (get_coverage_counts): Ditto.
19202 (coverage_init): Setup new dump framework.
19204 2013-08-29 Richard Biener <rguenther@suse.de>
19206 PR tree-optimization/58246
19207 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
19208 handle the dominance check inside a basic-block.
19210 2013-08-29 Richard Biener <rguenther@suse.de>
19212 PR middle-end/57287
19213 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
19214 of default defs that appear in abnormal PHI nodes.
19216 2013-08-29 Richard Biener <rguenther@suse.de>
19218 PR tree-optimization/57685
19219 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
19220 single-use operands to avoid exponential complexity.
19222 2013-08-28 Dehao Chen <dehao@google.com>
19224 * ipa-inline.c (edge_badness): Fix integer underflow.
19226 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
19228 * gtm-builtins.def (_ITM_free): Declare leaf.
19230 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19233 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
19234 (*tls_local_dynamic_base_64_largepic): Likewise.
19235 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
19236 Remove predicate from call operand.
19237 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
19238 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
19240 2013-08-28 Jeff Law <law@redhat.com>
19242 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
19243 checks for the number of predecessors and successors allowed.
19244 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
19245 which require copying a joiner block if there is a request which
19246 is a subpath that requires no joiner block copying.
19248 2013-08-28 Jan Hubicka <jh@suse.cz>
19250 * lto-streamer-out.c (DFS_write_tree_body): Drop
19251 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
19252 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
19253 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
19254 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
19255 Do not read DECL_ERROR_ISSUED.
19256 (unpack_ts_decl_with_vis_value_fields): Do not read
19258 (lto_input_ts_binfo_tree_pointers): Do not read
19259 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
19260 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
19261 write DECL_ERROR_ISSUED..
19262 (pack_ts_decl_with_vis_value_fields): Do not write
19264 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
19265 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
19266 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
19267 * tree.h (tree_decl_common): Update comment.
19268 (DECL_ERROR_ISSUED): Remove.
19270 2013-08-28 Jakub Jelinek <jakub@redhat.com>
19272 PR middle-end/58257
19273 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
19275 2013-08-28 Jan Hubicka <jh@suse.cz>
19277 * builtins.def (free): Declare leaf.
19279 2013-08-27 David Malcolm <dmalcolm@redhat.com>
19281 * gdbhooks.py: New.
19282 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
19283 * configure: Regenerate.
19285 2013-08-27 Martin Jambor <mjambor@suse.cz>
19287 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
19288 (ipa_ancestor_jf_data): Likewise.
19289 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
19290 (ipa_get_jf_pass_through_type_preserved): New function.
19291 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
19292 (ipa_get_jf_ancestor_type_preserved): New function.
19293 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
19294 (ipa_get_jf_ancestor_result): Likewise.
19295 (propagate_vals_accross_pass_through): Use
19296 ipa_get_jf_pass_through_result to do all the value mappings.
19297 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
19298 type_preserved flag.
19299 (ipa_set_jf_cst_copy): New function.
19300 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
19301 (ipa_set_jf_arith_pass_through): Likewise.
19302 (ipa_set_ancestor_jf): Likewise.
19303 (compute_complex_assign_jump_func): Set type_preserved instead of
19305 (ipa_compute_jump_functions_for_edge): Likewise.
19306 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
19307 (update_jump_functions_after_inlining): Update type_preserved.
19308 Explicitely create jump functions when combining one with pass_through.
19309 (ipa_write_jump_function): Stream the type_preserved flags.
19310 (ipa_read_jump_function): Likewise.
19312 2013-08-27 Jakub Jelinek <jakub@redhat.com>
19313 Aldy Hernandez <aldyh@redhat.com>
19315 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
19316 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
19317 * function.h (struct function): Add has_force_vect_loops and
19319 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
19320 * gimple.c (gimple_build_omp_critical): Add KIND argument and
19322 * gimple.def: Update CLAUSES comments.
19323 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
19324 (gimple_build_omp_for): Add argument to prototype.
19325 (gimple_omp_for_kind): New.
19326 (gimple_omp_for_set_kind): New.
19327 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
19328 GOVD_DATA_SHARE_CLASS.
19329 (enum omp_region_type): Add ORT_SIMD.
19330 (gimple_add_tmp_var): Handle ORT_SIMD.
19331 (gimplify_var_or_parm_decl): Same.
19332 (is_gimple_stmt): Same.
19333 (omp_firstprivatize_variable): Same.
19334 (omp_add_variable): Only use splay_tree_insert if lookup failed.
19335 (omp_notice_variable): Handle ORT_SIMD.
19336 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
19337 (omp_check_private): Handle ORT_SIMD.
19338 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19339 OMP_CLAUSE_SAFELEN.
19340 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
19341 Handle OMP_CLAUSE_LASTPRIVATE.
19342 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
19343 OMP_CLAUSE_SAFELEN.
19344 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
19345 (gimplify_expr): Handle OMP_SIMD.
19346 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
19347 (expand_GOMP_SIMD_VF): New.
19348 (expand_GOMP_SIMD_LAST_LANE): New.
19349 * internal-fn.def (GOMP_SIMD_LANE): New.
19350 (GOMP_SIMD_VF): New.
19351 (GOMP_SIMD_LAST_LANE): New.
19352 * omp-low.c: Include target.h.
19353 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
19354 OMP_CLAUSE_SAFELEN.
19355 (check_omp_nesting_restrictions): Same.
19357 (lower_rec_simd_input_clauses): New.
19358 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
19360 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
19361 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
19362 (expand_omp_build_assign): New.
19363 (expand_omp_for_init_counts): New.
19364 (expand_omp_for_init_vars): New.
19365 (extract_omp_for_update_vars): New.
19366 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
19367 and rewrite accordingly.
19368 (expand_omp_simd): New.
19369 (expand_omp_for): Use expand_omp_simd.
19370 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
19371 (lower_omp_for): Do not lower the body.
19372 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
19373 in their own loops.
19374 * tree-flow.h (find_omp_clause): Remove prototype.
19375 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
19376 forcing vectorization of the loop, or if flag_tree_vectorize.
19377 (gate_tree_if_conversion): Similarly.
19378 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
19379 gimple_build_omp_for.
19380 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
19381 * tree-parloops (create_parallel_loop): Pass kind argument to
19382 gimple_build_omp_for.
19383 * tree-pretty-print.c (dump_omp_clause): Add cases for
19384 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
19385 OMP_CLAUSE__SIMDUID_.
19386 (dump_generic_node): Handle OMP_SIMD.
19387 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
19388 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
19389 unroll OMP_SIMD loops here.
19390 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
19391 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
19393 (vect_analyze_data_refs): Handle simd loops.
19394 * tree-vect-loop.c (vectorizable_live_operation): Handle
19396 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
19397 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
19398 (vectorizable_load): Same.
19399 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
19400 (struct simduid_to_vf): New.
19401 (simduid_to_vf::hash): New.
19402 (simduid_to-vf::equal): New.
19403 (struct simd_array_to_simduid): New.
19404 (simd_array_to_simduid::hash): New.
19405 (simd_array_to_simduid::equal): New.
19406 (adjust_simduid_builtins): New.
19407 (struct note_simd_array_uses_struct): New.
19408 (note_simd_array_uses_cb): New.
19409 (note_simd_array_uses): New.
19410 (vectorize_loops): Handle simd hints and adjust simd builtins
19412 * tree-vectorizer.h (struct _stmt_vec_info): Add
19413 simd_lane_access_p field.
19414 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
19415 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
19416 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
19417 (omp_clause_code_name): Same.
19418 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
19419 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
19420 * tree.def (OMP_SIMD): New entry.
19421 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
19422 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
19423 (OMP_CLAUSE_DECL): Adjust range for new clauses.
19424 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
19425 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
19426 (OMP_CLAUSE_LINEAR_STEP): New.
19427 (OMP_CLAUSE_SAFELEN_EXPR): New.
19428 (OMP_CLAUSE__SIMDUID__DECL): New.
19429 (find_omp_clause): New prototype.
19431 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
19433 * config/i386/driver-i386.c (host_detect_local_cpu): Update
19434 Haswell processor detection.
19436 2013-08-27 Christian Widmer <shadow@umbrox.de>
19439 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
19440 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
19441 AVX2 capable processors.
19443 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
19445 * config/aarch64/arm_neon.h: Replace all inline asm implementations
19446 of vget_low_* with implementations in terms of other intrinsics.
19448 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
19450 PR middle-end/57219
19451 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
19452 values to -1, 0 and 1.
19454 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
19456 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
19457 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
19458 (<optab><mode>3_insn): Remove.
19459 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
19460 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19461 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19462 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
19463 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
19464 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
19465 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
19466 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
19467 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
19468 (ror<mode>3_insn): Likewise.
19469 * config/aarch64/predicates.md (aarch64_simd_register): New.
19471 2013-08-27 Richard Biener <rguenther@suse.de>
19473 PR tree-optimization/57521
19474 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
19475 one edge is non-critical.
19476 (find_phi_replacement_condition): Make sure to use a non-critical
19477 edge. Cleanup and remove old bug workarounds.
19478 (bb_postdominates_preds): Remove.
19479 (if_convertible_loop_p_1): Do not compute post-dominators.
19480 (combine_blocks): Do not free post-dominators.
19481 (main_tree_if_conversion): Likewise.
19482 (pass_data_if_conversion): Add TODO_verify_ssa.
19484 2013-08-27 DJ Delorie <dj@redhat.com>
19486 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
19488 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
19490 * function.c (assign_parm_find_data_types): Set passed_mode and
19491 nominal_mode to the TYPE_MODE of nominal_type for the built
19492 pointer type in case of the struct-pass-by-reference.
19494 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19496 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
19497 (UINT16_TYPE): Change default to "unsigned int".
19499 * config/avr/avr.opt (mfract-convert-truncate): New option.
19500 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
19501 is set, round negative fractional integers according to n1169
19502 when converting to integer types.
19504 2013-08-26 Jan Hubicka <jh@suse.cz>
19506 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
19507 methods can not be called indirectly when their address is not taken.
19509 2013-08-26 Jan Hubicka <jh@suse.cz>
19511 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
19514 2013-08-26 Jan Hubicka <jh@suse.cz>
19516 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
19519 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19521 * reload.c (find_valid_class): Allow classes that do not include
19522 FIRST_PSEUDO_REGISTER - 1.
19524 2013-08-26 Jan Hubicka <jh@suse.cz>
19526 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
19527 fix edge count/frequency when speculation failed; fix type check
19528 for the direct call.
19530 2013-08-26 Jan Hubicka <jh@suse.cz>
19532 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
19534 2013-08-26 Jan Hubicka <jh@suse.cz>
19536 * ipa-inline-transform.c (inline_transform): Be ready for basic block
19537 to be changed by edge redirection.
19539 2013-08-26 Jan Hubicka <jh@suse.cz>
19541 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
19542 formating; add sanity check.
19543 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
19544 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
19545 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
19546 (resolve_noninline_speculation): Update callee keys, too.
19548 2013-08-26 Jan Hubicka <jh@suse.cz>
19550 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
19551 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
19553 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
19555 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
19558 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
19560 * config/i386/i386.c (ix86_debug_options): Remove prototype.
19561 (x86_64_elf_select_section): Ditto.
19562 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
19564 (ix86_pass_by_reference): Ditto.
19565 (output_set_got): Ditto.
19566 (ix86_unary_operator_ok): Ditto.
19567 (ix86_expand_builtin): Ditto.
19569 2013-08-23 Jan Hubicka <jh@suse.cz>
19571 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
19573 2013-08-23 Jan Hubicka <jh@suse.cz>
19575 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
19576 (tree_decl_with_vis): Add FINAL field.
19578 2013-08-23 Jeff Law <law@redhat.com>
19580 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
19581 the debugging dump when the expression is fully redundant.
19583 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
19585 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
19586 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
19587 * pretty-print.c (pp_formatted_text_data): Likewise.
19588 (pp_write_text_to_stream): Likewise.
19589 (pp_write_text_as_dot_label_to_stream): Likewise.
19590 (pp_append_r): Likewise.
19591 (pp_format): Likewise.
19592 (pp_flush): Likewise.
19593 (pp_clear_output_area): Likewise.
19594 (pp_append_text): Likewise.
19595 (pp_formatted_text): Likewise.
19596 (pp_remaining_character_count_for_line): Likewise.
19597 (pp_newline): Likewise.
19598 (pp_character): Likewise.
19599 (output_buffer::~output_buffer): Define.
19600 (pretty_printer::~pretty_printer): Destruct output buffer.
19601 * pretty-print.h (output_buffer::~output_buffer): Declare.
19602 (pretty_printer::~pretty_printer): Declare virtual.
19604 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
19607 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
19608 HOST_WIDE_INT_M1U): New macros.
19609 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
19610 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
19611 unsigned -1 for lshift.
19612 * cse.c (cse_insn): Likewise.
19613 * double-int.c (rshift_double, lshift_double): Likewise.
19614 * builtins.c (fold_builtin_bitop): Likewise.
19615 * combine.c (force_to_mode): Likewise.
19616 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
19617 * simplify-rtx.c (simplify_const_unary_operation,
19618 simplify_const_binary_operation): Likewise.
19619 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
19620 check_va_list_escapes): Likewise.
19621 * rtlanal.c (nonzero_bits1): Likewise.
19622 * expmed.c (expand_smod_pow2): Likewise.
19623 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
19625 2013-08-23 Jan Hubicka <jh@suse.cz>
19627 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
19628 as having address taken.
19630 2013-08-23 Jan Hubicka <jh@suse.cz>
19632 * ipa-utils.h (method_class_type): Declare.
19633 * ipa-devirt.c (method_class_type): Export.
19635 * cgraphunit.c (analyze_functions): Do basic devirtualization;
19636 do not walk base classes of anonymous types.
19638 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
19640 PR rtl-optimization/58220
19641 PR regression/58221
19642 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
19643 handle SEQUENCE insns properly.
19645 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
19647 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
19649 (pp_newline_and_indent): Likewise.
19650 (pp_separate_with): Likewise.
19651 * pretty-print.c (pp_newline_and_flush): Define.
19652 (pp_newline_and_indent): Likewise.
19653 (pp_separate_with): Likewise.
19655 2013-08-23 Jakub Jelinek <jakub@redhat.com>
19658 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
19659 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
19661 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
19663 * config/i386/predicates.md (ext_sse_reg_operand): New.
19664 * config/i386/i386.md (*movti_internal): Use
19665 predicate to determine if EVEX is needed.
19666 (*movsi_internal): Ditto.
19667 (*movdf_internal): Ditto.
19668 (*movsf_internal): Ditto.
19669 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
19671 2013-08-23 Jakub Jelinek <jakub@redhat.com>
19673 PR tree-optimization/58209
19674 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
19675 (find_tail_calls): Give up for pointer result types if m is non-NULL.
19676 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
19677 emit POINTER_PLUS_EXPR.
19678 (create_tailcall_accumulator): For pointer result type accumulate in
19681 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
19683 * configure.ac: Add backslashes missing from the last change.
19684 * configure: Regenerate.
19686 2013-08-22 Jan Hubicka <jh@susue.cz>
19688 * ipa.c (function_and_variable_visibility): First remember function
19689 was global and then make it local.
19691 2013-08-22 Julian Brown <julian@codesourcery.com>
19693 * configure.ac: Add aarch64 to list of arches which use "nop" in
19695 * configure: Regenerate.
19697 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19699 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
19700 gnu_libc_has_function.
19701 * config/s390/tpf.h: Likewise.
19703 2013-08-22 Jan Hubicka <jh@susue.cz>
19705 * timevar.c (validate_phases): Add cast.
19707 2013-08-22 Jan Hubicka <jh@susue.cz>
19709 * timevar.c (validate_phases): Use size_t for memory.
19710 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
19712 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
19714 * pretty-print.h (output_buffer::output_buffer): Declare.
19715 (pretty_printer::pretty_printer): Likewise.
19716 (pp_construct): Remove.
19717 * pretty-print.c (output_buffer::output_buffer): Define.
19718 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
19719 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
19720 (print_gimple_expr): Likewise.
19721 (print_gimple_seq): Likewise.
19722 (gimple_dump_bb): Likewise.
19723 * sched-vis.c (dump_value_slim): Likewise.
19724 (dump_insn_slim): Likewise.
19725 (dump_rtl_slim): Likewise.
19726 (str_pattern_slim): Likewise.
19727 * tree-mudflap.c (mf_varname_tree): Likewise.
19728 * graph.c (print_graph_cfg): Likewise.
19729 (start_graph_dump): Likewise.
19730 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
19732 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
19733 pretty printer initialization.
19734 * coretypes.h (diagnostic_context): Remove superflous type alias
19736 (pretty_printer): Likewise. Declare directly as a class.
19737 (pretty_print_info): Remove declaration as class.
19738 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
19739 and pp_clear_output_area.
19740 (asan_add_global): Likewise.
19742 2013-08-22 Jan Hubicka <jh@suse.cz>
19744 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
19745 * ipa-utils.h (update_type_inheritance_graph): Declare.
19746 (possible_polymorphic_call_target_p): Declare.
19747 (possible_polymorphic_call_target_p): New.
19748 * ipa-devirt.c: Update toplevel comments.
19749 (cached_polymorphic_call_targets): Move up.
19750 (odr_type_d): Move ID down.
19751 (polymorphic_type_binfo_p): Update comment.
19752 (odr_hasher::remove): Likewise;
19753 (get_odr_type): Set anonymous_namespace.
19754 (dump_odr_type): Dump it.
19755 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
19756 (maybe_record_node): Record node in cached_polymorphic_call_targets.
19757 (record_binfo): Add comment.
19758 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
19760 (devirt_node_removal_hook): Do not iCE when cache is freed.
19761 (possible_polymorphic_call_target_p): New predicate.
19762 (update_type_inheritance_graph): New function.
19764 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
19765 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19766 Sergey Lega <sergey.s.lega@intel.com>
19767 Anna Tikhonova <anna.tikhonova@intel.com>
19768 Ilya Tocar <ilya.tocar@intel.com>
19769 Andrey Turetskiy <andrey.turetskiy@intel.com>
19770 Ilya Verbin <ilya.verbin@intel.com>
19771 Kirill Yukhin <kirill.yukhin@intel.com>
19772 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19774 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
19775 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
19776 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
19777 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
19778 (OPTION_MASK_ISA_AVX2_UNSET): Update.
19779 (OPTION_MASK_ISA_AVX512F_UNSET): New.
19780 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
19781 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
19782 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
19783 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
19784 OPT_mavx512pf, OPT_mavx512er cases.
19785 * config/i386/constraints.md (v): New constraint.
19786 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
19787 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
19788 (bit_AVX512CD): New.
19789 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19790 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
19791 * config/i386/i386-c.c (ix86_target_macros_internal):
19792 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
19794 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
19795 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
19796 * config/i386/i386.c (regclass_map, dbx_register_map)
19797 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
19798 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
19799 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
19800 -mavx512pf options.
19801 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
19802 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
19803 -mavx512pf options. Fix formatting.
19804 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
19805 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
19806 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
19807 -mavx512cd, -mavx512pf options.
19808 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
19809 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
19810 (ix86_preferred_output_reload_class): Replace SSE_REGS with
19812 (ix86_hard_regno_mode_ok): Support 512-bit registers.
19813 (ix86_set_reg_reg_cost): Ditto.
19814 (x86_order_regs_for_local_alloc): Ditto.
19815 (MAX_VECT_LEN): Extend to 64-byte.
19816 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
19817 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
19818 (TARGET_AVX512ER, TARGET_AVX512CD): New.
19819 (BIGGEST_ALIGNMENT): Extend to 512-bits.
19820 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
19821 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
19822 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
19823 (SSE_REG_MODE_P): Support new modes.
19824 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
19825 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
19826 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
19827 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
19828 (REG_CLASS_CONTENTS): Add new registers.
19829 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
19830 (EXT_REX_SSE_REGNO_P): New.
19831 (HI_REGISTER_NAMES): Add new registers.
19832 * config/i386/i386.md: Define constants for new registers.
19833 (mode): Add new 512-bit modes.
19834 (prefix): Support evex prefix.
19835 (isa): Support avx512f, noavx512f, fma_avx512f.
19836 (ssemodesuffix): Add new 512-bit modes.
19838 (*movxi_internal_avx512f): Ditto.
19839 (*movdi_internal): Replace constraint "x" with the new constraint "v".
19841 (*movsi_internal): Likewise.
19842 (*movdf_internal): Likewise.
19843 (*movsf_internal): Likewise.
19844 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
19845 (<code><mode>3): Likewise.
19846 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
19848 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
19849 with the new constraint "v".
19850 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
19852 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
19853 with the new constraint "v".
19854 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
19855 (<sse2>_storedqu<avxsizesuffix>): Likewise.
19856 (*<plusminus_insn><mode>3): Likewise.
19857 (<sse>_vm<plusminus_insn><mode>3): Likewise.
19858 (*mul<mode>3): Likewise.
19859 (<sse>_vmmul<mode>3): Likewise.
19860 (<sse>_div<mode>3): Likewise.
19861 (<sse>_vmdiv<mode>3): Likewise.
19862 (<sse>_sqrt<mode>2): Likewise.
19863 (<sse>_vmsqrt<mode>2): Likewise.
19864 (*<code><mode>3_finite): Likewise.
19865 (*<code><mode>3) <smaxmin>: Likewise.
19866 (<sse>_vm<code><mode>3): Likewise.
19867 (*<code><mode>3) <any_logic>: Likewise.
19868 (*fma_fmadd_<mode>): Likewise.
19869 (*fma_fmsub_<mode>): Likewise.
19870 (*fma_fnmadd_<mode>): Likewise.
19871 (*fma_fnmsub_<mode>): Likewise.
19872 (*fma_fmaddsub_<mode>): Likewise.
19873 (*fma_fmsubadd_<mode>): Likewise.
19874 (*fmai_fmadd_<mode>): Likewise.
19875 (*fmai_fmsub_<mode>): Likewise.
19876 (*fmai_fnmadd_<mode>): Likewise.
19877 (*fmai_fnmsub_<mode>): Likewise.
19878 (sse_cvtsi2ss): Likewise.
19879 (sse_cvtsi2ssq): Likewise.
19880 (sse_cvtss2si): Likewise.
19881 (sse_cvtss2si_2): Likewise.
19882 (sse_cvtss2siq): Likewise.
19883 (sse_cvtss2siq_2): Likewise.
19884 (sse_cvttss2si): Likewise.
19885 (sse_cvtss2siq_2): Likewise.
19886 (float<sseintvecmodelower><mode>2): Likewise.
19887 (sse2_cvtsd2si_2): Likewise.
19888 (sse2_cvtsd2siq_2): Likewise.
19889 (*<plusminus_insn><mode>3): Likewise.
19890 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
19891 (*<sse4_1_avx2>_mul<mode>3): Likewise.
19892 (ashr<mode>3): Likewise.
19893 (<shift_insn><mode>3): Likewise.
19894 (avx2_<code><mode>3): Likewise.
19895 (*avx2_<code><mode>3): Likewise.
19896 (*andnot<mode>3): Likewise.
19897 (*<code><mode>3) <any_logic>: Likewise.
19898 (abs<mode>2): Likewise.
19899 (avx2_permvar<mode>): Likewise.
19900 (avx2_perm<mode>_1): Likewise.
19901 (*avx_vpermilp<mode>): Likewise.
19902 (avx_vpermilvar<mode>3): Likewise.
19903 (avx2_ashrv<mode>): Likewise.
19904 (avx2_<shift_insn>v<mode>): Likewise.
19905 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
19907 * doc/rtl.texi: Document XImode.
19909 2013-08-21 Jeff Law <law@redhat.com>
19911 * tree-flow.h (register_jump_thread): Pass vector of edges
19912 instead of each important edge.
19913 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
19914 thread path into a vector and pass that to register_jump_thread.
19915 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
19916 passed in edge vector to the current 3-edge form.
19919 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
19921 * dce.c (fini_dce): Call df_analyze again just in case
19922 delete_unmarked_insns removed anything.
19924 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
19926 * reload.h (struct reg_equivs): Rename to ..
19927 (struct reg_equivs_s): .. this.
19929 2013-08-20 Martin Liska <marxin.liska@gmail.com>
19931 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
19933 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19935 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
19937 2013-08-21 Jeff Law <law@redhat.com>
19939 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
19940 simplify assignments too. If the RHS collapses to a singleton
19941 range, then return the value for the range.
19943 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
19945 * config/i386/sse.md (V16): Rename to...
19947 (mov<mode>): Update iterator name.
19948 (*mov<mode>_internal): Ditto.
19949 (push<mode>1): Ditto.
19950 (movmisalign<mode>): Ditto.
19952 2013-08-20 Jan Hubicka <jh@suse.cz>
19955 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
19956 entry for direct edges.
19957 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
19959 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19961 Revert my last two changes, r201865 and r201864:
19964 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19966 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
19967 instances can own GC refs.
19969 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
19970 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
19971 (gcc::context::gt_pch_nx): Likewise.
19972 (gcc::context::gt_pch_nx): Likewise.
19973 * ggc.h (gt_ggc_mx <T>): New.
19974 (gt_pch_nx_with_op <T>): New.
19975 (gt_pch_nx <T>): New.
19976 * passes.c (opt_pass::gt_ggc_mx): New.
19977 (opt_pass::gt_pch_nx): New.
19978 (opt_pass::gt_pch_nx_with_op): New.
19979 (pass_manager::gt_ggc_mx): New.
19980 (pass_manager::gt_pch_nx): New.
19981 (pass_manager::gt_pch_nx_with_op): New.
19982 (pass_manager::operator new): Use
19983 ggc_internal_cleared_alloc_stat rather than xcalloc.
19984 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
19985 (pass_manager::gt_ggc_mx): New.
19986 (pass_manager::gt_pch_nx): New.
19987 (pass_manager::gt_pch_nx_with_op): New.
19988 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
19989 (opt_pass::operator new): New.
19990 (opt_pass::gt_ggc_mx): New.
19991 (opt_pass::gt_pch_nx): New.
19992 (opt_pass::gt_pch_nx_with_op): New.
19995 2013-08-20 David Malcolm <dmalcolm@redhat.com>
19997 * Makefile.in (GTFILES): Add context.h.
19998 * context.c (gcc::context::operator new): New.
19999 (gcc::context::gt_ggc_mx): New.
20000 (gcc::context::gt_pch_nx): New.
20001 (gcc::context::gt_pch_nx): New.
20002 * context.h (gcc::context): Add GTY((user)) marking.
20003 (gcc::context::operator new): New.
20004 (gcc::context::gt_ggc_mx): New.
20005 (gcc::context::gt_pch_nx): New.
20006 (gcc::context::gt_pch_nx): New.
20007 (g): Add GTY marking.
20008 (gt_ggc_mx (gcc::context *)): New.
20009 (gt_pch_nx (gcc::context *)): New.
20010 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20011 void *cookie)): New.
20012 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20014 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
20016 * dce.c (fini_dce): Call df_analyze again just in case
20017 delete_unmarked_insns removed anything.
20019 2013-08-20 Teresa Johnson <tejohnson@google.com>
20021 PR rtl-optimizations/57451
20022 * final.c (reemit_insn_block_notes): Prevent lexical blocks
20023 from crossing split section boundaries.
20025 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
20027 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
20028 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
20029 with MULTLIB_DEFAULTS.
20031 2013-08-20 Nick Clifton <nickc@redhat.com>
20033 * target.def (narrow_volatile_bitfield): Note that the default
20034 value is false, not !TARGET_STRICT_ALIGN.
20035 * doc/tm.texi: Regenerate.
20037 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
20039 Fix LIB_SPEC for systems without libpthread.
20041 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
20042 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
20044 * config/i386/linux-common.h: Likewise.
20045 * config/mips/linux-common.h: Likewise.
20047 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20049 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
20052 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20054 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
20055 instances can own GC refs.
20057 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
20058 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
20059 (gcc::context::gt_pch_nx): Likewise.
20060 (gcc::context::gt_pch_nx): Likewise.
20061 * ggc.h (gt_ggc_mx <T>): New.
20062 (gt_pch_nx_with_op <T>): New.
20063 (gt_pch_nx <T>): New.
20064 * passes.c (opt_pass::gt_ggc_mx): New.
20065 (opt_pass::gt_pch_nx): New.
20066 (opt_pass::gt_pch_nx_with_op): New.
20067 (pass_manager::gt_ggc_mx): New.
20068 (pass_manager::gt_pch_nx): New.
20069 (pass_manager::gt_pch_nx_with_op): New.
20070 (pass_manager::operator new): Use
20071 ggc_internal_cleared_alloc_stat rather than xcalloc.
20072 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
20073 (pass_manager::gt_ggc_mx): New.
20074 (pass_manager::gt_pch_nx): New.
20075 (pass_manager::gt_pch_nx_with_op): New.
20076 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
20077 (opt_pass::operator new): New.
20078 (opt_pass::gt_ggc_mx): New.
20079 (opt_pass::gt_pch_nx): New.
20080 (opt_pass::gt_pch_nx_with_op): New.
20082 2013-08-20 David Malcolm <dmalcolm@redhat.com>
20084 * Makefile.in (GTFILES): Add context.h.
20085 * context.c (gcc::context::operator new): New.
20086 (gcc::context::gt_ggc_mx): New.
20087 (gcc::context::gt_pch_nx): New.
20088 (gcc::context::gt_pch_nx): New.
20089 * context.h (gcc::context): Add GTY((user)) marking.
20090 (gcc::context::operator new): New.
20091 (gcc::context::gt_ggc_mx): New.
20092 (gcc::context::gt_pch_nx): New.
20093 (gcc::context::gt_pch_nx): New.
20094 (g): Add GTY marking.
20095 (gt_ggc_mx (gcc::context *)): New.
20096 (gt_pch_nx (gcc::context *)): New.
20097 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
20098 void *cookie)): New.
20099 * gengtype.c (open_base_files) <ifiles>: Add context.h.
20101 2013-08-20 Alan Modra <amodra@gmail.com>
20104 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
20105 (rs6000_emit_epilogue): Likewise.
20107 2013-08-19 Dehao Chen <dehao@google.com>
20109 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
20111 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
20112 Jakub Jelinek <jakub@redhat.com>
20114 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
20115 (BUILT_IN_FABSD64): Likewise.
20116 (BUILT_IN_FABSD128): Likewise.
20117 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
20118 (fold_builtin_1): Likewise.
20119 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
20120 destination and source operands.
20121 (*abstd2_fpr): Likewise.
20122 (*nabstd2_fpr): Likewise.
20124 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
20126 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
20129 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
20131 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
20134 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
20136 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
20137 * builtins.c (default_libc_has_function): New.
20138 (gnu_libc_has_function): Ditto.
20139 (no_c99_libc_has_function): Ditto.
20140 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
20141 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
20142 (fold_builtin_sincos): Likewise.
20143 (fold_builtin_cexp): Likewise.
20144 * builtins.def (DEF_C94_BUILTIN): Likewise.
20145 (DEF_C99_BUILTIN): Likewise.
20146 (DEF_C99_C90RES_BUILTIN): Likewise.
20147 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
20148 definitions to using this define.
20149 * config/darwin-protos.h (darwin_libc_has_function): New.
20150 * config/darwin.c (darwin_libc_has_function): Ditto.
20151 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
20152 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
20153 * config/darwin.h: Ditto.
20154 * config/elfos.h: Ditto.
20155 * config/freebsd.h: Ditto.
20156 * config/i386/cygming.h: Ditto.
20157 * config/i386/djgpp.h: Ditto.
20158 * config/i386/i386-interix.h: Ditto.
20159 * config/microblaze/microblaze.h: Ditto.
20160 * config/mmix/mmix.h: Ditto.
20161 * config/gnu-user.h: Ditto.
20162 * config/ia64/hpux.h: Ditto.
20163 * config/pa/pa-hpux.h: Ditto.
20164 * config/pdp11/pdp11.h: Ditto.
20165 * config/picochip/picochip.h: Ditto.
20166 * config/linux.h: Ditto.
20167 * config/netbsd.h: Ditto.
20168 * config/openbsd.h: Ditto.
20169 * config/rs6000/aix43.h: Ditto.
20170 * config/rs6000/aix51.h: Ditto.
20171 * config/rs6000/aix52.h: Ditto.
20172 * config/rs6000/aix53.h: Ditto.
20173 * config/rs6000/aix61.h: Ditto.
20174 * config/rs6000/darwin.h: Ditto.
20175 * config/rs6000/linux.h: Ditto.
20176 * config/rs6000/linux64.h: Ditto.
20177 * config/s390/tpf.h: Ditto.
20178 * config/sol2-10.h: Ditto.
20179 * config/sol2.h: Ditto.
20180 * config/vms/vms.h: Ditto.
20181 * config/vxworks.h: Ditto.
20182 * config/linux-android.c (linux_android_libc_has_function):
20183 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
20184 * config/linux-protos.h (linux_android_libc_has_function):
20186 * config/i386/i386.c (ix86_libc_has_function): New.
20187 * config/i386/i386-protos.h
20188 (ix86_libc_has_function): New declaration.
20189 * config/i386/i386.md
20190 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
20191 ("isinf<mode>2): Likewise.
20192 * convert.c (convert_to_integer): Using new target hook
20193 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
20194 TARGET_C99_FUNCTIONS.
20195 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
20196 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
20197 * coretypes.h (function_class): New enum for different
20198 classes of functions.
20199 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
20200 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
20201 (TARGET_HAS_SINCOS): Likewise.
20202 (TARGET_LIBC_HAS_FUNCTION): New.
20203 * doc/tm.texi: Regenerated.
20204 * targhooks.h (default_libc_has_function): New declaration.
20205 (no_c99_libc_has_function): Ditto.
20206 (gnu_libc_has_function): Ditto.
20207 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
20208 and TARGET_HAS_SINCOS.
20210 2013-08-18 Jan Hubicka <jh@suse.cz>
20212 * Makeifle-in (ipa-devirt.o): New.
20213 (GTFILES): Add ipa-utils.h and ipa-devirt.c
20214 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
20215 (analyze_functions): Look into possible targets of polymorphic call.
20216 * dumpfile.c (dump_files): Add type-inheritance dump.
20217 * dumpfile.h (TDI_inheritance): New.
20218 * ipa-devirt.c: New file.
20219 * ipa-utils.h (odr_type_d): Forward declare.
20220 (odr_type): New type.
20221 (build_type_inheritance_graph): Declare.
20222 (possible_polymorphic_call_targets): Declare and introduce inline
20223 variant when only edge is pased.
20224 (dump_possible_polymorphic_call_targets): Likewise.
20225 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
20226 * tree.c (type_in_anonymous_namespace_p): Break out from ...
20227 (types_same_for_odr): ... here.
20228 * tree.h (type_in_anonymous_namespace_p): Declare.
20230 2013-08-18 Jakub Jelinek <jakub@redhat.com>
20232 PR tree-optimization/58006
20233 * tree-parloops.c (take_address_of): Don't ICE if get_name
20235 (eliminate_local_variables_stmt): Remove clobber stmts.
20237 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
20239 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
20240 error message is issued for an alias to undefined symbol.
20242 2013-08-18 Jan Hubicka <jh@suse.cz>
20244 * cgraph.c (cgraph_create_indirect_edge): Discover
20245 polymorphic calls and record basic info into indirect_info.
20246 * gimple-fold.c (gimple_fold_call): When doing BINFO based
20247 devirtualization, ignore objc function calls.
20248 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
20249 call with no parm index info.
20250 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
20251 * tree.c (virtual_method_call_p): New function.
20252 * tree.h (virtual_method_call_p): Declare.
20254 2013-08-16 Jan Hubicka <jh@suse.cz>
20256 PR middle-end/58179
20257 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
20259 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
20261 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
20264 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20266 * gengtype.c (type_for_name): Add special-case support for
20267 locating types within the "gcc::" namespace.
20268 (open_base_files): Emit a "using namespace gcc" directive.
20270 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
20273 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
20274 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
20276 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
20277 array instead of each individual operand as a separate argument.
20278 (emit_fusion_gpr_load): Likewise.
20279 (expand_fusion_gpr_load): Add new function declaration.
20281 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
20282 signature to have the operands passed as an array, instead of as
20283 separate arguments. Allow ZERO_EXTEND to be in the memory
20284 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
20285 depend on the register live/dead flags when peepholes are run.
20286 (expand_fusion_gpr_load): New function to be called from the
20287 peephole2 pass, to change the register that addis sets to be the
20289 (emit_fusion_gpr_load): Change the calling signature to have the
20290 operands passed as an array, instead of as separate arguments.
20291 Allow ZERO_EXTEND to be in the memory address, and also
20292 SIGN_EXTEND if -mpower8-fusion-sign.
20294 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
20295 unspec enumeration.
20296 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
20297 adjust the register addis loads up in the peephole2 pass. Do not
20298 depend on the register live/dead state when the peephole pass is done.
20300 2013-08-16 David Malcolm <dmalcolm@redhat.com>
20302 * gengtype.c (create_user_defined_type): Ensure that the kind
20303 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
20304 declaration is seen before the GTY((user)) marking.
20306 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20309 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
20311 2013-08-16 Jan Hubicka <jh@suse.cz>
20313 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
20314 arugment expected_type.
20315 (gimple_fold_call): Use it.
20316 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
20317 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
20318 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
20319 (try_make_edge_direct_virtual_call): Likewise.
20320 * tree.c (obj_type_ref_class): New.
20321 * tree.h (obj_type_ref_class): Use it.
20323 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
20325 * sched-vis.c (rtl_slim_pp_initialized): Remove.
20326 (rtl_slim_pp): Likewise.
20327 (init_rtl_slim_pretty_print): Likewise.
20328 (dump_value_slim): Don't call it. Use local pretty printer.
20329 (dump_insn_slim): Likewise.
20330 (dump_rtl_slim): Likewise.
20331 (str_pattern_slim): Likewise.
20332 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
20335 2013-08-16 Jakub Jelinek <jakub@redhat.com>
20337 PR tree-optimization/58164
20338 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
20339 walk gimple_goto_dest of GIMPLE_GOTO.
20341 PR tree-optimization/58165
20342 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
20343 bi_call must be the last stmt in a bb, don't split_block, instead
20344 use fallthru edge from it and give up if there is none.
20345 Release conds vector when returning early.
20347 2013-08-14 Xinliang David Li <davidxl@google.com>
20349 * config/i386/i386.c (ix86_option_override_internal):
20350 Remove unused variable and field.
20352 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20355 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
20356 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
20357 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
20358 and Linux, correct BLKmode alignment when 128-bit alignment is
20359 required and compatibility flag is not set.
20360 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
20361 for zero-size arguments when compatibility flag is not set.
20363 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20365 PR tree-optimization/58145
20366 * tree-sra.c (build_ref_for_offset): If prev_base has
20367 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
20369 2013-08-14 Xinliang David Li <davidxl@google.com>
20371 * config/i386/i386.c (ix86_option_override_internal):
20372 Fix uninitialized variable error.
20374 2013-08-14 Xinliang David Li <davidxl@google.com>
20376 * config/i386/i386.opt: Define two new options.
20377 * config/i386/x86-tune.def: Add arch selector field in macros.
20378 * config/i386/i386.h: Adjust macro definition.
20379 * config/i386/i386.c (ix86_option_override_internal):
20381 (parse_mtune_ctrl_str): New function.
20382 (set_ix86_tune_features): New function.
20383 (ix86_function_specific_restore): Call the new helper function.
20385 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
20387 PR rtl-optimization/57662
20388 * sel-sched.c (code_motion_process_successors): When the current insn
20389 is removed after the recursive traversal, break from the loop.
20390 Add comments and debug printouts.
20392 2013-08-14 Jakub Jelinek <jakub@redhat.com>
20393 Alexandre Oliva <aoliva@redhat.com>
20396 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
20397 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
20398 there also UNSPEC_PLTOFF.
20400 2013-08-14 Marek Polacek <polacek@redhat.com>
20402 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
20403 NUM_CONDITIONS bit positions.
20405 2013-08-13 Cary Coutant <ccoutant@google.com>
20407 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
20408 (attr_checksum): Hash vector contents instead of pointer.
20409 (attr_checksum_ordered): Likewise.
20411 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
20413 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
20414 when Pmode != word_mode. Add length_address attribute.
20415 (sse3_monitor_<mode>): Merge from sse3_monitor and
20416 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
20417 Pmode != word_mode. Update insn length attribute.
20418 * config/i386/i386.c (ix86_option_override_internal): Update
20419 ix86_gen_monitor selection for merged sse3_monitor insn.
20421 2013-08-13 Julian Brown <julian@codesourcery.com>
20423 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
20424 perform invalid legitimization on greater-than-word-size modes for
20425 TARGET_E500_DOUBLE.
20427 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
20429 * ira.c (setup_class_translate_array): Use aclass instead of cl
20430 for classes not fully covered by allocno classes.
20432 2013-08-13 Jakub Jelinek <jakub@redhat.com>
20434 PR tree-optimization/57661
20435 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
20436 * tree-inline.c (tree_function_versioning): Initialize it.
20437 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
20438 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
20439 that is not being copied.
20442 * asan.c (instrument_strlen_call): Fix typo in comment.
20443 Use char * type even for the lhs of POINTER_PLUS_EXPR.
20445 2013-08-13 Steve Ellcey <sellcey@mips.com>
20447 * config/mips/mips.md (prefetch): Use lw instead of ld on
20448 loongson in 32bit mode.
20450 2013-08-13 Nick Clifton <nickc@redhat.com>
20452 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
20454 2013-08-13 Jan Hubicka <jh@suse.cz>
20456 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
20457 introduced edge; fix typo in sanity check.
20458 (cgraph_resolve_speculation): Export; improve diagnostic.
20459 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
20460 speculation at type mismatch.
20461 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
20462 (cgraph_resolve_speculation): Declare.
20463 (symtab_can_be_discarded): New function.
20464 * value-prof.c (gimple_ic_transform): Remove actual transform code.
20465 * ipa-inline-transform.c (speculation_removed): New global var.
20466 (clone_inlined_nodes): See if speculation can be removed.
20467 (inline_call): If speculations was removed, we growths may not match.
20468 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
20469 (speculation_useful_p): New function.
20470 (resolve_noninline_speculation): New function.
20471 (inline_small_functions): Resolve useless speculations.
20472 * ipa-inline.h (speculation_useful_p): Declare
20473 * ipa.c (can_replace_by_local_alias): Simplify.
20474 (ipa_profile): Produce speculative calls in non-lto, too;
20475 add simple cost model; produce local aliases.
20477 2013-08-13 David Malcolm <dmalcolm@redhat.com>
20479 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
20482 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
20484 * config/i386/i386.c (ix86_function_versions): Use error + inform.
20486 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
20488 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
20489 iterator instead of X87MODEF.
20491 2013-08-12 Perez Read <netfirewall@gmail.com>
20494 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
20495 operand 0 for intel asm alternative.
20496 (*movabs<mode>_2): Ditto for operand 1.
20498 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
20500 * config/aarch64/arm_none.h
20501 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
20503 2013-08-12 Nick Clifton <nickc@redhat.com>
20505 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
20507 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
20509 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
20510 expand for QI/HImode operand to produce more effictive code for
20511 unsigned char(short) --> float(double) conversion.
20513 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
20515 * doc/invoke.texi: Mention that -ftls-model does not force the final
20518 2013-08-12 Marek Polacek <polacek@redhat.com>
20519 Marc Glisse <marc.glisse@inria.fr>
20521 PR tree-optimization/57980
20522 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
20523 when creating -1 constant.
20525 2013-08-10 Jan Hubicka <jh@suse.cz>
20527 Workaround binutils PR14342.
20528 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
20529 (gimple_init_edge_profiler): Likewise.
20530 (gimple_gen_ic_func_profiler): Likewise.
20532 2013-08-09 Jan Hubicka <jh@suse.cz>
20534 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
20536 2013-08-09 Xinliang David Li <davidxl@google.com>
20538 * config/i386/stringop.def: New file.
20539 * config/i386/stringop.opt: New file.
20540 * config/i386/i386-opts.h: Include stringopt.def.
20541 * config/i386/i386.opt: Include stringopt.opt.
20542 * config/i386/i386.c (ix86_option_override_internal):
20543 Override default size based stringop inline strategies with options.
20544 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
20547 2013-08-09 Jan Hubicka <jh@suse.cz>
20549 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
20551 2013-08-09 Jan Hubicka <jh@suse.cz>
20553 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
20555 (dump_cgraph_node): Dump profile-id.
20556 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
20557 and common_target_probability.
20558 * lto-cgraph.c (lto_output_edge): Stream common targets.
20559 (lto_output_node): Stream profile ids.
20560 (input_node): Stream profile ids.
20561 (input_edge): Stream common targets.
20562 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
20563 * ipa.c: Include value-prof.h
20564 (ipa_profile_generate_summary): Turn indirect call statement histograms
20565 into common targets.
20566 (ipa_profile): Turn common targets into speculative edges.
20568 2013-08-09 Jan Hubicka <jh@suse.cz>
20570 * cgraph.h (cgraph_node): Add profile_id.
20571 * value-prof.c (cgraph_node_map): Turn into pointer_map.
20572 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
20573 (del_node_map): Update.
20574 (find_func_by_funcdef_no): Replace by ...
20575 (find_func_by_profile_id): ... this one.
20576 (gimple_ic_transform): Do not remove useful histograms when
20577 speculation is not done; dump info when indirect call removal
20579 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
20580 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
20581 (__gcov_indirect_call_profiler_v2): .. this one.
20582 * profile.h (init_node_map): Update.
20583 * coverage.c (coverage_compute_profile_id): New function.
20584 * coverage.h (coverage_compute_profile_id): Declare.
20585 * tree-profile.c (init_ic_make_global_vars): Make
20586 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
20587 (gimple_init_edge_profiler): Update prototype of
20588 __gcov_indirect_call_profiler.
20589 (gimple_gen_ic_func_profiler): Simplify.
20590 (tree_profiling): Use init_node_map
20592 2013-08-09 Jan Hubicka <jh@suse.cz>
20594 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
20595 non-speculative refs.
20596 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
20597 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
20598 (cgraph_set_call_stmt): Likewise.
20599 (cgraph_create_edge_1): Fix release checking compilatoin;
20600 clear lto_stmt_uid.
20601 (cgraph_free_edge): Free indirect info.
20602 (cgraph_turn_edge_to_speculative): New function.
20603 (cgraph_speculative_call_info): New function.
20604 (cgraph_make_edge_direct): Return direct edge; handle speculation.
20605 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
20606 (dump_cgraph_node): Dump speculation.
20607 (verify_edge_count_and_frequency): Accept speculative edges.
20608 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
20609 (verify_cgraph_node): Handle speculation.
20610 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
20611 (cgraph_set_call_stmt): Update prototype.
20612 (cgraph_make_edge_direct): Update prototype.
20613 (cgraph_speculative_call_info): Declare.
20614 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
20615 to change; update call of ipa_find_references.
20616 * ipa-ref.c (ipa_record_reference): Fix return value; clear
20617 lto_stmt_uid and speculative flags.
20618 (ipa_dump_references): Dump speculation.
20619 (ipa_clone_references): Clone speculative flag.
20620 (ipa_clone_referring): Likewise.
20621 (ipa_clone_ref): New function.
20622 (ipa_find_reference): Look into lto_stmt_uids
20623 (ipa_clear_stmts_in_references): Do not clear speculative calls.
20624 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
20625 (ipa_find_reference): Update declaration.
20626 (ipa_clone_ref): Declare.
20627 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
20628 stream speculative flag.
20629 (lto_output_ref): Stream statements uids and speculation.
20630 (input_ref): Likewise.
20631 (input_edge): Stream speuclation.
20632 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
20633 (cgraph_set_call_stmt_including_clones): Handle speculation.
20634 * ipa-inline.c (heap_edge_removal_hook): New function.
20635 (inline_small_functions): Register it.
20636 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
20637 also initialize refs.
20638 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
20640 (try_make_edge_direct_simple_call): Likewise.
20641 (try_make_edge_direct_simple_call): Likewise.
20642 (update_indirect_edges_after_inlining): Likewise.
20643 (remove_described_reference): Look proper lto_stmt_uid.
20644 (propagate_controlled_uses): Likewise.
20645 (propagate_controlled_uses): Liekwise.
20646 * tree-inline.c (copy_bb): Copy speculative edges.
20647 (redirect_all_calls): New function.
20648 (copy_cfg_body): Do redirection after loop info is updated.
20649 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
20651 2013-08-09 Jan Hubicka <jh@suse.cz>
20653 * lto-streamer-out.c (output_function): Renumber PHIs.
20654 * lto-streamer-in.c (input_function): Likewise.
20656 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
20658 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
20659 (get_lane_unsigned): Likewise.
20660 (dup_lane_scalar): Likewise.
20661 (get_lane): enable for VALL.
20662 * config/aarch64/aarch64-simd.md
20663 (aarch64_dup_lane_scalar<mode>): Remove.
20664 (aarch64_get_lane_signed<mode>): Likewise.
20665 (aarch64_get_lane_unsigned<mode>): Likewise.
20666 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
20667 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
20668 (aarch64_get_lane<mode>): Enable for all vector modes.
20669 (aarch64_get_lanedi): Remove misleading constraints.
20670 * config/aarch64/arm_neon.h
20671 (__aarch64_vget_lane_any): Define.
20672 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
20673 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
20674 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
20675 * config/aarch64/iterators.md (VDQQH): New.
20676 (VDQQHS): Likewise.
20677 (vwcore): Likewise.
20679 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
20681 * configure.ac: Add GAS check for LEON instructions on SPARC.
20682 * configure: Regenerate.
20683 * config.in: Likewise.
20684 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
20686 * config/sparc/sparc.opt (LEON, LEON3): New masks.
20687 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
20689 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
20690 (AS_LEON_FLAG): New macro.
20691 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
20692 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
20693 Deal with LEON and LEON3 for the memory model.
20694 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
20695 (atomic_compare_and_swap<mode>_1): Likewise.
20696 (*atomic_compare_and_swap<mode>_1): Likewise.
20698 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20700 * config/arm/neon.md (vcond): Fix floating-point vector
20701 comparisons against 0.
20703 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
20705 * lra-constraints.c (emit_spill_move): Remove assert.
20706 (process_alt_operands): Add more debugging
20707 output. Increase reject for spilling into memory. Decrease
20708 reject for reloading scratch.
20709 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
20711 2013-08-08 Steve Ellcey <sellcey@mips.com>
20713 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
20714 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
20715 micromips incompatible. Add nan2008.
20716 (MULTILIB_DIRNAMES): Add nan2008.
20717 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
20718 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
20719 and micromips incompatible. Add nan2008.
20720 (MULTILIB_DIRNAMES): Add nan2008.
20721 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
20723 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
20725 PR rtl-optimization/58079
20726 * combine.c (combine_simplify_rtx): Avoid using SUBST if
20727 simplify_comparison has widened a comparison with an integer.
20729 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20731 * config/arm/neon.md (movmisalign<mode>): Disable when we
20732 don't allow unaligned accesses.
20733 (*movmisalign<mode>_neon_store): Likewise.
20734 (*movmisalign<mode>_neon_load): Likewise.
20735 (*movmisalign<mode>_neon_store): Likewise.
20736 (*movmisalign<mode>_neon_load): Likewise.
20738 2013-08-08 Jan Hubicka <jh@suse.cz>
20740 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
20741 (make_pass_rebuild_cgraph_edges): Also clear references.
20742 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
20743 * ipa-inline-transform.c (inline_transform): Remove all references
20745 * cgraphunit.c (expand_function): Remove all references after
20747 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
20748 (ipa_find_reference): Rewrite to iterator.
20749 (remove_stmt_references): Likewise.
20750 (ipa_clear_stmts_in_references): New function.
20751 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
20752 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
20754 * ipa-split.c (split_function): Remove references in split function.
20756 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
20759 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
20760 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
20762 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
20765 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
20766 suggested mode for the assignment isn't compatible with the
20767 registers required.
20769 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
20772 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
20774 2013-08-07 Xinliang David Li <davidxl@google.com>
20776 * config/i386/i386.opt: New option -mtune-ctrl=.
20777 * config/i386/x86-tune.def: New file.
20778 * config/i386/i386.h: include x86-tune.def.
20779 * config/i386/i386.c (ix86_option_override_internal):
20780 Parsing -mtune-ctrl= option and set tune features.
20782 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
20785 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
20786 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
20789 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
20791 * rtl.h (update_alignments): Declare.
20792 * final.c (grow_label_align): New function extracted from...
20793 (shorten_branches): ...here. Call it.
20794 (update_alignments): New function.
20795 * reorg.c (sibling_labels): New variable.
20796 (get_label_before): Add SIBLING parameter. If it is non-zero, push
20797 the new label along with it onto the sibling_labels vector.
20798 (fill_simple_delay_slots): Adjust call to get_label_before.
20799 (fill_slots_from_thread): Likewise.
20800 (relax_delay_slots): Likewise.
20801 (make_return_insns): Likewise.
20802 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
20804 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
20806 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
20807 document its semantics.
20808 (diagnostic_report_diagnostic): Adjust accordingly.
20810 2013-08-07 David Malcolm <dmalcolm@redhat.com>
20812 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
20813 (sparc_option_override): ...and port to new C++ pass API.
20814 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
20816 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
20818 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
20820 2013-08-06 Caroline Tice <cmtice@google.com>
20822 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
20823 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
20824 * tree-pass.h: Add pass_vtable_verify.
20825 * varasm.c (assemble_variable): Add code to properly set the comdat
20826 section and name for the .vtable_map_vars section.
20827 (assemble_vtyv_preinit_initializer): New function.
20828 (default_sectin_type_flags): Make sure .vtable_map_vars section has
20830 * output.h: Add function decl for assemble_vtv_preinit_initializer.
20831 * vtable-verify.c: New file.
20832 * vtable-verify.h: New file.
20833 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
20834 initialiation levels.
20835 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
20836 * passes.def: Insert pass_vtable_verify.
20837 * aclocal.m4: Reorder includes.
20838 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
20839 -fvtv-counts options.
20840 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
20841 as appropriate, if -fvtable-verify=... is used.
20842 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
20843 -fvtable-verify=... is used.
20844 * Makefile.in (OBJS): Add vtable-verify.o to list.
20845 (vtable-verify.o): Add new build rule.
20846 (GTFILES): Add vtable-verify.c to list.
20847 * common.opt (fvtable-verify=): New flag.
20848 (vtv_priority): Values for fvtable-verify= flag.
20849 (fvtv-counts): New flag.
20850 (fvtv-debug): New flag.
20851 * tree.h (save_vtable_map_decl): New extern function decl.
20853 2013-08-07 David Malcolm <dmalcolm@redhat.com>
20855 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
20856 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
20857 (pass_data_rl78_devirt): ...new pass_data instance and...
20858 (make_pass_rl78_devirt): ...new function.
20859 (rl78_asm_file_start): Port pass registration to new C++ API.
20861 2013-08-07 David Malcolm <dmalcolm@redhat.com>
20863 * coretypes.h (rtl_opt_pass): Add.
20864 (gcc::context): Add.
20865 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
20866 (epiphany_init): Port to new C++ pass API.
20867 (epiphany_optimize_mode_switching): Likewise.
20868 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
20869 (pass_manager::get_pass_mode_switching): New.
20870 (pass_manager::get_pass_peephole2): New.
20871 * mode-switching.c (pass_mode_switching): Add clone method.
20872 * recog.c (pass_peephole2): Add clone method.
20873 (pass_split_all_insns): Add clone method.
20875 2013-08-06 David Malcolm <dmalcolm@redhat.com>
20877 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
20878 (mips_option_override): ...here, porting to new C++ API for passes.
20880 2013-08-06 Jan Hubicka <jh@suse.cz>
20882 * cgraph.c (cgraph_get_body): New function based on lto.c
20884 * cgraph.h (cgraph_get_body): Declare.
20885 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
20887 * cgraphunit.c (expand_function): Get body prior expanding.
20888 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
20889 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
20891 * passes.c (do_per_function_toporder): Get body.
20892 * tree-inline.c (expand_call_inline): Get body prior inlining it.
20893 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
20895 2013-08-06 Martin Jambor <mjambor@suse.cz>
20898 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
20899 is not re-finalized. Rename second parameter to no_collect.
20901 2013-08-06 Martin Jambor <mjambor@suse.cz>
20903 PR middle-end/58041
20904 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
20905 MEM_REF has proper alignment information.
20907 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
20910 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
20912 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
20913 rtx (*) (rtx, ...) with insn_gen_fn.
20914 * genoutput.c (output_insn_data): Cast gen_? function pointers to
20915 insn_gen_fn::stored_funcptr. Add initializer braces.
20917 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20919 Rewrite how instances of passes are cloned to remove assumptions
20920 about their sizes (thus allowing pass subclasses to have
20921 additional data fields, albeit non-GC-managed ones at this point).
20923 * passes.c (make_pass_instance): Now that passes have clone
20924 methods, rewrite this function to eliminate XNEW and memcpy
20925 calls that used hardcoded sizes. Since this function no longer
20926 creates pass instances, rename it to...
20927 (add_pass_instance): ...this. Document the old way that passes were
20928 numbered and flagged, and rework this function to continue using it.
20929 (next_pass_1): Add an initial_pass argument for use by
20931 (position_pass): When adding multiple instances of a pass, use
20932 the pass's clone method, rather than relying on the XNEW/memcpy
20933 within the former make_pass_instance (now add_pass_instance).
20934 (pass_manager::pass_manager): When invoking next_pass_1, also supply
20935 the initial instance of the current pass within the pass manager.
20937 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20939 This is the automated part of the conversion of passes from C
20940 structs to C++ classes.
20942 Patch autogenerated by refactor_passes.py from
20943 https://github.com/davidmalcolm/gcc-refactoring-scripts
20944 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
20946 * asan.c (pass_asan): Convert from a global struct to a subclass of
20947 gimple_opt_pass along with...
20948 (pass_data_asan): ...new pass_data instance and...
20949 (make_pass_asan): ...new function.
20950 (pass_asan_O0): Convert from a global struct to a subclass of
20951 gimple_opt_pass along with...
20952 (pass_data_asan_O0): ...new pass_data instance and...
20953 (make_pass_asan_O0): ...new function.
20954 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
20955 subclass of rtl_opt_pass along with...
20956 (pass_data_inc_dec): ...new pass_data instance and...
20957 (make_pass_inc_dec): ...new function.
20958 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
20959 a subclass of rtl_opt_pass along with...
20960 (pass_data_reorder_blocks): ...new pass_data instance and...
20961 (make_pass_reorder_blocks): ...new function.
20962 (pass_duplicate_computed_gotos): Convert from a global struct to a
20963 subclass of rtl_opt_pass along with...
20964 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
20965 (make_pass_duplicate_computed_gotos): ...new function.
20966 (pass_partition_blocks): Convert from a global struct to a subclass of
20967 rtl_opt_pass along with...
20968 (pass_data_partition_blocks): ...new pass_data instance and...
20969 (make_pass_partition_blocks): ...new function.
20970 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
20971 struct to a subclass of rtl_opt_pass along with...
20972 (pass_data_branch_target_load_optimize1): ...new pass_data instance
20974 (make_pass_branch_target_load_optimize1): ...new function.
20975 (pass_branch_target_load_optimize2): Convert from a global struct to a
20976 subclass of rtl_opt_pass along with...
20977 (pass_data_branch_target_load_optimize2): ...new pass_data instance
20979 (make_pass_branch_target_load_optimize2): ...new function.
20980 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
20981 of rtl_opt_pass along with...
20982 (pass_data_jump): ...new pass_data instance and...
20983 (make_pass_jump): ...new function.
20984 (pass_jump2): Convert from a global struct to a subclass of
20985 rtl_opt_pass along with...
20986 (pass_data_jump2): ...new pass_data instance and...
20987 (make_pass_jump2): ...new function.
20988 * cfgexpand.c (pass_expand): Convert from a global struct to a
20989 subclass of rtl_opt_pass along with...
20990 (pass_data_expand): ...new pass_data instance and...
20991 (make_pass_expand): ...new function.
20992 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
20993 of rtl_opt_pass along with...
20994 (pass_data_free_cfg): ...new pass_data instance and...
20995 (make_pass_free_cfg): ...new function.
20996 (pass_into_cfg_layout_mode): Convert from a global struct to a
20997 subclass of rtl_opt_pass along with...
20998 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
20999 (make_pass_into_cfg_layout_mode): ...new function.
21000 (pass_outof_cfg_layout_mode): Convert from a global struct to a
21001 subclass of rtl_opt_pass along with...
21002 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
21003 (make_pass_outof_cfg_layout_mode): ...new function.
21004 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
21005 struct to a subclass of gimple_opt_pass along with...
21006 (pass_data_build_cgraph_edges): ...new pass_data instance and...
21007 (make_pass_build_cgraph_edges): ...new function.
21008 (pass_rebuild_cgraph_edges): Convert from a global struct to a
21009 subclass of gimple_opt_pass along with...
21010 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
21011 (make_pass_rebuild_cgraph_edges): ...new function.
21012 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
21013 subclass of gimple_opt_pass along with...
21014 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
21016 (make_pass_remove_cgraph_callee_edges): ...new function.
21017 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
21018 struct to a subclass of rtl_opt_pass along with...
21019 (pass_data_stack_adjustments): ...new pass_data instance and...
21020 (make_pass_stack_adjustments): ...new function.
21021 * combine.c (pass_combine): Convert from a global struct to a subclass
21022 of rtl_opt_pass along with...
21023 (pass_data_combine): ...new pass_data instance and...
21024 (make_pass_combine): ...new function.
21025 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
21026 global struct to a subclass of rtl_opt_pass along with...
21027 (pass_data_compare_elim_after_reload): ...new pass_data instance
21029 (make_pass_compare_elim_after_reload): ...new function.
21030 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
21031 of rtl_opt_pass along with...
21032 (pass_data_rtl_cprop): ...new pass_data instance and...
21033 (make_pass_rtl_cprop): ...new function.
21034 * cse.c (pass_cse): Convert from a global struct to a subclass of
21035 rtl_opt_pass along with...
21036 (pass_data_cse): ...new pass_data instance and...
21037 (make_pass_cse): ...new function.
21038 (pass_cse2): Convert from a global struct to a subclass of
21039 rtl_opt_pass along with...
21040 (pass_data_cse2): ...new pass_data instance and...
21041 (make_pass_cse2): ...new function.
21042 (pass_cse_after_global_opts): Convert from a global struct to a
21043 subclass of rtl_opt_pass along with...
21044 (pass_data_cse_after_global_opts): ...new pass_data instance and...
21045 (make_pass_cse_after_global_opts): ...new function.
21046 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
21047 of rtl_opt_pass along with...
21048 (pass_data_ud_rtl_dce): ...new pass_data instance and...
21049 (make_pass_ud_rtl_dce): ...new function.
21050 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
21051 rtl_opt_pass along with...
21052 (pass_data_fast_rtl_dce): ...new pass_data instance and...
21053 (make_pass_fast_rtl_dce): ...new function.
21054 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
21055 a subclass of rtl_opt_pass along with...
21056 (pass_data_df_initialize_opt): ...new pass_data instance and...
21057 (make_pass_df_initialize_opt): ...new function.
21058 (pass_df_initialize_no_opt): Convert from a global struct to a
21059 subclass of rtl_opt_pass along with...
21060 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
21061 (make_pass_df_initialize_no_opt): ...new function.
21062 (pass_df_finish): Convert from a global struct to a subclass of
21063 rtl_opt_pass along with...
21064 (pass_data_df_finish): ...new pass_data instance and...
21065 (make_pass_df_finish): ...new function.
21066 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
21067 rtl_opt_pass along with...
21068 (pass_data_rtl_dse1): ...new pass_data instance and...
21069 (make_pass_rtl_dse1): ...new function.
21070 (pass_rtl_dse2): Convert from a global struct to a subclass of
21071 rtl_opt_pass along with...
21072 (pass_data_rtl_dse2): ...new pass_data instance and...
21073 (make_pass_rtl_dse2): ...new function.
21074 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
21075 subclass of rtl_opt_pass along with...
21076 (pass_data_dwarf2_frame): ...new pass_data instance and...
21077 (make_pass_dwarf2_frame): ...new function.
21078 * except.c (pass_set_nothrow_function_flags): Convert from a global
21079 struct to a subclass of rtl_opt_pass along with...
21080 (pass_data_set_nothrow_function_flags): ...new pass_data instance
21082 (make_pass_set_nothrow_function_flags): ...new function.
21083 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
21084 subclass of rtl_opt_pass along with...
21085 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
21087 (make_pass_convert_to_eh_region_ranges): ...new function.
21088 * final.c (pass_compute_alignments): Convert from a global struct to a
21089 subclass of rtl_opt_pass along with...
21090 (pass_data_compute_alignments): ...new pass_data instance and...
21091 (make_pass_compute_alignments): ...new function.
21092 (pass_final): Convert from a global struct to a subclass of
21093 rtl_opt_pass along with...
21094 (pass_data_final): ...new pass_data instance and...
21095 (make_pass_final): ...new function.
21096 (pass_shorten_branches): Convert from a global struct to a subclass of
21097 rtl_opt_pass along with...
21098 (pass_data_shorten_branches): ...new pass_data instance and...
21099 (make_pass_shorten_branches): ...new function.
21100 (pass_clean_state): Convert from a global struct to a subclass of
21101 rtl_opt_pass along with...
21102 (pass_data_clean_state): ...new pass_data instance and...
21103 (make_pass_clean_state): ...new function.
21104 * function.c (pass_instantiate_virtual_regs): Convert from a global
21105 struct to a subclass of rtl_opt_pass along with...
21106 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
21107 (make_pass_instantiate_virtual_regs): ...new function.
21108 (pass_leaf_regs): Convert from a global struct to a subclass of
21109 rtl_opt_pass along with...
21110 (pass_data_leaf_regs): ...new pass_data instance and...
21111 (make_pass_leaf_regs): ...new function.
21112 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
21113 subclass of rtl_opt_pass along with...
21114 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
21116 (make_pass_thread_prologue_and_epilogue): ...new function.
21117 (pass_match_asm_constraints): Convert from a global struct to a
21118 subclass of rtl_opt_pass along with...
21119 (pass_data_match_asm_constraints): ...new pass_data instance and...
21120 (make_pass_match_asm_constraints): ...new function.
21121 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
21122 subclass of rtl_opt_pass along with...
21123 (pass_data_rtl_fwprop): ...new pass_data instance and...
21124 (make_pass_rtl_fwprop): ...new function.
21125 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
21126 rtl_opt_pass along with...
21127 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
21128 (make_pass_rtl_fwprop_addr): ...new function.
21129 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
21130 rtl_opt_pass along with...
21131 (pass_data_rtl_pre): ...new pass_data instance and...
21132 (make_pass_rtl_pre): ...new function.
21133 (pass_rtl_hoist): Convert from a global struct to a subclass of
21134 rtl_opt_pass along with...
21135 (pass_data_rtl_hoist): ...new pass_data instance and...
21136 (make_pass_rtl_hoist): ...new function.
21137 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
21138 subclass of gimple_opt_pass along with...
21139 (pass_data_lower_cf): ...new pass_data instance and...
21140 (make_pass_lower_cf): ...new function.
21141 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
21142 from a global struct to a subclass of gimple_opt_pass along with...
21143 (pass_data_strength_reduction): ...new pass_data instance and...
21144 (make_pass_strength_reduction): ...new function.
21145 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
21146 of rtl_opt_pass along with...
21147 (pass_data_rtl_ifcvt): ...new pass_data instance and...
21148 (make_pass_rtl_ifcvt): ...new function.
21149 (pass_if_after_combine): Convert from a global struct to a subclass of
21150 rtl_opt_pass along with...
21151 (pass_data_if_after_combine): ...new pass_data instance and...
21152 (make_pass_if_after_combine): ...new function.
21153 (pass_if_after_reload): Convert from a global struct to a subclass of
21154 rtl_opt_pass along with...
21155 (pass_data_if_after_reload): ...new pass_data instance and...
21156 (make_pass_if_after_reload): ...new function.
21157 * init-regs.c (pass_initialize_regs): Convert from a global struct to
21158 a subclass of rtl_opt_pass along with...
21159 (pass_data_initialize_regs): ...new pass_data instance and...
21160 (make_pass_initialize_regs): ...new function.
21161 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
21162 of ipa_opt_pass_d along with...
21163 (pass_data_ipa_cp): ...new pass_data instance and...
21164 (make_pass_ipa_cp): ...new function.
21165 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
21166 global struct to a subclass of gimple_opt_pass along with...
21167 (pass_data_inline_parameters): ...new pass_data instance and...
21168 (make_pass_inline_parameters): ...new function.
21169 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
21170 subclass of gimple_opt_pass along with...
21171 (pass_data_early_inline): ...new pass_data instance and...
21172 (make_pass_early_inline): ...new function.
21173 (pass_ipa_inline): Convert from a global struct to a subclass of
21174 ipa_opt_pass_d along with...
21175 (pass_data_ipa_inline): ...new pass_data instance and...
21176 (make_pass_ipa_inline): ...new function.
21177 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
21178 struct to a subclass of gimple_opt_pass along with...
21179 (pass_data_local_pure_const): ...new pass_data instance and...
21180 (make_pass_local_pure_const): ...new function.
21181 (pass_ipa_pure_const): Convert from a global struct to a subclass of
21182 ipa_opt_pass_d along with...
21183 (pass_data_ipa_pure_const): ...new pass_data instance and...
21184 (make_pass_ipa_pure_const): ...new function.
21185 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
21186 to a subclass of ipa_opt_pass_d along with...
21187 (pass_data_ipa_reference): ...new pass_data instance and...
21188 (make_pass_ipa_reference): ...new function.
21189 * ipa-split.c (pass_split_functions): Convert from a global struct to
21190 a subclass of gimple_opt_pass along with...
21191 (pass_data_split_functions): ...new pass_data instance and...
21192 (make_pass_split_functions): ...new function.
21193 (pass_feedback_split_functions): Convert from a global struct to a
21194 subclass of gimple_opt_pass along with...
21195 (pass_data_feedback_split_functions): ...new pass_data instance and...
21196 (make_pass_feedback_split_functions): ...new function.
21197 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
21198 global struct to a subclass of simple_ipa_opt_pass along with...
21199 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
21201 (make_pass_ipa_function_and_variable_visibility): ...new function.
21202 (pass_ipa_free_inline_summary): Convert from a global struct to a
21203 subclass of simple_ipa_opt_pass along with...
21204 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
21205 (make_pass_ipa_free_inline_summary): ...new function.
21206 (pass_ipa_whole_program_visibility): Convert from a global struct to a
21207 subclass of ipa_opt_pass_d along with...
21208 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
21210 (make_pass_ipa_whole_program_visibility): ...new function.
21211 (pass_ipa_profile): Convert from a global struct to a subclass of
21212 ipa_opt_pass_d along with...
21213 (pass_data_ipa_profile): ...new pass_data instance and...
21214 (make_pass_ipa_profile): ...new function.
21215 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
21216 ipa_opt_pass_d along with...
21217 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
21218 (make_pass_ipa_cdtor_merge): ...new function.
21219 * ira.c (pass_ira): Convert from a global struct to a subclass of
21220 rtl_opt_pass along with...
21221 (pass_data_ira): ...new pass_data instance and...
21222 (make_pass_ira): ...new function.
21223 (pass_reload): Convert from a global struct to a subclass of
21224 rtl_opt_pass along with...
21225 (pass_data_reload): ...new pass_data instance and...
21226 (make_pass_reload): ...new function.
21227 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
21228 subclass of rtl_opt_pass along with...
21229 (pass_data_cleanup_barriers): ...new pass_data instance and...
21230 (make_pass_cleanup_barriers): ...new function.
21231 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
21232 of rtl_opt_pass along with...
21233 (pass_data_loop2): ...new pass_data instance and...
21234 (make_pass_loop2): ...new function.
21235 (pass_rtl_loop_init): Convert from a global struct to a subclass of
21236 rtl_opt_pass along with...
21237 (pass_data_rtl_loop_init): ...new pass_data instance and...
21238 (make_pass_rtl_loop_init): ...new function.
21239 (pass_rtl_loop_done): Convert from a global struct to a subclass of
21240 rtl_opt_pass along with...
21241 (pass_data_rtl_loop_done): ...new pass_data instance and...
21242 (make_pass_rtl_loop_done): ...new function.
21243 (pass_rtl_move_loop_invariants): Convert from a global struct to a
21244 subclass of rtl_opt_pass along with...
21245 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
21246 (make_pass_rtl_move_loop_invariants): ...new function.
21247 (pass_rtl_unswitch): Convert from a global struct to a subclass of
21248 rtl_opt_pass along with...
21249 (pass_data_rtl_unswitch): ...new pass_data instance and...
21250 (make_pass_rtl_unswitch): ...new function.
21251 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
21252 subclass of rtl_opt_pass along with...
21253 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
21255 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21256 (pass_rtl_doloop): Convert from a global struct to a subclass of
21257 rtl_opt_pass along with...
21258 (pass_data_rtl_doloop): ...new pass_data instance and...
21259 (make_pass_rtl_doloop): ...new function.
21260 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
21261 a subclass of rtl_opt_pass along with...
21262 (pass_data_lower_subreg): ...new pass_data instance and...
21263 (make_pass_lower_subreg): ...new function.
21264 (pass_lower_subreg2): Convert from a global struct to a subclass of
21265 rtl_opt_pass along with...
21266 (pass_data_lower_subreg2): ...new pass_data instance and...
21267 (make_pass_lower_subreg2): ...new function.
21268 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
21269 struct to a subclass of ipa_opt_pass_d along with...
21270 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
21271 (make_pass_ipa_lto_gimple_out): ...new function.
21272 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
21273 of ipa_opt_pass_d along with...
21274 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
21275 (make_pass_ipa_lto_finish_out): ...new function.
21276 * mode-switching.c (pass_mode_switching): Convert from a global struct
21277 to a subclass of rtl_opt_pass along with...
21278 (pass_data_mode_switching): ...new pass_data instance and...
21279 (make_pass_mode_switching): ...new function.
21280 * modulo-sched.c (pass_sms): Convert from a global struct to a
21281 subclass of rtl_opt_pass along with...
21282 (pass_data_sms): ...new pass_data instance and...
21283 (make_pass_sms): ...new function.
21284 * omp-low.c (pass_expand_omp): Convert from a global struct to a
21285 subclass of gimple_opt_pass along with...
21286 (pass_data_expand_omp): ...new pass_data instance and...
21287 (make_pass_expand_omp): ...new function.
21288 (pass_lower_omp): Convert from a global struct to a subclass of
21289 gimple_opt_pass along with...
21290 (pass_data_lower_omp): ...new pass_data instance and...
21291 (make_pass_lower_omp): ...new function.
21292 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
21293 of gimple_opt_pass along with...
21294 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
21295 (make_pass_diagnose_omp_blocks): ...new function.
21296 * passes.c (pass_early_local_passes): Convert from a global struct to
21297 a subclass of simple_ipa_opt_pass along with...
21298 (pass_data_early_local_passes): ...new pass_data instance and...
21299 (make_pass_early_local_passes): ...new function.
21300 (pass_all_early_optimizations): Convert from a global struct to a
21301 subclass of gimple_opt_pass along with...
21302 (pass_data_all_early_optimizations): ...new pass_data instance and...
21303 (make_pass_all_early_optimizations): ...new function.
21304 (pass_all_optimizations): Convert from a global struct to a subclass
21305 of gimple_opt_pass along with...
21306 (pass_data_all_optimizations): ...new pass_data instance and...
21307 (make_pass_all_optimizations): ...new function.
21308 (pass_all_optimizations_g): Convert from a global struct to a subclass
21309 of gimple_opt_pass along with...
21310 (pass_data_all_optimizations_g): ...new pass_data instance and...
21311 (make_pass_all_optimizations_g): ...new function.
21312 (pass_rest_of_compilation): Convert from a global struct to a subclass
21313 of rtl_opt_pass along with...
21314 (pass_data_rest_of_compilation): ...new pass_data instance and...
21315 (make_pass_rest_of_compilation): ...new function.
21316 (pass_postreload): Convert from a global struct to a subclass of
21317 rtl_opt_pass along with...
21318 (pass_data_postreload): ...new pass_data instance and...
21319 (make_pass_postreload): ...new function.
21320 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
21321 subclass of rtl_opt_pass along with...
21322 (pass_data_gcse2): ...new pass_data instance and...
21323 (make_pass_gcse2): ...new function.
21324 * postreload.c (pass_postreload_cse): Convert from a global struct to
21325 a subclass of rtl_opt_pass along with...
21326 (pass_data_postreload_cse): ...new pass_data instance and...
21327 (make_pass_postreload_cse): ...new function.
21328 * predict.c (pass_profile): Convert from a global struct to a subclass
21329 of gimple_opt_pass along with...
21330 (pass_data_profile): ...new pass_data instance and...
21331 (make_pass_profile): ...new function.
21332 (pass_strip_predict_hints): Convert from a global struct to a subclass
21333 of gimple_opt_pass along with...
21334 (pass_data_strip_predict_hints): ...new pass_data instance and...
21335 (make_pass_strip_predict_hints): ...new function.
21336 * recog.c (pass_peephole2): Convert from a global struct to a subclass
21337 of rtl_opt_pass along with...
21338 (pass_data_peephole2): ...new pass_data instance and...
21339 (make_pass_peephole2): ...new function.
21340 (pass_split_all_insns): Convert from a global struct to a subclass of
21341 rtl_opt_pass along with...
21342 (pass_data_split_all_insns): ...new pass_data instance and...
21343 (make_pass_split_all_insns): ...new function.
21344 (pass_split_after_reload): Convert from a global struct to a subclass
21345 of rtl_opt_pass along with...
21346 (pass_data_split_after_reload): ...new pass_data instance and...
21347 (make_pass_split_after_reload): ...new function.
21348 (pass_split_before_regstack): Convert from a global struct to a
21349 subclass of rtl_opt_pass along with...
21350 (pass_data_split_before_regstack): ...new pass_data instance and...
21351 (make_pass_split_before_regstack): ...new function.
21352 (pass_split_before_sched2): Convert from a global struct to a subclass
21353 of rtl_opt_pass along with...
21354 (pass_data_split_before_sched2): ...new pass_data instance and...
21355 (make_pass_split_before_sched2): ...new function.
21356 (pass_split_for_shorten_branches): Convert from a global struct to a
21357 subclass of rtl_opt_pass along with...
21358 (pass_data_split_for_shorten_branches): ...new pass_data instance
21360 (make_pass_split_for_shorten_branches): ...new function.
21361 * ree.c (pass_ree): Convert from a global struct to a subclass of
21362 rtl_opt_pass along with...
21363 (pass_data_ree): ...new pass_data instance and...
21364 (make_pass_ree): ...new function.
21365 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
21366 subclass of rtl_opt_pass along with...
21367 (pass_data_stack_regs): ...new pass_data instance and...
21368 (make_pass_stack_regs): ...new function.
21369 (pass_stack_regs_run): Convert from a global struct to a subclass of
21370 rtl_opt_pass along with...
21371 (pass_data_stack_regs_run): ...new pass_data instance and...
21372 (make_pass_stack_regs_run): ...new function.
21373 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
21374 subclass of rtl_opt_pass along with...
21375 (pass_data_cprop_hardreg): ...new pass_data instance and...
21376 (make_pass_cprop_hardreg): ...new function.
21377 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
21378 subclass of rtl_opt_pass along with...
21379 (pass_data_reginfo_init): ...new pass_data instance and...
21380 (make_pass_reginfo_init): ...new function.
21381 * regmove.c (pass_regmove): Convert from a global struct to a subclass
21382 of rtl_opt_pass along with...
21383 (pass_data_regmove): ...new pass_data instance and...
21384 (make_pass_regmove): ...new function.
21385 * regrename.c (pass_regrename): Convert from a global struct to a
21386 subclass of rtl_opt_pass along with...
21387 (pass_data_regrename): ...new pass_data instance and...
21388 (make_pass_regrename): ...new function.
21389 * reorg.c (pass_delay_slots): Convert from a global struct to a
21390 subclass of rtl_opt_pass along with...
21391 (pass_data_delay_slots): ...new pass_data instance and...
21392 (make_pass_delay_slots): ...new function.
21393 (pass_machine_reorg): Convert from a global struct to a subclass of
21394 rtl_opt_pass along with...
21395 (pass_data_machine_reorg): ...new pass_data instance and...
21396 (make_pass_machine_reorg): ...new function.
21397 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
21398 of rtl_opt_pass along with...
21399 (pass_data_sched): ...new pass_data instance and...
21400 (make_pass_sched): ...new function.
21401 (pass_sched2): Convert from a global struct to a subclass of
21402 rtl_opt_pass along with...
21403 (pass_data_sched2): ...new pass_data instance and...
21404 (make_pass_sched2): ...new function.
21405 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
21406 to a subclass of rtl_opt_pass along with...
21407 (pass_data_stack_ptr_mod): ...new pass_data instance and...
21408 (make_pass_stack_ptr_mod): ...new function.
21409 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
21410 to a subclass of rtl_opt_pass along with...
21411 (pass_data_rtl_store_motion): ...new pass_data instance and...
21412 (make_pass_rtl_store_motion): ...new function.
21413 * tracer.c (pass_tracer): Convert from a global struct to a subclass
21414 of gimple_opt_pass along with...
21415 (pass_data_tracer): ...new pass_data instance and...
21416 (make_pass_tracer): ...new function.
21417 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
21418 to a subclass of gimple_opt_pass along with...
21419 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
21420 (make_pass_diagnose_tm_blocks): ...new function.
21421 (pass_lower_tm): Convert from a global struct to a subclass of
21422 gimple_opt_pass along with...
21423 (pass_data_lower_tm): ...new pass_data instance and...
21424 (make_pass_lower_tm): ...new function.
21425 (pass_tm_init): Convert from a global struct to a subclass of
21426 gimple_opt_pass along with...
21427 (pass_data_tm_init): ...new pass_data instance and...
21428 (make_pass_tm_init): ...new function.
21429 (pass_tm_mark): Convert from a global struct to a subclass of
21430 gimple_opt_pass along with...
21431 (pass_data_tm_mark): ...new pass_data instance and...
21432 (make_pass_tm_mark): ...new function.
21433 (pass_tm_edges): Convert from a global struct to a subclass of
21434 gimple_opt_pass along with...
21435 (pass_data_tm_edges): ...new pass_data instance and...
21436 (make_pass_tm_edges): ...new function.
21437 (pass_tm_memopt): Convert from a global struct to a subclass of
21438 gimple_opt_pass along with...
21439 (pass_data_tm_memopt): ...new pass_data instance and...
21440 (make_pass_tm_memopt): ...new function.
21441 (pass_ipa_tm): Convert from a global struct to a subclass of
21442 simple_ipa_opt_pass along with...
21443 (pass_data_ipa_tm): ...new pass_data instance and...
21444 (make_pass_ipa_tm): ...new function.
21445 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
21446 subclass of gimple_opt_pass along with...
21447 (pass_data_call_cdce): ...new pass_data instance and...
21448 (make_pass_call_cdce): ...new function.
21449 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
21450 subclass of gimple_opt_pass along with...
21451 (pass_data_build_cfg): ...new pass_data instance and...
21452 (make_pass_build_cfg): ...new function.
21453 (pass_split_crit_edges): Convert from a global struct to a subclass of
21454 gimple_opt_pass along with...
21455 (pass_data_split_crit_edges): ...new pass_data instance and...
21456 (make_pass_split_crit_edges): ...new function.
21457 (pass_warn_function_return): Convert from a global struct to a
21458 subclass of gimple_opt_pass along with...
21459 (pass_data_warn_function_return): ...new pass_data instance and...
21460 (make_pass_warn_function_return): ...new function.
21461 (pass_warn_function_noreturn): Convert from a global struct to a
21462 subclass of gimple_opt_pass along with...
21463 (pass_data_warn_function_noreturn): ...new pass_data instance and...
21464 (make_pass_warn_function_noreturn): ...new function.
21465 (pass_warn_unused_result): Convert from a global struct to a subclass
21466 of gimple_opt_pass along with...
21467 (pass_data_warn_unused_result): ...new pass_data instance and...
21468 (make_pass_warn_unused_result): ...new function.
21469 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
21470 a subclass of gimple_opt_pass along with...
21471 (pass_data_merge_phi): ...new pass_data instance and...
21472 (make_pass_merge_phi): ...new function.
21473 * tree-complex.c (pass_lower_complex): Convert from a global struct to
21474 a subclass of gimple_opt_pass along with...
21475 (pass_data_lower_complex): ...new pass_data instance and...
21476 (make_pass_lower_complex): ...new function.
21477 (pass_lower_complex_O0): Convert from a global struct to a subclass of
21478 gimple_opt_pass along with...
21479 (pass_data_lower_complex_O0): ...new pass_data instance and...
21480 (make_pass_lower_complex_O0): ...new function.
21481 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
21482 subclass of gimple_opt_pass along with...
21483 (pass_data_lower_eh): ...new pass_data instance and...
21484 (make_pass_lower_eh): ...new function.
21485 (pass_refactor_eh): Convert from a global struct to a subclass of
21486 gimple_opt_pass along with...
21487 (pass_data_refactor_eh): ...new pass_data instance and...
21488 (make_pass_refactor_eh): ...new function.
21489 (pass_lower_resx): Convert from a global struct to a subclass of
21490 gimple_opt_pass along with...
21491 (pass_data_lower_resx): ...new pass_data instance and...
21492 (make_pass_lower_resx): ...new function.
21493 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
21494 of gimple_opt_pass along with...
21495 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
21496 (make_pass_lower_eh_dispatch): ...new function.
21497 (pass_cleanup_eh): Convert from a global struct to a subclass of
21498 gimple_opt_pass along with...
21499 (pass_data_cleanup_eh): ...new pass_data instance and...
21500 (make_pass_cleanup_eh): ...new function.
21501 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
21502 to a subclass of simple_ipa_opt_pass along with...
21503 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
21504 (make_pass_ipa_lower_emutls): ...new function.
21505 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
21506 a subclass of gimple_opt_pass along with...
21507 (pass_data_if_conversion): ...new pass_data instance and...
21508 (make_pass_if_conversion): ...new function.
21509 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
21510 subclass of gimple_opt_pass along with...
21511 (pass_data_build_ssa): ...new pass_data instance and...
21512 (make_pass_build_ssa): ...new function.
21513 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
21514 global struct to a subclass of gimple_opt_pass along with...
21515 (pass_data_loop_distribution): ...new pass_data instance and...
21516 (make_pass_loop_distribution): ...new function.
21517 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
21518 subclass of gimple_opt_pass along with...
21519 (pass_data_mudflap_1): ...new pass_data instance and...
21520 (make_pass_mudflap_1): ...new function.
21521 (pass_mudflap_2): Convert from a global struct to a subclass of
21522 gimple_opt_pass along with...
21523 (pass_data_mudflap_2): ...new pass_data instance and...
21524 (make_pass_mudflap_2): ...new function.
21525 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
21526 subclass of gimple_opt_pass along with...
21527 (pass_data_mudflap_1): ...new pass_data instance and...
21528 (make_pass_mudflap_1): ...new function.
21529 (pass_mudflap_2): Convert from a global struct to a subclass of
21530 gimple_opt_pass along with...
21531 (pass_data_mudflap_2): ...new pass_data instance and...
21532 (make_pass_mudflap_2): ...new function.
21533 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
21534 gimple_opt_pass along with...
21535 (pass_data_nrv): ...new pass_data instance and...
21536 (make_pass_nrv): ...new function.
21537 (pass_return_slot): Convert from a global struct to a subclass of
21538 gimple_opt_pass along with...
21539 (pass_data_return_slot): ...new pass_data instance and...
21540 (make_pass_return_slot): ...new function.
21541 * tree-object-size.c (pass_object_sizes): Convert from a global struct
21542 to a subclass of gimple_opt_pass along with...
21543 (pass_data_object_sizes): ...new pass_data instance and...
21544 (make_pass_object_sizes): ...new function.
21545 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
21546 global struct to a subclass of gimple_opt_pass along with...
21547 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
21549 (make_pass_cleanup_cfg_post_optimizing): ...new function.
21550 (pass_fixup_cfg): Convert from a global struct to a subclass of
21551 gimple_opt_pass along with...
21552 (pass_data_fixup_cfg): ...new pass_data instance and...
21553 (make_pass_fixup_cfg): ...new function.
21554 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
21555 (make_pass_mudflap_1): ...new function.
21556 (pass_mudflap_2): Replace declaration with that of...
21557 (make_pass_mudflap_2): ...new function.
21558 (pass_asan): Replace declaration with that of...
21559 (make_pass_asan): ...new function.
21560 (pass_asan_O0): Replace declaration with that of...
21561 (make_pass_asan_O0): ...new function.
21562 (pass_tsan): Replace declaration with that of...
21563 (make_pass_tsan): ...new function.
21564 (pass_tsan_O0): Replace declaration with that of...
21565 (make_pass_tsan_O0): ...new function.
21566 (pass_lower_cf): Replace declaration with that of...
21567 (make_pass_lower_cf): ...new function.
21568 (pass_refactor_eh): Replace declaration with that of...
21569 (make_pass_refactor_eh): ...new function.
21570 (pass_lower_eh): Replace declaration with that of...
21571 (make_pass_lower_eh): ...new function.
21572 (pass_lower_eh_dispatch): Replace declaration with that of...
21573 (make_pass_lower_eh_dispatch): ...new function.
21574 (pass_lower_resx): Replace declaration with that of...
21575 (make_pass_lower_resx): ...new function.
21576 (pass_build_cfg): Replace declaration with that of...
21577 (make_pass_build_cfg): ...new function.
21578 (pass_early_tree_profile): Replace declaration with that of...
21579 (make_pass_early_tree_profile): ...new function.
21580 (pass_cleanup_eh): Replace declaration with that of...
21581 (make_pass_cleanup_eh): ...new function.
21582 (pass_sra): Replace declaration with that of...
21583 (make_pass_sra): ...new function.
21584 (pass_sra_early): Replace declaration with that of...
21585 (make_pass_sra_early): ...new function.
21586 (pass_early_ipa_sra): Replace declaration with that of...
21587 (make_pass_early_ipa_sra): ...new function.
21588 (pass_tail_recursion): Replace declaration with that of...
21589 (make_pass_tail_recursion): ...new function.
21590 (pass_tail_calls): Replace declaration with that of...
21591 (make_pass_tail_calls): ...new function.
21592 (pass_tree_loop): Replace declaration with that of...
21593 (make_pass_tree_loop): ...new function.
21594 (pass_tree_loop_init): Replace declaration with that of...
21595 (make_pass_tree_loop_init): ...new function.
21596 (pass_lim): Replace declaration with that of...
21597 (make_pass_lim): ...new function.
21598 (pass_tree_unswitch): Replace declaration with that of...
21599 (make_pass_tree_unswitch): ...new function.
21600 (pass_predcom): Replace declaration with that of...
21601 (make_pass_predcom): ...new function.
21602 (pass_iv_canon): Replace declaration with that of...
21603 (make_pass_iv_canon): ...new function.
21604 (pass_scev_cprop): Replace declaration with that of...
21605 (make_pass_scev_cprop): ...new function.
21606 (pass_empty_loop): Replace declaration with that of...
21607 (make_pass_empty_loop): ...new function.
21608 (pass_record_bounds): Replace declaration with that of...
21609 (make_pass_record_bounds): ...new function.
21610 (pass_graphite): Replace declaration with that of...
21611 (make_pass_graphite): ...new function.
21612 (pass_graphite_transforms): Replace declaration with that of...
21613 (make_pass_graphite_transforms): ...new function.
21614 (pass_if_conversion): Replace declaration with that of...
21615 (make_pass_if_conversion): ...new function.
21616 (pass_loop_distribution): Replace declaration with that of...
21617 (make_pass_loop_distribution): ...new function.
21618 (pass_vectorize): Replace declaration with that of...
21619 (make_pass_vectorize): ...new function.
21620 (pass_slp_vectorize): Replace declaration with that of...
21621 (make_pass_slp_vectorize): ...new function.
21622 (pass_complete_unroll): Replace declaration with that of...
21623 (make_pass_complete_unroll): ...new function.
21624 (pass_complete_unrolli): Replace declaration with that of...
21625 (make_pass_complete_unrolli): ...new function.
21626 (pass_parallelize_loops): Replace declaration with that of...
21627 (make_pass_parallelize_loops): ...new function.
21628 (pass_loop_prefetch): Replace declaration with that of...
21629 (make_pass_loop_prefetch): ...new function.
21630 (pass_iv_optimize): Replace declaration with that of...
21631 (make_pass_iv_optimize): ...new function.
21632 (pass_tree_loop_done): Replace declaration with that of...
21633 (make_pass_tree_loop_done): ...new function.
21634 (pass_ch): Replace declaration with that of...
21635 (make_pass_ch): ...new function.
21636 (pass_ccp): Replace declaration with that of...
21637 (make_pass_ccp): ...new function.
21638 (pass_phi_only_cprop): Replace declaration with that of...
21639 (make_pass_phi_only_cprop): ...new function.
21640 (pass_build_ssa): Replace declaration with that of...
21641 (make_pass_build_ssa): ...new function.
21642 (pass_build_alias): Replace declaration with that of...
21643 (make_pass_build_alias): ...new function.
21644 (pass_build_ealias): Replace declaration with that of...
21645 (make_pass_build_ealias): ...new function.
21646 (pass_dominator): Replace declaration with that of...
21647 (make_pass_dominator): ...new function.
21648 (pass_dce): Replace declaration with that of...
21649 (make_pass_dce): ...new function.
21650 (pass_dce_loop): Replace declaration with that of...
21651 (make_pass_dce_loop): ...new function.
21652 (pass_cd_dce): Replace declaration with that of...
21653 (make_pass_cd_dce): ...new function.
21654 (pass_call_cdce): Replace declaration with that of...
21655 (make_pass_call_cdce): ...new function.
21656 (pass_merge_phi): Replace declaration with that of...
21657 (make_pass_merge_phi): ...new function.
21658 (pass_split_crit_edges): Replace declaration with that of...
21659 (make_pass_split_crit_edges): ...new function.
21660 (pass_pre): Replace declaration with that of...
21661 (make_pass_pre): ...new function.
21662 (pass_profile): Replace declaration with that of...
21663 (make_pass_profile): ...new function.
21664 (pass_strip_predict_hints): Replace declaration with that of...
21665 (make_pass_strip_predict_hints): ...new function.
21666 (pass_lower_complex_O0): Replace declaration with that of...
21667 (make_pass_lower_complex_O0): ...new function.
21668 (pass_lower_complex): Replace declaration with that of...
21669 (make_pass_lower_complex): ...new function.
21670 (pass_lower_vector): Replace declaration with that of...
21671 (make_pass_lower_vector): ...new function.
21672 (pass_lower_vector_ssa): Replace declaration with that of...
21673 (make_pass_lower_vector_ssa): ...new function.
21674 (pass_lower_omp): Replace declaration with that of...
21675 (make_pass_lower_omp): ...new function.
21676 (pass_diagnose_omp_blocks): Replace declaration with that of...
21677 (make_pass_diagnose_omp_blocks): ...new function.
21678 (pass_expand_omp): Replace declaration with that of...
21679 (make_pass_expand_omp): ...new function.
21680 (pass_expand_omp_ssa): Replace declaration with that of...
21681 (make_pass_expand_omp_ssa): ...new function.
21682 (pass_object_sizes): Replace declaration with that of...
21683 (make_pass_object_sizes): ...new function.
21684 (pass_strlen): Replace declaration with that of...
21685 (make_pass_strlen): ...new function.
21686 (pass_fold_builtins): Replace declaration with that of...
21687 (make_pass_fold_builtins): ...new function.
21688 (pass_stdarg): Replace declaration with that of...
21689 (make_pass_stdarg): ...new function.
21690 (pass_early_warn_uninitialized): Replace declaration with that of...
21691 (make_pass_early_warn_uninitialized): ...new function.
21692 (pass_late_warn_uninitialized): Replace declaration with that of...
21693 (make_pass_late_warn_uninitialized): ...new function.
21694 (pass_cse_reciprocals): Replace declaration with that of...
21695 (make_pass_cse_reciprocals): ...new function.
21696 (pass_cse_sincos): Replace declaration with that of...
21697 (make_pass_cse_sincos): ...new function.
21698 (pass_optimize_bswap): Replace declaration with that of...
21699 (make_pass_optimize_bswap): ...new function.
21700 (pass_optimize_widening_mul): Replace declaration with that of...
21701 (make_pass_optimize_widening_mul): ...new function.
21702 (pass_warn_function_return): Replace declaration with that of...
21703 (make_pass_warn_function_return): ...new function.
21704 (pass_warn_function_noreturn): Replace declaration with that of...
21705 (make_pass_warn_function_noreturn): ...new function.
21706 (pass_cselim): Replace declaration with that of...
21707 (make_pass_cselim): ...new function.
21708 (pass_phiopt): Replace declaration with that of...
21709 (make_pass_phiopt): ...new function.
21710 (pass_forwprop): Replace declaration with that of...
21711 (make_pass_forwprop): ...new function.
21712 (pass_phiprop): Replace declaration with that of...
21713 (make_pass_phiprop): ...new function.
21714 (pass_tree_ifcombine): Replace declaration with that of...
21715 (make_pass_tree_ifcombine): ...new function.
21716 (pass_dse): Replace declaration with that of...
21717 (make_pass_dse): ...new function.
21718 (pass_nrv): Replace declaration with that of...
21719 (make_pass_nrv): ...new function.
21720 (pass_rename_ssa_copies): Replace declaration with that of...
21721 (make_pass_rename_ssa_copies): ...new function.
21722 (pass_sink_code): Replace declaration with that of...
21723 (make_pass_sink_code): ...new function.
21724 (pass_fre): Replace declaration with that of...
21725 (make_pass_fre): ...new function.
21726 (pass_check_data_deps): Replace declaration with that of...
21727 (make_pass_check_data_deps): ...new function.
21728 (pass_copy_prop): Replace declaration with that of...
21729 (make_pass_copy_prop): ...new function.
21730 (pass_vrp): Replace declaration with that of...
21731 (make_pass_vrp): ...new function.
21732 (pass_uncprop): Replace declaration with that of...
21733 (make_pass_uncprop): ...new function.
21734 (pass_return_slot): Replace declaration with that of...
21735 (make_pass_return_slot): ...new function.
21736 (pass_reassoc): Replace declaration with that of...
21737 (make_pass_reassoc): ...new function.
21738 (pass_rebuild_cgraph_edges): Replace declaration with that of...
21739 (make_pass_rebuild_cgraph_edges): ...new function.
21740 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
21741 (make_pass_remove_cgraph_callee_edges): ...new function.
21742 (pass_build_cgraph_edges): Replace declaration with that of...
21743 (make_pass_build_cgraph_edges): ...new function.
21744 (pass_local_pure_const): Replace declaration with that of...
21745 (make_pass_local_pure_const): ...new function.
21746 (pass_tracer): Replace declaration with that of...
21747 (make_pass_tracer): ...new function.
21748 (pass_warn_unused_result): Replace declaration with that of...
21749 (make_pass_warn_unused_result): ...new function.
21750 (pass_diagnose_tm_blocks): Replace declaration with that of...
21751 (make_pass_diagnose_tm_blocks): ...new function.
21752 (pass_lower_tm): Replace declaration with that of...
21753 (make_pass_lower_tm): ...new function.
21754 (pass_tm_init): Replace declaration with that of...
21755 (make_pass_tm_init): ...new function.
21756 (pass_tm_mark): Replace declaration with that of...
21757 (make_pass_tm_mark): ...new function.
21758 (pass_tm_memopt): Replace declaration with that of...
21759 (make_pass_tm_memopt): ...new function.
21760 (pass_tm_edges): Replace declaration with that of...
21761 (make_pass_tm_edges): ...new function.
21762 (pass_split_functions): Replace declaration with that of...
21763 (make_pass_split_functions): ...new function.
21764 (pass_feedback_split_functions): Replace declaration with that of...
21765 (make_pass_feedback_split_functions): ...new function.
21766 (pass_strength_reduction): Replace declaration with that of...
21767 (make_pass_strength_reduction): ...new function.
21768 (pass_ipa_lower_emutls): Replace declaration with that of...
21769 (make_pass_ipa_lower_emutls): ...new function.
21770 (pass_ipa_function_and_variable_visibility): Replace declaration with
21772 (make_pass_ipa_function_and_variable_visibility): ...new function.
21773 (pass_ipa_tree_profile): Replace declaration with that of...
21774 (make_pass_ipa_tree_profile): ...new function.
21775 (pass_early_local_passes): Replace declaration with that of...
21776 (make_pass_early_local_passes): ...new function.
21777 (pass_ipa_whole_program_visibility): Replace declaration with that
21779 (make_pass_ipa_whole_program_visibility): ...new function.
21780 (pass_ipa_lto_gimple_out): Replace declaration with that of...
21781 (make_pass_ipa_lto_gimple_out): ...new function.
21782 (pass_ipa_increase_alignment): Replace declaration with that of...
21783 (make_pass_ipa_increase_alignment): ...new function.
21784 (pass_ipa_inline): Replace declaration with that of...
21785 (make_pass_ipa_inline): ...new function.
21786 (pass_ipa_free_lang_data): Replace declaration with that of...
21787 (make_pass_ipa_free_lang_data): ...new function.
21788 (pass_ipa_free_inline_summary): Replace declaration with that of...
21789 (make_pass_ipa_free_inline_summary): ...new function.
21790 (pass_ipa_cp): Replace declaration with that of...
21791 (make_pass_ipa_cp): ...new function.
21792 (pass_ipa_reference): Replace declaration with that of...
21793 (make_pass_ipa_reference): ...new function.
21794 (pass_ipa_pure_const): Replace declaration with that of...
21795 (make_pass_ipa_pure_const): ...new function.
21796 (pass_ipa_pta): Replace declaration with that of...
21797 (make_pass_ipa_pta): ...new function.
21798 (pass_ipa_lto_finish_out): Replace declaration with that of...
21799 (make_pass_ipa_lto_finish_out): ...new function.
21800 (pass_ipa_tm): Replace declaration with that of...
21801 (make_pass_ipa_tm): ...new function.
21802 (pass_ipa_profile): Replace declaration with that of...
21803 (make_pass_ipa_profile): ...new function.
21804 (pass_ipa_cdtor_merge): Replace declaration with that of...
21805 (make_pass_ipa_cdtor_merge): ...new function.
21806 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
21808 (make_pass_cleanup_cfg_post_optimizing): ...new function.
21809 (pass_init_datastructures): Replace declaration with that of...
21810 (make_pass_init_datastructures): ...new function.
21811 (pass_fixup_cfg): Replace declaration with that of...
21812 (make_pass_fixup_cfg): ...new function.
21813 (pass_expand): Replace declaration with that of...
21814 (make_pass_expand): ...new function.
21815 (pass_instantiate_virtual_regs): Replace declaration with that of...
21816 (make_pass_instantiate_virtual_regs): ...new function.
21817 (pass_rtl_fwprop): Replace declaration with that of...
21818 (make_pass_rtl_fwprop): ...new function.
21819 (pass_rtl_fwprop_addr): Replace declaration with that of...
21820 (make_pass_rtl_fwprop_addr): ...new function.
21821 (pass_jump): Replace declaration with that of...
21822 (make_pass_jump): ...new function.
21823 (pass_jump2): Replace declaration with that of...
21824 (make_pass_jump2): ...new function.
21825 (pass_lower_subreg): Replace declaration with that of...
21826 (make_pass_lower_subreg): ...new function.
21827 (pass_cse): Replace declaration with that of...
21828 (make_pass_cse): ...new function.
21829 (pass_fast_rtl_dce): Replace declaration with that of...
21830 (make_pass_fast_rtl_dce): ...new function.
21831 (pass_ud_rtl_dce): Replace declaration with that of...
21832 (make_pass_ud_rtl_dce): ...new function.
21833 (pass_rtl_dce): Replace declaration with that of...
21834 (make_pass_rtl_dce): ...new function.
21835 (pass_rtl_dse1): Replace declaration with that of...
21836 (make_pass_rtl_dse1): ...new function.
21837 (pass_rtl_dse2): Replace declaration with that of...
21838 (make_pass_rtl_dse2): ...new function.
21839 (pass_rtl_dse3): Replace declaration with that of...
21840 (make_pass_rtl_dse3): ...new function.
21841 (pass_rtl_cprop): Replace declaration with that of...
21842 (make_pass_rtl_cprop): ...new function.
21843 (pass_rtl_pre): Replace declaration with that of...
21844 (make_pass_rtl_pre): ...new function.
21845 (pass_rtl_hoist): Replace declaration with that of...
21846 (make_pass_rtl_hoist): ...new function.
21847 (pass_rtl_store_motion): Replace declaration with that of...
21848 (make_pass_rtl_store_motion): ...new function.
21849 (pass_cse_after_global_opts): Replace declaration with that of...
21850 (make_pass_cse_after_global_opts): ...new function.
21851 (pass_rtl_ifcvt): Replace declaration with that of...
21852 (make_pass_rtl_ifcvt): ...new function.
21853 (pass_into_cfg_layout_mode): Replace declaration with that of...
21854 (make_pass_into_cfg_layout_mode): ...new function.
21855 (pass_outof_cfg_layout_mode): Replace declaration with that of...
21856 (make_pass_outof_cfg_layout_mode): ...new function.
21857 (pass_loop2): Replace declaration with that of...
21858 (make_pass_loop2): ...new function.
21859 (pass_rtl_loop_init): Replace declaration with that of...
21860 (make_pass_rtl_loop_init): ...new function.
21861 (pass_rtl_move_loop_invariants): Replace declaration with that of...
21862 (make_pass_rtl_move_loop_invariants): ...new function.
21863 (pass_rtl_unswitch): Replace declaration with that of...
21864 (make_pass_rtl_unswitch): ...new function.
21865 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
21866 (make_pass_rtl_unroll_and_peel_loops): ...new function.
21867 (pass_rtl_doloop): Replace declaration with that of...
21868 (make_pass_rtl_doloop): ...new function.
21869 (pass_rtl_loop_done): Replace declaration with that of...
21870 (make_pass_rtl_loop_done): ...new function.
21871 (pass_web): Replace declaration with that of...
21872 (make_pass_web): ...new function.
21873 (pass_cse2): Replace declaration with that of...
21874 (make_pass_cse2): ...new function.
21875 (pass_df_initialize_opt): Replace declaration with that of...
21876 (make_pass_df_initialize_opt): ...new function.
21877 (pass_df_initialize_no_opt): Replace declaration with that of...
21878 (make_pass_df_initialize_no_opt): ...new function.
21879 (pass_reginfo_init): Replace declaration with that of...
21880 (make_pass_reginfo_init): ...new function.
21881 (pass_inc_dec): Replace declaration with that of...
21882 (make_pass_inc_dec): ...new function.
21883 (pass_stack_ptr_mod): Replace declaration with that of...
21884 (make_pass_stack_ptr_mod): ...new function.
21885 (pass_initialize_regs): Replace declaration with that of...
21886 (make_pass_initialize_regs): ...new function.
21887 (pass_combine): Replace declaration with that of...
21888 (make_pass_combine): ...new function.
21889 (pass_if_after_combine): Replace declaration with that of...
21890 (make_pass_if_after_combine): ...new function.
21891 (pass_ree): Replace declaration with that of...
21892 (make_pass_ree): ...new function.
21893 (pass_partition_blocks): Replace declaration with that of...
21894 (make_pass_partition_blocks): ...new function.
21895 (pass_match_asm_constraints): Replace declaration with that of...
21896 (make_pass_match_asm_constraints): ...new function.
21897 (pass_regmove): Replace declaration with that of...
21898 (make_pass_regmove): ...new function.
21899 (pass_split_all_insns): Replace declaration with that of...
21900 (make_pass_split_all_insns): ...new function.
21901 (pass_fast_rtl_byte_dce): Replace declaration with that of...
21902 (make_pass_fast_rtl_byte_dce): ...new function.
21903 (pass_lower_subreg2): Replace declaration with that of...
21904 (make_pass_lower_subreg2): ...new function.
21905 (pass_mode_switching): Replace declaration with that of...
21906 (make_pass_mode_switching): ...new function.
21907 (pass_sms): Replace declaration with that of...
21908 (make_pass_sms): ...new function.
21909 (pass_sched): Replace declaration with that of...
21910 (make_pass_sched): ...new function.
21911 (pass_ira): Replace declaration with that of...
21912 (make_pass_ira): ...new function.
21913 (pass_reload): Replace declaration with that of...
21914 (make_pass_reload): ...new function.
21915 (pass_clean_state): Replace declaration with that of...
21916 (make_pass_clean_state): ...new function.
21917 (pass_branch_prob): Replace declaration with that of...
21918 (make_pass_branch_prob): ...new function.
21919 (pass_value_profile_transformations): Replace declaration with that
21921 (make_pass_value_profile_transformations): ...new function.
21922 (pass_postreload_cse): Replace declaration with that of...
21923 (make_pass_postreload_cse): ...new function.
21924 (pass_gcse2): Replace declaration with that of...
21925 (make_pass_gcse2): ...new function.
21926 (pass_split_after_reload): Replace declaration with that of...
21927 (make_pass_split_after_reload): ...new function.
21928 (pass_branch_target_load_optimize1): Replace declaration with that
21930 (make_pass_branch_target_load_optimize1): ...new function.
21931 (pass_thread_prologue_and_epilogue): Replace declaration with that
21933 (make_pass_thread_prologue_and_epilogue): ...new function.
21934 (pass_stack_adjustments): Replace declaration with that of...
21935 (make_pass_stack_adjustments): ...new function.
21936 (pass_peephole2): Replace declaration with that of...
21937 (make_pass_peephole2): ...new function.
21938 (pass_if_after_reload): Replace declaration with that of...
21939 (make_pass_if_after_reload): ...new function.
21940 (pass_regrename): Replace declaration with that of...
21941 (make_pass_regrename): ...new function.
21942 (pass_cprop_hardreg): Replace declaration with that of...
21943 (make_pass_cprop_hardreg): ...new function.
21944 (pass_reorder_blocks): Replace declaration with that of...
21945 (make_pass_reorder_blocks): ...new function.
21946 (pass_branch_target_load_optimize2): Replace declaration with that
21948 (make_pass_branch_target_load_optimize2): ...new function.
21949 (pass_leaf_regs): Replace declaration with that of...
21950 (make_pass_leaf_regs): ...new function.
21951 (pass_split_before_sched2): Replace declaration with that of...
21952 (make_pass_split_before_sched2): ...new function.
21953 (pass_compare_elim_after_reload): Replace declaration with that of...
21954 (make_pass_compare_elim_after_reload): ...new function.
21955 (pass_sched2): Replace declaration with that of...
21956 (make_pass_sched2): ...new function.
21957 (pass_stack_regs): Replace declaration with that of...
21958 (make_pass_stack_regs): ...new function.
21959 (pass_stack_regs_run): Replace declaration with that of...
21960 (make_pass_stack_regs_run): ...new function.
21961 (pass_df_finish): Replace declaration with that of...
21962 (make_pass_df_finish): ...new function.
21963 (pass_compute_alignments): Replace declaration with that of...
21964 (make_pass_compute_alignments): ...new function.
21965 (pass_duplicate_computed_gotos): Replace declaration with that of...
21966 (make_pass_duplicate_computed_gotos): ...new function.
21967 (pass_variable_tracking): Replace declaration with that of...
21968 (make_pass_variable_tracking): ...new function.
21969 (pass_free_cfg): Replace declaration with that of...
21970 (make_pass_free_cfg): ...new function.
21971 (pass_machine_reorg): Replace declaration with that of...
21972 (make_pass_machine_reorg): ...new function.
21973 (pass_cleanup_barriers): Replace declaration with that of...
21974 (make_pass_cleanup_barriers): ...new function.
21975 (pass_delay_slots): Replace declaration with that of...
21976 (make_pass_delay_slots): ...new function.
21977 (pass_split_for_shorten_branches): Replace declaration with that of...
21978 (make_pass_split_for_shorten_branches): ...new function.
21979 (pass_split_before_regstack): Replace declaration with that of...
21980 (make_pass_split_before_regstack): ...new function.
21981 (pass_convert_to_eh_region_ranges): Replace declaration with that
21983 (make_pass_convert_to_eh_region_ranges): ...new function.
21984 (pass_shorten_branches): Replace declaration with that of...
21985 (make_pass_shorten_branches): ...new function.
21986 (pass_set_nothrow_function_flags): Replace declaration with that of...
21987 (make_pass_set_nothrow_function_flags): ...new function.
21988 (pass_dwarf2_frame): Replace declaration with that of...
21989 (make_pass_dwarf2_frame): ...new function.
21990 (pass_final): Replace declaration with that of...
21991 (make_pass_final): ...new function.
21992 (pass_rtl_seqabstr): Replace declaration with that of...
21993 (make_pass_rtl_seqabstr): ...new function.
21994 (pass_release_ssa_names): Replace declaration with that of...
21995 (make_pass_release_ssa_names): ...new function.
21996 (pass_early_inline): Replace declaration with that of...
21997 (make_pass_early_inline): ...new function.
21998 (pass_inline_parameters): Replace declaration with that of...
21999 (make_pass_inline_parameters): ...new function.
22000 (pass_update_address_taken): Replace declaration with that of...
22001 (make_pass_update_address_taken): ...new function.
22002 (pass_convert_switch): Replace declaration with that of...
22003 (make_pass_convert_switch): ...new function.
22004 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
22005 to a subclass of simple_ipa_opt_pass along with...
22006 (pass_data_ipa_tree_profile): ...new pass_data instance and...
22007 (make_pass_ipa_tree_profile): ...new function.
22008 * tree-sra.c (pass_sra_early): Convert from a global struct to a
22009 subclass of gimple_opt_pass along with...
22010 (pass_data_sra_early): ...new pass_data instance and...
22011 (make_pass_sra_early): ...new function.
22012 (pass_sra): Convert from a global struct to a subclass of
22013 gimple_opt_pass along with...
22014 (pass_data_sra): ...new pass_data instance and...
22015 (make_pass_sra): ...new function.
22016 (pass_early_ipa_sra): Convert from a global struct to a subclass of
22017 gimple_opt_pass along with...
22018 (pass_data_early_ipa_sra): ...new pass_data instance and...
22019 (make_pass_early_ipa_sra): ...new function.
22020 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
22021 subclass of gimple_opt_pass along with...
22022 (pass_data_ccp): ...new pass_data instance and...
22023 (make_pass_ccp): ...new function.
22024 (pass_fold_builtins): Convert from a global struct to a subclass of
22025 gimple_opt_pass along with...
22026 (pass_data_fold_builtins): ...new pass_data instance and...
22027 (make_pass_fold_builtins): ...new function.
22028 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
22029 subclass of gimple_opt_pass along with...
22030 (pass_data_copy_prop): ...new pass_data instance and...
22031 (make_pass_copy_prop): ...new function.
22032 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
22033 global struct to a subclass of gimple_opt_pass along with...
22034 (pass_data_rename_ssa_copies): ...new pass_data instance and...
22035 (make_pass_rename_ssa_copies): ...new function.
22036 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
22037 subclass of gimple_opt_pass along with...
22038 (pass_data_dce): ...new pass_data instance and...
22039 (make_pass_dce): ...new function.
22040 (pass_dce_loop): Convert from a global struct to a subclass of
22041 gimple_opt_pass along with...
22042 (pass_data_dce_loop): ...new pass_data instance and...
22043 (make_pass_dce_loop): ...new function.
22044 (pass_cd_dce): Convert from a global struct to a subclass of
22045 gimple_opt_pass along with...
22046 (pass_data_cd_dce): ...new pass_data instance and...
22047 (make_pass_cd_dce): ...new function.
22048 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
22049 subclass of gimple_opt_pass along with...
22050 (pass_data_dominator): ...new pass_data instance and...
22051 (make_pass_dominator): ...new function.
22052 (pass_phi_only_cprop): Convert from a global struct to a subclass of
22053 gimple_opt_pass along with...
22054 (pass_data_phi_only_cprop): ...new pass_data instance and...
22055 (make_pass_phi_only_cprop): ...new function.
22056 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
22057 subclass of gimple_opt_pass along with...
22058 (pass_data_dse): ...new pass_data instance and...
22059 (make_pass_dse): ...new function.
22060 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
22061 a subclass of gimple_opt_pass along with...
22062 (pass_data_forwprop): ...new pass_data instance and...
22063 (make_pass_forwprop): ...new function.
22064 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
22065 struct to a subclass of gimple_opt_pass along with...
22066 (pass_data_tree_ifcombine): ...new pass_data instance and...
22067 (make_pass_tree_ifcombine): ...new function.
22068 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
22069 subclass of gimple_opt_pass along with...
22070 (pass_data_ch): ...new pass_data instance and...
22071 (make_pass_ch): ...new function.
22072 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
22073 subclass of gimple_opt_pass along with...
22074 (pass_data_tree_loop): ...new pass_data instance and...
22075 (make_pass_tree_loop): ...new function.
22076 (pass_tree_loop_init): Convert from a global struct to a subclass of
22077 gimple_opt_pass along with...
22078 (pass_data_tree_loop_init): ...new pass_data instance and...
22079 (make_pass_tree_loop_init): ...new function.
22080 (pass_lim): Convert from a global struct to a subclass of
22081 gimple_opt_pass along with...
22082 (pass_data_lim): ...new pass_data instance and...
22083 (make_pass_lim): ...new function.
22084 (pass_tree_unswitch): Convert from a global struct to a subclass of
22085 gimple_opt_pass along with...
22086 (pass_data_tree_unswitch): ...new pass_data instance and...
22087 (make_pass_tree_unswitch): ...new function.
22088 (pass_predcom): Convert from a global struct to a subclass of
22089 gimple_opt_pass along with...
22090 (pass_data_predcom): ...new pass_data instance and...
22091 (make_pass_predcom): ...new function.
22092 (pass_vectorize): Convert from a global struct to a subclass of
22093 gimple_opt_pass along with...
22094 (pass_data_vectorize): ...new pass_data instance and...
22095 (make_pass_vectorize): ...new function.
22096 (pass_graphite): Convert from a global struct to a subclass of
22097 gimple_opt_pass along with...
22098 (pass_data_graphite): ...new pass_data instance and...
22099 (make_pass_graphite): ...new function.
22100 (pass_graphite_transforms): Convert from a global struct to a subclass
22101 of gimple_opt_pass along with...
22102 (pass_data_graphite_transforms): ...new pass_data instance and...
22103 (make_pass_graphite_transforms): ...new function.
22104 (pass_check_data_deps): Convert from a global struct to a subclass of
22105 gimple_opt_pass along with...
22106 (pass_data_check_data_deps): ...new pass_data instance and...
22107 (make_pass_check_data_deps): ...new function.
22108 (pass_iv_canon): Convert from a global struct to a subclass of
22109 gimple_opt_pass along with...
22110 (pass_data_iv_canon): ...new pass_data instance and...
22111 (make_pass_iv_canon): ...new function.
22112 (pass_scev_cprop): Convert from a global struct to a subclass of
22113 gimple_opt_pass along with...
22114 (pass_data_scev_cprop): ...new pass_data instance and...
22115 (make_pass_scev_cprop): ...new function.
22116 (pass_record_bounds): Convert from a global struct to a subclass of
22117 gimple_opt_pass along with...
22118 (pass_data_record_bounds): ...new pass_data instance and...
22119 (make_pass_record_bounds): ...new function.
22120 (pass_complete_unroll): Convert from a global struct to a subclass of
22121 gimple_opt_pass along with...
22122 (pass_data_complete_unroll): ...new pass_data instance and...
22123 (make_pass_complete_unroll): ...new function.
22124 (pass_complete_unrolli): Convert from a global struct to a subclass of
22125 gimple_opt_pass along with...
22126 (pass_data_complete_unrolli): ...new pass_data instance and...
22127 (make_pass_complete_unrolli): ...new function.
22128 (pass_parallelize_loops): Convert from a global struct to a subclass
22129 of gimple_opt_pass along with...
22130 (pass_data_parallelize_loops): ...new pass_data instance and...
22131 (make_pass_parallelize_loops): ...new function.
22132 (pass_loop_prefetch): Convert from a global struct to a subclass of
22133 gimple_opt_pass along with...
22134 (pass_data_loop_prefetch): ...new pass_data instance and...
22135 (make_pass_loop_prefetch): ...new function.
22136 (pass_iv_optimize): Convert from a global struct to a subclass of
22137 gimple_opt_pass along with...
22138 (pass_data_iv_optimize): ...new pass_data instance and...
22139 (make_pass_iv_optimize): ...new function.
22140 (pass_tree_loop_done): Convert from a global struct to a subclass of
22141 gimple_opt_pass along with...
22142 (pass_data_tree_loop_done): ...new pass_data instance and...
22143 (make_pass_tree_loop_done): ...new function.
22144 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
22145 struct to a subclass of gimple_opt_pass along with...
22146 (pass_data_cse_reciprocals): ...new pass_data instance and...
22147 (make_pass_cse_reciprocals): ...new function.
22148 (pass_cse_sincos): Convert from a global struct to a subclass of
22149 gimple_opt_pass along with...
22150 (pass_data_cse_sincos): ...new pass_data instance and...
22151 (make_pass_cse_sincos): ...new function.
22152 (pass_optimize_bswap): Convert from a global struct to a subclass of
22153 gimple_opt_pass along with...
22154 (pass_data_optimize_bswap): ...new pass_data instance and...
22155 (make_pass_optimize_bswap): ...new function.
22156 (pass_optimize_widening_mul): Convert from a global struct to a
22157 subclass of gimple_opt_pass along with...
22158 (pass_data_optimize_widening_mul): ...new pass_data instance and...
22159 (make_pass_optimize_widening_mul): ...new function.
22160 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
22161 subclass of gimple_opt_pass along with...
22162 (pass_data_phiopt): ...new pass_data instance and...
22163 (make_pass_phiopt): ...new function.
22164 (pass_cselim): Convert from a global struct to a subclass of
22165 gimple_opt_pass along with...
22166 (pass_data_cselim): ...new pass_data instance and...
22167 (make_pass_cselim): ...new function.
22168 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
22169 subclass of gimple_opt_pass along with...
22170 (pass_data_phiprop): ...new pass_data instance and...
22171 (make_pass_phiprop): ...new function.
22172 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
22173 subclass of gimple_opt_pass along with...
22174 (pass_data_pre): ...new pass_data instance and...
22175 (make_pass_pre): ...new function.
22176 (pass_fre): Convert from a global struct to a subclass of
22177 gimple_opt_pass along with...
22178 (pass_data_fre): ...new pass_data instance and...
22179 (make_pass_fre): ...new function.
22180 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
22181 subclass of gimple_opt_pass along with...
22182 (pass_data_reassoc): ...new pass_data instance and...
22183 (make_pass_reassoc): ...new function.
22184 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
22185 subclass of gimple_opt_pass along with...
22186 (pass_data_sink_code): ...new pass_data instance and...
22187 (make_pass_sink_code): ...new function.
22188 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
22189 subclass of gimple_opt_pass along with...
22190 (pass_data_strlen): ...new pass_data instance and...
22191 (make_pass_strlen): ...new function.
22192 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
22193 struct to a subclass of gimple_opt_pass along with...
22194 (pass_data_build_alias): ...new pass_data instance and...
22195 (make_pass_build_alias): ...new function.
22196 (pass_build_ealias): Convert from a global struct to a subclass of
22197 gimple_opt_pass along with...
22198 (pass_data_build_ealias): ...new pass_data instance and...
22199 (make_pass_build_ealias): ...new function.
22200 (pass_ipa_pta): Convert from a global struct to a subclass of
22201 simple_ipa_opt_pass along with...
22202 (pass_data_ipa_pta): ...new pass_data instance and...
22203 (make_pass_ipa_pta): ...new function.
22204 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
22205 subclass of gimple_opt_pass along with...
22206 (pass_data_uncprop): ...new pass_data instance and...
22207 (make_pass_uncprop): ...new function.
22208 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
22209 global struct to a subclass of gimple_opt_pass along with...
22210 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
22211 (make_pass_late_warn_uninitialized): ...new function.
22212 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
22213 to a subclass of gimple_opt_pass along with...
22214 (pass_data_init_datastructures): ...new pass_data instance and...
22215 (make_pass_init_datastructures): ...new function.
22216 (pass_early_warn_uninitialized): Convert from a global struct to a
22217 subclass of gimple_opt_pass along with...
22218 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
22219 (make_pass_early_warn_uninitialized): ...new function.
22220 (pass_update_address_taken): Convert from a global struct to a
22221 subclass of gimple_opt_pass along with...
22222 (pass_data_update_address_taken): ...new pass_data instance and...
22223 (make_pass_update_address_taken): ...new function.
22224 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
22225 struct to a subclass of gimple_opt_pass along with...
22226 (pass_data_release_ssa_names): ...new pass_data instance and...
22227 (make_pass_release_ssa_names): ...new function.
22228 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
22229 subclass of gimple_opt_pass along with...
22230 (pass_data_stdarg): ...new pass_data instance and...
22231 (make_pass_stdarg): ...new function.
22232 * tree-switch-conversion.c (pass_convert_switch): Convert from a
22233 global struct to a subclass of gimple_opt_pass along with...
22234 (pass_data_convert_switch): ...new pass_data instance and...
22235 (make_pass_convert_switch): ...new function.
22236 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
22237 to a subclass of gimple_opt_pass along with...
22238 (pass_data_tail_recursion): ...new pass_data instance and...
22239 (make_pass_tail_recursion): ...new function.
22240 (pass_tail_calls): Convert from a global struct to a subclass of
22241 gimple_opt_pass along with...
22242 (pass_data_tail_calls): ...new pass_data instance and...
22243 (make_pass_tail_calls): ...new function.
22244 * tree-vect-generic.c (pass_lower_vector): Convert from a global
22245 struct to a subclass of gimple_opt_pass along with...
22246 (pass_data_lower_vector): ...new pass_data instance and...
22247 (make_pass_lower_vector): ...new function.
22248 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
22249 gimple_opt_pass along with...
22250 (pass_data_lower_vector_ssa): ...new pass_data instance and...
22251 (make_pass_lower_vector_ssa): ...new function.
22252 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
22253 to a subclass of gimple_opt_pass along with...
22254 (pass_data_slp_vectorize): ...new pass_data instance and...
22255 (make_pass_slp_vectorize): ...new function.
22256 (pass_ipa_increase_alignment): Convert from a global struct to a
22257 subclass of simple_ipa_opt_pass along with...
22258 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
22259 (make_pass_ipa_increase_alignment): ...new function.
22260 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
22261 gimple_opt_pass along with...
22262 (pass_data_vrp): ...new pass_data instance and...
22263 (make_pass_vrp): ...new function.
22264 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
22265 subclass of simple_ipa_opt_pass along with...
22266 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
22267 (make_pass_ipa_free_lang_data): ...new function.
22268 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
22269 gimple_opt_pass along with...
22270 (pass_data_tsan): ...new pass_data instance and...
22271 (make_pass_tsan): ...new function.
22272 (pass_tsan_O0): Convert from a global struct to a subclass of
22273 gimple_opt_pass along with...
22274 (pass_data_tsan_O0): ...new pass_data instance and...
22275 (make_pass_tsan_O0): ...new function.
22276 * var-tracking.c (pass_variable_tracking): Convert from a global
22277 struct to a subclass of rtl_opt_pass along with...
22278 (pass_data_variable_tracking): ...new pass_data instance and...
22279 (make_pass_variable_tracking): ...new function.
22280 * web.c (pass_web): Convert from a global struct to a subclass of
22281 rtl_opt_pass along with...
22282 (pass_data_web): ...new pass_data instance and...
22283 (make_pass_web): ...new function.
22284 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
22285 declaration with that of...
22286 (make_pass_mode_switch_use): ...new function.
22287 (pass_resolve_sw_modes): Replace declaration with that of...
22288 (make_pass_resolve_sw_modes): ...new function.
22289 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
22290 from a global struct to a subclass of rtl_opt_pass along with...
22291 (pass_data_mode_switch_use): ...new pass_data instance and...
22292 (make_pass_mode_switch_use): ...new function.
22293 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
22294 from a global struct to a subclass of rtl_opt_pass along with...
22295 (pass_data_resolve_sw_modes): ...new pass_data instance and...
22296 (make_pass_resolve_sw_modes): ...new function.
22297 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
22298 struct to a subclass of rtl_opt_pass along with...
22299 (pass_data_insert_vzeroupper): ...new pass_data instance and...
22300 (make_pass_insert_vzeroupper): ...new function.
22301 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
22302 global struct to a subclass of rtl_opt_pass along with...
22303 (pass_data_work_around_errata): ...new pass_data instance and...
22304 (make_pass_work_around_errata): ...new function.
22305 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
22306 struct to a subclass of rtl_opt_pass along with...
22307 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
22308 (make_pass_mips_machine_reorg2): ...new function.
22310 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22312 * passes.c (pass_manager::operator new): New.
22314 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22316 Handwritten part of conversion of passes to C++ classes.
22318 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
22319 (toplev.o): Add dep on PASS_MANAGER_H.
22320 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
22321 of early local pases to reflect this moving from a global to a
22322 member of gcc::pass_manager.
22323 (cgraph_add_new_function): Likewise.
22324 * lto-cgraph.c (lto_output_node): Update for conversion of
22325 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
22326 * passes.c (opt_pass::clone): New.
22327 (opt_pass::gate): New.
22328 (opt_pass::execute): New.
22329 (opt_pass::opt_pass): New.
22330 (pass_manager::execute_early_local_passes): New.
22331 (pass_manager::execute_pass_mode_switching): new.
22332 (finish_optimization_passes): Convert to...
22333 (pass_manager::finish_optimization_passes): ...this.
22334 (finish_optimization_passes): Update for conversion of passes to
22336 (register_dump_files_1): Use has_gate since we cannot portably
22337 check a vtable entry against NULL.
22338 (dump_one_pass): Likewise.
22339 (ipa_write_summaries_2): Likewise.
22340 (ipa_write_optimization_summaries_1): Likewise.
22341 (ipa_read_summaries_1): Likewise.
22342 (ipa_read_optimization_summaries_1): Likewise.
22343 (execute_ipa_stmt_fixups): Likewise.
22344 (pass_manager::pass_manager): Rewrite pass-creation, invoking
22345 pass-creation functions rather than wiring up globals, and
22346 storing the results in fields of pass_manager generated using
22347 pass-instances.def.
22348 (pass_manager::dump_profile_report): Update for conversion of
22349 passes to C++ classes.
22350 (pass_manager::execute_ipa_summary_passes): Likewise.
22351 (execute_one_ipa_transform_pass): Likewise.
22352 (execute_one_pass): Use has_gate and has_execute since we cannot
22353 portably check a vtable entry against NULL.
22354 * pass_manager.h (pass_manager::finish_optimization_passes): New.
22355 (pass_manager): Use pass-instances.def to add fields for the
22356 various pass instances.
22357 * toplev.c (finalize): Update for move of
22358 finish_optimization_passes to a method of gcc::pass_manager.
22359 * toplev.h (finish_optimization_passes): Move to method of class
22361 * tree-pass.h (struct pass_data): New.
22362 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
22363 (opt_pass::gate): Convert to virtual function.
22364 (opt_pass::~opt_pass): New.
22365 (opt_pass::clone): New.
22366 (opt_pass::execute): Convert to virtual function.
22367 (opt_pass::opt_pass): New.
22368 (opt_pass::ctxt_): new.
22369 (gimple_opt_pass): Convert to subclass of opt_pass.
22370 (gimple_opt_pass::gimple_opt_pass): New.
22371 (rtl_opt_pass): Convert to subclass of opt_pass.
22372 (rtl_opt_pass::rtl_opt_pass): New.
22373 (ipa_opt_pass_d): Convert to subclass of opt_pass.
22374 (ipa_opt_pass_d::ipa_opt_pass_d): New.
22375 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
22376 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
22377 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
22378 invocation of pass_mode_switching to reflect this moving from a
22379 global to a member of gcc::pass_manager.
22380 (ix86_option_override): Rework how pass_insert_vzeroupper is
22381 added to the pass_manager to reflect autogenerated changes.
22382 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
22384 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
22386 PR rtl-optimization/57708
22387 * recog.c (peep2_find_free_register): Validate all regs in a
22390 2013-08-05 Jan Hubicka <jh@suse.cz>
22393 * cgraph.c (verify_cgraph_node): Accept local flags from other
22395 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
22396 (function_and_variable_visibility): Likewise.
22397 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
22399 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22401 * graph.c (init_graph_slim_pretty_print): Remove.
22402 (print_graph_cfg): Do not call it. Use local pretty printer.
22403 (start_graph_dump): Likewise.
22405 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22407 * gimple-pretty-print.c (buffer): Remove.
22408 (initialized): Likewise.
22409 (maybe_init_pretty_print): Likewise.
22410 (print_gimple_stmt): Do not call it. Use non-static local
22411 pretty_printer variable.
22412 (print_gimple_expr): Likewise.
22413 (print_gimple_seq): Likewise.
22414 (gimple_dump_bb): Likewise.
22416 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
22418 * asan.c (asan_pp): Remove.
22419 (asan_pp_initialized): Likewise.
22420 (asan_pp_initialize): Likewise.
22421 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
22422 (asan_emit_stack_protection): Tidy. Use local pretty printer.
22423 (asan_add_global): Likewise.
22425 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
22427 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
22428 * diagnostic.h (diagnostic_flush_buffer): Adjust.
22429 * pretty-print.c (pp_formatted_text_data): Likewise.
22430 (pp_indent): Rename from pp_base_indent.
22431 (pp_format): Rename from pp_base_format.
22432 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
22433 (pp_format_verbatim): Rename from pp_base_format_verbatim.
22434 (pp_flush): Rename from pp_base_flush.
22435 (pp_set_line_maximum_length): Rename from
22436 pp_base_set_line_maximum_length.
22437 (pp_clear_output_area): Rename from pp_base_clear_output_area.
22438 (pp_set_prefix): Rename from pp_base_set_prefix.
22439 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
22440 (pp_emit_prefix): Rename from pp_base_emit_prefix.
22441 (pp_append_text): Rename from pp_base_append_text.
22442 (pp_formatted_text): Rename from pp_base_formatted_text.
22443 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
22444 (pp_remaining_character_count_for_line): Rename from
22445 pp_base_remaining_character_count_for_line.
22446 (pp_newline): Rename from pp_base_newline.
22447 (pp_character): Rename from pp_base_character.
22448 (pp_string): Rename from pp_base_string.
22449 (pp_maybe_space): Rename from pp_base_maybe_space.
22450 * asan.c (asan_pp_string): Adjust.
22451 (asan_emit_stack_protection): Likewise.
22452 (asan_add_global): Likewise.
22453 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
22454 * tree-mudflap.c (mf_varname_tree): Likewise.
22455 * tree-pretty-print.c (pp_tree_identifier): Rename from
22456 pp_base_tree_identifier.
22457 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
22458 Declare as function.
22460 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22462 * pretty-print.h (pp_bar_bar): New.
22463 (pp_ampersand_ampersand): Likewise.
22464 (pp_less_equal): Likewise.
22465 (pp_greater_equal): Likewise.
22466 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
22467 printer functions instead of pp_string or operators and punctuators.
22468 (dump_gimple_call): Likewise.
22469 (dump_gimple_omp_for): Likewise.
22470 (dump_gimple_transaction): Likewise.
22471 (dump_gimple_phi): Likewise.
22472 (pp_gimple_stmt_1): Likewise.
22473 * sched-vis.c (print_insn): Likewise.
22474 * tree-mudflap.c (mf_varname_tree): Likewise.
22475 * tree-pretty-print.c (dump_block_node): Likewise.
22476 (dump_generic_node): Likewise.
22478 2013-08-02 Jan Hubicka <jh@suse.cz>
22480 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
22482 * lto-streamer-out.c (tree_is_indexable): Results decls and
22483 parm decls are not indexable.
22484 (DFS_write_tree_body): Do not follow args and results.
22485 (hash_tree): Likewise.
22486 (output_functions): Rearrange so struct function is needed
22487 only when real body is output; be able to also ouptut abstract
22488 functions; output DECL_ARGUMENTS and DECL_RESULT.
22489 (lto_output): When not in WPA, ale store abstract functions.
22490 (write_symbol): Do not care about RESULT_DECL.
22491 (output_symbol_p): Handle correctly sbtract decls.
22492 * lto-streamer-in.c (input_function): Rearrange so struct
22493 function can be NULL at entry; allow streaming of
22494 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
22495 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
22496 sanity check during LTO.
22497 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
22498 RESULT_DECl and DECL_ARGUMENTS.
22499 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
22502 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
22504 * pretty-print.h (pp_underscore): New.
22506 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
22507 printer functions instead of pp_character.
22508 (dump_binary_rhs): Likewise.
22509 (dump_ternary_rhs): Likewise.
22510 (dump_gimple_call_args): Likewise.
22511 (pp_points_to_solution): Likewise.
22512 (dump_gimple_call): Likewise.
22513 (dump_gimple_switch): Likewise.
22514 (dump_gimple_cond): Likewise.
22515 (dump_gimple_bind): Likewise.
22516 (dump_gimple_try): Likewise.
22517 (dump_gimple_omp_for): Likewise.
22518 (dump_gimple_omp_continue): Likewise.
22519 (dump_gimple_omp_single): Likewise.
22520 (dump_gimple_omp_sections): Likewise.
22521 (dump_gimple_omp_block): Likewise.
22522 (dump_gimple_omp_critical): Likewise.
22523 (dump_gimple_transaction): Likewise.
22524 (dump_gimple_asm): Likewise.
22525 (dump_gimple_phi): Likewise.
22526 (dump_gimple_omp_parallel): Likewise.
22527 (dump_gimple_omp_task): Likewise.
22528 (dump_gimple_omp_atomic_load): Likewise.
22529 (dump_gimple_omp_atomic_store): Likewise.
22530 (dump_gimple_mem_ops): Likewise.
22531 (pp_gimple_stmt_1): Likewise.
22532 (pp_cfg_jump): Likewise.
22533 (dump_implicit_edges): Likewise.
22534 (gimple_dump_bb_for_graph): Likewise.
22535 * graph.c (draw_cfg_node): Likewise.
22536 * langhooks.c (lhd_print_error_function): Likewise.
22537 * sched-vis.c (print_exp): Likewise.
22538 (print_value): Likewise.
22539 (print_pattern): Likewise.
22540 (print_insn): Likewise.
22541 (rtl_dump_bb_for_graph): Likewise.
22542 * tree-pretty-print.c (dump_function_declaration): Likewise.
22543 (dump_array_domain): Likewise.
22544 (dump_omp_clause): Likewise.
22545 (dump_location): Likewise.
22546 (dump_generic_node): Likewise.
22547 (print_struct_decl): Likewise.
22548 * diagnostic.c (diagnostic_show_locus): Use pp_space.
22550 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22552 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
22553 candidate table when replacing a candidate statement.
22554 (replace_rhs_if_not_dup): Likewise.
22555 (replace_one_candidate): Likewise.
22557 2013-08-02 Jan Hubicka <jh@suse.cz>
22558 Martin Liska <marxin.liska@gmail.com>
22560 * cgraphunit.c (add_new_function): Fix logic when adding from
22562 (assemble_thunk): Rename to ...
22563 (expand_thunk); .. this one; export; get it working with
22564 general functions; make produced gimple valid.
22565 * cgraph.h (expand_thunk): Declare.
22567 2013-08-02 Jan Hubicka <jh@suse.cz>
22569 * ipa-cp.c (gather_context_independent_values): Use
22570 ipa_get_param_move_cost.
22571 (get_replacement_map): Remove PARAM; move parameter folding
22573 (create_specialized_node): Update.
22574 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
22575 assert that we have gimple body; update move_cost.
22576 (count_formal_params): Assert that we have gimple body.
22577 (ipa_dump_param): New function.
22578 (ipa_alloc_node_params): Break out from ...
22579 (ipa_initialize_node_params): ... here.
22580 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
22581 (ipa_write_node_info): Stream move costs.
22582 (ipa_read_node_info): Read move costs.
22583 (ipa_update_after_lto_read): Do not recompute node params.
22584 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
22585 (ipa_get_param): Check we are not in WPA.
22586 (ipa_get_param_move_cost): New.
22587 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
22588 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
22589 parm numbers to be present.
22591 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
22593 PR rtl-optimization/58048
22594 * lra-constraints.c (process_alt_operands): Don't check asm
22595 operand on register.
22597 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
22599 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
22600 the implied StoreLoad barrier for atomic operations if before.
22602 2013-08-02 Jan Hubicka <jh@suse.cz>
22603 Martin Liska <marxin.liska@gmail.com>
22605 * cgraph.c (cgraph_function_body_availability): Do not check
22607 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
22608 symtab_node_availability): Declare.
22609 * ipa.c (can_replace_by_local_alias): New.
22610 (function_and_variable_visibility): Use it.
22611 * symtab.c (symtab_for_node_and_aliases,
22612 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
22614 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
22616 PR rtl-optimization/57963
22617 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
22618 (lra_constraints): Use them.
22620 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
22622 * config/arm/types.md (define_attr "type"): Add "load_acq"
22624 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
22626 (cortex_a53_store1): Likewise.
22628 2013-08-01 Jan Hubicka <jh@suse.cz>
22630 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
22631 partitions are not needed.
22633 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
22635 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
22636 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
22637 MAYBE_NON_Q_CLASS_P where appropriate.
22639 2013-08-01 Jan Hubicka <jh@suse.cz>
22641 * cgraph.h (release_function_body): Declare.
22642 * tree.c (free_lang_data_in_decl): Free, parameters and return values
22643 of unused delcarations.
22645 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22647 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
22648 RTL form when subtracting a constant.
22650 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22652 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
22653 Generate canonical plus rtx with negated immediate instead of minus
22655 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
22657 2013-08-01 Jan Hubicka <jh@suse.cz>
22659 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
22660 (cgraph_release_function_body): Likewise.
22661 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
22662 * cgraph.h (cgrpah_node): Rename abstract_and_needed
22663 to used_as_abstract_origin.
22664 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
22665 symbols used as abstract origins.
22666 * cgraphunit.c (analyze_functions): Update.
22667 * ipa.c (symtab_remove_unreachable_nodes): Recompute
22668 used_as_abstract_origin.
22669 * tree-inline.c (tree_function_versioning): Update
22670 used_as_abstract_origin; be ready for DECL_RESULT and
22671 DECL_ARGUMENTS to be NULL.
22673 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
22674 for abstract functions.
22675 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
22678 2013-08-01 Jan Hubicka <jh@suse.cz>
22680 * profile.c (compute_value_histograms): Fix thinko.
22682 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
22684 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
22685 aarch-common-protos.h to extra_headers.
22686 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
22687 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
22688 * config/aarch64/t-aarch64 (aarch-common.o): Define.
22690 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
22692 * config/aarch64/aarch64.md (define_attr "type"): Delete.
22693 Include "../arm/types.md". Define "type" attribute for all patterns.
22694 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
22697 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
22699 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
22700 to support power8 load fusion.
22701 (fusion_gpr_mem_load): Likewise.
22703 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
22705 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
22706 declarations for power8 load fusion.
22707 (emit_fusion_gpr_load): Likewise.
22709 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22710 tuning for power8, turn on fusion mode by default. Turn on sign
22711 extending fusion mode if normal fusion mode is on, and we are at
22713 (fusion_gpr_load_p): New function, return true if we can fuse an
22714 addis instruction with a dependent load to a GPR.
22715 (emit_fusion_gpr_load): Emit the instructions for power8 load
22718 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
22719 (VSX load fusion peepholes): New peepholes to fuse together an
22720 addi instruction with a VSX load instruction.
22722 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
22723 peepholes to fuse an addis instruction with a load to a GPR base
22724 register. If we are supporting sign extending fusions, convert
22725 sign extending loads to zero extending loads and add an explicit
22728 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
22730 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
22731 aarch-common-protos.h to extra_headers.
22732 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
22733 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
22734 (arm_early_store_addr_dep): Likewise.
22735 (arm_no_early_alu_shift_dep): Likewise.
22736 (arm_no_early_alu_shift_value_dep): Likewise.
22737 (arm_no_early_mul_dep): Likewise.
22738 (arm_no_early_store_addr_dep): Likewise.
22739 (arm_mac_accumulator_is_mul_result): Likewise.
22740 (arm_mac_accumulator_is_result): Likewise.
22741 * config/arm/aarch-common.c: ... here. New file.
22742 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
22744 (arm_early_store_addr_dep): Likewise.
22745 (arm_no_early_alu_shift_dep): Likewise.
22746 (arm_no_early_alu_shift_value_dep): Likewise.
22747 (arm_no_early_mul_dep): Likewise.
22748 (arm_no_early_store_addr_dep): Likewise.
22749 (arm_mac_accumulator_is_mul_result): Likewise.
22750 (arm_mac_accumulator_is_result): Likewise.
22751 * config/arm/aarch-common-protos.h: ... here. New file.
22752 * config/arm/t-arm (aarch-common.o): Define.
22754 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
22756 * config/arm/arm.md: Include new file "types.md".
22757 (define_attr "type"): Move from here to ...
22758 (define_attr "mul32"): Likewise.
22759 (define_attr "mul64"): Likewise.
22760 * config/arm/types.md: ... here. New file.
22762 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
22764 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
22765 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
22767 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22769 * gen-pass-instances.awk: Fix offset of substr().
22771 2013-07-31 David Malcolm <dmalcolm@redhat.com>
22773 * Makefile.in (pass-instances.def): New.
22774 (passes.o): Replace dependency on passes.def with one on
22777 * gen-pass-instances.awk: New.
22779 * passes.c (pass_manager::pass_manager): Use pass-instances.def
22780 rather than passes.def, updating local definition of NEXT_PASS
22781 macro to add an extra NUM parameter (currently unused).
22783 2013-07-30 David Malcolm <dmalcolm@redhat.com>
22785 * Makefile.in (PASS_MANAGER_H): New.
22786 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
22787 (passes.o): Likewise.
22788 (statistics.o): Likewise.
22789 (cgraphunit.o): Likewise.
22790 (context.o): Depend on PASS_MANAGER_H.
22792 * pass_manager.h: New.
22794 * cgraphunit.c (cgraph_add_new_function): Update for moves
22795 of globals to fields of pass_manager.
22796 (analyze_function): Likewise.
22797 (expand_function): Likewise.
22798 (ipa_passes): Likewise.
22799 (compile): Likewise.
22801 * context.c (context::context): New.
22802 * context.h (context::context): New.
22803 (context::get_passes): New.
22804 (context::passes_): New.
22806 * lto-cgraph.c (input_node): Update for moves of globals to
22807 fields of pass_manager.
22809 * passes.c (all_passes): Remove, in favor of a field of the
22810 same name within the new class pass_manager.
22811 (all_small_ipa_passes): Likewise.
22812 (all_lowering_passes): Likewise.
22813 (all_regular_ipa_passes): Likewise.
22814 (all_late_ipa_passes): Likewise.
22815 (all_lto_gen_passes): Likewise.
22816 (passes_by_id): Likewise.
22817 (passes_by_id_size): Likewise.
22818 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
22819 the new class pass_manager.
22820 (set_pass_for_id): Convert to...
22821 (pass_manager::set_pass_for_id): ...method.
22822 (get_pass_for_id): Convert to...
22823 (pass_manager::get_pass_for_id): ...method.
22824 (register_one_dump_file): Move body of implementation into...
22825 (pass_manager::register_one_dump_file): ...here.
22826 (register_dump_files_1): Convert to...
22827 (pass_manager::register_dump_files_1): ...method.
22828 (register_dump_files): Convert to...
22829 (pass_manager::register_dump_files): ...method.
22830 (create_pass_tab): Update for moves of globals to fields of
22832 (dump_passes): Move body of implementation into...
22833 (pass_manager::dump_passes): ...here.
22834 (register_pass): Move body of implementation into...
22835 (pass_manager::register_pass): ...here.
22836 (init_optimization_passes): Convert into...
22837 (pass_manager::pass_manager): ...constructor for new
22838 pass_manager class, and initialize the pass_lists array.
22839 (check_profile_consistency): Update for moves of globals to
22840 fields of pass_manager.
22841 (dump_profile_report): Move body of implementation into...
22842 (pass_manager::dump_profile_report): ...here.
22843 (ipa_write_summaries_1): Update for moves of pass lists from
22844 being globals to fields of pass_manager.
22845 (ipa_write_optimization_summaries): Likewise.
22846 (ipa_read_summaries): Likewise.
22847 (ipa_read_optimization_summaries): Likewise.
22848 (execute_all_ipa_stmt_fixups): Likewise.
22850 * statistics.c (statistics_fini): Update for moves of globals to
22851 fields of pass_manager.
22853 * toplev.c (general_init): Replace call to
22854 init_optimization_passes with construction of the pass_manager
22857 * tree-pass.h (all_passes): Remove, in favor of a field of the
22858 same name within the new class pass_manager.
22859 (all_small_ipa_passes): Likewise.
22860 (all_lowering_passes): Likewise.
22861 (all_regular_ipa_passes): Likewise.
22862 (all_lto_gen_passes): Likewise.
22863 (all_late_ipa_passes): Likewise.
22864 (passes_by_id): Likewise.
22865 (passes_by_id_size): Likewise.
22866 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
22867 the new class pass_manager.
22868 (get_pass_for_id): Remove.
22870 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
22872 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
22875 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
22877 * arm.md (mulhi3): New expand pattern.
22879 2013-07-30 Jan Hubicka <jh@suse.cz>
22880 Martin Liska <marxin.liska@gmail.com>
22882 * profile.c (compute_value_histograms): Do not ICE when
22883 there is mismatch only on some counters.
22885 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22887 PR rtl-optimization/57637
22888 * function.c (move_insn_for_shrink_wrap): Also check the
22889 GEN set of the LIVE problem for the liveness analysis
22890 if it exists, otherwise give up.
22892 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22894 PR tree-optimization/57993
22895 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
22896 replaced statement in the candidate table.
22897 (phi_add_costs): Return infinite cost when the hidden basis does
22898 not dominate all phis on which the candidate is dependent.
22899 (replace_one_candidate): Record replaced statement in the
22902 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
22904 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
22905 (ashlv2si3): New expander.
22906 (*ashlv2si3_i): New define_insn_and_split.
22907 * predicates.md (float_operation): Allow patterns with three
22908 basic sub-patterns.
22910 PR rtl-optimization/58021
22911 * mode-switching.c (create_pre_exit): Always split off preceding
22912 insns if we are not at the basic block head.
22914 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
22916 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
22917 (UCLIBC_DYNAMIC_LINKER): New macro.
22918 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
22920 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
22921 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
22923 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
22924 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
22925 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
22926 for SF and DF modes. Use ieee_quad_format for TF mode.
22927 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
22928 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
22929 (mips_option_override): Handle `-mnan=legacy'.
22930 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
22931 `-mabs=2008' and `-mnan=2008'.
22932 (OPTION_DEFAULT_SPECS): Add "nan" default.
22933 (ASM_SPEC): Handle `-mnan='.
22934 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
22935 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
22936 comment accordingly.
22937 (neg<mode>2): Likewise.
22938 * config/mips/mips.opt (mabs, mnan): New options.
22939 * doc/install.texi (Configuration): Document `--with-nan=' option.
22940 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
22942 (MIPS Options): Document them.
22943 * config.gcc <mips*-*-*>: Handle `--with-nan='.
22944 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
22945 * configure: Regenerate.
22946 * config.in: Regenerate.
22948 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
22950 * config/i386/i386.md (float post-reload splitters): Do not check
22951 for subregs of SSE registers.
22953 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
22954 H.J. Lu <hongjiu.lu@intel.com>
22958 * config/i386/i386.md (post-reload splitter
22959 to avoid partial SSE reg dependency stalls): New pattern.
22961 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22963 * config/s390/s390.md ("movcc"): Swap load and store instructions.
22965 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
22967 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
22968 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
22970 2013-07-26 Cary Coutant <ccoutant@google.com>
22972 * dwarf2out.c (die_checksum_ordered): Don't include template
22973 instantiations in signature.
22974 (is_template_parameter): New function.
22975 (is_template_instantiation): New function.
22976 (generate_skeleton_bottom_up): Don't include template instantiations
22978 (generate_skeleton): Likewise.
22979 (break_out_comdat_types): Move recursive call to break out nested
22981 (prune_unused_types_mark_generic_parms_dies): Call
22982 is_template_parameter.
22984 2013-07-26 Ian Bolton <ian.bolton@arm.com>
22986 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
22987 uses vector registers.
22988 * config/aarch64/iterators.md: Add attributes rtn and vas.
22990 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22991 Richard Earnshaw <richard.earnshaw@arm.com>
22993 * combine.c (simplify_comparison): Re-canonicalize operands
22995 * config/arm/arm.md (movcond_addsi): New splitter.
22997 2013-07-25 Sterling Augustine <saugustine@google.com>
22999 * dwarf2out.c (size_of_pubnames): Move code to...
23000 (include_pubname_in_output): ...here. New.
23001 (want_pubnames): Rearrange.
23002 (output_pubnames): Call include_pubname_in_output. Move assertion.
23004 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23006 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
23008 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
23011 * doc/extend.texi: Remove obsolete builtins. Fix
23012 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
23014 2013-07-25 Jan Hubicka <jh@suse.cz>
23016 * cgraph.c (release_function_body): Break out from ...
23017 (cgraph_release_function_body): ... this one; also release DECL_RESULT
23018 and DECL_ARGUMENTS.
23019 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
23020 old_tree in the map.
23021 (create_specialized_node): Update.
23022 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
23024 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
23025 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
23026 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
23027 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
23030 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23032 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
23033 addsi3_carryin_alt2_<optab>): Correct output template.
23035 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23037 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
23038 Adjust for arm_restrict_it.
23039 Remove trailing whitespace.
23041 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
23043 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
23044 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
23046 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
23048 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
23050 PR rtl-optimization/57960
23051 * lra-constraints.c (process_alt_operands): Use the right mode
23052 when checking strict_low.
23054 2013-07-25 Jan Hubicka <jh@suse.cz>
23056 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
23057 * cgraph.c (cgraph_remove_node): Do not release function body
23058 when in cgraph streaming.
23059 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
23060 in other partitions are not considered reachable; fix handling of
23063 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23065 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
23067 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23072 * config/arm/arm.md ("*sibcall_insn): Replace use of
23073 Ss with US. Adjust output for v5 and v4t.
23074 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
23076 * config/arm/constraints.md ("Ss"): Rename to US.
23078 2013-07-25 Terry Guo <terry.guo@arm.com>
23080 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
23081 shift_add/shift_sub0/shift_sub1 RTXs.
23083 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
23084 Anton Blanchard <anton@au1.ibm.com>
23086 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
23087 (altivec_vpks<VI_char>ss): Likewise.
23088 (altivec_vpks<VI_char>us): Likewise.
23089 (altivec_vpku<VI_char>us): Likewise.
23090 (altivec_vpku<VI_char>um): Likewise.
23092 2013-07-24 David Malcolm <dmalcolm@redhat.com>
23094 Introduce context class.
23096 * Makefile.in (CONTEXT_H): New.
23097 (OBJS): Add context.o.
23098 (toplev.o): Add CONTEXT_H to dependencies.
23101 * toplev.c (general_init): Create the singleton gcc::context instance.
23107 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
23109 PR rtl-optimization/57968
23110 * mode-switching.c (create_pre_exit): Allow instructions that
23111 don't set a return register to need a non-exit mode.
23113 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23114 Anton Blanchard <anton@au1.ibm.com>
23116 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
23117 operands to vperm for little endian.
23118 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
23119 of lvsl to create the control mask for a vperm for little endian.
23121 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23122 Anton Blanchard <anton@au1.ibm.com>
23124 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
23125 two operands for little-endian.
23127 2013-07-23 Steve Ellcey <sellcey@mips.com>
23129 * config/mips/mips.c (mips_case_values_threshold): New.
23130 (TARGET_CASE_VALUES_THRESHOLD): Define.
23132 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23133 Anton Blanchard <anton@au1.ibm.com>
23135 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
23136 selection of field for vector splat in little endian mode.
23138 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23140 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
23141 expanders to rs6000.md.
23142 (ior<mode>3): Likewise.
23143 (and<mode>3): Likewise.
23144 (one_cmpl<mode>2): Likewise.
23145 (nor<mode>3): Likewise.
23146 (andc<mode>3): Likewise.
23147 (eqv<mode>3): Likewise.
23148 (nand<mode>3): Likewise.
23149 (orc<mode>3): Likewise.
23151 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
23154 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
23155 to split multi-word logical operations.
23156 (rs6000_split_logical_di): Likewise.
23157 (rs6000_split_logical): Likewise.
23159 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
23160 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
23161 and allow TImode operations in 32-bit.
23162 (vsx_and<mode>3_64bit): Likewise.
23163 (vsx_ior<mode>3_32bit): Likewise.
23164 (vsx_ior<mode>3_64bit): Likewise.
23165 (vsx_xor<mode>3_32bit): Likewise.
23166 (vsx_xor<mode>3_64bit): Likewise.
23167 (vsx_one_cmpl<mode>2_32bit): Likewise.
23168 (vsx_one_cmpl<mode>2_64bit): Likewise.
23169 (vsx_nor<mode>3_32bit): Likewise.
23170 (vsx_nor<mode>3_64bit): Likewise.
23171 (vsx_andc<mode>3_32bit): Likewise.
23172 (vsx_andc<mode>3_64bit): Likewise.
23173 (vsx_eqv<mode>3_32bit): Likewise.
23174 (vsx_eqv<mode>3_64bit): Likewise.
23175 (vsx_nand<mode>3_32bit): Likewise.
23176 (vsx_nand<mode>3_64bit): Likewise.
23177 (vsx_orc<mode>3_32bit): Likewise.
23178 (vsx_orc<mode>3_64bit): Likewise.
23180 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
23181 logical types in GPRs.
23183 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
23184 logical insns to rs6000.md, and allow TImode operations in
23186 (altivec_ior<mode>3): Likewise.
23187 (altivec_xor<mode>3): Likewise.
23188 (altivec_one_cmpl<mode>2): Likewise.
23189 (altivec_nor<mode>3): Likewise.
23190 (altivec_andc<mode>3): Likewise.
23192 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
23193 attributes for moving the 128-bit logical operations into
23195 (BOOL_REGS_OUTPUT): Likewise.
23196 (BOOL_REGS_OP1): Likewise.
23197 (BOOL_REGS_OP2): Likewise.
23198 (BOOL_REGS_UNARY): Likewise.
23199 (BOOL_REGS_AND_CR0): Likewise.
23200 (one_cmpl<mode>2): Add support for DI logical operations on
23201 32-bit, splitting the operations to 32-bit.
23202 (anddi3): Likewise.
23203 (iordi3): Likewise.
23204 (xordi3): Likewise.
23205 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
23206 changes to combine the 32/64-bit code, allow logical operations on
23207 TI mode in 32-bit, and to use similar match_operator patterns like
23208 scalar mode uses. Combine the Altivec and VSX code for logical
23209 operations, and move it here.
23210 (ior<mode>3, 128-bit types): Likewise.
23211 (xor<mode>3, 128-bit types): Likewise.
23212 (one_cmpl<mode>3, 128-bit types): Likewise.
23213 (nor<mode>3, 128-bit types): Likewise.
23214 (andc<mode>3, 128-bit types): Likewise.
23215 (eqv<mode>3, 128-bit types): Likewise.
23216 (nand<mode>3, 128-bit types): Likewise.
23217 (orc<mode>3, 128-bit types): Likewise.
23218 (and<mode>3_internal): Likewise.
23219 (bool<mode>3_internal): Likewise.
23220 (boolc<mode>3_internal1): Likewise.
23221 (boolc<mode>3_internal2): Likewise.
23222 (boolcc<mode>3_internal1): Likewise.
23223 (boolcc<mode>3_internal2): Likewise.
23224 (eqv<mode>3_internal1): Likewise.
23225 (eqv<mode>3_internal2): Likewise.
23226 (one_cmpl1<mode>3_internal): Likewise.
23228 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23230 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23231 Rename flag_stack_usage to flag_stack_usage_info.
23233 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
23235 * config/microblaze/sync.md: New file.
23236 * config/microblaze/microblaze.md: Include sync.md
23237 * config/microblaze/microblaze.c: Add print_operand 'y'.
23238 * config/microblaze/constraints.md: Add memory_contraint
23239 'Q' which is a single register.
23241 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
23243 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
23245 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23247 * reload.c (find_reloads): Exit loop once we find this operand
23248 cannot be reloaded somehow for this alternative.
23250 * reload.c (find_reloads): Exit loop once we find a hard register.
23252 * rtlanal.c (computed_jump_p): Exit loop once we find label
23255 * i386.c (ix86_pad_returns): Exit loop after setting replace.
23257 * cfgloopmanip.c (remove_path): Exit loop after setting
23260 * gensupport.c (subst_dup): Avoid loop if code is not
23261 MATCH_DUP nor MATCH_OP_DUP.
23263 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
23265 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
23267 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23269 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
23270 true for SP_REGNUM if mode == ptr_mode.
23271 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
23272 with value R0_REGNUM + 31.
23274 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23276 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
23277 pad pointer-typed argument downward.
23279 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23281 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
23282 and __ILP32__ when the ILP32 model is in use.
23284 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23286 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
23287 (aarch64_load_symref_appropriately): In the case of
23288 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
23289 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
23290 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
23291 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
23292 if 'mode' doesn't equal to 'ptr_mode'.
23293 (aarch64_output_mi_thunk): Add an assertion on the alignment of
23294 'vcall_offset'; change to call aarch64_emit_move differently depending
23295 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
23296 to calculate the upper bound of 'vcall_offset'.
23297 (aarch64_cannot_force_const_mem): Change to also return true if
23299 (aarch64_legitimize_reload_address): In the case of large
23300 displacements, add new local variable 'xmode' and an assertion
23301 based on it; change to use 'xmode' to generate the new rtx and
23303 (aarch64_asm_trampoline_template): Change to generate the template
23304 differently depending on TARGET_ILP32 or not; change to use
23305 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
23306 (aarch64_trampoline_size): Removed.
23307 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
23308 and replace immediate literals with it. Change to use 'ptr_mode'
23309 instead of 'DImode' and call convert_memory_address if the mode
23310 of 'fnaddr' doesn't equal to 'ptr_mode'.
23311 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
23313 (aarch64_elf_asm_destructor): Likewise.
23314 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
23315 on TARGET_ILP32 instead of aarch64_trampoline_size.
23316 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
23317 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
23318 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
23319 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
23320 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
23321 (storewb_pair<GPI:mode>_<P:mode>): ... this.
23322 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
23323 depending on the value of 'mode'.
23324 (add_losym_<mode>): New.
23325 (ldr_got_small_<mode>): New, based on ldr_got_small.
23326 (ldr_got_small): Remove.
23327 (ldr_got_small_sidi): New.
23328 * config/aarch64/iterators.md (P): New.
23329 (PTR): Change to 'ptr_mode' in the condition.
23331 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
23333 * config.gcc (aarch64*-*-*): Support --with-abi.
23334 (aarch64*-*-elf): Support --with-multilib-list.
23335 (aarch64*-*-linux*): Likewise.
23336 (supported_defaults): Add abi to aarch64*-*-*.
23337 * configure.ac: Mention AArch64 for --with-multilib-list.
23338 * configure: Re-generated.
23339 * config/aarch64/biarchilp32.h: New file.
23340 * config/aarch64/biarchlp64.h: New file.
23341 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
23343 (MULTILIB_DEFAULTS): Ditto.
23344 (DRIVER_SELF_SPECS): Ditto.
23345 (ASM_SPEC): Update to also substitute -mabi.
23346 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
23347 file whose name depends on -mabi= and -mbig-endian.
23348 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
23350 (POINTER_SIZE): New define.
23351 (POINTERS_EXTEND_UNSIGNED): Ditto.
23352 (enum aarch64_abi_type): New enumeration tag.
23353 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
23354 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
23355 (TARGET_ILP32): New define.
23356 * config/aarch64/aarch64.opt (mabi): New.
23357 (aarch64_abi): New.
23358 (ilp32, lp64): New values for -mabi.
23359 * config/aarch64/t-aarch64 (comma): New define.
23360 (MULTILIB_OPTIONS): Ditto.
23361 (MULTILIB_DIRNAMES): Ditto.
23362 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
23363 * doc/invoke.texi: Document -mabi for AArch64.
23365 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
23367 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
23369 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23370 Anton Blanchard <anton@au1.ibm.com>
23372 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
23373 endianness when selecting field to splat.
23375 2013-07-22 Eric Christopher <echristo@gmail.com>
23377 * dwarf2out.c (die_odr_checksum): New function to use
23378 CHECKSUM_ macros and ULEB128 for DIE tag.
23379 (generate_type_signature): Use.
23381 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
23383 * config.gcc (sparc*-*-*): Accept leon3 processor.
23384 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
23385 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
23386 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
23387 * config/sparc/sparc.opt (enum processor_type): Add leon3.
23388 (mfix-ut699): Adjust comment.
23389 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
23390 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
23391 (CPP_CPU_SPEC): Likewise.
23392 (ASM_CPU_SPEC): Likewise.
23393 * config/sparc/sparc.c (leon3_cost): New constant.
23394 (sparc_option_override): Add leon3 support.
23395 (mem_ref): New function.
23396 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
23397 (sparc_do_work_around_errata): Look into the instruction in the delay
23398 slot and adjust accordingly. Add fix for the data cache nullify issues
23399 of the UT699. Change insertion position for the NOP.
23400 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
23401 (leon3_load): New reservation.
23402 (leon_store): Bump latency to 2.
23403 (grfpu): New automaton.
23404 (grfpu_alu): New unit.
23405 (grfpu_ds): Likewise.
23406 (leon_fp_alu): Adjust.
23407 (leon_fp_mult): Delete.
23408 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
23409 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
23410 * config/sparc/sparc.md (cpu): Add leon3.
23411 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
23412 (swapsi): Likewise.
23413 (atomic_test_and_set): Likewise.
23414 (ldstub): Likewise.
23416 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
23418 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
23419 default for R5900 targets.
23420 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
23421 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
23422 * config/mips/mips.c (mips_option_override): Report an error for
23423 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
23424 for -march=r5900 -mhard-float.
23426 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
23428 * df-problems.c (can_move_insns_across): Exit loop once we
23429 find a non-fixed, non-global register.
23431 * ipa-pure-const.c (propagate_nothrow): Exit loop after
23434 * omega.c (omega_eliminate_red): Break after setting red_found.
23435 (omega_problem_has_red_equations): Similarly after setting found.
23436 (omega_query_variable): Similarly after setting coupled.
23438 2013-07-22 Marek Polacek <polacek@redhat.com>
23440 * gimplify.c: Don't include gimple.h twice.
23442 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23444 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
23445 instead of TARGET_THUMB1.
23446 (Pz): New constraint.
23447 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
23449 (compare_negsi_si): Likewise.
23450 (compare_addsi2_op0): Likewise.
23451 (compare_addsi2_op1): Likewise.
23452 (addsi3_carryin_<optab>): Likewise.
23453 (addsi3_carryin_alt2_<optab>): Likewise.
23454 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
23455 for arm_restrict_it.
23456 (subsi3_carryin): Likewise.
23457 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
23458 (minmax_arithsi): Disable for arm_restrict_it.
23459 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
23460 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
23461 (satsi_<SAT:code>_shift): Likewise.
23462 (arm_shiftsi3): Add alternative for 16-bit encoding.
23463 (arm32_movhf): Disable for arm_restrict_it.
23464 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
23465 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
23467 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
23469 * config/arm/arm.md (attribute "insn"): Delete.
23470 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
23471 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
23472 (not_shiftsi): Update for attribute change.
23473 (not_shiftsi_compare0): Likewise.
23474 (not_shiftsi_compare0_scratch): Likewise.
23475 (arm_one_cmplsi2): Likewise.
23476 (thumb1_one_cmplsi2): Likewise.
23477 (notsi_compare0): Likewise.
23478 (notsi_compare0_scratch): Likewise.
23479 (thumb1_movdi_insn): Likewise.
23480 (arm_movsi_insn): Likewise.
23481 (movhi_insn_arch4): Likewise.
23482 (movhi_bytes): Likewise.
23483 (arm_movqi_insn): Likewise.
23484 (thumb1_movqi_insn): Likewise.
23485 (arm32_movhf): Likewise.
23486 (thumb1_movhf): Likewise.
23487 (arm_movsf_soft_insn): Likewise.
23488 (thumb1_movsf_insn): Likewise.
23489 (thumb_movdf_insn): Likewise.
23490 (movsicc_insn): Likewise.
23491 (movsfcc_soft_insn): Likewise.
23492 (and_scc): Likewise.
23493 (cond_move): Likewise.
23494 (if_move_not): Likewise.
23495 (if_not_move): Likewise.
23496 (if_shift_move): Likewise.
23497 (if_move_shift): Likewise.
23498 (if_shift_shift): Likewise.
23499 (if_not_arith): Likewise.
23500 (if_arith_not): Likewise.
23501 (cond_move_not): Likewise.
23502 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
23503 (neon_mov<mode>): Likewise.
23504 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
23505 (thumb2_movsi_vfp): Likewise.
23506 (movsf_vfp): Likewise.
23507 (thumb2_movsf_vfp): Likewise.
23508 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
23510 (cortexa7_older_only): Likewise.
23511 (cortexa7_younger): Likewise.
23512 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
23513 (1020alu_shift_op): Likewise.
23514 (1020alu_shift_reg_op): Likewise.
23515 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
23516 (alu_shift_op): Likewise.
23517 (alu_shift_reg_op): Likewise.
23518 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
23519 (11_alu_shift_op): Likewise.
23520 (11_alu_shift_reg_op): Likewise.
23521 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
23522 (9_alu_shift_reg_op): Likewise.
23523 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
23525 (cortex_a15_alu_shift): Likewise.
23526 (cortex_a15_alu_shift_reg): Likewise.
23527 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
23528 (cortex_a5_alu_shift): Likewise.
23529 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
23531 (cortex_a53_alu_shift): Likewise.
23532 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
23534 (cortex_a7_alu_reg): Likewise.
23535 (cortex_a7_alu_shift): Likewise.
23536 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
23537 (cortex_a8_alu_shift): Likewise.
23538 (cortex_a8_alu_shift_reg): Likewise.
23539 (cortex_a8_mov): Likewise.
23540 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
23541 (cortex_a9_dp_shift): Likewise.
23542 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
23543 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
23544 (cortex_r4_mov): Likewise.
23545 (cortex_r4_alu_shift): Likewise.
23546 (cortex_r4_alu_shift_reg): Likewise.
23547 * config/arm/fa526.md (526_alu_op): Update for attribute change.
23548 (526_alu_shift_op): Likewise.
23549 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
23550 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
23551 (626te_alu_shift_op): Likewise.
23552 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
23553 (726te_alu_op): Likewise.
23554 (726te_alu_shift_op): Likewise.
23555 (726te_alu_shift_reg_op): Likewise.
23556 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
23557 (mp626_alu_shift_op): Likewise.
23558 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
23559 (pj4_alu_e1_conds): Likewise.
23560 (pj4_alu): Likewise.
23561 (pj4_alu_conds): Likewise.
23562 (pj4_shift): Likewise.
23563 (pj4_shift_conds): Likewise.
23564 (pj4_alu_shift): Likewise.
23565 (pj4_alu_shift_conds): Likewise.
23567 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23569 * config/arm/predicates.md (shiftable_operator_strict_it):
23571 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
23572 Disable cond_exec version for arm_restrict_it.
23573 (thumb2_smaxsi3): Convert to generate cond_exec.
23574 (thumb2_sminsi3): Likewise.
23575 (thumb32_umaxsi3): Likewise.
23576 (thumb2_uminsi3): Likewise.
23577 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
23578 (thumb2_neg_abssi2): Likewise.
23579 (thumb2_mov_scc): Add alternative for 16-bit encoding.
23580 (thumb2_movsicc_insn): Adjust alternatives.
23581 (thumb2_mov_negscc): Disable for arm_restrict_it.
23582 (thumb2_mov_negscc_strict_it): New pattern.
23583 (thumb2_mov_notscc_strict_it): New pattern.
23584 (thumb2_mov_notscc): Disable for arm_restrict_it.
23585 (thumb2_ior_scc): Likewise.
23586 (thumb2_ior_scc_strict_it): New pattern.
23587 (thumb2_cond_move): Adjust for arm_restrict_it.
23588 (thumb2_cond_arith): Disable for arm_restrict_it.
23589 (thumb2_cond_arith_strict_it): New pattern.
23590 (thumb2_cond_sub): Adjust for arm_restrict_it.
23591 (thumb2_movcond): Likewise.
23592 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
23593 (thumb2_zero_extendhisi2_v6): Likewise.
23594 (thumb2_zero_extendqisi2_v6): Likewise.
23595 (orsi_notsi_si): Likewise.
23596 (orsi_not_shiftsi_si): Likewise.
23598 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
23600 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
23601 instruction sequence is 1 byte shorter.
23603 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
23605 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
23606 it is not needed after split.
23608 2013-07-20 Iain Sandoe <iain@codesourcery.com>
23611 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
23612 second label for nonlocal goto receivers. Don't output pic base labels
23613 unless we're producing PIC; mark that action unreachable().
23614 (ix86_save_reg): If the function contains a nonlocal label, save the
23616 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
23617 * config/darwin.c (emitted_pic_label_num): New GTY.
23618 (update_pic_label_number_if_needed): New.
23619 (machopic_output_function_base_name): Adjust for nonlocal receiver
23621 (machopic_should_output_picbase_label): New.
23622 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
23623 (nonlocal_goto_receiver): New insn and split.
23625 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
23627 * config/aarch64/aarch64-builtins.c
23628 (aarch64_fold_builtin): Fold abs in all modes.
23629 * config/aarch64/aarch64-simd-builtins.def
23630 (abs): Enable for all modes.
23631 * config/aarch64/arm_neon.h
23632 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
23633 (vabs_f64): Add missing intrinsic.
23635 2013-07-19 Ian Bolton <ian.bolton@arm.com>
23637 * config/aarch64/arm_neon.h (vabs_s64): New function
23639 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
23642 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
23643 * config/avr/avr.md (adjust_len): Add `round'.
23644 * config/avr/avr-protos.h (avr_out_round): New prototype.
23645 (avr_out_plus): Add `out_label' argument.
23646 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
23647 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
23648 Handle the case where `insn' is just a pattern.
23649 (avr_out_bitop): Handle the case where `insn' is just a pattern.
23650 (avr_out_round): New function.
23651 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
23653 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
23655 * config/microblaze/microblaze.c (microblaze_expand_prologue):
23656 Add check for flag_stack_usage to handle -fstack-usage support
23658 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
23660 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
23661 interaction for new Power8 flags and VSX.
23663 2013-07-18 Sriraman Tallam <tmsriram@google.com>
23665 PR middle-end/57698
23666 * tree-inline.c (expand_call_inline): Emit errors during
23667 early_inlining only if optimization is not turned on.
23669 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23673 * passes.c (init_optimization_passes): Move the construction of
23674 the pass hierarchy into a new passes.def file.
23676 * Makefile.in (passes.o): Add dependency on passes.def.
23678 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23680 * passes.c (init_optimization_passes): Introduce macros for
23681 constructing the tree of passes (INSERT_PASSES_AFTER,
23682 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
23683 TERMINATE_PASS_LIST).
23685 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
23686 Wei Mi <wmi@google.com>
23688 PR rtl-optimization/57878
23689 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
23691 (reload_pseudo_compare_func): Check nregs first for reload
23694 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23696 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
23698 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
23700 * read-rtl.c (validate_const_int): Once an invalid character is
23701 seen, quit the loop.
23703 * gengtype.c (write_roots): Similarly once we find the "deletable"
23704 or "if_marked" option.
23706 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
23708 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
23709 "xtab" and "sat". Move value "clz" from here to ...
23710 (attriubte "type"): ... here.
23711 (satsi_<SAT:code>): Delete "insn" attribute.
23712 (satsi_<SAT:code>_shift): Likewise.
23713 (arm_zero_extendqisi2addsi): Likewise.
23714 (arm_extendqisi2addsi): Likewise.
23715 (clzsi2): Update for attribute changes.
23716 (rbitsi2): Likewise.
23717 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
23719 (arm_usatsihi): Likewise.
23720 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
23722 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
23724 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
23725 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
23726 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
23727 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
23728 in alphabetical order.
23729 (attribute "core_cycles"): Update for attribute changes.
23730 (arm_addsi3): Likewise.
23731 (addsi3_compare0): Likewise.
23732 (addsi3_compare0_scratch): Likewise.
23733 (addsi3_compare_op1): Likewise.
23734 (addsi3_compare_op2): Likewise.
23735 (compare_addsi2_op0): Likewise.
23736 (compare_addsi2_op1): Likewise.
23737 (addsi3_carryin_shift_<optab>): Likewise.
23738 (subsi3_carryin_shift): Likewise.
23739 (rsbsi3_carryin_shift): Likewise.
23740 (arm_subsi3_insn): Likewise.
23741 (subsi3_compare0): Likewise.
23742 (subsi3_compare): Likewise.
23743 (arm_andsi3_insn): Likewise.
23744 (thumb1_andsi3_insn): Likewise.
23745 (andsi3_compare0): Likewise.
23746 (andsi3_compare0_scratch): Likewise.
23747 (zeroextractsi_compare0_scratch
23748 (andsi_not_shiftsi_si): Likewise.
23749 (iorsi3_insn): Likewise.
23750 (iorsi3_compare0): Likewise.
23751 (iorsi3_compare0_scratch): Likewise.
23752 (arm_xorsi3): Likewise.
23753 (thumb1_xorsi3_insn): Likewise.
23754 (xorsi3_compare0): Likewise.
23755 (xorsi3_compare0_scratch): Likewise.
23756 (satsi_<SAT:code>_shift): Likewise.
23758 (arm_shiftsi3): Likewise.
23759 (shiftsi3_compare0): Likewise.
23760 (not_shiftsi): Likewise.
23761 (not_shiftsi_compare0): Likewise.
23762 (not_shiftsi_compare0_scratch): Likewise.
23763 (arm_one_cmplsi2): Likewise.
23764 (thumb_one_complsi2): Likewise.
23765 (notsi_compare0): Likewise.
23766 (notsi_compare0_scratch): Likewise.
23767 (thumb1_zero_extendhisi2): Likewise.
23768 (arm_zero_extendhisi2): Likewise.
23769 (arm_zero_extendhisi2_v6): Likewise.
23770 (arm_zero_extendhisi2addsi): Likewise.
23771 (thumb1_zero_extendqisi2): Likewise.
23772 (thumb1_zero_extendqisi2_v6): Likewise.
23773 (arm_zero_extendqisi2): Likewise.
23774 (arm_zero_extendqisi2_v6): Likewise.
23775 (arm_zero_extendqisi2addsi): Likewise.
23776 (thumb1_extendhisi2): Likewise.
23777 (arm_extendhisi2): Likewise.
23778 (arm_extendhisi2_v6): Likewise.
23779 (arm_extendqisi): Likewise.
23780 (arm_extendqisi_v6): Likewise.
23781 (arm_extendqisi2addsi): Likewise.
23782 (thumb1_extendqisi2): Likewise.
23783 (thumb1_movdi_insn): Likewise.
23784 (arm_movsi_insn): Likewise.
23785 (movsi_compare0): Likewise.
23786 (movhi_insn_arch4): Likewise.
23787 (movhi_bytes): Likewise.
23788 (arm_movqi_insn): Likewise.
23789 (thumb1_movqi_insn): Likewise.
23790 (arm32_movhf): Likewise.
23791 (thumb1_movhf): Likewise.
23792 (arm_movsf_soft_insn): Likewise.
23793 (thumb1_movsf_insn): Likewise.
23794 (movdf_soft_insn): Likewise.
23795 (thumb_movdf_insn): Likewise.
23796 (arm_cmpsi_insn): Likewise.
23797 (cmpsi_shiftsi): Likewise.
23798 (cmpsi_shiftsi_swp): Likewise.
23799 (arm_cmpsi_negshiftsi_si): Likewise.
23800 (movsicc_insn): Likewise.
23801 (movsfcc_soft_insn): Likewise.
23802 (arith_shiftsi): Likewise.
23803 (arith_shiftsi_compare0
23804 (arith_shiftsi_compare0_scratch
23805 (sub_shiftsi): Likewise.
23806 (sub_shiftsi_compare0
23807 (sub_shiftsi_compare0_scratch
23808 (and_scc): Likewise.
23809 (cond_move): Likewise.
23810 (if_plus_move): Likewise.
23811 (if_move_plus): Likewise.
23812 (if_move_not): Likewise.
23813 (if_not_move): Likewise.
23814 (if_shift_move): Likewise.
23815 (if_move_shift): Likewise.
23816 (if_shift_shift): Likewise.
23817 (if_not_arith): Likewise.
23818 (if_arith_not): Likewise.
23819 (cond_move_not): Likewise.
23820 (thumb1_ashlsi3): Set type attribute.
23821 (thumb1_ashrsi3): Likewise.
23822 (thumb1_lshrsi3): Likewise.
23823 (thumb1_rotrsi3): Likewise.
23824 (shiftsi3_compare0_scratch): Likewise.
23825 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
23826 (neon_mov<mode>): Likewise.
23827 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
23829 (thumb2_movsi_insn): Likewise.
23830 (thumb2_cmpsi_neg_shiftsi): Likewise.
23831 (thumb2_extendqisi_v6): Likewise.
23832 (thumb2_zero_extendhisi2_v6): Likewise.
23833 (thumb2_zero_extendqisi2_v6): Likewise.
23834 (thumb2_shiftsi3_short): Likewise.
23835 (thumb2_addsi3_compare0_scratch): Likewise.
23836 (orsi_not_shiftsi_si): Likewise.
23837 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
23838 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
23840 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
23841 (1020alu_shift_op): Likewise.
23842 (1020alu_shift_reg_op): Likewise.
23843 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
23844 (alu_shift_op): Likewise.
23845 (alu_shift_reg_op): Likewise.
23846 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
23847 (11_alu_shift_op): Likewise.
23848 (11_alu_shift_reg_op): Likewise.
23849 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
23850 (9_alu_shift_reg_op): Likewise.
23851 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
23853 (cortex_a15_alu_shift): Likewise.
23854 (cortex_a15_alu_shift_reg): Likewise.
23855 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
23857 (cortex_a5_alu_shift): Likewise.
23858 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
23860 (cortex_a53_alu_shift): Likewise.
23861 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
23863 (cortex_a7_alu_reg): Likewise.
23864 (cortex_a7_alu_shift): Likewise.
23865 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
23867 (cortex_a8_alu_shift): Likewise.
23868 (cortex_a8_alu_shift_reg): Likewise.
23869 (cortex_a8_mov): Likewise.
23870 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
23871 (cortex_a9_dp_shift): Likewise.
23872 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
23874 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
23876 (cortex_r4_mov): Likewise.
23877 (cortex_r4_alu_shift): Likewise.
23878 (cortex_r4_alu_shift_reg): Likewise.
23879 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
23880 (526_alu_shift_op): Likewise.
23881 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
23882 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
23883 (626te_alu_shift_op): Likewise.
23884 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
23885 (726te_alu_op): Likewise.
23886 (726te_alu_shift_op): Likewise.
23887 (726te_alu_shift_reg_op): Likewise.
23888 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
23889 (mp626_alu_shift_op): Likewise.
23890 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
23891 (pj4_alu_e1_conds): Likewise.
23892 (pj4_alu): Likewise.
23893 (pj4_alu_conds): Likewise.
23894 (pj4_shift): Likewise.
23895 (pj4_shift_conds): Likewise.
23896 (pj4_alu_shift): Likewise.
23897 (pj4_alu_shift_conds): Likewise.
23898 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
23900 (cortexa7_older_only): Likewise.
23901 (cortexa7_younger): Likewise.
23903 2013-07-18 David Malcolm <dmalcolm@redhat.com>
23905 * ipa-pure-const.c (generate_summary): Rename to...
23906 (pure_const_generate_summary): ... this.
23908 2013-07-17 Iain Sandoe <iain@codesourcery.com>
23910 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
23912 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
23915 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
23918 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23920 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
23921 enabled without -march=zEC12.
23922 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
23925 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
23927 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
23928 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
23929 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
23930 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
23931 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
23932 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
23933 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
23935 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
23936 and ISA_HAS_NMADD3_NMSUB3.
23937 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
23938 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
23939 (nmsub4<mode>, nmsub3<mode>): Likewise.
23940 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
23942 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
23944 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
23945 TARGET_MIPS5400 checking.
23947 2013-07-16 Jakub Jelinek <jakub@redhat.com>
23948 Peter Bergner <bergner@vnet.ibm.com>
23950 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
23951 registers in the comment.
23952 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
23953 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
23954 rather than FIRST_PSEUDO_REGISTERS.
23956 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
23958 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
23959 enable extra ISA flags with TARGET_HTM.
23961 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
23963 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
23966 2013-07-15 Cong Hou <congh@google.com>
23968 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
23969 in compare function for sorting.
23971 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
23973 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
23974 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
23975 * config/rs6000/rs6000.opt: Add -mhtm option.
23976 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
23977 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
23978 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
23979 __HTM__ if the HTM instructions are available.
23980 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
23981 htm_spr_reg_operand): New define_predicates.
23982 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
23983 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
23985 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
23986 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
23987 HTM builtin functions.
23988 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
23989 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
23990 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
23991 (rs6000_builtin_mask_calculate): Likewise.
23992 (rs6000_option_override_internal): Likewise.
23993 (bdesc_htm): Add new HTM builtin support.
23994 (htm_spr_num): New function.
23995 (htm_spr_regno): Likewise.
23996 (rs6000_htm_spr_icode): Likewise.
23997 (htm_expand_builtin): Likewise.
23998 (htm_init_builtins): Likewise.
23999 (rs6000_expand_builtin): Add support for HTM builtin functions.
24000 (rs6000_init_builtins): Likewise.
24001 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
24003 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
24004 (TARGET_HTM, MASK_HTM): Define macros.
24005 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
24006 (FIXED_REGISTERS): Likewise.
24007 (CALL_USED_REGISTERS): Likewise.
24008 (CALL_REALLY_USED_REGISTERS): Likewise.
24009 (REG_ALLOC_ORDER): Likewise.
24010 (enum reg_class): Likewise.
24011 (REG_CLASS_NAMES): Likewise.
24012 (REG_CLASS_CONTENTS): Likewise.
24013 (REGISTER_NAMES): Likewise.
24014 (ADDITIONAL_REGISTER_NAMES): Likewise.
24015 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
24016 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
24017 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
24018 * config/rs6000/htm.md: New file.
24019 * config/rs6000/htmintrin.h: New file.
24020 * config/rs6000/htmxlintrin.h: New file.
24022 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
24024 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24025 Define SYMBOL_TINY_GOT, update comment.
24026 * config/aarch64/aarch64.c
24027 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
24028 (aarch64_expand_mov_immediate): Likewise.
24029 (aarch64_print_operand): Likewise.
24030 (aarch64_classify_symbol): Likewise.
24031 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
24032 (ldr_got_tiny): Define.
24034 2013-07-13 Tobias Grosser <tobias@grosser.es>
24036 PR tree-optimization/54094
24037 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
24038 scheduling dimension for the parallelism check from the polyhedral
24039 information in the AST.
24040 * graphite-dependences.c (carries_deps): Do not assume the schedule is
24043 2013-07-13 Jason Merrill <jason@redhat.com>
24045 * print-tree.c (debug_vec_tree): Use debug_raw.
24046 (debug_raw (vec<tree, va_gc> &)): New.
24047 (debug_raw (vec<tree, va_gc> *)): New.
24048 * tree.h: Declare them.
24050 2013-07-13 Bin Cheng <bin.cheng@arm.com>
24052 * ifcvt.c (ifcvt_after_combine): New static variable.
24053 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
24055 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
24056 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
24057 rest_of_handle_if_after_reload): Pass new argument for if_convert.
24059 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
24061 * config/mips/mips.c (mips_expand_call): Remove empty statement.
24063 2013-07-12 Michael Matz <matz@suse.de>
24065 PR middle-end/55771
24066 * convert.c (convert_to_real): Reject non-float inner types.
24068 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
24070 * config/aarch64/aarch64-protos.h
24071 (aarch64_simd_immediate_valid_for_move): Remove.
24072 * config/aarch64/aarch64.c (simd_immediate_info): New member.
24073 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
24075 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
24077 2013-07-11 Steve Ellcey <sellcey@mips.com>
24079 * config/mips/mips.c (mips_conditional_register_usage): Do not
24080 use t[0-7] registers in MIPS16 mode when optimizing for size.
24082 2013-07-11 Sriraman Tallam <tmsriram@google.com>
24084 * config/i386/i386.c (dispatch_function_versions): Fix array
24085 indexing of function_version_info to match actual_versions.
24087 2013-07-11 Teresa Johnson <tejohnson@google.com>
24089 * vec.h (struct va_gc): Move release out-of-line.
24090 (va_gc::release): Call ggc_free on released vec.
24092 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24094 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
24095 Require GOT register as additional operand in UNSPEC.
24096 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
24097 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24098 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
24099 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
24100 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
24101 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
24102 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
24104 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
24107 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
24108 name seen by assembler/linker rather if available.
24110 2013-07-11 Andreas Schwab <schwab@suse.de>
24112 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
24114 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
24116 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
24118 2013-07-10 Joseph Myers <joseph@codesourcery.com>
24120 * doc/tm.texi.in: Move hook documentation to ....
24121 * target.def: ... here.
24123 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
24124 text on @hook line.
24125 * doc/tm.texi: Regenerate.
24127 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
24130 * doc/invoke.texi: Document -Wconditionally-supported.
24132 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24135 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
24138 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24141 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
24142 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
24143 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
24144 Remove duplicate devices.
24145 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
24146 * config/avr/t-multilib: Regenerate.
24147 * config/avr/avr-tables.opt: Regenerate.
24148 * doc/avr-mmcu.texi: Regenerate.
24150 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
24153 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
24155 2013-07-10 Graham Stott <graham.stott@btinternet.com>
24157 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
24158 the cost of MULT when optimizing for size.
24160 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24162 * config/cr16/cr16-protos.h: Don't include target.h.
24164 2013-07-09 Joseph Myers <joseph@codesourcery.com>
24166 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
24167 adjust register size for TDmode and TFmode for VSX registers.
24169 2013-07-08 Kai Tietz <ktietz@redhat.com>
24172 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
24173 hook_bool_const_tree_true.
24175 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24177 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
24178 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
24179 * config/s390/s390.md: Define FPR*_REGNUM constants.
24180 Fix FPR2_REGNUM constant (18 -> 17).
24181 ("*trunc<BFP:mode><DFP_ALL:mode>2")
24182 ("*trunc<DFP_ALL:mode><BFP:mode>2")
24183 ("trunc<BFP:mode><DFP_ALL:mode>2")
24184 ("trunc<DFP_ALL:mode><BFP:mode>2")
24185 ("*extend<BFP:mode><DFP_ALL:mode>2")
24186 ("*extend<DFP_ALL:mode><BFP:mode>2")
24187 ("extend<BFP:mode><DFP_ALL:mode>2")
24188 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
24191 2013-07-08 Graham Stott <graham.stott@btinternet.com>
24193 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
24195 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24197 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
24198 and cfun_fpr_bit_p to cfun_fpr_save_p.
24199 (s390_frame_area, s390_register_info, s390_frame_info)
24200 (s390_emit_prologue, s390_emit_epilogue)
24201 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
24203 * config/s390/s390.h: Define *_REGNUM macros for floating point
24206 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
24208 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
24210 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
24212 PR rtl-optimization/57786
24213 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
24214 and break out of the loop when it is set to false.
24216 2013-07-08 Jakub Jelinek <jakub@redhat.com>
24219 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
24220 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
24221 (const_int 63)) 0)).
24222 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
24223 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
24224 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
24226 PR rtl-optimization/57829
24227 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
24228 mask bits outside of mode are just sign-extension from mode to HWI.
24230 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
24232 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
24233 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
24234 adjust_address instead of change_address to keep info about alignment.
24235 (emit_strmov): Remove.
24236 (emit_memmov): New function.
24237 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
24238 (expand_movmem_epilogue): Likewise and return updated rtx for
24240 (expand_constant_movmem_prologue): Likewise and return updated rtx for
24241 destination and source.
24242 (decide_alignment): Refactor, handle vector_loop.
24243 (ix86_expand_movmem): Likewise.
24244 (ix86_expand_setmem): Likewise.
24245 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
24247 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
24249 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
24250 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
24252 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24254 * config/i386/sse.md (sse_movlhps): Change alternative 3
24255 of operand 2 to "m".
24257 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
24260 * config/i386/sse.md (iptr): New mode attribute.
24261 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
24262 (<sse>_vm<plusminus_insn><mode>3): Ditto.
24263 (<sse>_vmmul<mode>3): Ditto.
24264 (<sse>_vmdiv<mode>3): Ditto.
24265 (sse_vmrcpv4sf2): Ditto.
24266 (<sse>_vmsqrt<mode>2): Ditto.
24267 (sse_vmrsqrtv4sf2): Ditto.
24268 (<sse>_vm<code><mode>3): Ditto.
24269 (avx_vmcmp<mode>3): Ditto.
24270 (<sse>_vmmaskcmp<mode>3): Ditto.
24271 (<sse>_comi): Ditto.
24272 (<sse>_ucomi): Ditto.
24273 (*xop_vmfrcz_<mode>): Ditto.
24274 (*fmai_fmadd_<mode>): Ditto.
24275 (*fmai_fmsub_<mode>): Ditto.
24276 (*fmai_fnmadd_<mode>): Ditto.
24277 (*fmai_fnmsub_<mode>): Ditto.
24278 (*fma4i_vmfmadd_<mode>): Ditto.
24279 (*fma4i_vmfmsub_<mode>): Ditto.
24280 (*fma4i_vmfnmadd_<mode>): Ditto.
24281 (*fma4i_vmfnmsub_<mode>): Ditto.
24282 (*xop_vmfrcz_<mode>): Ditto.
24283 (sse_cvtps2pi): Ditto.
24284 (sse_cvttps2pi): Ditto.
24285 (sse_cvtss2si): Ditto.
24286 (sse_cvtss2si_2): Ditto.
24287 (sse_cvtss2siq_2): Ditto.
24288 (sse_cvttss2si): Ditto.
24289 (sse_cvttss2siq): Ditto.
24290 (sse_cvtsd2si): Ditto.
24291 (sse_cvtsd2si_2): Ditto.
24292 (sse_cvtsd2siq_2): Ditto.
24293 (sse_cvttsd2si): Ditto.
24294 (sse_cvttsd2siq): Ditto.
24295 (sse_cvtsd2ss): Ditto.
24296 (sse_cvtss2sd): Ditto.
24297 (avx2_pbroadcast<mode>): Ditto.
24298 (avx2_pbroadcast<mode>_1): Ditto.
24299 (*avx_vperm_broadcast_v4sf): Ditto.
24301 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
24302 (sse_movlhps): Ditto.
24303 (sse_storehps): Ditto.
24304 (sse_loadhps): Ditto.
24305 (sse_storelps): Ditto.
24306 (sse_loadlps): Ditto.
24307 (*vec_concatv4sf): Ditto.
24308 (*vec_interleave_highv2df): Ditto.
24309 (*vec_interleave_lowv2df): Ditto.
24310 (*vec_extractv2df_1_sse): Ditto.
24311 (*vec_extractv2df_0_sse): Ditto.
24312 (sse2_storelpd): Ditto.
24313 (sse2_loadlpd): Ditto.
24314 (sse2_movsd): Ditto.
24315 (*vec_concatv4si): Ditto.
24316 (vec_concatv2di): Ditto.
24318 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
24319 for Intel asm dialect.
24320 (mmx_punpcklwd): Ditto.
24321 (mmx_punpckldq): Ditto.
24323 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
24324 for intel assembler dialect.
24326 2013-07-06 Jakub Jelinek <jakub@redhat.com>
24329 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
24330 for BUILT_IN_C{LZ,LRSB}*.
24331 * tree.h (CASE_INT_FN): Add FN##IMAX case.
24332 * tree-vrp.c (extract_range_basic): Handle
24333 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
24334 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
24335 fall thru to code calling set_value*.
24336 * builtins.c (expand_builtin): Remove *IMAX cases.
24337 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
24338 if width is bigger than 2*HWI.
24340 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
24342 PR rtl-optimization/55342
24343 * lra-int.h (lra_subreg_reload_pseudos): New.
24344 * lra.c: Add undoing optional reloads to the block diagram.
24345 (lra_subreg_reload_pseudos): New.
24346 (lra_optional_reload_pseudos): Change comments.
24347 (lra): Init and clear lra_subreg_reload_pseudos. Clear
24348 lra_optional_reload_pseudos after undo transformations.
24349 * lra-assigns.c (pseudo_prefix_title): New.
24350 (lra_setup_reg_renumber): Use it.
24351 (spill_for): Ditto. Check subreg reload pseudos too.
24352 (assign_by_spills): Consider subreg reload pseudos too.
24353 * lra-constraints.c (simplify_operand_subreg): Use
24354 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
24355 (curr_insn_transform): Recognize and do optional reloads.
24356 (undo_optional_reloads): New.
24357 (lra_undo_inheritance): Call undo_optional_reloads.
24359 2013-07-05 Thomas Quinot <quinot@adacore.com>
24361 * tree-complex.c (expand_complex_operations_1): Fix typo.
24363 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
24365 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
24366 (tune_params): New member 'const vec_costs'.
24367 * config/aarch64/aarch64.c (generic_vector_cost): New.
24368 (generic_tunings): New member 'generic_vector_cost'.
24369 (aarch64_builtin_vectorization_cost): New.
24370 (aarch64_add_stmt_cost): New.
24371 (TARGET_VECTORIZE_ADD_STMT_COST): New.
24372 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
24374 2013-07-03 Jakub Jelinek <jakub@redhat.com>
24377 * config/i386/predicates.md (vsib_address_operand): Disallow
24378 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
24380 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
24382 PR middle-end/55030
24383 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
24384 expand_builtin_setjmp_receiver.
24385 (expand_label): Adjust, call expand_builtin_setjmp_receiver
24386 with NULL for the label parameter.
24387 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
24388 the frame-pointer. Adjust comments.
24389 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
24390 only if LABEL is non-NULL.
24392 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
24394 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
24395 (ARM_ABI_AAPCS64): Ditto.
24397 (ARM_DEFAULT_ABI): Ditto.
24399 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24401 * config/aarch64/aarch64-builtins.c
24402 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
24403 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
24405 * config/aarch64/aarch64-simd.md
24406 (aarch64_ld1<VALL:mode>): New.
24407 (aarch64_st1<VALL:mode>): Likewise.
24408 * config/aarch64/arm_neon.h
24409 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
24411 2013-07-02 Sriraman Tallam <tmsriram@google.com>
24413 * config/i386/i386.c (gate_insert_vzeroupper): Check if
24415 (ix86_option_override_internal):Turn on all -mavx target flags by
24416 default as they are dependent on AVX anyway.
24418 2013-07-02 Cary Coutant <ccoutant@google.com>
24420 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
24421 deterministic hash.
24422 (loc_checksum_ordered): Likewise.
24423 (hash_loc_operands): Remove inline keyword.
24425 2013-07-02 Jakub Jelinek <jakub@redhat.com>
24427 PR tree-optimization/57741
24428 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
24429 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
24430 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
24431 Allow REAL_CST step_exprs if flag_associative_math.
24432 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
24434 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24436 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
24438 2013-07-02 Ian Bolton <ian.bolton@arm.com>
24440 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
24442 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24444 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
24446 (iorsi3_insn): Likewise.
24447 (arm_xorsi3): Likewise.
24449 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
24451 * arm.md (attribute "wtype"): Delete. Move attribute values from here
24453 (attribute "type"): ... here, and prefix with "wmmx_".
24454 (attribute "core_cycles"): Update for attribute changes.
24455 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
24456 (tbcstv4hi): Likewise.
24457 (tbcstv2si): Likewise.
24458 (iwmmxt_iordi3): Likewise.
24459 (iwmmxt_xordi3): Likewise.
24460 (iwmmxt_anddi3): Likewise.
24461 (iwmmxt_nanddi3): Likewise.
24462 (iwmmxt_arm_movdi): Likewise.
24463 (iwmmxt_movsi_insn): Likewise.
24464 (mov<mode>_internal): Likewise.
24465 (and<mode>3_iwmmxt): Likewise.
24466 (ior<mode>3_iwmmxt): Likewise.
24467 (xor<mode>3_iwmmxt): Likewise.
24468 (add<mode>3_iwmmxt): Likewise.
24469 (ssaddv8qi3): Likewise.
24470 (ssaddv4hi3): Likewise.
24471 (ssaddv2si3): Likewise.
24472 (usaddv8qi3): Likewise.
24473 (usaddv4hi3): Likewise.
24474 (usaddv2si3): Likewise.
24475 (sub<mode>3_iwmmxt): Likewise.
24476 (sssubv8qi3): Likewise.
24477 (sssubv4hi3): Likewise.
24478 (sssubv2si3): Likewise.
24479 (ussubv8qi3): Likewise.
24480 (ussubv4hi3): Likewise.
24481 (ussubv2si3): Likewise.
24482 (mulv4hi3_iwmmxt): Likewise.
24483 (smulv4hi3_highpart): Likewise.
24484 (umulv4hi3_highpart): Likewise.
24485 (iwmmxt_wmacs): Likewise.
24486 (iwmmxt_wmacsz): Likewise.
24487 (iwmmxt_wmacu): Likewise.
24488 (iwmmxt_wmacuz): Likewise.
24489 (iwmmxt_clrdi): Likewise.
24490 (iwmmxt_clrv8qi): Likewise.
24491 (iwmmxt_clr4hi): Likewise.
24492 (iwmmxt_clr2si): Likewise.
24493 (iwmmxt_uavgrndv8qi3): Likewise.
24494 (iwmmxt_uavgrndv4hi3): Likewise.
24495 (iwmmxt_uavgv8qi3): Likewise.
24496 (iwmmxt_uavgv4hi3): Likewise.
24497 (iwmmxt_tinsrb): Likewise.
24498 (iwmmxt_tinsrh): Likewise.
24499 (iwmmxt_tinsrw): Likewise.
24500 (iwmmxt_textrmub): Likewise.
24501 (iwmmxt_textrmsb): Likewise.
24502 (iwmmxt_textrmuh): Likewise.
24503 (iwmmxt_textrmsh): Likewise.
24504 (iwmmxt_textrmw): Likewise.
24505 (iwmxxt_wshufh): Likewise.
24506 (eqv8qi3): Likewise.
24507 (eqv4hi3): Likewise.
24508 (eqv2si3): Likewise.
24509 (gtuv8qi3): Likewise.
24510 (gtuv4hi3): Likewise.
24511 (gtuv2si3): Likewise.
24512 (gtv8qi3): Likewise.
24513 (gtv4hi3): Likewise.
24514 (gtv2si3): Likewise.
24515 (smax<mode>3_iwmmxt): Likewise.
24516 (umax<mode>3_iwmmxt): Likewise.
24517 (smin<mode>3_iwmmxt): Likewise.
24518 (umin<mode>3_iwmmxt): Likewise.
24519 (iwmmxt_wpackhss): Likewise.
24520 (iwmmxt_wpackwss): Likewise.
24521 (iwmmxt_wpackdss): Likewise.
24522 (iwmmxt_wpackhus): Likewise.
24523 (iwmmxt_wpackwus): Likewise.
24524 (iwmmxt_wpackdus): Likewise.
24525 (iwmmxt_wunpckihb): Likewise.
24526 (iwmmxt_wunpckihh): Likewise.
24527 (iwmmxt_wunpckihw): Likewise.
24528 (iwmmxt_wunpckilb): Likewise.
24529 (iwmmxt_wunpckilh): Likewise.
24530 (iwmmxt_wunpckilw): Likewise.
24531 (iwmmxt_wunpckehub): Likewise.
24532 (iwmmxt_wunpckehuh): Likewise.
24533 (iwmmxt_wunpckehuw): Likewise.
24534 (iwmmxt_wunpckehsb): Likewise.
24535 (iwmmxt_wunpckehsh): Likewise.
24536 (iwmmxt_wunpckehsw): Likewise.
24537 (iwmmxt_wunpckelub): Likewise.
24538 (iwmmxt_wunpckeluh): Likewise.
24539 (iwmmxt_wunpckeluw): Likewise.
24540 (iwmmxt_wunpckelsb): Likewise.
24541 (iwmmxt_wunpckelsh): Likewise.
24542 (iwmmxt_wunpckelsw): Likewise.
24543 (ror<mode>3): Likewise.
24544 (ashr<mode>3_iwmmxt): Likewise.
24545 (lshr<mode>3_iwmmxt): Likewise.
24546 (ashl<mode>3_iwmmxt): Likewise.
24547 (ror<mode>3_di): Likewise.
24548 (ashr<mode>3_di): Likewise.
24549 (lshr<mode>3_di): Likewise.
24550 (ashl<mode>3_di): Likewise.
24551 (iwmmxt_wmadds): Likewise.
24552 (iwmmxt_wmaddu): Likewise.
24553 (iwmmxt_tmia): Likewise.
24554 (iwmmxt_tmiaph): Likewise.
24555 (iwmmxt_tmiabb): Likewise.
24556 (iwmmxt_tmiatb): Likewise.
24557 (iwmmxt_tmiabt): Likewise.
24558 (iwmmxt_tmiatt): Likewise.
24559 (iwmmxt_tmovmskb): Likewise.
24560 (iwmmxt_tmovmskh): Likewise.
24561 (iwmmxt_tmovmskw): Likewise.
24562 (iwmmxt_waccb): Likewise.
24563 (iwmmxt_wacch): Likewise.
24564 (iwmmxt_waccw): Likewise.
24565 (iwmmxt_waligni): Likewise.
24566 (iwmmxt_walignr): Likewise.
24567 (iwmmxt_walignr0): Likewise.
24568 (iwmmxt_walignr1): Likewise.
24569 (iwmmxt_walignr2): Likewise.
24570 (iwmmxt_walignr3): Likewise.
24571 (iwmmxt_wsadb): Likewise.
24572 (iwmmxt_wsadh): Likewise.
24573 (iwmmxt_wsadbz): Likewise.
24574 (iwmmxt_wsadhz): Likewise.
24575 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
24576 (iwmmxt_wabsdiffb): Likewise.
24577 (iwmmxt_wabsdiffh): Likewise.
24578 (iwmmxt_wabsdiffw): Likewise.
24579 (iwmmxt_waddsubhx): Likewise
24580 (iwmmxt_wsubaddhx): Likewise.
24581 (addc<mode>3): Likewise.
24582 (iwmmxt_avg4): Likewise.
24583 (iwmmxt_avg4r): Likewise.
24584 (iwmmxt_wmaddsx): Likewise.
24585 (iwmmxt_wmaddux): Likewise.
24586 (iwmmxt_wmaddsn): Likewise.
24587 (iwmmxt_wmaddun): Likewise.
24588 (iwmmxt_wmulwsm): Likewise.
24589 (iwmmxt_wmulwum): Likewise.
24590 (iwmmxt_wmulsmr): Likewise.
24591 (iwmmxt_wmulumr): Likewise.
24592 (iwmmxt_wmulwsmr): Likewise.
24593 (iwmmxt_wmulwumr): Likewise.
24594 (iwmmxt_wmulwl): Likewise.
24595 (iwmmxt_wqmulm): Likewise.
24596 (iwmmxt_wqmulwm): Likewise.
24597 (iwmmxt_wqmulmr): Likewise.
24598 (iwmmxt_wqmulwmr): Likewise.
24599 (iwmmxt_waddbhusm): Likewise.
24600 (iwmmxt_waddbhusl): Likewise.
24601 (iwmmxt_wqmiabb): Likewise.
24602 (iwmmxt_wqmiabt): Likewise.
24603 (iwmmxt_wqmiatb): Likewise.
24604 (iwmmxt_wqmiatt): Likewise.
24605 (iwmmxt_wqmiabbn): Likewise.
24606 (iwmmxt_wqmiabtn): Likewise.
24607 (iwmmxt_wqmiatbn): Likewise.
24608 (iwmmxt_wqmiattn): Likewise.
24609 (iwmmxt_wmiabb): Likewise.
24610 (iwmmxt_wmiabt): Likewise.
24611 (iwmmxt_wmiatb): Likewise.
24612 (iwmmxt_wmiatt): Likewise.
24613 (iwmmxt_wmiabbn): Likewise.
24614 (iwmmxt_wmiabtn): Likewise.
24615 (iwmmxt_wmiatbn): Likewise.
24616 (iwmmxt_wmiattn): Likewise.
24617 (iwmmxt_wmiawbb): Likewise.
24618 (iwmmxt_wmiawbt): Likewise.
24619 (iwmmxt_wmiawtb): Likewise.
24620 (iwmmxt_wmiawtt): Likewise.
24621 (iwmmxt_wmiawbbn): Likewise.
24622 (iwmmxt_wmiawbtn): Likewise.
24623 (iwmmxt_wmiawtbn): Likewise.
24624 (iwmmxt_wmiawttn): Likewise.
24625 (iwmmxt_wmerge): Likewise.
24626 (iwmmxt_tandc<mode>3): Likewise.
24627 (iwmmxt_torc<mode>3): Likewise.
24628 (iwmmxt_torvsc<mode>3): Likewise.
24629 (iwmmxt_textrc<mode>3): Likewise.
24630 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
24631 (wmmxt_pack): Likewise.
24632 (wmmxt_mult_c1): Likewise.
24633 (wmmxt_mult_c2): Likewise.
24634 (wmmxt_alu_c1): Likewise.
24635 (wmmxt_alu_c2): Likewise.
24636 (wmmxt_alu_c3): Likewise.
24637 (wmmxt_transfer_c1): Likewise.
24638 (wmmxt_transfer_c2): Likewise.
24639 (wmmxt_transfer_c3): Likewise.
24640 (marvell_f_iwmmxt_wstr): Likewise.
24641 (marvell_f_iwmmxt_wldr): Likewise.
24643 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
24645 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
24647 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24650 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24651 * lra-constraints.c (need_for_split_p): Check call used hard regs
24652 living through calls.
24654 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
24655 call used regs for call insn.
24657 2013-06-28 Jakub Jelinek <jakub@redhat.com>
24660 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
24661 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
24663 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
24665 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
24667 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
24669 * lra-constraints.c (need_for_split_p): Check call used hard regs
24670 living through calls.
24672 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
24675 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
24676 to tie with any other modes. Eliminate Altivec vector mode tests,
24677 since these are a subset of ALTIVEC or VSX vector modes. Simplify
24678 code, to return 0 if testing MODE2 for a condition, if we've
24679 already tested MODE1 for the same condition.
24681 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24683 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
24686 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24688 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
24689 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
24691 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
24693 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
24695 (aarch64_symbolic_constant_p): Remove.
24696 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
24697 static. Fix line length and white space.
24698 (aarch64_symbolic_constant_p): Remove.
24699 * config/aarch64/predicates.md (aarch64_valid_symref):
24700 Use aarch64_classify_symbol_expression.
24702 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24704 * config/arm/constraints.md (Ts): New constraint.
24705 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
24707 (compare_scc): Use "Ts" constraint for operand 0.
24708 (ior_scc_scc): Likewise.
24709 (and_scc_scc): Likewise.
24710 (and_scc_scc_nodom): Likewise.
24711 (ior_scc_scc_cmp): Likewise for operand 7.
24712 (and_scc_scc_cmp): Likewise.
24713 * config/arm/thumb2.md (thumb2_movsi_insn):
24714 Add alternatives for 16-bit encodings.
24715 (thumb2_movhi_insn): Likewise.
24716 (thumb2_movsicc_insn): Likewise.
24717 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
24718 (thumb2_negscc): Use "Ts" constraint.
24719 Move mvn instruction outside cond_exec block.
24720 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
24721 for 16-bit encodings.
24723 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24725 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
24727 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
24728 (mulsi3subsi): Likewise.
24729 (mulsidi3adddi): Likewise.
24730 (mulsidi3_v6): Likewise.
24731 (umulsidi3_v6): Likewise.
24732 (umulsidi3adddi_v6): Likewise.
24733 (smulsi3_highpart_v6): Likewise.
24734 (umulsi3_highpart_v6): Likewise.
24735 (mulhisi3tb): Likewise.
24736 (mulhisi3bt): Likewise.
24737 (mulhisi3tt): Likewise.
24738 (maddhisi4): Likewise.
24739 (maddhisi4tb): Likewise.
24740 (maddhisi4tt): Likewise.
24741 (maddhidi4): Likewise.
24742 (maddhidi4tb): Likewise.
24743 (maddhidi4tt): Likewise.
24744 (zeroextractsi_compare0_scratch): Likewise.
24745 (insv_zero): Likewise.
24746 (insv_t2): Likewise.
24747 (anddi_notzesidi_di): Likewise.
24748 (anddi_notsesidi_di): Likewise.
24749 (andsi_notsi_si): Likewise.
24750 (iordi_zesidi_di): Likewise.
24751 (xordi_zesidi_di): Likewise.
24752 (andsi_iorsi3_notsi): Likewise.
24753 (smax_0): Likewise.
24754 (smax_m1): Likewise.
24755 (smin_0): Likewise.
24756 (not_shiftsi): Likewise.
24757 (unaligned_loadsi): Likewise.
24758 (unaligned_loadhis): Likewise.
24759 (unaligned_loadhiu): Likewise.
24760 (unaligned_storesi): Likewise.
24761 (unaligned_storehi): Likewise.
24762 (extv_reg): Likewise.
24763 (extzv_t2): Likewise.
24764 (divsi3): Likewise.
24765 (udivsi3): Likewise.
24766 (arm_zero_extendhisi2addsi): Likewise.
24767 (arm_zero_extendqisi2addsi): Likewise.
24768 (compareqi_eq0): Likewise.
24769 (arm_extendhisi2_v6): Likewise.
24770 (arm_extendqisi2addsi): Likewise.
24771 (arm_movt): Likewise.
24772 (thumb2_ldrd): Likewise.
24773 (thumb2_ldrd_base): Likewise.
24774 (thumb2_ldrd_base_neg): Likewise.
24775 (thumb2_strd): Likewise.
24776 (thumb2_strd_base): Likewise.
24777 (thumb2_strd_base_neg): Likewise.
24778 (arm_negsi2): Add alternative for 16-bit encoding.
24779 (arm_one_cmplsi2): Likewise.
24781 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24783 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
24784 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
24785 (movdfcc): Likewise.
24786 * config/arm/vfp.md (*thumb2_movsf_vfp):
24787 Disable predication for arm_restrict_it.
24788 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
24789 (*thumb2_movdfcc_vfp): Likewise.
24790 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
24791 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
24792 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
24793 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
24794 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
24795 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
24796 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
24797 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
24798 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
24799 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
24800 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
24801 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
24802 Disable predication for arm_restrict_it.
24804 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
24806 * config/i386/bmiintrin.h (_bextr_u32): New.
24807 (_bextr_u64): Ditto.
24809 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
24811 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
24812 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
24813 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
24814 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
24815 * config/mips/n32-elf.h: ...this new file.
24817 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
24820 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
24821 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
24823 2013-06-27 Catherine Moore <clm@codesourcery.com>
24825 * config/mips/mips-tables.opt: Regenerate.
24826 * config/mips/mips-cpus.def: Add m14ke and m14kec.
24827 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
24828 * doc/invoke.texi: Add -m14kc.
24830 2013-06-27 Jakub Jelinek <jakub@redhat.com>
24833 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
24834 constraints of operand 1 and 2.
24837 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
24838 to match RTL canonicalization. Swap predicates and
24839 constraints of operand 1 and 2.
24841 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
24843 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
24844 Process OP_INOUT regs for splitting too.
24846 2013-06-27 Jakub Jelinek <jakub@redhat.com>
24848 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
24849 decl before the loop, initialize to NULL.
24850 (vectorizable_load): Initialize ptr_incr to NULL.
24852 2013-06-27 Martin Jambor <mjambor@suse.cz>
24855 * ipa-ref.h (ipa_maybe_record_reference): Declare.
24856 * ipa-ref.c (ipa_maybe_record_reference): New function.
24857 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
24858 * ipa-cp.c (create_specialized_node): Record potential references from
24860 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
24862 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
24864 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
24865 parameter 'mode' of type 'enum machine_mode mode'; change to pass
24866 'mode' to force_reg.
24867 (aarch64_add_offset): Update calls to aarch64_force_temporary.
24868 (aarch64_expand_mov_immediate): Likewise.
24870 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
24872 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
24873 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
24875 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24877 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
24878 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
24879 (struct machine_function): Add tbegin_p.
24880 (s390_canonicalize_comparison): Fold CC mode compares to
24881 conditional jump if possible.
24882 (s390_emit_jump): Return the emitted jump.
24883 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
24884 Handle CCRAWmode compares.
24885 (s390_option_override): Default to -mhtm if available.
24886 (s390_reg_clobbered_rtx): Handle floating point regs as well.
24887 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
24888 FPRs instead of df_regs_ever_live_p.
24889 (s390_optimize_nonescaping_tx): New function.
24890 (s390_init_frame_layout): Extend clobbered_regs array to cover
24892 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
24893 (s390_expand_tbegin): New function.
24894 (enum s390_builtin): New enum definition.
24895 (code_for_builtin): New array definition.
24896 (s390_init_builtins): New function.
24897 (s390_expand_builtin): New function.
24898 (TARGET_INIT_BUILTINS): Define.
24899 (TARGET_EXPAND_BUILTIN): Define.
24900 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
24901 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
24902 (s390_alc_comparison): Likewise.
24903 * config/s390/s390-modes.def: Add CCRAWmode.
24904 * config/s390/s390.h (processor_flags): Add PF_TX.
24905 (TARGET_CPU_HTM): Define macro.
24906 (TARGET_HTM): Define macro.
24907 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
24908 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
24909 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
24910 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
24911 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
24912 (TBEGIN_MASK, TBEGINC_MASK): New constants.
24913 ("*cc_to_int"): Move up.
24914 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
24915 constants other than 0.
24916 ("*ccraw_to_int"): New insn and splitter definition.
24917 ("tbegin", "tbegin_nofloat", "tbegin_retry")
24918 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
24919 ("tx_assist"): New expander.
24920 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
24921 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
24922 * config/s390/s390.opt: Add -mhtm option.
24923 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
24924 * config/s390/htmxlintrin.h: New file.
24925 * config/s390/htmintrin.h: New file.
24926 * config/s390/s390intrin.h: New file.
24927 * doc/extend.texi: Document htm builtins.
24928 * config.gcc: Add the new header files to extra_headers.
24930 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
24932 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
24933 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
24935 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
24936 Pat Haugen <pthaugen@us.ibm.com>
24937 Peter Bergner <bergner@vnet.ibm.com>
24939 * config/rs6000/power8.md: New.
24940 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
24941 setting for power8 entry.
24942 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
24943 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
24944 test for Power4/Power5 only.
24945 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
24947 (force_new_group): Adjust comment.
24948 * config/rs6000/rs6000.md: Include power8.md.
24950 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
24952 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
24953 * config/arm/arm-protos.h (arm_max_conditional_execute): New
24955 (tune_params): Update comment.
24956 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
24957 (arm_max_conditional_execute): New function.
24958 (thumb2_final_prescan_insn): Use max_insn_skipped and
24959 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
24961 2013-06-25 Jakub Jelinek <jakub@redhat.com>
24963 PR tree-optimization/57705
24964 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
24965 SSA_NAME step, provided that it is not defined inside the loop.
24966 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
24967 (get_initial_def_for_induction): Handle SSA_NAME IV step.
24969 2013-06-25 Martin Jambor <mjambor@suse.cz>
24971 PR middle-end/57670
24972 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
24973 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
24975 (ipa_note_param_call): Initialize member_ptr flag.
24976 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
24977 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
24978 (ipa_write_indirect_edge_info): Stream member_ptr flag.
24979 (ipa_read_indirect_edge_info): Likewise.
24981 2013-06-25 Richard Biener <rguenther@suse.de>
24983 PR middle-end/56977
24984 * passes.c (init_optimization_passes): Move pass_fold_builtins
24985 and pass_dce earlier with -Og.
24987 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
24989 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
24990 <BIT_FIELD_REF>: Remove trailing TAB.
24991 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
24994 2013-06-24 Martin Jambor <mjambor@suse.cz>
24996 PR tree-optimization/57358
24997 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
24998 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
24999 (ipa_analyze_params_uses): Generate pessimistic info when true.
25001 2013-06-24 Martin Jambor <mjambor@suse.cz>
25003 PR tree-optimization/57539
25004 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
25005 global.inlined_to of the new node to it. All callers changed.
25006 * ipa-inline-transform.c (clone_inlined_nodes): New variable
25007 inlining_into, pass it to cgraph_clone_node.
25008 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
25009 ipa_free_edge_args_substructures.
25010 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
25011 rdesc linked list. Do not assert rdesc edges have inlined caller.
25012 Assert we have found an rdesc in the rdesc list.
25014 2013-06-24 Richard Biener <rguenther@suse.de>
25016 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
25017 (pointer_set_lookup): Declare.
25018 (class pointer_map): New template class implementing a
25019 generic pointer to T map.
25020 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
25021 pointer_map<T>::contains, pointer_map<T>::insert,
25022 pointer_map<T>::traverse): New functions.
25023 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
25024 (pointer_set_lookup): New function.
25025 (pointer_set_contains): Use pointer_set_lookup.
25026 (pointer_set_insert): Likewise.
25027 (insert_aux): Remove.
25028 (struct pointer_map_t): Embed a pointer_set_t.
25029 (pointer_map_create): Adjust.
25030 (pointer_map_destroy): Likewise.
25031 (pointer_map_contains): Likewise.
25032 (pointer_map_insert): Likewise.
25033 (pointer_map_traverse): Likewise.
25034 * tree-streamer.h (struct streamer_tree_cache_d): Use a
25035 pointer_map<unsigned> instead of a pointer_map_t.
25036 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
25037 (streamer_tree_cache_lookup): Likewise.
25038 (streamer_tree_cache_create): Likewise.
25039 (streamer_tree_cache_delete): Likewise.
25040 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
25041 pointer_map<unsigned> instead of a pointer_map_t.
25042 (lto_init_tree_ref_encoder): Adjust.
25043 (lto_destroy_tree_ref_encoder): Likewise.
25044 * lto-section-out.c (lto_output_decl_index): Likewise.
25045 (lto_record_function_out_decl_state): Likewise.
25046 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
25048 2013-06-24 Richard Biener <rguenther@suse.de>
25050 PR tree-optimization/57488
25051 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
25053 2013-06-24 Alan Modra <amodra@gmail.com>
25055 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
25056 (gen_easy_altivec_constant): Likewise.
25057 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25058 easy_vector_constant_msb): Likewise.
25060 2013-06-23 Jakub Jelinek <jakub@redhat.com>
25063 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
25064 add missing return true.
25066 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
25069 * config/sh/predicates.md (general_extend_operand): Invoke
25070 general_movsrc_operand for memory operands.
25071 (general_movsrc_operand): Allow reg+reg addressing, do not use
25072 general_operand for memory operands.
25074 2013-06-23 Sriraman Tallam <tmsriram@google.com>
25076 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
25077 when current target options does not apply.
25078 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
25079 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
25080 * config/i386/bmiintrin.h: Pass appropriate target
25081 attributes to header.
25082 * config/i386/mmintrin.h: Ditto.
25083 * config/i386/nmmintrin.h: Ditto.
25084 * config/i386/avx2intrin.h: Ditto.
25085 * config/i386/fxsrintrin.h: Ditto.
25086 * config/i386/tbmintrin.h: Ditto.
25087 * config/i386/xsaveintrin.h: Ditto.
25088 * config/i386/f16cintrin.h: Ditto.
25089 * config/i386/xtestintrin.h: Ditto.
25090 * config/i386/xsaveoptintrin.h: Ditto.
25091 * config/i386/bmi2intrin.h: Ditto.
25092 * config/i386/lzcntintrin.h: Ditto.
25093 * config/i386/smmintrin.h: Ditto.
25094 * config/i386/wmmintrin.h: Ditto.
25095 * config/i386/x86intrin.h: Remove all header include guards.
25096 * config/i386/prfchwintrin.h: Ditto.
25097 * config/i386/pmmintrin.h: Ditto.
25098 * config/i386/tmmintrin.h: Ditto.
25099 * config/i386/xmmintrin.h: Ditto.
25100 * config/i386/popcntintrin.h: Ditto.
25101 * config/i386/rdseedintrin.h: Ditto.
25102 * config/i386/ammintrin.h: Ditto.
25103 * config/i386/emmintrin.h: Ditto.
25104 * config/i386/immintrin.h: Remove all header include guards.
25105 * config/i386/fma4intrin.h: Ditto.
25106 * config/i386/lwpintrin.h: Ditto.
25107 * config/i386/xopintrin.h: Ditto.
25108 * config/i386/ia32intrin.h: Ditto.
25109 * config/i386/avxintrin.h: Ditto.
25110 * config/i386/rtmintrin.h: Ditto.
25111 * config/i386/fmaintrin.h: Ditto.
25112 * config/i386/mm3dnow.h: Ditto.
25114 2013-06-22 Sriraman Tallam <tmsriram@google.com>
25116 * common/config/i386/i386-common.c: Handle LZCNT.
25118 2013-06-22 Andi Kleen <ak@linux.intel.com>
25120 * doc/extend.texi: Use __atomic_store_n instead of
25121 __atomic_store in HLE example.
25123 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
25125 * config/sh/sh.c: Remove <cstdlib> workaround.
25127 2013-06-21 Andi Kleen <ak@linux.intel.com>
25129 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
25131 2013-06-21 Andi Kleen <ak@linux.intel.com>
25133 * doc/extend.texi: Document that __atomic_clear and
25134 __atomic_test_and_set should only be used with bool.
25136 2013-06-20 Jan Hubicka <jh@suse.cz>
25138 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
25139 types_same_for_odr.
25140 * tree.c (decls_same_for_odr): New function.
25141 (same_for_edr): New function.
25142 (types_same_for_odr): New function.
25143 (get_binfo_at_offset): Use it.
25144 * tree.h (types_same_for_odr): Declare.
25146 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
25147 Jason Merrill <jason@redhat.com>
25149 * system.h: Include <cstdlib> as well as <stdlib.h>.
25151 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
25154 * config/i386/i386.c (construct_container): Report error if
25155 long double is used with disabled x87 float returns.
25157 2013-06-20 Jan Hubicka <jh@suse.cz>
25159 * lto-cgraph.c (input_symtab): Do not set cgraph state.
25161 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
25163 PR rtl-optimization/57425
25164 PR rtl-optimization/57569
25165 * alias.c (write_dependence_p): Remove parameters mem_mode and
25166 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
25167 Changed all callers.
25168 (canon_anti_dependence): Get comments and semantics in sync.
25169 Add parameter mem_canonicalized. Changed all callers.
25170 * rtl.h (canon_anti_dependence): Update prototype.
25172 2013-06-20 Richard Biener <rguenther@suse.de>
25174 * data-streamer-in.c (streamer_read_uhwi): Optimize single
25175 byte case, inline streamer_read_uchar and defer section
25178 2013-06-20 Richard Biener <rguenther@suse.de>
25180 PR tree-optimization/57584
25181 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
25182 SSA names into the expanded expression that take part in
25183 abnormal coalescing.
25185 2013-06-19 Sharad Singhai <singhai@google.com>
25187 * gcov.c (print_usage): Handle new option.
25188 (process_args): Ditto.
25189 (get_gcov_intermediate_filename): New function.
25190 (output_intermediate_file): New function.
25191 (output_gcov_file): New function
25192 (generate_results): Handle new option.
25193 (release_function): Relase demangled name.
25194 (read_graph_file): Handle demangled name.
25195 (output_lines): Ditto.
25196 * doc/gcov.texi: Document gcov intermediate format.
25198 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
25201 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
25202 (lra_emit_add): Use the functions. Add comment about Y as an
25205 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
25208 * collect2.c (collect_atexit): New.
25209 (collect_exit): Delete.
25210 (main): Register collect_atexit with atexit.
25211 (collect_wait): Change collect_exit to exit.
25213 * collect2.h (collect_exit): Delete.
25214 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
25216 2013-06-19 Wei Mi <wmi@google.com>
25218 PR rtl-optimization/57518
25219 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
25220 if regno is used in paradoxical subreg.
25221 (update_equiv_regs): Check pdx_subregs[regno] before
25222 set a reg to be equivalent with a mem.
25224 2013-06-19 Matthias Klose <doko@ubuntu.com>
25227 * file-find.h (find_a_file): Add a mode parameter.
25228 * file-find.c (find_a_file): Likewise.
25229 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
25230 with X_OK for the executables.
25231 * collect2.c (main): Call find_a_file with X_OK.
25233 2013-06-19 Steve Ellcey <sellcey@mips.com>
25236 * config/mips/mips.md (casesi_internal_mips16_<mode>):
25237 Use NEXT_INSN instead of next_real_insn.
25239 2013-06-19 Jan Hubicka <jh@suse.cz>
25241 * cgraph.h (const_value_known_p): Replace by ...
25242 (ctor_for_folding): .. this one.
25243 * cgraphunit.c (process_function_and_variable_attributes): Use it.
25244 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
25245 * expr.c (expand_expr_real_1): Likewise.
25246 (string_constant): Likewise.
25247 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
25248 * ipa.c (process_references): Likewise.
25249 (symtab_remove_unreachable_nodes): Likewise.
25250 * ipa-inline-analysis.c (param_change_prob): Likewise.
25251 * gimple-fold.c (canonicalize_constructor_val): Likewise.
25252 (get_base_constructor): Likwise.
25253 * varpool.c (varpool_remove_node): Likewise.
25254 (varpool_remove_initializer): LIkewise.
25255 (dump_varpool_node): LIkwise.
25256 (const_value_known_p): Rewrite to ...
25257 (ctor_for_folding): ... this one.
25259 2013-06-19 Jakub Jelinek <jakub@redhat.com>
25262 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
25263 PERSONALITY in $PATH derived prefixes.
25265 2013-06-19 Jeff Law <law@redhat.com>
25267 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
25270 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
25271 (simplify_bitwise_binary): Use it to simpify certain binary ops on
25274 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
25276 * config/arm/vfp.md: Move VFP instruction classification documentation
25278 * config/arm/arm.md: ... here. Update instruction classification
25281 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
25283 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
25284 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
25285 pattern. Use more efficient sequences on ARMv5 and Thumb2.
25287 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
25290 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25291 with NEXT_INSN. Use tablejump_p to check for jump table data
25294 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
25297 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
25298 that now in C++ the value is correct per the C++ standards.
25300 2013-06-19 Richard Biener <rguenther@suse.de>
25302 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
25303 for global context.
25305 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25308 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25311 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25312 with next_active_insn.
25314 2013-06-18 Sriraman Tallam <tmsriram@google.com>
25316 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
25317 functions are inlined during failures to flag an error.
25318 * tree-inline.c (expand_call_inline): Allow the error to be flagged
25319 in early inline pass.
25321 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
25323 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
25326 2013-06-18 Julian Brown <julian@codesourcery.com>
25328 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
25329 Permit virtual register pre-reload if !strict.
25330 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
25332 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
25334 * config/arm/neon.md (movmisalign<mode>): Use
25335 neon_perm_struct_or_reg_operand instead of
25336 neon_struct_or_register_operand.
25337 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
25338 neon_permissive_struct_operand instead of neon_struct_operand.
25339 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
25340 neon_vector_mem_operand.
25341 * config/arm/predicates.md (neon_struct_operand): Adjust call to
25342 neon_vector_mem_operand.
25343 (neon_permissive_struct_operand): New.
25344 (neon_struct_or_register_operand): Rename to...
25345 (neon_perm_struct_or_reg_operand): This. Adjust call to
25346 neon_vector_mem_operand.
25348 2013-06-18 Richard Biener <rguenther@suse.de>
25350 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
25351 * lto-streamer.h: Include pointer-set.h.
25352 (struct lto_decl_slot): Remove.
25353 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
25354 Remove next_index entry.
25355 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25356 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25357 (lto_init_tree_ref_encoder): Adjust.
25358 (lto_destroy_tree_ref_encoder): Likewise.
25359 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
25360 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
25361 (lto_output_decl_index): Adjust.
25362 (lto_new_out_decl_state): Likewise.
25363 (lto_record_function_out_decl_state): Likewise.
25364 * lto-streamer-out.c (copy_function): Likewise.
25366 2013-06-18 Richard Biener <rguenther@suse.de>
25368 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
25369 * cgraphunit.c: Include cfgloop.h.
25370 (init_lowered_empty_function): Initialize the loop tree.
25371 (assemble_thunk): Insert new BBs into loops.
25373 2013-06-18 Richard Biener <rguenther@suse.de>
25375 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
25376 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
25377 the map from cache entry to cache index optional.
25378 (streamer_tree_cache_replace_tree): Adjust accordingly.
25379 (streamer_tree_cache_append): Likewise.
25380 (streamer_tree_cache_delete): Likewise.
25381 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
25382 streamer cache map from cache entry to cache index.
25383 * lto-streamer-out.c (create_output_block): Adjust.
25385 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
25387 * config/arm/arm.md (attribute "insn"): Move multiplication and
25388 division attributes to...
25389 (attribute "type"): ... here. Remove mult.
25390 (attribute "mul32"): New attribute.
25391 (attribute "mul64"): Add umaal.
25392 (*arm_mulsi3): Update attributes.
25393 (*arm_mulsi3_v6): Likewise.
25394 (*thumb_mulsi3): Likewise.
25395 (*thumb_mulsi3_v6): Likewise.
25396 (*mulsi3_compare0): Likewise.
25397 (*mulsi3_compare0_v6): Likewise.
25398 (*mulsi_compare0_scratch): Likewise.
25399 (*mulsi_compare0_scratch_v6): Likewise.
25400 (*mulsi3addsi): Likewise.
25401 (*mulsi3addsi_v6): Likewise.
25402 (*mulsi3addsi_compare0): Likewise.
25403 (*mulsi3addsi_compare0_v6): Likewise.
25404 (*mulsi3addsi_compare0_scratch): Likewise.
25405 (*mulsi3addsi_compare0_scratch_v6): Likewise.
25406 (*mulsi3subsi): Likewise.
25407 (*mulsidi3adddi): Likewise.
25408 (*mulsi3addsi_v6): Likewise.
25409 (*mulsidi3adddi_v6): Likewise.
25410 (*mulsidi3_nov6): Likewise.
25411 (*mulsidi3_v6): Likewise.
25412 (*umulsidi3_nov6): Likewise.
25413 (*umulsidi3_v6): Likewise.
25414 (*umulsidi3adddi): Likewise.
25415 (*umulsidi3adddi_v6): Likewise.
25416 (*smulsi3_highpart_nov6): Likewise.
25417 (*smulsi3_highpart_v6): Likewise.
25418 (*umulsi3_highpart_nov6): Likewise.
25419 (*umulsi3_highpart_v6): Likewise.
25420 (mulhisi3): Likewise.
25421 (*mulhisi3tb): Likewise.
25422 (*mulhisi3bt): Likewise.
25423 (*mulhisi3tt): Likewise.
25424 (maddhisi4): Likewise.
25425 (*maddhisi4tb): Likewise.
25426 (*maddhisi4tt): Likewise.
25427 (maddhidi4): Likewise.
25428 (*maddhidi4tb): Likewise.
25429 (*maddhidi4tt): Likewise.
25430 (divsi3): Likewise.
25431 (udivsi3): Likewise.
25432 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
25433 (thumb2_mulsi_short_compare0): Likewise.
25434 (thumb2_mulsi_short_compare0_scratch): Likewise.
25435 * config/arm/arm1020e.md (1020mult1): Update attribute change.
25436 (1020mult2): Likewise.
25437 (1020mult3): Likewise.
25438 (1020mult4): Likewise.
25439 (1020mult5): Likewise.
25440 (1020mult6): Likewise.
25441 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
25443 (cortex_a15_mult64): Likewise.
25444 (cortex_a15_sdiv): Likewise.
25445 (cortex_a15_udiv): Likewise.
25446 * config/arm/arm1026ejs.md (mult1): Update attribute change.
25452 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
25453 (pj4_ir_div): Likewise.
25454 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
25455 (11_mult2): Likewise.
25456 (11_mult3): Likewise.
25457 (11_mult4): Likewise.
25458 (11_mult5): Likewise.
25459 (11_mult6): Likewise.
25460 (11_mult7): Likewise.
25461 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
25462 (cortex_a8_mla): Likewise.
25463 (cortex_a8_mull): Likewise.
25464 (cortex_a8_smulwy): Likewise.
25465 (cortex_a8_smlald): Likewise.
25466 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
25467 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
25468 (cortex_r4_mul_3): Likewise.
25469 (cortex_r4_mla_4): Likewise.
25470 (cortex_r4_mla_3): Likewise.
25471 (cortex_r4_smlald): Likewise.
25472 (cortex_r4_mull): Likewise.
25473 (cortex_r4_sdiv): Likewise.
25474 (cortex_r4_udiv): Likewise.
25475 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
25476 (cortex_a7_idiv): Likewise.
25477 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
25478 (9_mult2): Likewise.
25479 (9_mult3): Likewise.
25480 (9_mult4): Likewise.
25481 (9_mult5): Likewise.
25482 (9_mult6): Likewise.
25483 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
25484 (cortex_a53_sdiv): Likewise.
25485 (cortex_a53_udiv): Likewise.
25486 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
25487 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
25488 (mp626_mult2): Likewise.
25489 (mp626_mult3): Likewise.
25490 (mp626_mult4): Likewise.
25491 * config/arm/fa526.md (526_mult1): Update attribute change.
25492 (526_mult2): Likewise.
25493 * config/arm/arm-generic.md (mult): Update attribute change.
25494 (mult_ldsched_strongarm): Likewise.
25495 (mult_ldsched): Likewise.
25496 (multi_cycle): Likewise.
25497 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
25498 * config/arm/fa606te.md (606te_mult1): Update attribute change.
25499 (606te_mult2): Likewise.
25500 (606te_mult3): Likewise.
25501 (606te_mult4): Likewise.
25502 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
25503 (cortex_a9_mac16): Likewise.
25504 (cortex_a9_multiply): Likewise.
25505 (cortex_a9_mac): Likewise.
25506 (cortex_a9_multiply_long): Likewise.
25507 * config/arm/fa626te.md (626te_mult1): Update attribute change.
25508 (626te_mult2): Likewise.
25509 (626te_mult3): Likewise.
25510 (626te_mult4): Likewise.
25512 2013-06-18 Richard Biener <rguenther@suse.de>
25515 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
25517 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25520 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
25521 with next_active_insn.
25523 2013-06-18 Alan Modra <amodra@gmail.com>
25525 * config/rs6000/rs6000.h (enum data_align): New.
25526 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
25527 (DATA_ABI_ALIGNMENT): Define.
25528 (CONSTANT_ALIGNMENT): Correct comment.
25529 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
25530 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
25532 2013-06-17 David Malcolm <dmalcolm@redhat.com>
25534 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
25535 ATTRIBUTE_UNUSED marking.
25537 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
25539 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
25540 alternative and update.
25541 (aarch64_dup_lanedi): Delete.
25542 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
25543 * config/aarch64/aarch64-simd-builtins.def: Update.
25545 2013-06-17 Richard Biener <rguenther@suse.de>
25547 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
25548 (lto_input_scc): Declare.
25549 (lto_input_tree_1): Likewise.
25550 (struct lto_stats_d): Add num_tree_bodies_output and
25551 num_pickle_refs_output.
25552 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
25553 (lto_read_tree_1): Split out from ...
25554 (lto_read_tree): ... this.
25555 (lto_input_scc): New function.
25556 (lto_input_tree_1): Split out from ...
25557 (lto_input_tree): ... this. Handle LTO_tree_scc.
25558 (lto_data_in_create): Create the streamer cache without hashes.
25559 * lto-streamer-out.c (create_output_block): Create the streamer
25560 cache with hashes when not doing WPA.
25561 (lto_write_tree_1): Split out from ...
25562 (lto_write_tree): ... this.
25563 (get_symbol_initial_value): New function.
25564 (lto_output_tree_1): Split out from ...
25565 (lto_output_tree): ... this. Write trees as series of SCCs
25566 using a DFS walk via DFS_write_tree.
25567 (struct sccs, struct scc_entry): New types.
25568 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
25569 (DFS_write_tree_body): New function.
25570 (DFS_write_tree): Likewise.
25571 (hash_tree): Likewise.
25572 (scc_entry_compare): Likewise.
25573 (hash_scc): Likewise.
25574 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
25575 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
25576 TREE_CHAIN as regular reference.
25577 (streamer_read_integer_cst): Remove.
25578 (streamer_get_pickled_tree): Adjust.
25579 * tree-streamer-out.c (streamer_write_chain): Disable streaming
25580 of DECL_EXTERNALs in BLOCK_VARS for now.
25581 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
25583 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
25584 Add hash value argument and record that if hashes are recorded
25586 (streamer_tree_cache_insert_1): Adjust.
25587 (streamer_tree_cache_insert): Likewise.
25588 (streamer_tree_cache_insert_at): Rename to ...
25589 (streamer_tree_cache_replace_tree): ... this and adjust.
25590 (streamer_tree_cache_append): Adjust.
25591 (record_common_node): Likewise.
25592 (streamer_tree_cache_create): Add argument whether to
25593 record hash values together with trees.
25594 (streamer_tree_cache_delete): Adjust.
25595 * tree-streamer.h (struct streamer_tree_cache_d): Add
25597 (streamer_read_integer_cst): Remove.
25598 (streamer_tree_cache_insert): Adjust.
25599 (streamer_tree_cache_append): Likewise.
25600 (streamer_tree_cache_insert_at): Rename to ...
25601 (streamer_tree_cache_replace_tree): ... this and adjust.
25602 (streamer_tree_cache_create): Add argument whether to record hashes.
25603 (streamer_tree_cache_get): Rename to ...
25604 (streamer_tree_cache_get_tree): ... this.
25605 (streamer_tree_cache_get_hash): New function.
25606 * tree.c (cache_integer_cst): New function.
25607 * tree.h (cache_integer_cst): Declare.
25608 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
25609 * lto-symtab.c (lto_varpool_replace_node): Only release
25610 DECL_INITIAL of non-prevailing decls.
25611 * varpool.c (varpool_remove_initializer): Do not release
25612 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
25614 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
25616 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
25617 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
25618 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
25619 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
25620 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
25621 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
25622 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
25623 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
25624 instead of TARGET_64BIT.
25625 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
25626 Require ISA_HAS_<D>DIV.
25628 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
25630 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
25631 (mips*-*-linux*): Move default with_llsc setting to where other
25633 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
25635 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
25636 Likewise. Remove default with_tune setting. Move default float
25637 setting to its own block. Handle with_llsc in the same block as above.
25639 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
25641 PR rtl-optimization/57425
25642 PR rtl-optimization/57569
25643 * alias.c (write_dependence_p): Add new parameters mem_mode,
25644 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
25645 Changed all callers.
25646 (canon_anti_dependence): New function.
25647 * cse.c (check_dependence): Use canon_anti_dependence.
25648 * cselib.c (cselib_invalidate_mem): Likewise.
25649 * rtl.h (canon_anti_dependence): Declare.
25651 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
25653 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
25654 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
25655 ".set mips3" for 64-bit targets.
25657 2013-06-15 Dehao Chen <dehao@google.com>
25659 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
25660 * gimple-low.c (gimple_check_call_matching_types): Likewise.
25661 (gimple_check_call_args): Likewise.
25662 * value-prof.c (check_ic_target): Likewise.
25663 * ipa-inline.c (early_inliner): Likewise.
25664 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
25665 * cgraph.c (cgraph_create_edge_1): Likewise.
25666 (cgraph_make_edge_direct): Likewise.
25668 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25671 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
25672 rs6000_output_move_128bit to handle emitting quad memory
25673 operations. Set attribute length to 8 bytes.
25675 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
25677 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
25679 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
25680 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
25681 (aarch64_<su>mlsl<mode>): Likewise.
25683 2013-06-14 Mike Stump <mikestump@comcast.net>
25685 * Makefile.in (TARGET_H): Add insn-codes.h.
25687 2013-06-14 Alan Modra <amodra@gmail.com>
25689 PR middle-end/57134
25690 PR middle-end/57586
25691 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
25692 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
25693 bitfield expansion when EXPAND_MEMORY.
25694 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
25696 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25698 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
25699 test for clearing quad memory on 32-bit later.
25701 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
25703 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
25704 (fold_negate_expr): Likewise.
25705 (fold_real_zero_addition_p): Handle vectors.
25706 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
25708 2013-06-14 Alan Modra <amodra@gmail.com>
25710 * varasm.c (force_const_mem): Revert 2013-06-07 change.
25712 2013-06-13 Jan Hubicka <jh@suse.cz>
25714 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
25715 Local comdats are not externally visible.
25716 * symtab.c (dump_symtab_base): Dump externally visible.
25717 (verify_symtab_base): Verify back links in the symtab hash.
25719 2013-06-13 Bin Cheng <bin.cheng@arm.com>
25721 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
25722 CONVERT_EXPR as equal nodes.
25724 2013-06-13 Bin Cheng <bin.cheng@arm.com>
25726 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
25728 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
25730 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
25731 Generalize to complex and vector.
25732 * tree.c (build_all_ones_cst): New function.
25733 * tree.h (build_all_ones_cst): Declare it.
25735 2013-06-13 Alan Modra <amodra@gmail.com>
25737 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
25738 * config/rs6000/rs6000.md (signbittf2): New insn.
25739 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
25740 (abstf2_internal, cmptf_internal2): Likewise.
25741 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
25743 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25744 Pat Haugen <pthaugen@us.ibm.com>
25745 Peter Bergner <bergner@vnet.ibm.com>
25747 * config/rs6000/rs6000.c (emit_load_locked): Add support for
25748 power8 byte, half-word, and quad-word atomic instructions.
25749 (emit_store_conditional): Likewise.
25750 (rs6000_expand_atomic_compare_and_swap): Likewise.
25751 (rs6000_expand_atomic_op): Likewise.
25753 * config/rs6000/sync.md (larx): Add new modes for power8.
25755 (AINT): New mode iterator to include TImode as well as normal
25756 integer modes on power8.
25757 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
25758 that VSX registers are not considered. Use AINT mode iterator
25759 instead of INT1 to allow inclusion of quad word atomic operations
25761 (load_locked<mode>): Likewise.
25762 (store_conditional<mode>): Likewise.
25763 (atomic_compare_and_swap<mode>): Likewise.
25764 (atomic_exchange<mode>): Likewise.
25765 (atomic_nand<mode>): Likewise.
25766 (atomic_fetch_<fetchop_name><mode>): Likewise.
25767 (atomic_nand_fetch<mode>): Likewise.
25768 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
25770 (ATOMIC): On power8, add QImode, HImode modes.
25771 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
25772 modes that promote to SImode.
25773 (load_lockedti): Convert TImode arguments to PTImode, so that we
25774 get a guaranteed even/odd register pair.
25775 (load_lockedpti): Likewise.
25776 (store_conditionalti): Likewise.
25777 (store_conditionalpti): Likewise.
25779 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
25780 atomic load/store instructions.
25783 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
25785 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
25787 (insn_count): New attribute, with most cases extracted from...
25788 (length): ...here. Redefine most cases in terms of insn_count.
25789 (single_insn): Delete.
25790 (can_delay): Use insn_count to check for single instructions.
25791 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
25792 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
25793 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
25794 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
25795 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
25796 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
25797 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
25798 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
25799 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
25800 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
25801 rather than "length".
25802 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
25803 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
25804 Use "insn_count" rather than "length".
25805 * config/mips/mips-dsp.md
25806 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
25807 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
25810 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
25812 PR tree-optimization/57361
25813 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
25815 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
25817 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
25819 (aarch64_simd_combine<mode>): New instruction expansion.
25820 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
25821 function prototype.
25822 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
25823 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
25825 2013-06-12 Jan Hubicka <jh@suse.cz>
25827 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
25828 decl has when in streaming stage.
25829 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
25830 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
25832 2013-06-12 Roland Stigge <stigge@antcom.de>
25835 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
25837 2013-06-12 Jakub Jelinek <jakub@redhat.com>
25839 PR tree-optimization/57537
25840 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
25841 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
25843 2013-06-12 Richard Biener <rguenther@suse.de>
25845 * data-streamer.h (streamer_write_char_stream): CSE
25846 obs->current_pointer.
25847 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
25848 streamer_write_char_stream manually and optimize the resulting loop.
25849 (streamer_write_hwi_stream): Likewise.
25851 2013-06-12 Jan Hubicka <jh@suse.cz>
25853 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
25854 * cgraph.h (varpool_create_empty_node): Declare.
25855 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
25857 * symtab.c (symtab_unregister_node): Be lax about missin entries
25859 (symtab_get_node): Update comment.
25860 * varpool.c (varpool_create_empty_node): Break out from ...
25861 (varpool_node_for_decl): ... here.
25862 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
25864 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
25866 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
25867 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
25868 part. Use straight-line flow at the end.
25869 <COMPONENT_REF>: Remove superfluous else.
25870 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
25872 2013-06-12 Jakub Jelinek <jakub@redhat.com>
25875 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
25876 target hook even for !TREE_PUBLIC decls. If no resolution info
25877 is available, return false for common and external decls.
25879 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25881 * config/rl78/constraints.md (U): New constraint.
25882 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
25885 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25888 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
25889 to allow returning address to AT_PLATFORM name.
25891 2013-06-11 Jan Hubicka <jh@suse.cz>
25893 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
25894 * cgraph.h (symtab_node_base): Add weakref flag.
25895 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
25896 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
25897 (output_weakrefs): Use weakref flag.
25898 * fold-const.c (simple_operand_p): Handle WEAK.
25899 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
25900 * ipa.c (varpool_externally_visible_p): Drop weakref.
25901 (function_and_variable_visibility): Update comment; fix weakref
25902 sanity checks; do not clear DECL_WEAK on them.
25903 * lto-cgraph.c (lto_output_node): update.
25904 (lto_output_varpool_node): Update.
25905 (input_overwrite_node): Update.
25906 (input_node): Update.
25907 (input_varpool_node): Update.
25908 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
25909 (lto_symtab_merge_symbols): Add sanity check.
25910 (lto_symtab_prevailing_decl): Do not special case weakrefs.
25911 * passes.c (rest_of_decl_compilation): Set static flag, too.
25912 * symtab.c (dump_symtab_base): Dump weakref.
25913 (verify_symtab_base): Sanity check weakrefs.
25914 (symtab_make_decl_local): Remove duplicated code.
25915 (symtab_alias_ultimate_target): Simplify.
25916 * varpool.c (varpool_create_variable_alias): Set weakref flag.
25918 2013-06-11 Tom de Vries <tom@codesourcery.com>
25920 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
25921 sequence_vect == NULL.
25923 2013-06-11 DJ Delorie <dj@redhat.com>
25925 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
25926 (rl78_unwind_word_mode): New.
25928 2013-06-11 David Malcolm <dmalcolm@redhat.com>
25930 * final.c (debug_prefix_maps): Make static.
25932 2013-06-11 David Malcolm <dmalcolm@redhat.com>
25934 * function.c (initial_trampoline): Remove stray copy.
25936 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
25938 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
25940 2013-06-11 Martin Jambor <mjambor@suse.cz>
25942 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
25943 within bounds at the beginning of the function.
25945 2013-06-11 Alan Modra <amodra@gmail.com>
25947 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
25949 (get_named_section): Don't NULL !DECL_P decl.
25951 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
25953 * doc/invoke.texi (core-avx2): Document.
25955 (atom): Updated with MOVBE.
25957 2013-06-11 Richard Biener <rguenther@suse.de>
25959 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
25961 2013-06-11 Anton Blanchard <anton@samba.org>
25963 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
25964 correct shift value in little-endian mode.
25966 2013-06-11 Jakub Jelinek <jakub@redhat.com>
25969 * varasm.c (get_variable_align): Move #endif to the right place.
25971 2013-06-10 Cary Coutant <ccoutant@google.com>
25973 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
25974 for hash so that hash table traversal order is deterministic.
25976 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25977 Pat Haugen <pthaugen@us.ibm.com>
25978 Peter Bergner <bergner@vnet.ibm.com>
25980 * config/rs6000/vector.md (GPR move splitter): Do not split moves
25981 of vectors in GPRS if they are direct moves or quad word load or
25984 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
25986 (direct_move_p): Likewise.
25987 (quad_load_store_p): Likewise.
25989 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
25990 classes into bins based on the physical register type.
25991 (reg_class_to_reg_type): Likewise.
25992 (IS_STD_REG_TYPE): Likewise.
25993 (IS_FP_VECT_REG_TYPE): Likewise.
25994 (reload_fpr_gpr): Arrays to determine what insn to use if we can
25995 use direct move instructions.
25996 (reload_gpr_vsx): Likewise.
25997 (reload_vsx_gpr): Likewise.
25998 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
25999 information that is a simplification of register classes. Also
26000 precalculate direct move reload helpers.
26001 (direct_move_p): New function to return true if the operation can
26002 be done as a direct move instruciton.
26003 (quad_load_store_p): New function to return true if the operation
26004 is a quad memory operation.
26005 (rs6000_legitimize_address): If quad memory, only allow register
26006 indirect for TImode addresses.
26007 (rs6000_legitimate_address_p): Likewise.
26008 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
26009 (rs6000_reload_register_type): Likewise.
26010 (register_to_reg_type): Return register type.
26011 (rs6000_secondary_reload_simple_move): New helper function for
26012 secondary reload and secondary memory needed to identify anything
26013 that is a simple move, and does not need reloading.
26014 (rs6000_secondary_reload_direct_move): New helper function for
26015 secondary reload to identify cases that can be done with several
26016 instructions via the direct move instructions.
26017 (rs6000_secondary_reload_move): New helper function for secondary
26018 reload to identify moves between register types that can be done.
26019 (rs6000_secondary_reload): Add support for quad memory operations
26020 and for direct move.
26021 (rs6000_secondary_memory_needed): Likewise.
26022 (rs6000_debug_secondary_memory_needed): Change argument names.
26023 (rs6000_output_move_128bit): New function to return the move to
26024 use for 128-bit moves, including knowing about the various
26025 limitations of quad memory operations.
26027 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
26028 memory operations. call rs6000_output_move_128bit for the actual
26029 instruciton(s) to generate.
26030 (vsx_movti_64bit): Likewise.
26032 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
26033 (UNSPEC_P8V_MTVSRWZ): Likewise.
26034 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
26035 (UNSPEC_P8V_MTVSRD): Likewise.
26036 (UNSPEC_P8V_XXPERMDI): Likewise.
26037 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
26038 (UNSPEC_FUSION_GPR): Likewise.
26039 (FMOVE128_GPR): New iterator for direct move.
26040 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
26041 (f32_sv): Likewise.
26042 (f32_dm): Likewise.
26043 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
26044 loads and direct move instructions.
26045 (zero_extendsidi2_lfiwzx): Likewise.
26046 (extendsidi2_lfiwax): Likewise.
26047 (extendsidi2_nocell): Likewise.
26048 (floatsi<mode>2_lfiwax): Likewise.
26049 (lfiwax): Likewise.
26050 (floatunssi<mode>2_lfiwzx): Likewise.
26051 (lfiwzx): Likewise.
26052 (fix_trunc<mode>_stfiwx): Likewise.
26053 (fixuns_trunc<mode>_stfiwx): Likewise.
26054 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
26055 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
26056 (parity<mode>2_cmpb): Set length/type attr.
26057 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
26058 for 'mr.' to fast_compare.
26059 (bpermd_<mode>): Change type attr to popcnt.
26060 (p8_fmrgow_<mode>): New insns for power8 direct move support.
26061 (p8_mtvsrwz_1): Likewise.
26062 (p8_mtvsrwz_2): Likewise.
26063 (reload_fpr_from_gpr<mode>): Likewise.
26064 (p8_mtvsrd_1): Likewise.
26065 (p8_mtvsrd_2): Likewise.
26066 (p8_xxpermdi_<mode>): Likewise.
26067 (reload_vsx_from_gpr<mode>): Likewise.
26068 (reload_vsx_from_gprsf): Likewise.
26069 (p8_mfvsrd_3_<mode>): LIkewise.
26070 (reload_gpr_from_vsx<mode>): Likewise.
26071 (reload_gpr_from_vsxsf): Likewise.
26072 (p8_mfvsrd_4_disf): Likewise.
26073 (multi-word GPR splits): Do not split direct moves or quad memory
26076 2013-06-10 David Malcolm <dmalcolm@redhat.com>
26078 * tree-into-ssa.c (interesting_blocks): Make static.
26080 2013-06-10 Jakub Jelinek <jakub@redhat.com>
26083 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
26084 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
26085 Use DATA_ABI_ALIGNMENT for that case instead if defined.
26086 (get_variable_align): New function.
26087 (get_variable_section, emit_bss, emit_common,
26088 assemble_variable_contents, place_block_symbol): Use
26089 get_variable_align instead of DECL_ALIGN.
26090 (assemble_noswitch_variable): Add align argument, use it
26091 instead of DECL_ALIGN.
26092 (assemble_variable): Adjust caller. Use get_variable_align
26093 instead of DECL_ALIGN.
26094 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
26096 (DATA_ABI_ALIGNMENT): Define.
26097 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
26098 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
26099 opt is false, only return the psABI mandated alignment increase.
26100 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
26101 (DATA_ABI_ALIGNMENT): ... this.
26102 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
26103 (DATA_ABI_ALIGNMENT): ... this.
26104 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
26105 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
26106 (DATA_ABI_ALIGNMENT): ... this.
26107 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
26108 * doc/tm.texi: Regenerated.
26110 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
26112 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
26113 cmp_code to construct REG_EQUAL note.
26115 2013-06-09 Jakub Jelinek <jakub@redhat.com>
26118 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
26119 that operands[2] doesn't overlap with operands[0].
26121 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
26122 Jan Hubicka <jh@suse.cz>
26124 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
26125 hack to mark symbols as used.
26127 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
26129 PR rtl-optimization/57559
26130 * lra-constraints.c (process_alt_operands): Don't discourage
26131 memory with known offset for offsetable memory constraint.
26132 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
26134 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
26136 * varasm.c (struct oc_local_state): Reorder fields.
26137 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
26138 and adjust accordingly.
26139 (output_constructor): Reorder initialization code and adjust call to
26140 output_constructor_bitfield.
26142 2013-06-07 Jan Hubicka <jh@suse.cz>
26144 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
26146 2013-06-07 David Malcolm <dmalcolm@redhat.com>
26148 * tree-object-size.c (unknown): Make const.
26150 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26152 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
26153 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
26154 for last alternative in the cpu_facility attribute.
26156 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26159 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
26160 (xordi3): Change operand 2 constraint to arm_xordi_operand.
26161 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
26162 * config/arm/constraints.md (Dg): New constraint.
26163 * config/arm/neon.md (xordi3_neon): Remove.
26164 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
26165 * config/arm/predicates.md (arm_xordi_operand): New predicate.
26167 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26169 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
26170 Clean up alternatives.
26172 2013-06-07 Alan Modra <amodra@gmail.com>
26174 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
26177 2013-06-07 Alan Modra <amodra@gmail.com>
26179 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
26181 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26183 * config/arm/constraints.md (Df): New constraint.
26184 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
26185 Correct length attribute for last two alternatives.
26187 2013-06-07 Alan Modra <amodra@gmail.com>
26189 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26190 override user -mfp-in-toc.
26191 (offsettable_ok_by_alignment): Consider just the current access
26192 rather than the whole object, unless BLKmode. Handle
26193 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
26194 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
26195 for -mcmodel=medium.
26196 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
26197 override user -mfp-in-toc or -msum-in-toc. Default to
26198 -mno-fp-in-toc for -mcmodel=medium.
26200 2013-06-06 DJ Delorie <dj@redhat.com>
26202 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
26203 TARGET_VALID_POINTER_MODE.
26205 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26206 Pat Haugen <pthaugen@us.ibm.com>
26207 Peter Bergner <bergner@vnet.ibm.com>
26209 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26210 Document new power8 builtins.
26212 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
26213 condition code register, to allow 128-bit logical operations to be
26214 done in the VSX or GPR registers.
26215 (nor<mode>3): Use the canonical form for nor.
26216 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
26217 vclz*, and vpopcnt* vector instructions.
26218 (nand<mode>3): Likewise.
26219 (orc<mode>3): Likewise.
26220 (clz<mode>2): LIkewise.
26221 (popcount<mode>2): Likewise.
26223 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
26224 that only the GPRs are recognized.
26226 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26227 support for new power8 builtins.
26229 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
26231 (xscvdpspn): Likewise.
26237 (vpopcnt): Likewise.
26238 (vpopcntb): Likewise.
26239 (vpopcnth): Likewise.
26240 (vpopcntw): Likewise.
26241 (vpopcntd): Likewise.
26243 (vmrgew): Likewise.
26244 (vmrgow): Likewise.
26246 (eqv_v16qi3): Likewise.
26247 (eqv_v8hi3): Likewise.
26248 (eqv_v4si3): Likewise.
26249 (eqv_v2di3): Likewise.
26250 (eqv_v4sf3): Likewise.
26251 (eqv_v2df3): Likewise.
26253 (nand_v16qi3): Likewise.
26254 (nand_v8hi3): Likewise.
26255 (nand_v4si3): Likewise.
26256 (nand_v2di3): Likewise.
26257 (nand_v4sf3): Likewise.
26258 (nand_v2df3): Likewise.
26260 (orc_v16qi3): Likewise.
26261 (orc_v8hi3): Likewise.
26262 (orc_v4si3): Likewise.
26263 (orc_v2di3): Likewise.
26264 (orc_v4sf3): Likewise.
26265 (orc_v2df3): Likewise.
26267 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
26268 allow power8 quad mode in 64-bit.
26269 (rs6000_builtin_vectorized_function): Add support to vectorize
26270 ISA 2.07 count leading zeros, population count builtins.
26271 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
26272 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
26273 (builtin_function_type): Add vgbbd builtin function which takes an
26275 (altivec_expand_vec_perm_const): Add support for new power8 merge
26278 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
26279 that does not include TImdoe for use with 32-bit.
26280 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
26282 (UNSPEC_VSX_CVDPSPN): Likewise.
26283 (vsx_xscvdpspn): Likewise.
26284 (vsx_xscvspdpn): Likewise.
26285 (vsx_xscvdpspn_scalar): Likewise.
26286 (vsx_xscvspdpn_directmove): Likewise.
26287 (vsx_and<mode>3): Split logical operations into 32-bit and
26288 64-bit. Add support to do logical operations on TImode as well as
26289 VSX vector types. Allow logical operations to be done in either
26290 VSX registers or in general purpose registers in 64-bit mode. Add
26291 splitters if GPRs were used. For AND, add clobber of CCmode to
26292 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
26294 (vsx_and<mode>3_32bit): Likewise.
26295 (vsx_and<mode>3_64bit): Likewise.
26296 (vsx_ior<mode>3): Likewise.
26297 (vsx_ior<mode>3_32bit): Likewise.
26298 (vsx_ior<mode>3_64bit): Likewise.
26299 (vsx_xor<mode>3): Likewise.
26300 (vsx_xor<mode>3_32bit): Likewise.
26301 (vsx_xor<mode>3_64bit): Likewise.
26302 (vsx_one_cmpl<mode>2): Likewise.
26303 (vsx_one_cmpl<mode>2_32bit): Likewise.
26304 (vsx_one_cmpl<mode>2_64bit): Likewise.
26305 (vsx_nor<mode>3): Likewise.
26306 (vsx_nor<mode>3_32bit): Likewise.
26307 (vsx_nor<mode>3_64bit): Likewise.
26308 (vsx_andc<mode>3): Likewise.
26309 (vsx_andc<mode>3_32bit): Likewise.
26310 (vsx_andc<mode>3_64bit): Likewise.
26311 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
26312 and xxlorc instructions.
26313 (vsx_eqv<mode>3_64bit): Likewise.
26314 (vsx_nand<mode>3_32bit): Likewise.
26315 (vsx_nand<mode>3_64bit): Likewise.
26316 (vsx_orc<mode>3_32bit): Likewise.
26317 (vsx_orc<mode>3_64bit): Likewise.
26319 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
26321 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
26323 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
26324 (p8_vmrgow): Likewise.
26325 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
26326 GPRs to be split under VSX.
26327 (p8v_clz<mode>2): Add power8 count leading zero support.
26328 (p8v_popcount<mode>2): Add power8 population count support.
26329 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
26332 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
26335 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
26337 (vec_nand): Likewise.
26338 (vec_vclz): Likewise.
26339 (vec_vclzb): Likewise.
26340 (vec_vclzd): Likewise.
26341 (vec_vclzh): Likewise.
26342 (vec_vclzw): Likewise.
26343 (vec_vgbbd): Likewise.
26344 (vec_vmrgew): Likewise.
26345 (vec_vmrgow): Likewise.
26346 (vec_vpopcnt): Likewise.
26347 (vec_vpopcntb): Likewise.
26348 (vec_vpopcntd): Likewise.
26349 (vec_vpopcnth): Likewise.
26350 (vec_vpopcntw): Likewise.
26352 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26354 PR rtl-optimization/57468
26355 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
26358 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26360 PR rtl-optimization/57459
26361 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
26362 type when setting live regs.
26364 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
26366 * config/s390/s390.opt (mlra): New option.
26367 * config/s390/s390.c (s390_decompose_address): Check displacement
26368 for all registers for LRA.
26369 (s390_secondary_reload): Don't used secondary reloads for LRA.
26370 (s390_lra_p): New function.
26371 (TARGET_LRA_P): Define.
26372 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
26373 of attribute cpu_facility to zarch for the last alternative.
26374 (*cmpmem_short): Ditto.
26376 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
26378 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
26379 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
26380 (arm_expand_prologue): Likewise.
26382 2013-06-06 Teresa Johnson <tejohnson@google.com>
26385 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
26386 as this is now done by redirect_edge_and_branch_force.
26387 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
26388 barriers, and fix interaction with splitting.
26389 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
26390 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
26391 reflect changes made in the routine.
26392 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
26393 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
26394 since this is called in cfglayout mode, and replace partition fixup
26395 with assert as that is now done by force_nonfallthru_and_redirect.
26396 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
26397 already be marked with region crossing note.
26398 (insert_section_boundary_note): Make non-static, gate on flag
26399 has_bb_partition, rewrite to also check for multiple partitions.
26400 (rest_of_handle_reorder_blocks): Remove call to
26401 insert_section_boundary_note, now done later during free_cfg.
26402 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
26403 * bb-reorder.h (insert_section_boundary_note): Declare.
26404 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
26405 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
26406 invoke insert_section_boundary_note.
26407 (try_redirect_by_replacing_jump): Remove unnecessary
26408 check for region crossing note.
26409 (fixup_partition_crossing): New function.
26410 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
26411 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
26412 in non-cfglayout mode.
26413 (force_nonfallthru_and_redirect): Fixup partition boundaries,
26414 remove old code that tried to do this. Emit barrier correctly
26415 when we are in cfglayout mode.
26416 (last_bb_in_partition): New function.
26417 (rtl_split_edge): Correctly fixup partition boundaries.
26418 (commit_one_edge_insertion): Remove old code that tried to
26419 fixup region crossing edge since this is now handled in
26420 split_block, and set up insertion point correctly since
26421 block may now end in a jump.
26422 (verify_hot_cold_block_grouping): Guard against checking when not in
26423 linearized RTL mode.
26424 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
26426 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
26427 rtl_verify_flow_info, so not called in cfglayout mode.
26428 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
26429 (fixup_reorder_chain): Remove old code that attempted to fixup region
26430 crossing note as this is now handled in force_nonfallthru_and_redirect.
26431 (duplicate_insn_chain): Don't duplicate switch section notes.
26432 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
26434 * basic-block.h (emit_barrier_after_bb): Declare.
26436 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26438 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
26439 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
26440 arm_usatsihi): Adjust alternatives for arm_restrict_it.
26442 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26444 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
26446 * config/arm/ldmstm.md: Regenerate.
26448 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26450 * config/arm/sync.md (atomic_loaddi_1):
26451 Disable predication for arm_restrict_it.
26452 (arm_load_exclusive<mode>): Likewise.
26453 (arm_load_exclusivesi): Likewise.
26454 (arm_load_exclusivedi): Likewise.
26455 (arm_load_acquire_exclusive<mode>): Likewise.
26456 (arm_load_acquire_exclusivesi): Likewise.
26457 (arm_load_acquire_exclusivedi): Likewise.
26458 (arm_store_exclusive<mode>): Likewise.
26459 (arm_store_exclusive<mode>): Likewise.
26460 (arm_store_release_exclusivedi): Likewise.
26461 (arm_store_release_exclusive<mode>): Likewise.
26463 2013-06-06 Richard Biener <rguenther@suse.de>
26465 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
26467 (lto_tag_is_tree_code_p): Adjust.
26468 (lto_tag_is_gimple_code_p): Likewise.
26469 (lto_gimple_code_to_tag): Likewise.
26470 (lto_tag_to_gimple_code): Likewise.
26471 (lto_tree_code_to_tag): Likewise.
26472 (lto_tag_to_tree_code): Likewise.
26473 * data-streamer.h (streamer_write_hwi_in_range): Use
26474 uhwi streaming to stream the normalized range.
26475 (streamer_read_hwi_in_range): Likewise.
26477 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26479 * config/arm/arm.md (enabled_for_depr_it): New attribute.
26480 (predicable_short_it): Likewise.
26481 (predicated): Likewise.
26482 (enabled): Handle above.
26483 (define_cond_exec): Set predicated attribute to yes.
26485 2013-06-05 Mike Stump <mikestump@comcast.net>
26487 * gdbinit.in (__FUNCTION__): Add.
26489 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
26491 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
26492 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
26494 2013-06-05 Jan Hubicka <jh@suse.cz>
26496 * varasm.c (mark_decl_referenced): Revert the removal until targets
26499 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
26501 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
26502 instead of mark_decl_referenced.
26504 2013-06-05 Jan Hubicka <jh@suse.cz>
26506 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
26507 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
26508 and symtab_used_from_object_file_p.
26509 (cgraph_make_node_local_1): Clear forced_by_abi.
26510 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
26511 * cgraph.h (symtab_node_base): Add forced_by_abi.
26512 (decide_is_variable_needed): Remove.
26513 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
26514 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
26515 (decide_is_symbol_needed): ... this one; handle symbols in general;
26516 always analyze virtuals; honnor forced_by_abi.
26517 (cgraph_finalize_function): Update.
26518 (varpool_finalize_decl): Update.
26519 (symbol_defined_and_needed): Remove.
26520 (analyze_functions): Update.
26521 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26522 output_refs, input_overwrite_node): Handle forced_by_abi.
26523 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
26524 (address_taken_from_non_vtable_p): ... this one.
26525 (comdat_can_be_unshared_p_1): New function.
26526 (cgraph_comdat_can_be_unshared_p): Rename to ...
26527 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
26528 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
26529 (function_and_variable_visibility): Clear forced_by_abi as needed.
26530 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
26531 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
26532 * symtab.c (dump_symtab_base): Dump forced_by_abi.
26533 * varpool.c (decide_is_variable_needed): Remove.
26535 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26537 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
26538 (arm_option_override): Override arm_restrict_it where appropriate.
26539 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
26540 * config/arm/arm.opt (mrestrict-it): New command-line option.
26541 * doc/invoke.texi: Document -mrestrict-it.
26543 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26545 * tsan.c (tsan_atomic_table): Make const.
26547 2013-06-05 Richard Biener <rguenther@suse.de>
26549 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
26550 index associated with the tree we are supposed to replace.
26551 * tree-streamer-out.c (pack_ts_base_value_fields): Output
26552 TREE_ASM_WRITTEN as zero for everything but SSA names.
26554 2013-06-05 David Malcolm <dmalcolm@redhat.com>
26556 * tree-ssa-structalias.c (call_stmt_vars): Make static.
26558 2013-06-04 Jan Hubicka <jh@suse.cz>
26560 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
26561 (input_node, input_varpool_node): Handle correctly external same
26563 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
26564 nodes at ltrans stage.
26566 2013-06-04 Jan Hubicka <jh@suse.cz>
26568 * ipa-inline.c (update_caller_keys): Fix availability test.
26569 (update_callee_keys): Likewise.
26570 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
26571 to follow ELF standard.
26573 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
26575 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
26576 (mips64r5900el-*-elf*): New configurations.
26577 * config/mips/mips-cpus.def (r5900): New processor.
26578 * config/mips/mips-tables.opt: Regenerate.
26579 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
26580 (mips_issue_rate): Handle PROCESSOR_R5900.
26581 (mips_reorg_process_insns): Force reorder mode for the R5900.
26582 * config/mips/mips.h (TARGET_MIPS5900): Define.
26583 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
26585 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
26587 * config/mips/mips.md (processor): Add r5900.
26588 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
26590 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26592 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
26593 into function to generate MOVI instruction.
26594 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
26595 (aarch64_preferred_simd_mode): Turn into wrapper.
26596 (aarch64_output_scalar_simd_mov_immediate): New function.
26597 * config/aarch64/aarch64-protos.h: Add prototype for above.
26599 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26601 * config/aarch64/aarch64.c (simd_immediate_info): Remove
26602 element_char member.
26603 (sizetochar): Return signed char.
26604 (aarch64_simd_valid_immediate): Remove elchar and other
26605 unnecessary variables.
26606 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
26607 Calculate element_char as required.
26608 * config/aarch64/aarch64-protos.h: Update and move prototype
26609 for aarch64_output_simd_mov_immediate.
26610 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
26613 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26615 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
26616 information completed by aarch64_simd_valid_immediate.
26617 (aarch64_legitimate_constant_p): Update arguments.
26618 (aarch64_simd_valid_immediate): Work with struct rather than many
26620 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
26621 (aarch64_simd_make_constant): Update arguments.
26622 (aarch64_output_simd_mov_immediate): Work with struct rather than
26623 many pointers. Output immediate directly rather than as operand.
26624 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
26626 * config/aarch64/constraints.md (Dn): Update arguments.
26628 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26630 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
26632 (aarch64_simd_immediate_valid_for_move): Remove.
26633 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
26634 (aarch64_simd_make_constant): Update call.
26635 (aarch64_output_simd_mov_immediate): Update call.
26636 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
26638 * config/aarch64/constraints.md (Dn): Update call.
26640 2013-06-04 Ian Bolton <ian.bolton@arm.com>
26642 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
26643 return type to bool for prototype.
26644 (aarch64_legitimate_constant_p): Check for true instead of not -1.
26645 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
26646 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
26648 2013-06-04 Catherine Moore <clm@codesourcery.com>
26650 * config/mips/mips.opt (meva): New.
26651 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
26652 (ASM_SPEC): Handle -meva.
26653 * doc/invoke.texi (meva): Document.
26655 2013-06-04 Alan Modra <amodra@gmail.com>
26657 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
26660 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26662 * rtl.def: Add extra fourth optional field to define_cond_exec.
26663 * gensupport.c (process_one_cond_exec): Process attributes from
26665 * doc/md.texi: Document fourth field in define_cond_exec.
26667 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
26669 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
26670 out the processing order as in store_bit_field_1.
26672 2013-06-04 Jan Hubicka <jh@suse.cz>
26674 PR middle-end/57500
26675 * cgraphunit.c (cgraph_process_same_body_aliases): Create
26676 non-VAR_DECL node if it does not exist yet.
26678 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
26680 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
26681 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
26682 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
26683 target_cpu_default setting.
26685 2013-06-03 Teresa Johnson <tejohnson@google.com>
26687 * dumpfile.c (opt_info_switch_p): Change -fopt-info
26688 default to -fopt-info=optimized instead of all.
26689 * doc/invoke.texi: Ditto.
26690 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
26691 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
26692 (execute_vect_slp): Emit BB vectorization success under
26693 MSG_OPTIMIZED_LOCATIONS.
26694 * tree-vect-slp.c (vect_slp_transform_bb): Change
26695 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
26696 * tree-vect-loop.c (vect_transform_loop): Ditto.
26698 2013-06-03 Jason Merrill <jason@redhat.com>
26701 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26702 Use TARGET_EXPR for C++.
26704 2013-06-03 Jakub Jelinek <jakub@redhat.com>
26706 PR rtl-optimization/57268
26707 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
26708 if DEBUG_INSN_P (insn).
26711 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
26713 PR rtl-optimization/57268
26714 * sched-deps.c (sched_analyze_2): Flush dependence lists if
26715 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
26717 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
26719 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
26720 (ix86_avoid_lea_for_addr): Likewise.
26721 (exact_dependency_1): Likewise.
26722 (ix86_adjust_cost): Likewise.
26723 (swap_top_of_ready_list): Fix formatting and !reload_completed check
26725 (do_reorder_for_imul): Fix typo, formatting and
26726 !reload_completed check removed.
26727 (ix86_sched_reorder): Fix typo and formatting.
26728 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
26731 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
26733 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
26735 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
26737 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
26738 <STRING_CST>: Likewise.
26739 <VECTOR_CST>: Likewise.
26741 2013-06-01 Janus Weil <janus@gcc.gnu.org>
26742 Mikael Morin <mikael@gcc.gnu.org>
26744 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
26745 * config.in: Regenerated.
26746 * configure: Regenerated.
26748 2013-06-01 Jan Hubicka <jh@suse.cz>
26750 PR middle-end/57366
26751 * cgraphunit.c (compile): When weakref is not supported,
26752 set up transparent aliases before final output pass.
26753 * varasm.c (assemble_alias): Do not try to do it here.
26755 2013-06-01 Jan Hubicka <jh@suse.cz>
26757 PR middle-end/57467
26758 * passes.c (for_per_function): Skip unanalyzed functions.
26760 2013-06-01 Jan Hubicka <jh@suse.cz>
26762 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
26763 (lto_symtab_merge_symbols_1): ... this one.
26764 (lto_symtab_merge_cgraph_nodes): Rename to ...
26765 (lto_symtab_merge_symbols): ... this one; simplify.
26766 * cgraph.c (same_body_aliases_done): Rename to ...
26767 (cpp_implicit_aliases_done): ... this one.
26768 (cgraph_create_function_alias): Update.
26769 (cgraph_same_body_alias): Update.
26770 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
26771 (verify_edge_corresponds_to_fndecl): Simplify.
26772 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
26773 (cgraph_node): Remove same_body_alias.
26774 (varpool_node): Remove alias_of and extra_name_alias.
26775 (same_body_aliases_done): Rename to ..
26776 (cpp_implicit_aliases_done): ... this one.
26777 (symtab_alias_ultimate_target): Add default parameter.
26778 (symtab_resolve_alias): New function.
26779 (fixup_same_cpp_alias_visibility): Declare.
26780 (cgraph_function_node): Add default parameter.
26781 (cgraph_node_asm_name): Likewise.
26782 (cgraph_function_or_thunk_node): Add default parameter; do
26783 not ICE when it is NULL.
26784 (varpool_variable_node): Likewise.
26785 * tree-emutls.c (create_emultls_var): Update.
26786 (ipa_lower_emutls): Update.
26787 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
26788 (cgraph_reset_node): Reset alias info.
26789 (cgraph_finalize_function): Update.
26790 (fixup_same_cpp_alias_visibility): Move to symtab.c.
26791 (analyze_function): Simplify.
26792 (cgraph_process_same_body_aliases): Simplify.
26793 (analyze_functions): Fixup same body aliases.
26794 (handle_alias_pairs): Simplify.
26795 (assemble_thunk): Update.
26796 (assemble_thunks_and_aliases): Update.
26797 (output_weakrefs): Rewrite.
26798 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
26799 (lto_output_varpool_node): Likewise.
26800 (compute_ltrans_boundary): Remve assert.
26801 (get_alias_symbol): New functoin.
26802 (input_node): Rewrite alias handling.
26803 (input_varpool_node): Likewise.
26804 * ipa-pure-const.c (propagate_pure_const): Fix formating.
26805 * ipa.c (process_references): Handle weakrefs correctly.
26806 (symtab_remove_unreachable_nodes): Likewise.
26807 * trans-mem.c (get_cg_data): Update.
26808 (ipa_tm_create_version_alias): Update.
26809 (ipa_tm_execute): Update.
26810 * symtab.c (dump_symtab_base): Dump aliases.
26811 (verify_symtab_base): Verify aliases.
26812 (symtab_node_availability): New function.
26813 (symtab_alias_ultimate_target): Simplify.
26814 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
26815 handle all the fixup cases.
26816 (symtab_resolve_alias): New function.
26817 * passes.c (ipa_write_summaries): Handle weakrefs.
26818 * varpool.c (varpool_analyze_node): Simplify.
26819 (assemble_aliases): Update.
26820 (varpool_create_variable_alias): Simplify.
26821 (varpool_extra_name_alias): Simplify.
26822 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
26823 (lto_symtab_merge_symbols): ... this one.
26825 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
26828 PR rtl-optimization/57268
26829 * sched-deps.c (sched_analyze_2): Flush dependence lists if
26830 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
26832 2013-06-01 Tobias Burnus <burnus@net-b.de>
26834 Partially reverted:
26835 2013-05-31 Tobias Burnus <burnus@net-b.de>
26837 PR middle-end/57073
26838 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
26841 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
26843 PR rtl-optimization/57268
26844 * sched-deps.c (sched_analyze_2): Flush dependence lists if
26845 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
26847 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
26849 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
26850 unordered comparison operators when -fno-trapping-math is in effect
26852 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
26853 and implement unordered comparison operators properly on the e500.
26855 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
26857 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
26858 for constant scalar integers.
26859 (simplify_relational_operation_1): Likewise.
26861 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
26863 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
26864 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
26867 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
26868 Igor Zamyatin <igor.zamyatin@intel.com>
26870 Silvermont (SLM) architecture performance tuning.
26871 * config/i386/i386.h (enum ix86_tune_indices): Add
26872 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
26873 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
26875 * config/i386/i386.c (initial_ix86_tune_features)
26876 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
26877 (ix86_lea_outperforms): Handle Silvermont tuning.
26878 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
26880 (ix86_use_lea_for_mov): Likewise.
26881 (ix86_avoid_lea_for_addr): Likewise.
26882 (ix86_lea_for_add_ok): Likewise.
26883 (exact_dependency_1): New function.
26884 (exact_store_load_dependency): Likewise.
26885 (ix86_adjust_cost): Handle Silvermont tuning.
26886 (do_reoder_for_imul): Likewise.
26887 (swap_top_of_ready_list): New function.
26888 (ix86_sched_reorder): Changed to handle Silvermont tuning.
26890 * config/i386/i386.md (peepholes that split memory operand in fp
26893 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
26895 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
26896 Remove un-necessary braces.
26898 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
26900 * config/aarch64/aarch64.c (aarch64_classify_symbol):
26901 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
26903 2013-05-31 Tobias Burnus <burnus@net-b.de>
26905 PR middle-end/57073
26906 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
26908 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26911 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
26912 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
26913 * config/arm/neon.md (iordi3_neon): Remove.
26914 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
26915 * config/arm/predicates.md (imm_for_neon_logic_operand):
26916 Move to earlier in the file.
26917 (neon_logic_op2): Likewise.
26918 (arm_iordi_operand_neon): New predicate.
26920 2013-05-31 Richard Biener <rguenther@suse.de>
26922 PR tree-optimization/57478
26923 PR tree-optimization/57453
26924 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
26927 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26929 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
26930 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
26932 2013-05-30 Tobias Burnus <burnus@net-b.de>
26933 Thomas Koenig <tkoenig@gcc.gnu.org>
26935 PR middle-end/57073
26936 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
26937 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
26939 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
26941 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
26943 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
26945 * target.def (register_usage_leveling_p): New hook.
26946 * targhooks.c (default_register_usage_leveling_p): New.
26947 * targhooks.h (default_register_usage_leveling_p): New prototype.
26948 * lra-assigns.c (register_usage_leveling_p): Use the hook.
26949 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
26950 * doc/tm.texi: Update.
26951 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
26953 2013-05-30 Ian Bolton <ian.bolton@arm.com>
26955 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
26956 (*insv_reg<mode>): New define_insn.
26958 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
26960 PR rtl-optimization/57439
26961 * postreload.c (move2add_valid_value_p): Check that we have
26962 a zero subreg_regno_offset when accessing the register in
26963 the requested mode.
26965 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
26966 Igor Zamyatin <igor.zamyatin@intel.com>
26968 Silvermont (SLM) architecture pipeline model, tuning and
26970 * config.gcc: Add slm config options and target.
26972 * config/i386/slm.md: New.
26974 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
26976 * config/i386/i386-c.c (ix86_target_macros_internal): New case
26978 (ix86_target_macros_internal): Likewise.
26980 * config/i386/i386.c (slm_cost): New cost.
26981 (m_SLM): New macro flag.
26982 (initial_ix86_tune_features): Set m_SLM.
26983 (x86_accumulate_outgoing_args): Likewise.
26984 (x86_arch_always_fancy_math_387): Likewise.
26985 (processor_target_table): Add slm cost.
26986 (cpu_names): Add slm cpu name.
26987 (x86_option_override_internal): Set SLM ISA.
26988 (ix86_issue_rate): New case PROCESSOR_SLM.
26989 (ia32_multipass_dfa_lookahead): Likewise.
26990 (fold_builtin_cpu): Add slm.
26992 * config/i386/i386.h (TARGET_SLM): New target macro.
26993 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
26994 (processor_type): Add PROCESSOR_SLM.
26996 * config/i386/i386.md (cpu): Add new value "slm".
26997 (slm.md): Include slm.md.
26999 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
27000 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27002 * config/arm/arm-protos.h: Add and update function protos.
27003 * config/arm/arm.c (use_simple_return_p): New added.
27004 (thumb2_expand_return): Check simple_return flag.
27005 * config/arm/arm.md: Add simple_return and conditional simple_return.
27006 * config/arm/iterators.md: Add iterator for return and simple_return.
27008 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27010 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
27011 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
27012 (arm_emit_vfp_multi_reg_pop): Likewise.
27013 (thumb2_emit_ldrd_pop): Likewise.
27014 (arm_expand_epilogue): Add misc REG_CFA notes.
27015 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
27017 2013-05-29 Lawrence Crowl <crowl@google.com>
27019 * config/arm/t-arm: Update for below.
27021 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
27022 Change type to hash_table. Update dependent calls and types.
27024 * config/i386/t-cygming: Update for below.
27026 * config/i386/t-interix: Update for below.
27028 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
27029 Change type to hash_table. Update dependent calls and types.
27030 (i386_find_on_wrapper_list::wrappers): Likewise.
27032 * config/ia64/t-ia64: Update for below.
27034 * config/ia64/ia64.c (bundle_state_table):
27035 Change type to hash_table. Update dependent calls and types.
27037 * config/mips/mips.c (mips_reorg_process_insns::htab):
27038 Change type to hash_table. Update dependent calls and types.
27040 * config/sol2.c (solaris_comdat_htab):
27041 Change type to hash_table. Update dependent calls and types.
27043 * config/t-sol2: Update for above.
27045 2013-05-29 Teresa Johnson <tejohnson@google.com>
27047 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
27048 functions are not yet marked as defined.
27050 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
27051 Pat Haugen <pthaugen@us.ibm.com>
27052 Peter Bergner <bergner@vnet.ibm.com>
27054 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
27058 (vrotl<mode>3): Likewise.
27059 (vashl<mode>3): Likewise.
27060 (vlshr<mode>3): Likewise.
27061 (vashr<mode>3): Likewise.
27063 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27064 support for power8 V2DI builtins.
27066 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
27067 power8 V2DI builtins.
27068 (vupkhsw): Likewise.
27069 (vupklsw): Likewise.
27070 (vaddudm): Likewise.
27071 (vminsd): Likewise.
27072 (vmaxsd): Likewise.
27073 (vminud): Likewise.
27074 (vmaxud): Likewise.
27075 (vpkudum): Likewise.
27076 (vpksdss): Likewise.
27077 (vpkudus): Likewise.
27078 (vpksdus): Likewise.
27083 (vsubudm): Likewise.
27084 (vcmpequd): Likewise.
27085 (vcmpgtsd): Likewise.
27086 (vcmpgtud): Likewise.
27087 (vcmpequd_p): Likewise.
27088 (vcmpgtsd_p): Likewise.
27089 (vcmpgtud_p): Likewise.
27090 (vupkhsw): Likewise.
27091 (vupklsw): Likewise.
27092 (vaddudm): Likewise.
27093 (vmaxsd): Likewise.
27094 (vmaxud): Likewise.
27095 (vminsd): Likewise.
27096 (vminud): Likewise.
27097 (vpksdss): Likewise.
27098 (vpksdus): Likewise.
27099 (vpkudum): Likewise.
27100 (vpkudus): Likewise.
27105 (vsubudm): Likewise.
27107 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27108 support for power8 V2DI instructions.
27110 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
27111 power8 V2DI instructions. Combine pack and unpack insns to use an
27112 iterator for each mode. Check whether a particular mode supports
27113 Altivec instructions instead of just checking TARGET_ALTIVEC.
27114 (UNSPEC_VPKUWUM): Likewise.
27115 (UNSPEC_VPKSHSS): Likewise.
27116 (UNSPEC_VPKSWSS): Likewise.
27117 (UNSPEC_VPKUHUS): Likewise.
27118 (UNSPEC_VPKSHUS): Likewise.
27119 (UNSPEC_VPKUWUS): Likewise.
27120 (UNSPEC_VPKSWUS): Likewise.
27121 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
27122 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
27123 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
27124 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
27125 (UNSPEC_VUPKHSB): Likewise.
27126 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
27127 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
27128 (UNSPEC_VUPKHSH): Likewise.
27129 (UNSPEC_VUPKLSB): Likewise.
27130 (UNSPEC_VUPKLSH): Likewise.
27132 (VI_char): Likewise.
27133 (VI_scalar): Likewise.
27134 (VI_unit): Likewise.
27136 (VP_small): Likewise.
27137 (VP_small_lc): Likewise.
27138 (VU_char): Likewise.
27139 (add<mode>3): Likewise.
27140 (altivec_vaddcuw): Likewise.
27141 (altivec_vaddu<VI_char>s): Likewise.
27142 (altivec_vadds<VI_char>s): Likewise.
27143 (sub<mode>3): Likewise.
27144 (altivec_vsubcuw): Likewise.
27145 (altivec_vsubu<VI_char>s): Likewise.
27146 (altivec_vsubs<VI_char>s): Likewise.
27147 (altivec_vavgs<VI_char>): Likewise.
27148 (altivec_vcmpbfp): Likewise.
27149 (altivec_eq<mode>): Likewise.
27150 (altivec_gt<mode>): Likewise.
27151 (altivec_gtu<mode>): Likewise.
27152 (umax<mode>3): Likewise.
27153 (smax<mode>3): Likewise.
27154 (umin<mode>3): Likewise.
27155 (smin<mode>3): Likewise.
27156 (altivec_vpkuhum): Likewise.
27157 (altivec_vpkuwum): Likewise.
27158 (altivec_vpkshss): Likewise.
27159 (altivec_vpkswss): Likewise.
27160 (altivec_vpkuhus): Likewise.
27161 (altivec_vpkshus): Likewise.
27162 (altivec_vpkuwus): Likewise.
27163 (altivec_vpkswus): Likewise.
27164 (altivec_vpks<VI_char>ss): Likewise.
27165 (altivec_vpks<VI_char>us): Likewise.
27166 (altivec_vpku<VI_char>us): Likewise.
27167 (altivec_vpku<VI_char>um): Likewise.
27168 (altivec_vrl<VI_char>): Likewise.
27169 (altivec_vsl<VI_char>): Likewise.
27170 (altivec_vsr<VI_char>): Likewise.
27171 (altivec_vsra<VI_char>): Likewise.
27172 (altivec_vsldoi_<mode>): Likewise.
27173 (altivec_vupkhsb): Likewise.
27174 (altivec_vupkhs<VU_char>): Likewise.
27175 (altivec_vupkls<VU_char>): Likewise.
27176 (altivec_vupkhsh): Likewise.
27177 (altivec_vupklsb): Likewise.
27178 (altivec_vupklsh): Likewise.
27179 (altivec_vcmpequ<VI_char>_p): Likewise.
27180 (altivec_vcmpgts<VI_char>_p): Likewise.
27181 (altivec_vcmpgtu<VI_char>_p): Likewise.
27182 (abs<mode>2): Likewise.
27183 (vec_unpacks_hi_v16qi): Likewise.
27184 (vec_unpacks_hi_v8hi): Likewise.
27185 (vec_unpacks_lo_v16qi): Likewise.
27186 (vec_unpacks_hi_<VP_small_lc>): Likewise.
27187 (vec_unpacks_lo_v8hi): Likewise.
27188 (vec_unpacks_lo_<VP_small_lc>): Likewise.
27189 (vec_pack_trunc_v8h): Likewise.
27190 (vec_pack_trunc_v4si): Likewise.
27191 (vec_pack_trunc_<mode>): Likewise.
27193 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
27195 (vec_vmaxsd): Likewise.
27196 (vec_vmaxud): Likewise.
27197 (vec_vminsd): Likewise.
27198 (vec_vminud): Likewise.
27199 (vec_vpksdss): Likewise.
27200 (vec_vpksdus): Likewise.
27201 (vec_vpkudum): Likewise.
27202 (vec_vpkudus): Likewise.
27203 (vec_vrld): Likewise.
27204 (vec_vsld): Likewise.
27205 (vec_vsrad): Likewise.
27206 (vec_vsrd): Likewise.
27207 (vec_vsubudm): Likewise.
27208 (vec_vupkhsw): Likewise.
27209 (vec_vupklsw): Likewise.
27211 2013-05-29 Jan Hubicka <jh@suse.cz>
27213 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
27214 flags; reorder rest of fields in more consistent way.
27215 (varpool_node): Remove analyzed, finalized and alias.
27216 (cgraph_ndoe): Likewise.
27217 (symtab_alias_ultimate_target): New function.
27218 (cgraph_function_node): Move offline.
27219 (cgraph_reset_node): Declare.
27220 (cgraph_comdat_can_be_unshared_p): Remove.
27221 (varpool_remove_initializer): Declare.
27222 (varpool_first_defined_variable, varpool_next_defined_variable
27223 cgraph_first_defined_function, cgraph_next_defined_function): Update.
27224 (cgraph_function_with_gimple_body_p): Update.
27225 (varpool_all_refs_explicit_p): Update.
27226 (symtab_alias_target): New function.
27227 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
27228 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
27229 (cgraph_function_or_thunk_node): Simplify using
27230 symtab_alias_ultimate_target.
27231 (varpool_variable_node): Likewise.
27232 * cgraph.c (cgraph_create_function_alias): Update.
27233 (cgraph_add_thunk): Update.
27234 (cgraph_remove_node): Update.
27235 (dump_cgraph_node): Do not dump removed flags.
27236 (cgraph_function_body_availability): Update.
27237 (cgraph_propagate_frequency): Update.
27238 (verify_cgraph_node): Check sanity of local flag.
27239 (cgraph_function_node): Move here from cgraph.h; revamp for
27240 cgraph_function_or_thunk_node.
27241 * lto-symtab.c (lto_varpool_replace_node): Update.
27242 (lto_symtab_resolve_can_prevail_p): Update.
27243 (lto_symtab_merge_cgraph_nodes): Update.
27244 * ipa-cp.c (determine_versionability, initialize_node_lattices,
27245 propagate_constants_accross_call, devirtualization_time_bonus,
27246 ipcp_propagate_stage): Update.
27247 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
27248 * ipa-inline-transform.c (clone_inlined_nodes,
27249 preserve_function_body_p): Update.
27250 * ipa-reference.c (propagate): Update.
27251 (write_node_summary_p): Update.
27252 * toplev.c (wrapup_global_declaration_2): Update.
27253 * cgraphunit.c (cgraph_analyze_function): Rename to ...
27254 (analyze_function) ... this one.
27255 (cgraph_process_new_functions): Update.
27256 (cgraph_reset_node): Export.
27257 (cgraph_finalize_function): Update.
27258 (cgraph_add_new_function): Update.
27259 (process_function_and_variable_attributes): Update.
27260 (varpool_finalize_decl): Update.
27261 (symbol_finalized): Remove.
27262 (symbol_finalized_and_needed): Rename to ...
27263 (symbol_defined_and_needed): ... update.
27264 (cgraph_analyze_functions): Update.
27265 (handle_alias_pairs): Update.
27266 (mark_functions_to_output): Update.
27267 (assemble_thunk): Update.
27268 (output_in_order): Update.
27269 (output_weakrefs): Update.
27270 (finalize_compilation_unit): Update.
27271 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
27272 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
27273 input_node, input_varpool_node): Update.
27274 * dbxout.c (dbxout_expand_expr): Update.
27275 * cgraphclones.c (cgraph_clone_node): Update.
27276 (cgraph_copy_node_for_versioning): Update.
27277 (cgraph_materialize_clone): Update.
27278 (cgraph_materialize_all_clones): Update.
27279 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
27280 propagate_pure_const, propagate_nothrow): Update.
27281 * lto-streamer-out.c (lto_output, write_symbol): Update.
27282 * ipa-utils.c (ipa_reverse_postorder): Update.
27283 * ipa-inline.c (can_inline_edge_p): Update.
27284 (update_caller_keys, ipa_inline): Update.
27285 * dwarf2out.c (reference_to_unused,
27286 premark_types_used_by_global_vars_helper): Update.
27287 * tree-eh.c (tree_could_trap_p): Update.
27288 * ipa-split.c (consider_split, execute_split_functions): Update.
27289 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
27290 has_addr_references_p): Update; move ahead in file for better
27292 (process_references): Simplify.
27293 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
27294 bodies are removed.
27295 (cgraph_comdat_can_be_unshared_p): Make static.
27296 (cgraph_externally_visible_p): Update.
27297 (varpool_externally_visible_p): Update.
27298 (function_and_variable_visibility): Update.
27299 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
27300 ipa_tm_mark_force_output_node): Update.
27301 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
27302 estimate_edge_devirt_benefit, inline_generate_summary,
27303 inline_write_summary): Update.
27304 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
27305 * ipa-prop.c (ipa_compute_jump_functions): Update.
27306 (ipa_print_node_params, ipa_prop_read_section,
27307 ipa_update_after_lto_read, read_replacements_section): Update.
27308 * varasm.c (mark_decl_referenced): Update.
27309 (assemble_alias, dump_tm_clone_pairs): Update.
27310 * tree-inline.c (copy_bb): Update.
27311 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
27313 * symtab.c (dump_symtab_base): Print new flags.
27314 (verify_symtab_base): Verify new flags.
27315 (symtab_alias_ultimate_target): New function.
27316 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
27317 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
27319 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
27321 * i386.c (ix86_get_function_versions_dispatcher,
27322 ix86_generate_version_dispatcher_body): Update.
27323 (fold_builtin_cpu): Use varpool_add_new_variable.
27324 * varpool.c (varpool_remove_initializer): Break out from ...
27325 (varpool_remove_node): ... this one.
27326 (dump_varpool_node, varpool_node_for_asm,
27327 cgraph_variable_initializer_availability, varpool_analyze_node,
27328 varpool_assemble_decl, varpool_remove_unreferenced_decls,
27329 varpool_finalize_named_section_flags, varpool_create_variable_alias):
27332 2013-05-29 Jan Hubicka <jh@suse.cz>
27334 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
27336 2013-05-29 Easwaran Raman <eraman@google.com>
27338 PR tree-optimization/57442
27339 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
27340 when control exits the main loop.
27342 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
27344 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
27346 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
27347 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
27348 * rx/t-rx: Add rx100 under multi library matches option for nofpu
27351 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27353 PR tree-optimization/57441
27354 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
27355 Don't limit size of incr_vec to number of candidates.
27357 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
27359 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
27360 and mips16 directories.
27361 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
27362 (MULTILIB_DIRNAMES): Ditto.
27363 (MULTILIB_EXCEPTIONS): Add new exceptions.
27364 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
27365 (MULTILIB_DIRNAMES): Ditto.
27366 (MULTILIB_EXCEPTIONS): Add new exceptions.
27368 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27369 Marcus Shawcroft <marcus.shawcroft@arm.com>
27371 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
27372 SYMBOL_TINY_ABSOLUTE.
27373 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
27374 SYMBOL_TINY_ABSOLUTE.
27375 (aarch64_expand_mov_immediate): Likewise.
27376 (aarch64_classify_symbol): Likewise.
27377 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
27378 Permit SYMBOL_TINY_ABSOLUTE.
27379 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
27381 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27382 Marcus Shawcroft <marcus.shawcroft@arm.com>
27384 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
27385 Refactor if/switch. Replace gcc_assert with if.
27387 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27389 * config/i386/i386.c (initial_ix86_tune_features): Enable
27390 FP Reassociation for AMD bdver1 and bdver2.
27392 2013-05-29 Martin Jambor <mjambor@suse.cz>
27394 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
27395 and IMAGPART_EXPR do not occur within other handled_components.
27397 2013-05-29 Richard Biener <rguenther@suse.de>
27399 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
27400 access on whether the use is in the BB we currently try to
27402 (vect_bb_vectorization_profitable_p): Pass the BB we currently
27403 vectorize to vect_bb_slp_scalar_cost.
27405 2013-05-29 Richard Biener <rguenther@suse.de>
27407 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
27408 computing scalar cost offsetted by stmts that are kept live
27410 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
27411 for computation of scalar cost.
27413 2013-05-28 Steve Ellcey <sellcey@mips.com>
27415 * config/mips/mips-cpus.def (mips32r2): Change processor type.
27417 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
27419 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
27420 array notation built-in reduction functions.
27421 * doc/passes.texi (Passes): Added documentation about changes done
27423 * doc/invoke.texi (C Dialect Options): Added documentation about
27424 the -fcilkplus flag.
27425 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
27426 (BUILTINS_DEF): Depend on cilkplus.def.
27427 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
27428 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
27429 * cilkplus.def: New file.
27431 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
27433 PR rtl-optimization/57439
27434 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
27436 2013-05-28 Easwaran Raman <eraman@google.com>
27438 PR tree-optimization/57337
27439 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
27440 (find_insert_point): Correctly identify the insertion point
27441 when two statements with the same UID is compared.
27443 2013-05-28 Richard Biener <rguenther@suse.de>
27445 PR tree-optimization/56787
27446 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
27447 from the list of data references.
27448 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
27450 (vect_analyze_loop_operations): Likewise.
27451 (vect_transform_loop): Remove clobbers.
27453 2013-05-28 Martin Jambor <mjambor@suse.cz>
27455 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
27456 and REALPART_EXPRs have scalar type.
27458 2013-05-28 Richard Biener <rguenther@suse.de>
27460 PR tree-optimization/57411
27461 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
27463 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
27464 virtual operand propagation.
27466 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27468 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
27469 destination register for bmasksi_vis.
27470 (vector_init_bshuffle): Likewise.
27471 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
27473 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
27475 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
27476 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
27477 mode if the instruction isn't available in the original mode.
27478 * config/sparc/sparc.opt (mfix-ut699): New option.
27479 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
27480 (divdf3): Turn into expander.
27481 (divdf3_nofix): New insn.
27482 (divdf3_fix): Likewise.
27483 (divsf3): Disable if -mfix-ut699.
27484 (sqrtdf2): Turn into expander.
27485 (sqrtdf2_nofix): New insn.
27486 (sqrtdf2_fix): Likewise.
27487 (sqrtsf2): Disable if -mfix-ut699.
27489 2013-05-27 Richard Biener <rguenther@suse.de>
27491 PR middle-end/57412
27492 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
27493 block for the new loop.
27495 2013-05-27 Richard Biener <rguenther@suse.de>
27497 PR tree-optimization/57343
27498 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
27499 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
27500 (number_of_iterations_cond): Do not build the folded tree.
27502 2013-05-27 Richard Biener <rguenther@suse.de>
27505 PR middle-end/57381
27506 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27507 OEP_CONSTANT_ADDRESS_OF retained.
27509 PR tree-optimization/57417
27510 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
27511 for unchanged base.
27512 (set_ssa_val_to): Compare addresses using
27513 get_addr_base_and_unit_offset.
27515 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
27517 PR rtl-optimization/56833
27518 * postreload.c (move2add_record_mode): New function.
27519 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
27520 (move2add_use_add2_insn): Use move2add_record_sym_value.
27521 (move2add_use_add3_insn): Likewise.
27522 (reload_cse_move2add): Use move2add_valid_value_p and
27523 move2add_record_mode. Invalidate call-clobbered and REG_INC
27524 affected regs by setting reg_mode to VOIDmode.
27525 (move2add_note_store): Don't pretend the inside of a SUBREG is
27526 the actual destination. Invalidate single/leading registers by
27527 setting reg_mode to VOIDmode.
27528 Use move2add_record_sym_value, move2add_valid_value_p and
27529 move2add_record_mode.
27531 2013-05-27 Richard Biener <rguenther@suse.de>
27533 PR tree-optimization/57396
27534 * tree-affine.c (double_int_constant_multiple_p): Properly
27535 return false for val == 0 and div != 0.
27537 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27539 * config/mips/mips.h: Use #elif in preprocessor conditions.
27541 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27544 * config/mips/constraints.md (kl): New constraint.
27545 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
27546 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
27547 constraint for operand 0. Split after CSE for MIPS16. Emit a move
27548 from LO for MIPS16.
27549 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
27551 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
27554 * config/mips/mips.c (mips_can_inline_p): New function.
27555 (TARGET_CAN_INLINE_P): Define.
27557 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
27559 * sched-int.h (ds_t, dw_t): Make unsigned int.
27560 Fix documentation that describes how all the ds_t bits are used.
27561 Reserve the last bit for delayed-branch scheduling.
27562 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
27563 (BITS_PER_DEP_WEAK): Fix definition and documentation.
27564 (gen_dep_weak_1): Remove prototype.
27565 * sched-deps.c (get_dep_weak_1): Make static.
27566 * target.def (speculate_insn, needs_block_p, gen_spec_check,
27567 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
27568 * doc/tm.texi: Regenerate.
27569 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
27571 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
27574 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
27576 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
27577 Sandra Loosemore <sandra@codesourcery.com>
27579 * config.gcc (powerpc-*): Allow native for with-cpu.
27581 2013-05-24 Jeff Law <law@redhat.com>
27583 PR tree-optimization/57124
27584 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
27585 conversion feeding a condition if the range has an overflow
27586 if -fstrict-overflow. Add warnings for when we do make the
27589 2013-05-24 Dehao Chen <dehao@google.com>
27591 * tree-cfg.c (locus_discrim_map): Fix the typo.
27592 (locus_discrim_hasher): Likewise.
27593 (locus_discrim_hasher::hash): Likewise.
27594 (locus_discrim_hasher::equal): Likewise.
27596 2013-05-24 Martin Jambor <mjambor@suse.cz>
27598 PR tree-optimization/57294
27599 * cgraph.h (ipa_record_stmt_references): Declare.
27600 * cgraphbuild.c (ipa_record_stmt_references): New function.
27601 (build_cgraph_edges): Use ipa_record_stmt_references.
27602 (rebuild_cgraph_edges): Likewise.
27603 (cgraph_rebuild_references): Likewise.
27604 * ipa-prop.c (ipa_modify_call_arguments): Discard references
27605 associated with the old statement and build references from the
27606 newly built statements.
27607 * ipa-ref.c (ipa_remove_stmt_references): New function.
27608 * ipa-ref.h (ipa_remove_stmt_references): Declare.
27610 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
27612 * lra-constraints.c (emit_spill_move): Use smaller mode for
27614 (check_and_process_move): Consider mem-reg moves for secondary
27616 (curr_insn_transform): Don't lose insns emitted before for
27617 secondary memory moves.
27618 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
27619 reg set up in the current insn.
27621 2013-05-24 Dehao Chen <dehao@google.com>
27623 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
27625 (locus_descrim_hasher::equal): Likewise.
27626 (build_gimple_cfg): New discriminator assignment algorithm.
27627 (make_edges): Likewise.
27628 (next_discriminator_for_locus): Likewise.
27629 (same_line_p): Likewise.
27630 (assign_discriminators): Likewise.
27631 (make_cond_expr_edges): Likewise.
27632 (make_gimple_switch_edges): Likewise.
27633 (make_goto_expr_edges): Likewise.
27634 (make_gimple_asm_edges): Likewise.
27636 2013-05-24 Ian Bolton <ian.bolton@arm.com>
27638 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
27639 X format specifier to only display bottom 16 bits.
27640 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
27641 immediate to match for operand 2, since it will be masked.
27643 2013-05-24 Richard Biener <rguenther@suse.de>
27645 PR tree-optimization/57287
27646 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
27647 all SSA names that occur in abnormal PHIs.
27649 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
27652 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
27653 that index is not negative.
27655 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
27657 PR rtl-optimization/55177
27658 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
27659 (simplify_byte_swapping_operation): New.
27660 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
27661 (simplify_relational_operation_1): Deal with BSWAP.
27663 2013-05-23 Richard Henderson <rth@redhat.com>
27666 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
27667 (ix86_reorg): Call it.
27669 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
27672 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
27673 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
27674 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
27676 2013-05-23 Christian Bruel <christian.bruel@st.com>
27679 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
27681 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27682 Marcus Shawcroft <marcus.shawcroft@arm.com>
27684 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
27685 * config/aarch64/constraints.md (Usa): Remove.
27686 * doc/md.texi (AArch64 Usa): Remove.
27688 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
27689 Marcus Shawcroft <marcus.shawcroft@arm.com>
27691 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
27692 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
27693 * config/aarch64/predicates.md (aarch64_const_address): Remove.
27694 (aarch64_mov_operand): Use aarch64_mov_operand_p.
27696 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
27698 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
27699 instruction (AdvSIMD).
27700 * config/aarch64/aarch64-builtins.c
27701 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
27702 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
27704 2013-05-23 Martin Jambor <mjambor@suse.cz>
27706 PR middle-end/57347
27707 * tree.h (contains_bitfld_component_ref_p): Declare.
27708 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
27709 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
27711 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
27712 not access a bit-field. Assert all final offsets are byte-aligned.
27714 2013-05-23 Richard Biener <rguenther@suse.de>
27716 PR tree-optimization/57380
27717 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
27718 least one invariant or re-used load.
27719 * passes.c (init_optimization_passes): Move pass_phiprop before
27722 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
27724 * config/aarch64/aarch64-simd.md
27725 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
27727 2013-05-23 Richard Biener <rguenther@suse.de>
27729 PR middle-end/57381
27730 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27731 OEP_CONSTANT_ADDRESS_OF retained.
27733 2013-05-23 Jakub Jelinek <jakub@redhat.com>
27735 PR middle-end/57344
27736 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
27737 don't lower unit. Handle unit not being always BITS_PER_WORD.
27739 2013-05-23 Richard Biener <rguenther@suse.de>
27741 PR rtl-optimization/57341
27742 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
27743 instead of true_dependence.
27745 2013-05-22 David Malcolm <dmalcolm@redhat.com>
27747 * bb-reorder.c (branch_threshold): Make const.
27748 (exec_threshold): Ditto.
27750 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
27751 Pat Haugen <pthaugen@us.ibm.com>
27752 Peter Bergner <bergner@vnet.ibm.com>
27754 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
27755 documentation for the power8 crypto builtins.
27757 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
27759 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
27760 macros for defining power8 builtin functions.
27761 (BU_P8V_AV_2): Likewise.
27762 (BU_P8V_AV_P): Likewise.
27763 (BU_P8V_VSX_1): Likewise.
27764 (BU_P8V_OVERLOAD_1): Likewise.
27765 (BU_P8V_OVERLOAD_2): Likewise.
27766 (BU_CRYPTO_1): Likewise.
27767 (BU_CRYPTO_2): Likewise.
27768 (BU_CRYPTO_3): Likewise.
27769 (BU_CRYPTO_OVERLOAD_1): Likewise.
27770 (BU_CRYPTO_OVERLOAD_2): Likewise.
27771 (XSCVSPDP): Fix typo, point to the correct instruction.
27772 (VCIPHER): Add power8 crypto builtins.
27773 (VCIPHERLAST): Likewise.
27774 (VNCIPHER): Likewise.
27775 (VNCIPHERLAST): Likewise.
27776 (VPMSUMB): Likewise.
27777 (VPMSUMH): Likewise.
27778 (VPMSUMW): Likewise.
27779 (VPERMXOR_V2DI): Likewise.
27780 (VPERMXOR_V4SI: Likewise.
27781 (VPERMXOR_V8HI: Likewise.
27782 (VPERMXOR_V16QI: Likewise.
27783 (VSHASIGMAW): Likewise.
27784 (VSHASIGMAD): Likewise.
27785 (VPMSUM): Likewise.
27786 (VPERMXOR): Likewise.
27787 (VSHASIGMA): Likewise.
27789 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
27790 __CRYPTO__ if the crypto instructions are available.
27791 (altivec_overloaded_builtins): Add support for overloaded power8
27794 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
27795 support for power8 crypto builtins.
27796 (builtin_function_type): Likewise.
27797 (altivec_init_builtins): Add support for builtins that take vector
27798 long long (V2DI) arguments.
27800 * config/rs6000/crypto.md: New file, define power8 crypto
27803 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
27804 Pat Haugen <pthaugen@us.ibm.com>
27805 Peter Bergner <bergner@vnet.ibm.com>
27807 * doc/invoke.texi (Option Summary): Add power8 options.
27808 (RS/6000 and PowerPC Options): Likewise.
27810 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
27811 constraints.md instead of rs6000.h. Reorder w* constraints. Add
27812 wm, wn, wr documentation.
27814 * config/rs6000/constraints.md (wm): New constraint for VSX
27815 registers if direct move instructions are enabled.
27816 (wn): New constraint for no registers.
27817 (wq): New constraint for quad word even GPR registers.
27818 (wr): New constraint if 64-bit instructions are enabled.
27819 (wv): New constraint if power8 vector instructions are enabled.
27820 (wQ): New constraint for quad word memory locations.
27822 * config/rs6000/predicates.md (const_0_to_15_operand): New
27823 constraint for 0..15 for crypto instructions.
27824 (gpc_reg_operand): If VSX allow registers in VSX registers as well
27825 as GPR and floating point registers.
27826 (int_reg_operand): New predicate to match only GPR registers.
27827 (base_reg_operand): New predicate to match base registers.
27828 (quad_int_reg_operand): New predicate to match even GPR registers
27829 for quad memory operations.
27830 (vsx_reg_or_cint_operand): New predicate to allow vector logical
27831 operations in both GPR and VSX registers.
27832 (quad_memory_operand): New predicate for quad memory operations.
27833 (reg_or_indexed_operand): New predicate for direct move support.
27835 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
27836 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
27837 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
27838 (POWERPC_MASKS): Add power8 options.
27839 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
27842 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
27843 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
27845 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
27846 (-mpower8-fusion): New power8 options.
27847 (-mpower8-fusion-sign): Likewise.
27848 (-mpower8-vector): Likewise.
27849 (-mcrypto): Likewise.
27850 (-mdirect-move): Likewise.
27851 (-mquad-memory): Likewise.
27853 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
27854 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
27856 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
27857 (rs6000_debug_vector_unit): Add p8_vector.
27858 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
27859 definitions. Also print fusion state.
27860 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
27861 (rs6000_builtin_mask_calculate): Add power8 builtin support.
27862 (rs6000_option_override_internal): Add support for power8.
27863 (rs6000_common_init_builtins): Add debugging for skipped builtins
27864 if -mdebug=builtin.
27865 (rs6000_adjust_cost): Add power8 support.
27866 (rs6000_issue_rate): Likewise.
27867 (insn_must_be_first_in_group): Likewise.
27868 (insn_must_be_last_in_group): Likewise.
27869 (force_new_group): Likewise.
27870 (rs6000_register_move_cost): Likewise.
27871 (rs6000_opt_masks): Likewise.
27873 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
27874 power8 capable assembler, default to power7 options.
27875 (TARGET_DIRECT_MOVE): Likewise.
27876 (TARGET_CRYPTO): Likewise.
27877 (TARGET_P8_VECTOR): Likewise.
27878 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
27879 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
27880 (VECTOR_MEM_P8_VECTOR_P): Likewise.
27881 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
27882 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
27883 (TARGET_XSCVDPSPN): Likewise.
27884 (TARGET_XSCVSPDPN): Likewsie.
27885 (TARGET_SYNC_HI_QI): Likewise.
27886 (TARGET_SYNC_TI): Likewise.
27887 (MASK_CRYPTO): Likewise.
27888 (MASK_DIRECT_MOVE): Likewise.
27889 (MASK_P8_FUSION): Likewise.
27890 (MASK_P8_VECTOR): Likewise.
27891 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
27892 temporary used by some of the direct move instructions to get two FP
27893 temporary registers does not force creation of a stack frame.
27894 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
27895 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
27896 that any VSX registers are tieable, even if they are also an
27897 Altivec vector mode.
27898 (r6000_reg_class_enum): Add wm, wr, wv constraints.
27899 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
27900 (RS6000_BTM_CRYPTO): Likewise.
27901 (RS6000_BTM_COMMON): Likewise.
27903 * config/rs6000/rs6000.md (cpu attribute): Add power8.
27904 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
27905 (enum rs6000_vector): Add power8 vector support.
27907 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27911 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
27912 (any_sibcall_could_use_r3): this and handle indirect calls.
27913 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
27915 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27917 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
27919 2013-05-22 Richard Biener <rguenther@suse.de>
27921 PR middle-end/57349
27922 * profile.c (branch_prob): Do not split blocks that are
27923 abnormally receiving from ECF_RETURNS_TWICE functions.
27925 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27927 * recog.c (offsettable_address_addr_space_p): Fix calculation of
27928 address mode. Move pointer mode initialization to the same place.
27930 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
27932 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
27933 while it has any effect.
27935 2013-05-21 Easwaran Raman <eraman@google.com>
27937 PR tree-optimization/57322
27938 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
27939 UID of the statement added to the BB to be 1.
27941 2013-05-21 Jakub Jelinek <jakub@redhat.com>
27943 PR tree-optimization/57331
27944 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
27945 of conversion from pointer type to integral type with integer.
27947 2013-05-21 Martin Jambor <mjambor@suse.cz>
27950 * ipa-prop.c (ipa_read_node_info): Process param_used and
27951 controlled_uses in the same order as when writing.
27953 2013-05-21 Magnus Granberg <baldrick@free.fr>
27956 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
27958 2013-05-21 Richard Biener <rguenther@suse.de>
27960 PR tree-optimization/57318
27961 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
27962 estimate stmts with side-effects as likely eliminated.
27964 2013-05-21 Richard Biener <rguenther@suse.de>
27966 PR tree-optimization/57330
27967 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
27968 preserve the call stmts fntype.
27970 2013-05-21 Richard Biener <rguenther@suse.de>
27972 PR tree-optimization/57303
27973 * tree-ssa-sink.c (statement_sink_location): Improve killing
27974 stmt detection and properly handle self-assignments.
27976 2013-05-21 Christian Bruel <christian.bruel@st.com>
27978 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
27979 spanning registers. LEAF_REG_REMAP is supported only for contiguous
27980 registers. Set register size out of the PARALLEL loop.
27982 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
27985 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
27986 (*fmasf4, *fmasf4_media): New insns.
27988 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27990 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
27991 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
27992 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
27993 (mips_idiv_insns): Update the comments to say that the returned
27994 instruction counts are in units of BASE_INSN_LENGTH.
27995 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
27996 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
27997 using 2 rather than 4 as the length of indirect MIPS16 and
27998 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
27999 length of a NOP. Don't divide MIPS16 lengths by 2.
28000 (mips16_split_long_branches): Assume a branch is long if the
28001 length is greater than 4 rather than 8.
28002 * config/mips/mips.md (length): Give MIPS16 lengths directly,
28003 rather than multiplying them by 2. Multiply instruction counts
28004 by BASE_INSN_LENGTH rather than 4.
28005 (*jump_mips16, tls_get_tp_mips16_<mode>)
28006 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
28008 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28010 * config/mips/mips.md (extended_mips16): Remove branch case.
28011 (length): Remove duplicated extended_mips16 test.
28013 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28015 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
28017 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
28019 * recog.h (Recog_data): Rename to...
28020 (recog_data_d): ...this.
28021 (recog_data): Update accordingly.
28022 * recog.c (recog_data): Likewise.
28023 * reload.c (save_recog_data): Likewise.
28024 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
28025 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
28027 2013-05-17 Julian Brown <julian@codesourcery.com>
28029 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
28030 found in a REG_EQUAL note, invalidate it.
28032 2013-05-17 Easwaran Raman <eraman@google.com>
28034 * tree-ssa-reassoc.c (find_insert_point): New function.
28035 (insert_stmt_after): Likewise.
28036 (get_def_stmt): Likewise.
28037 (ensure_ops_are_available): Likewise.
28038 (not_dominated_by): Likewise.
28039 (rewrite_expr_tree): Do not move statements beyond what is
28040 necessary. Remove call to swap_ops_for_binary_stmt...
28041 (reassociate_bb): ... and move it here.
28042 (build_and_add_sum): Assign UIDs for new statements.
28043 (linearize_expr): Likewise.
28044 (do_reassoc): Renumber gimple statement UIDs.
28046 2013-05-17 Jan Hubicka <jh@suse.cz>
28048 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
28050 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
28051 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
28053 (output_weakrefs): Update.
28055 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
28056 Martin Jambor <mjambor@suse.cz>
28058 PR middle-end/57276
28059 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
28060 value that corresponds to the given aggval is found in values vector.
28062 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
28064 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
28065 sse, sse2, sse3, ssse3 and sse4a flags to options.
28067 2013-05-17 David Malcolm <dmalcolm@redhat.com>
28069 * gengtype-state.c: (s_expr_writer): New class, to handle
28070 prettifying of output layout of s-expressions.
28071 (state_writer): New class, to write out gtype.state.
28072 (state_written_type_count): Move this variable into member data of
28074 (s_expr_writer::s_expr_writer): New code: constructor for new class
28075 (state_writer::state_writer(): ditto
28076 (s_expr_writer::write_new_line): New function
28077 (s_expr_writer::write_any_indent): ditto
28078 (s_expr_writer::begin_s_expr): ditto
28079 (s_expr_writer::end_s_expr): ditto
28080 (write_state_fileloc): convert to method of state_writer...
28081 (state_writer:: write_state_fileloc): ...and use methods of
28082 s_expr_writer to write indentation into the gtype.state output file
28083 to visually represent the hierarchical structure of the list
28085 (write_state_fields): ditto, renaming to...
28086 (state_writer::write_state_fields)
28087 (write_state_a_string): ditto, renaming to...
28088 (state_writer::write_state_a_string)
28089 (write_state_string_option): ditto, renaming to...
28090 (state_writer::write_state_string_option)
28091 (write_state_type_option): ditto, renaming to...
28092 (state_writer::write_state_type_option)
28093 (write_state_nested_option): ditto, renaming to...
28094 (state_writer::write_state_nested_option)
28095 (write_state_option): ditto, renaming to...
28096 (state_writer::write_state_option)
28097 (write_state_options): ditto, renaming to...
28098 (state_writer::write_state_options)
28099 (write_state_lang_bitmap): ditto, renaming to...
28100 (state_writer::write_state_lang_bitmap)
28101 (write_state_version): ditto, renaming to...
28102 (state_writer::write_state_version)
28103 (write_state_scalar_type): ditto, renaming to...
28104 (state_writer::write_state_scalar_type)
28105 (write_state_string_type): ditto, renaming to...
28106 (state_writer::write_state_string_type)
28107 (write_state_undefined_type): ditto, renaming to...
28108 (state_writer::write_state_undefined_type)
28109 (write_state_struct_union_type): ditto, renaming to...
28110 (state_writer::write_state_struct_union_type)
28111 (write_state_struct_type): ditto, renaming to...
28112 (state_writer::write_state_struct_type)
28113 (write_state_user_struct_type): ditto, renaming to...
28114 (state_writer::write_state_user_struct_type)
28115 (write_state_lang_struct_type): ditto, renaming to...
28116 (state_writer::write_state_lang_struct_type)
28117 (write_state_param_struct_type): ditto, renaming to...
28118 (state_writer::write_state_param_struct_type)
28119 (write_state_pointer_type): ditto, renaming to...
28120 (state_writer::write_state_pointer_type)
28121 (write_state_array_type): ditto, renaming to...
28122 (state_writer::write_state_array_type)
28123 (write_state_gc_used): ditto, renaming to...
28124 (state_writer::write_state_gc_used)
28125 (write_state_common_type_content): ditto, renaming to...
28126 (state_writer::write_state_common_type_content)
28127 (write_state_type): ditto, renaming to...
28128 (state_writer::write_state_type)
28129 (write_state_pair_list): ditto, renaming to...
28130 (state_writer::write_state_pair_list)
28131 (write_state_pair): ditto, renaming to...
28132 (state_writer::write_state_pair)
28133 (write_state_typedefs): ditto, renaming to...
28134 (state_writer::write_state_typedefs)
28135 (write_state_structures): ditto, renaming to...
28136 (state_writer::write_state_structures)
28137 (write_state_param_structs): ditto, renaming to...
28138 (state_writer::write_state_param_structs)
28139 (write_state_variables): ditto, renaming to...
28140 (state_writer::write_state_variables)
28141 (write_state_srcdir): ditto, renaming to...
28142 (state_writer::write_state_srcdir)
28143 (write_state_files_list): ditto, renaming to...
28144 (state_writer::write_state_files_list)
28145 (write_state_languages): ditto, renaming to...
28146 (state_writer::write_state_languages)
28147 (write_state): create a state_writer instance and use it when
28148 writing out the state file
28150 2013-05-17 Mike Stump <mikestump@comcast.net>
28152 PR rtl-optimization/57304
28153 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
28154 accessing DF_REF_REAL_LOC.
28156 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28158 PR rtl-optimization/57281
28159 PR rtl-optimization/57300
28160 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
28161 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
28162 what the other splitter did if the registers are dead.
28164 2013-05-17 Richard Biener <rguenther@suse.de>
28166 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
28169 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28171 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
28174 2013-05-17 Marek Polacek <polacek@redhat.com>
28176 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
28177 length when doing non-zero store of storing '\0' to '\0'.
28179 2013-05-17 Jakub Jelinek <jakub@redhat.com>
28181 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
28182 vect_external_def oprnd1 with loop_vinfo, try to emit
28183 optional cast, negation and and stmts on the loop preheader
28184 edge instead of into the pattern def seq.
28186 PR tree-optimization/57051
28187 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
28188 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
28190 2013-05-16 Nick Clifton <nickc@redhat.com>
28192 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
28193 (rl78_is_naked_func): New function.
28194 (rl78_expand_prologue): Skip prologue generation for naked functions.
28195 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
28196 * doc/extend.texi (naked): Add RL78 to the list of processors
28197 that supports this attribute.
28199 2013-05-16 Jeff Law <law@redhat.com>
28201 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
28203 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28205 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
28206 cache parameters using detect_caches_amd also for CYRIX,
28207 NSC and TM2 signatures.
28209 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
28210 Dzianis Kahanovich <mahatma@eu.by>
28214 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28215 VIA/Centaur processors and determine their cache parameters
28216 using detect_caches_amd.
28218 2013-05-16 Teresa Johnson <tejohnson@google.com>
28220 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
28221 (rtl_verify_edges): New function.
28222 (rtl_verify_bb_insns): Ditto.
28223 (rtl_verify_bb_pointers): Ditto.
28224 (rtl_verify_bb_insn_chain): Ditto.
28225 (rtl_verify_fallthru): Ditto.
28226 (rtl_verify_bb_layout): Ditto.
28227 (rtl_verify_flow_info_1): Outline checks into new functions.
28228 (rtl_verify_flow_info): Ditto.
28230 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
28232 * cfghooks.c (copy_bbs): Add update_dominance argument.
28233 * cfghooks.h (copy_bbs): Update prototype.
28234 * tree-cfg.c (gimple_duplicate_sese_region):
28235 Add update_dominance argument.
28236 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
28237 * tree-ssa-loop-ch.c (copy_loop_headers): Update
28238 gimple_duplicate_sese_region call.
28239 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
28240 Update copy_bbs call.
28241 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
28242 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
28244 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28246 * tree-vectorizer.h (NUM_PATTERNS): Increment.
28247 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
28248 vect_recog_rotate_pattern.
28249 (vect_recog_rotate_pattern): New function.
28251 2013-05-16 Jason Merrill <jason@redhat.com>
28253 * Makefile.in (LLINKER): New variable.
28254 (mostlyclean): Remove link mutex.
28255 * configure.ac: Handle --enable-link-mutex.
28256 * lock-and-run.sh: New script.
28258 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28261 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
28264 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28266 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
28268 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
28270 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
28271 * config/arm/arm.c (next_consecutive_mem): New function.
28272 (gen_movmem_ldrd_strd): Likewise.
28273 * config/arm/arm.md (movmemqi): Update condition and code.
28274 (unaligned_loaddi, unaligned_storedi): New patterns.
28276 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28278 * config.gcc: Obsolete *-*-solaris2.9*.
28279 * doc/install.texi (Specific, *-*-solaris2*): Document it.
28281 2013-05-16 Richard Biener <rguenther@suse.de>
28283 * passes.c (init_optimization_passes): Move pass_parallelize_loops
28284 earlier, after GRAPHITE transforms and IV canonicalization.
28286 2013-05-16 Jakub Jelinek <jakub@redhat.com>
28288 * omp-low.c (extract_omp_for_data): For collapsed loops,
28289 if at least one of the loops is known at compile time to
28290 iterate zero times, set count to 0.
28291 (expand_omp_regimplify_p): New function.
28292 (expand_omp_for_generic): For collapsed loops, if at least
28293 one of the loops isn't known to iterate at least once,
28294 add runtime check with setting count to 0.
28295 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28296 For unsigned types if it isn't known at compile time that
28297 the loop will iterate at least once, add runtime check to bypass
28298 the whole loop if initial condition isn't true.
28300 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
28302 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
28304 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
28306 PR middle-end/57286
28307 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
28308 transformations to avoid an infinite loop.
28310 2013-05-16 Marek Polacek <polacek@redhat.com>
28312 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
28314 2013-05-15 Leif Ekblad <leif@rdos.net>
28316 * config/i386/i386.c (ix86_decompose_address): Use
28317 DEFAULT_TLS_SEG_REG to access TLS segment register.
28318 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
28319 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
28320 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
28322 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
28325 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
28326 sibling calls to functions that would normally be lazily bound,
28327 unless $gp is call-clobbered.
28329 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
28331 * config/i386/i386.c (ix86_option_override_internal): Update
28332 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
28333 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
28334 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
28335 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
28337 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
28339 2013-05-15 Andreas Schwab <schwab@suse.de>
28341 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
28342 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
28345 2013-05-15 Teresa Johnson <tejohnson@google.com>
28347 * loop-unroll.c (report_unroll_peel): Check decision before
28348 emitting unroll/peel message.
28350 2013-05-15 Teresa Johnson <tejohnson@google.com>
28352 * function.h (has_bb_partition): New rtl_data flag.
28353 (bb_reorder_complete): Ditto.
28354 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
28355 instead of flag_reorder_blocks_and_partition.
28356 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
28357 with some enhancements.
28358 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
28359 * bb-reorder.c (connect_traces): Check for has_bb_partition
28360 instead of flag_reorder_blocks_and_partition.
28361 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
28362 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
28363 verify_hot_cold_block_grouping.
28364 (partition_hot_cold_basic_blocks): Set has_bb_partition.
28366 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28369 * config/arm/predicates.md (call_insn_operand): New predicate.
28370 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
28371 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
28372 if insn is not a tail call.
28373 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
28375 * config/arm/arm.h (enum reg_class): New caller save register class.
28376 (REG_CLASS_NAMES): Likewise.
28377 (REG_CLASS_CONTENTS): Likewise.
28378 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
28381 2013-05-15 Richard Biener <rguenther@suse.de>
28383 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
28384 of MSG_OPTIMIZED_LOCATIONS.
28385 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
28386 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
28388 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
28389 of MSG_OPTIMIZED_LOCATIONS.
28390 (execute_vect_slp): Likewise.
28391 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
28392 (vect_create_cond_for_alias_checks): Likewise.
28393 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
28394 (vect_recog_widen_mult_pattern): Likewise.
28395 (vect_recog_widen_sum_pattern): Likewise.
28396 (vect_recog_over_widening_pattern): Likewise.
28397 (vect_recog_widen_shift_pattern): Likewise.
28398 (vect_recog_vector_vector_shift_pattern): Likewise.
28399 (vect_recog_divmod_pattern): Likewise.
28400 (vect_recog_mixed_size_cond_pattern): Likewise.
28401 (vect_recog_bool_pattern): Likewise.
28402 (vect_pattern_recog_1): Likewise.
28404 2013-05-15 Martin Jambor <mjambor@suse.cz>
28406 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
28407 non-functions to builtin_unreachable.
28408 * ipa-inline-transform.c (inline_call): Do not assert estimates were
28409 correct when new direct edges were discovered.
28411 2013-05-15 Martin Jambor <mjambor@suse.cz>
28413 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
28414 header, print symbol order instead of node uid, print more information
28415 about indirect edge targets.
28416 (ipa_make_edge_direct_to_target): Print symbol order instead of node
28418 (ipa_make_edge_direct_to_target): Likewise.
28419 (remove_described_reference): Likewise.
28420 (propagate_controlled_uses): Likewise.
28421 (ipa_print_node_params): Also print symbol order.
28422 (ipcp_transform_function): Print symbol order instead of node uids.
28423 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
28424 (cgraph_get_create_real_symbol_node): Likewise.
28425 * ipa-cp.c (print_lattice): Likewise.
28426 (print_all_lattices): Likewise.
28427 (determine_versionability): Likewise.
28428 (initialize_node_lattices): Likewise.
28429 (estimate_local_effects): Likewise.
28430 (update_profiling_info): Likewise.
28431 (create_specialized_node): Likewise.
28432 (perhaps_add_new_callers): Likewise.
28433 (decide_about_value): Likewise.
28434 (decide_whether_version_node): Likewise.
28435 (identify_dead_nodes): Likewise.
28436 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
28437 (dump_inline_summary): Likewise.
28438 (estimate_node_size_and_time): Likewise.
28439 (inline_analyze_function): Likewise.
28440 * ipa-inline.c (report_inline_failed_reason): Likewise.
28441 (want_early_inline_function_p): Likewise.
28442 (edge_badness): Likewise.
28443 (update_edge_key): Likewise.
28444 (inline_small_functions): Likewise. Add dumping of order to two other
28446 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
28447 instead of node uids.
28448 (propagate_pure_const): Likewise.
28449 (propagate_pure_const): Likewise.
28450 * ipa-utils.c (dump_cgraph_node_set): Likewise.
28451 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
28452 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
28454 * tree-pretty-print.c (dump_function_header): Likewise.
28455 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
28456 Print symbol order instead of node uids.
28458 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28460 * config/s390/s390.c (s390_register_move_cost): Don't impose the
28461 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
28463 2013-05-15 Richard Biener <rguenther@suse.de>
28465 PR tree-optimization/57275
28466 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
28467 return value for fail to do runtime alias checks for gather loads.
28469 2013-05-15 Jan Hubicka <jh@suse.cz>
28473 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
28474 weakrefs are not external.
28475 (lto_symtab_merge_decls): Fix thinko when dealing with
28476 non-lto_symtab decls.
28477 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
28478 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
28479 * varpool.c (dump_varpool_node): Dump more flags.
28481 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28483 * config/i386/i386.c (processor_alias_table): Add instruction
28484 FSGSBASE for AMD bdver3 architecture.
28486 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28488 * tree.c (warn_deprecated_use): Print file:line using locus color.
28489 * diagnostic.c (diagnostic_report_current_module): Print file:line
28490 and file:line:column using locus color.
28492 2013-05-14 Mike Stump <mikestump@comcast.net>
28494 * gdbinit.in: Add __null.
28496 2013-05-14 Mike Stump <mikestump@comcast.net>
28498 * recog.h: Rename struct recog_data to Recog_data.
28499 * recog.c: Likewise.
28500 * reload.c (can_reload_into): Likewise.
28501 * config/picochip/picochip.c: Likewise.
28503 2013-05-14 Mike Stump <mikestump@comcast.net>
28505 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
28507 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
28509 * resource.h (struct resources): Remove unch_memory member.
28510 (CLEAR_RESOURCE): Don't clear unch_memory.
28511 * resource.c (mark_referenced_resources): Don't set it.
28512 (mark_set_resources): Likewise.
28513 (mark_target_live_regs): Don't clear it.
28514 (init_resource_info): Likewise.
28515 * reorg.c (resource_conflicts_p): Don't compare it.
28516 (redundant_insn): Don't set it.
28518 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
28520 * emit-rtl.c (next_label): Remove unused function.
28521 (skip_consecutive_labels, link_cc0_insns): Move to ...
28522 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
28523 only place where these functions are used, and make them static.
28525 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28527 * fold-const.c (fold_negate_expr): Handle vectors.
28528 (fold_truth_not_expr): Make it static.
28529 (fold_invert_truthvalue): New static function.
28530 (invert_truthvalue_loc): Handle vectors. Do not call
28531 fold_truth_not_expr directly.
28532 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
28533 <TRUTH_NOT_EXPR>: Do not cast to boolean.
28534 (fold_comparison): Handle vector constants.
28535 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
28536 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
28537 * tree.h (fold_truth_not_expr): Remove declaration.
28539 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
28541 * config/aarch64/aarch64-simd.md
28542 (aarch64_vcond_internal<mode>): Rename to...
28543 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
28544 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
28545 float modes. Clarify all iterator modes.
28546 (vcond<mode><mode>): Use new name for vcond expanders.
28547 (vcond<v_cmp_result><mode>): Likewise.
28548 (vcondu<mode><mode>: Likewise.
28549 * config/aarch64/iterators.md (VDQF_COND): New.
28551 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
28554 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
28555 variable for the shift amount. Check that we shift by non-negative
28558 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
28561 * config/arm/arm.h (EPILOGUE_USES): Only return true
28562 for LR_REGNUM after epilogue_completed.
28564 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
28566 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
28567 is error_mark_node.
28569 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28572 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
28573 and Solaris 11+/x86 with gld.
28574 * configure: Regenerate.
28576 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28578 * expmed.c (expand_shift_1): Canonicalize rotates by
28579 constant bitsize / 2 to bitsize - 1.
28580 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
28581 case ROTATERT>: Likewise.
28584 2013-05-10 Jakub Jelinek <jakub@redhat.com>
28586 * config/i386/i386.md (rotateinv): New code attr.
28587 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
28588 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
28589 roll $31, %eax, etc.
28591 2013-05-14 Richard Biener <rguenther@suse.de>
28593 PR middle-end/57235
28594 * tree-eh.c (sink_clobbers): Give up for successors with
28595 multiple predecessors and no virtual uses.
28597 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
28599 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
28600 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
28602 2013-05-14 Jakub Jelinek <jakub@redhat.com>
28604 PR middle-end/57251
28605 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
28606 the case when both op0 and op1 have VOIDmode.
28608 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28610 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
28611 in multiply-accumulate mode.
28613 2013-05-13 Guozhi Wei <carrot@google.com>
28615 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
28617 2013-05-13 Kai Tietz <ktietz@redhat.com>
28620 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
28621 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
28622 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
28623 * config/i386/i386.c (ix86_option_override_internal): Likewise.
28624 (ix86_expand_prologue): Likewise.
28625 (ix86_expand_split_stack_prologue): Likewise.
28626 (legitimate_pic_address_disp_p): Likewise.
28627 (legitimize_pic_address): Likewise.
28628 (legitimize_tls_address): Likewise.
28629 (legitimize_pe_coff_symbol): Likewise.
28630 (output_pic_addr_const): Likewise.
28631 (construct_plt_address): Likewise.
28632 (ix86_expand_call): Likewise.
28633 (x86_output_mi_thunk): Likewise.
28634 (x86_function_profiler): Likewise.
28636 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
28638 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
28639 similar switch cases.
28640 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
28641 (aarch64_simd_mov_to_<mode>low): Delete.
28642 (aarch64_simd_mov_to_<mode>high): Delete.
28643 (move_lo_quad_<mode>): Add w<-r alternative.
28644 (aarch64_simd_move_hi_quad_<mode>): Likewise.
28645 (aarch64_simd_mov_from_*): Update type attribute.
28646 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
28649 2013-05-13 Jan Hubicka <jh@suse.cz>
28651 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
28652 * config/i386/i386.c (ix86_compute_frame_layout,
28653 ix86_expand_epilogue, emit_i387_cw_initialization,
28654 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
28655 ix86_local_alignment): Fix use of size/speed predicates.
28657 2013-05-13 Jakub Jelinek <jakub@redhat.com>
28659 PR tree-optimization/45216
28660 PR tree-optimization/57157
28661 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
28662 the (-Y) & (B - 1) variant if OP is |.
28663 * expmed.c (expand_shift_1): For rotations by const0_rtx just
28664 return shifted. Use (-op1) & (prec - 1) as other_amount
28665 instead of prec - op1.
28667 2013-05-13 Martin Jambor <mjambor@suse.cz>
28669 PR middle-end/42371
28670 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
28671 (ipa_constant_data): New type.
28672 (ipa_jump_func): Use ipa_constant_data to hold information about
28673 constant jump functions.
28674 (ipa_get_jf_constant): Adjust to jump function type changes.
28675 (ipa_get_jf_constant_rdesc): New function.
28676 (ipa_param_descriptor): New field controlled_uses.
28677 (ipa_get_controlled_uses): New function.
28678 (ipa_set_controlled_uses): Likewise.
28679 * ipa-ref.h (ipa_find_reference): Declare.
28680 * ipa-prop.c (ipa_cst_ref_desc): New type.
28681 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
28683 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
28684 New parameter cs. Adjust all callers.
28685 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
28686 (remove_described_reference): New function.
28687 (jfunc_rdesc_usable): Likewise.
28688 (try_make_edge_direct_simple_call): Decrement controlled use count,
28689 attempt to remove reference if it hits zero.
28690 (combine_controlled_uses_counters): New function.
28691 (propagate_controlled_uses): Likewise.
28692 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
28693 (ipa_edge_duplication_hook): Duplicate reference descriptions.
28694 (ipa_print_node_params): Print described use counter.
28695 (ipa_write_jump_function): Adjust to jump function type changes.
28696 (ipa_read_jump_function): New parameter CS, pass it to
28697 ipa_set_jf_constant. Adjust caller.
28698 (ipa_write_node_info): Stream controlled use count
28699 (ipa_read_node_info): Likewise.
28700 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
28702 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
28703 count. Remove cloning-added reference if it reaches zero.
28704 * ipa-ref.c (ipa_find_reference): New function.
28706 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28708 * config/i386/i386.c (processor_target_table): Modified default
28709 alignment values for AMD BD and BT architectures.
28711 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
28713 * tree-vect-generic.c (uniform_vector_p): Move ...
28714 * tree.c (uniform_vector_p): ... here.
28715 * tree.h (uniform_vector_p): Declare it.
28716 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
28719 2013-05-13 Jakub Jelinek <jakub@redhat.com>
28721 PR tree-optimization/57230
28722 * tree-ssa-strlen.c (handle_char_store): Record length for
28723 array store from STRING_CST.
28725 PR tree-optimization/57230
28726 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
28729 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
28731 * config/epiphany/epiphany.c (epiphany_init): Check size of
28732 NUM_MODES_FOR_MODE_SWITCHING.
28733 (epiphany_expand_prologue):
28734 Remove CONFIG_REGNUM initial value handling code.
28735 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
28736 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
28737 (emit_set_fp_mode, epiphany_mode_after): Likewise.
28738 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
28739 Don't return 1 for FP_MODE_NONE.
28740 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
28741 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
28742 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
28743 * config/epiphany/epiphany.md (save_config): New pattern.
28745 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
28747 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
28749 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
28751 * config/i386/i386.md (memory): Handle sseishft1.
28752 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
28753 (*vec_extractv2di_1): Ditto.
28755 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
28757 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
28760 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
28762 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
28763 Add mthumb/march=armv7-a multilib.
28764 Add mthumb/march=armv7-r multilib.
28765 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
28767 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
28769 * config/v850/t-rtems: Add more multilibs.
28771 2013-05-10 Richard Biener <rguenther@suse.de>
28773 PR tree-optimization/57214
28774 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
28775 not propagate from SSA names that occur in abnormal PHI nodes.
28777 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
28779 * stor-layout.c (element_precision): New function.
28780 * machmode.h (element_precision): Declare it.
28781 * tree.c (build_minus_one_cst): New function.
28782 (element_precision): Likewise.
28783 * tree.h (build_minus_one_cst): Declare new function.
28784 (element_precision): Likewise.
28785 * fold-const.c (operand_equal_p): Use element_precision.
28786 (fold_binary_loc): Handle vector types.
28787 * convert.c (convert_to_integer): Use element_precision.
28788 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
28791 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
28793 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
28794 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
28795 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
28796 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
28797 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
28798 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
28799 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
28800 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
28801 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
28802 (Uuw8): New constraints.
28803 (Usb4): Move into alphabetical order.
28804 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
28805 (sd8_operand, ub8_operand, uw8_operand): New predicates.
28806 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
28807 previously unnamed patterns.
28808 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
28809 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
28810 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
28811 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
28812 of set_attr_alternative/if_then_else. Use extended_mips16 instead
28813 of specific lengths.
28815 2013-05-10 Jakub Jelinek <jakub@redhat.com>
28817 * config/i386/i386.md (rotateinv): New code attr.
28818 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
28819 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
28820 roll $31, %eax, etc.
28822 PR tree-optimization/45216
28823 PR tree-optimization/57157
28824 * tree-ssa-forwprop.c (simplify_rotate): New function.
28825 (ssa_forward_propagate_and_combine): Call it.
28827 2013-05-10 Richard Biener <rguenther@suse.de>
28829 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
28830 disable peeling when we version for aliasing.
28831 (vector_alignment_reachable_p): Honor explicit user alignment.
28832 (vect_supportable_dr_alignment): Likewise.
28833 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
28834 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
28835 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
28836 then peeling to arrange for the cost-model check to come first.
28838 2013-05-10 Alan Modra <amodra@gmail.com>
28840 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
28841 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
28842 * configure: Regenerate.
28844 2013-05-10 Alan Modra <amodra@gmail.com>
28847 * varasm.c (default_elf_select_section): Move !DECL_P check..
28848 (get_named_section): ..to here before calling get_section_name.
28850 (default_section_type_flags): Add DECL_P check.
28851 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
28852 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
28854 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
28856 * config/epiphany/epiphany.c (epiphany_expand_prologue):
28857 When using gen_stack_adjust_str with a register offset, add a
28858 REG_FRAME_RELATED_EXPR note.
28860 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
28862 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
28863 (*vec_extractv4si_zext_mem): Ditto.
28864 (*vec_extractv2di): Add 0->x and x->x alternatives.
28865 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
28866 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
28868 2013-05-09 Jason Merrill <jason@redhat.com>
28870 N3639 C++1y VLA support
28871 * gimplify.c (gimplify_vla_decl): Don't touch an existing
28874 * tree.c (build_constructor_va): New.
28875 * tree.h: Declare it.
28877 2013-05-09 Martin Jambor <mjambor@suse.cz>
28880 * gimple-fold.c (canonicalize_constructor_val): Call
28881 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
28883 2013-05-09 Jan Hubicka <jh@suse.cz>
28884 Richard Biener <rguenther@suse.de>
28887 * symtab.c (symtab_make_decl_local): Do not add private names.
28889 2013-05-09 Jan Hubicka <jh@suse.cz>
28892 * symtab.c (insert_to_assembler_name_hash): Handle clones.
28893 (unlink_from_assembler_name_hash): Likewise.
28894 (symtab_prevail_in_asm_name_hash, symtab_register_node,
28895 symtab_unregister_node, symtab_initialize_asm_name_hash,
28896 change_decl_assembler_name): Update.
28898 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
28900 * config/aarch64/aarch64.md: New movtf split.
28901 (*movtf_aarch64): Update.
28902 (aarch64_movdi_tilow): Handle TF modes and rename to
28903 aarch64_movdi_<mode>low.
28904 (aarch64_movdi_tihigh): Handle TF modes and rename to
28905 aarch64_movdi_<mode>high
28906 (aarch64_movtihigh_di): Handle TF modes and rename to
28907 aarch64_mov<mode>high_di
28908 (aarch64_movtilow_di): Handle TF modes and rename to
28909 aarch64_mov<mode>low_di
28910 (aarch64_movtilow_tilow): Remove spurious whitespace.
28911 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
28913 (aarch64_print_operand): Update.
28915 2013-05-09 Alan Modra <amodra@gmail.com>
28917 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
28919 * configure: Regenerate.
28921 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
28923 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
28924 splitter preparation statements.
28925 * config/i386/sse.md (*vec_extract* splitters): Ditto.
28926 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
28929 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28931 * gimple-ssa-strength-reduction.c (count_candidates): Change
28932 return value to int.
28933 (analyze_candidates_and_replace): Change type of length to int.
28935 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
28937 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
28938 (*vec_extract<mode>): Use VI12_128 mode iterator.
28939 (*vec_extract<mode>_mem): Ditto.
28940 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
28943 2013-05-08 Diego Novillo <dnovillo@google.com>
28948 2012-08-17 Diego Novillo <dnovillo@google.com>
28951 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
28952 * config.in: Regenerate.
28953 * configure: Regenerate.
28954 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
28956 2013-05-08 Jan Hubicka <jh@suse.cz>
28959 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
28960 * cgraph.h (symtab_node_base): Add unique_name.
28961 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
28962 input_overwrite_node, input_varpool_node): Stream unique_name.
28963 * cgraphclones.c (cgraph_create_virtual_clone,
28964 cgraph_function_versioning): Set unique_name.
28965 * ipa.c (function_and_variable_visibility): Set unique_name.
28967 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28969 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
28970 (alloc_cand_and_find_basis): Restrict conditional candidate
28971 processing to CAND_MULTs.
28973 2013-05-08 Jan Hubicka <jh@suse.cz>
28976 lto-symtab.c (lto_symtab_symbol_p): New function.
28977 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
28978 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
28979 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
28980 Skip static symbols.
28982 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
28984 PR tree-optimization/57200
28985 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
28986 Only call inform if the preceding warning_at returns true.
28988 2013-05-07 Han Shen <shenhan@google.com>
28990 * cfgexpand.c (record_or_union_type_has_array_p): New function.
28991 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
28992 * common.opt (fstack-protector-strong): New option.
28993 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
28994 * doc/invoke.texi (Optimization Options): Document
28995 "-fstack-protector-strong".
28996 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
28998 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29000 * config/mips/mips.c (mips_machine_reorg2): Return 0.
29002 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
29004 * ira.c (update_equiv_regs): Add insn having equiv memory even if
29005 it is not lhs of the insn.
29006 (setup_reg_equiv): Remove insn having equiv memory which it is not
29008 * lra-constraints.c (process_address): Try to improve generation
29009 code for address base + disp.
29010 (lra_constraints): Make correct the code for checking insn setting
29011 up backward equivalence. Remove insn only if it is in the init
29013 * lra-eliminations.c (update_reg_eliminate): Change return value.
29014 (lra_eliminate): Use the result.
29016 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
29018 * config/i386/sse.md (ssescalarnummask): New mode attribute.
29019 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
29020 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
29021 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
29022 register target operands.
29023 (*vec_extractv8hi_sse2): New pattern.
29024 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
29025 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
29026 (*vec_extract<mode>_mem): New insn and split pattern.
29028 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
29030 * config/arm/arm.c (arm_asan_shadow_offset): New function.
29031 (TARGET_ASAN_SHADOW_OFFSET): Define.
29032 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
29033 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
29035 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29037 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
29038 (incr_vec_index): Return -1 if increment not found.
29039 (create_add_on_incoming_edge): Assert if increment not found.
29040 (record_increment): Limit number of increments recorded.
29041 (all_phi_incrs_profitable): Return false if an increment not found.
29042 (replace_profitable_candidates): Don't process increments that were
29044 (analyze_candidates_and_replace): Limit size of incr_vec.
29046 2013-05-07 Richard Biener <rguenther@suse.de>
29048 * calls.c (special_function_p): setjmp-like functions are leaf.
29049 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
29050 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
29052 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
29054 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
29055 (aarch64_simd_mov<mode>): New expander.
29056 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
29057 (aarch64_simd_mov_to_<mode>high): Likewise.
29058 (aarch64_simd_mov_from_<mode>low): Likewise.
29059 (aarch64_simd_mov_from_<mode>high): Likewise.
29060 (aarch64_dup_lane<mode>): Update.
29061 (aarch64_dup_lanedi): New instruction pattern.
29062 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
29063 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
29065 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29067 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
29068 (replace_mult_candidate): Remove unnecessary argument; remove
29069 unnecessary parameter from call to introduce_cast_before_cand.
29070 (replace_unconditional_candidate): Remove unnecessary parameter
29071 from call to replace_mult_candidate.
29072 (replace_conditional_candidate): Likewise.
29073 (insert_initializers): Use make_temp_ssa_name.
29074 (introduce_cast_before_cand): Remove unnecessary argument; use
29075 make_temp_ssa_name.
29076 (replace_one_candidate): Remove unnecessary argument; remove
29077 unnecessary parameter from calls to introduce_cast_before_cand.
29078 (replace_profitable_candidates): Remove unnecessary parameters
29079 from calls to replace_one_candidate.
29081 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29083 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
29084 phi def as possibly hiding a basis for a CAND_ADD whose operands
29085 have been commuted in the analysis.
29086 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
29088 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29090 * config/aarch64/aarch64.md
29091 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
29092 shift value between 0-4.
29094 2013-05-07 Richard Biener <rguenther@suse.de>
29096 * double-int.h (rshift): New overload.
29097 * double-int.c (rshift): New function.
29098 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
29099 (create_reference_ops_from_ref): Remove.
29100 (vn_reference_insert): Use shared ops for constructing the
29101 reference and copy it.
29103 2013-05-07 Richard Biener <rguenther@suse.de>
29105 PR middle-end/57190
29106 * tree-eh.c (sink_clobbers): Properly propagate
29107 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
29109 2013-05-07 Jakub Jelinek <jakub@redhat.com>
29111 PR tree-optimization/57149
29112 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
29113 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
29114 collect_phi_def_edges, execute_late_warn_uninitialized): Use
29115 uninit_undefined_value_p instead of ssa_undefined_value_p.
29118 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
29119 for modifier == EXPAND_INITIALIZER.
29121 2013-05-07 Anton Blanchard <anton@samba.org>
29123 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
29124 for powerpc64 little endian.
29125 * configure: Regenerate.
29127 2013-05-06 Graham Stott <grahams@btinternet.com>
29129 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
29130 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
29131 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
29132 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
29134 2013-05-06 Graham Stott <grahams@btinternet.com>
29136 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
29137 codes which allow non-lvalues.
29139 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
29141 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
29142 components are all 1s.
29143 (integer_minus_onep): New function.
29144 * tree.h (integer_minus_onep): Declare it.
29145 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
29146 integer_minus_onep instead of integer_all_onesp.
29148 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29151 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
29152 variations of these patterns.
29154 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29156 * config/i386/i386.md (isa): Add x64_sse4 member.
29157 (enabled): Handle x64_sse4.
29158 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
29159 instruction for 64bit SSE4_1 targets. Update insn attributes.
29160 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
29161 instruction for SSE4_1 targets. Update insn attributes.
29162 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29163 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
29164 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
29166 (*vec_extractv4si): Rename from *sse4_1_pextrd.
29167 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
29168 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
29170 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29173 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
29175 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
29177 * final.c (do_assembler_dialects): Don't handle curly braces and
29178 vertical bar escaped by % as dialect delimiters.
29179 (output_asm_insn): Print curly braces and vertical bar if escaped
29180 by % and ASSEMBLER_DIALECT defined.
29181 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
29182 * doc/tm.texi: Regenerated.
29184 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
29186 * config/mips/mips.c: Include tree-pass.h.
29187 (mips_reorg): Split in pre- and post-dbr_schedule parts.
29188 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
29189 (pass_mips_machine_reorg2): New machine specific pass.
29190 (insert_pass_mips_machine_reorg2): New pass plugin definition.
29191 (mips_option_override): Register the new pass.
29192 * rtl.h (cleanup_barriers): Remove prototype.
29193 (dbr_schedule): Likewise.
29194 * jump.c (cleanup_barriers): Make static.
29195 * reorg.c (dbr_schedule): Likewise.
29197 2013-05-06 Richard Biener <rguenther@suse.de>
29199 PR tree-optimization/57185
29200 * tree-parloops.c (add_field_for_reduction): Handle anonymous
29201 SSA names properly.
29203 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
29206 * config/i386/i386.c (add_parameter_dependencies): Add dependence
29207 between "first_arg" and "insn", not "last" and "insn".
29209 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29211 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
29212 (find_candidates_in_block): Re-enable slsr_process_phi.
29213 (create_phi_basis): Fix double counting of candidate adjustment.
29215 2013-05-06 Richard Biener <rguenther@suse.de>
29217 PR middle-end/57147
29218 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
29219 the edge is also fallthru, preserve it and just clear the
29221 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
29222 also complex, preserve that and just clear the fallthru flag.
29223 * tree-inline.c (update_ssa_across_abnormal_edges): Also
29224 update virtual operands.
29226 2013-05-06 Alan Modra <amodra@gmail.com>
29228 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
29229 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
29230 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
29231 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
29232 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29233 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
29235 2013-05-06 Alan Modra <amodra@gmail.com>
29237 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
29238 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
29239 (DEFAULT_ASM_ENDIAN): Define.
29240 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
29241 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
29242 Update -K PIC clause from sysv4.h.
29243 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
29244 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
29246 2013-05-06 Alan Modra <amodra@gmail.com>
29248 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
29249 twice for little-endian.
29250 (ashrdi3_no_power, ashrdi3): Support little-endian.
29252 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
29255 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
29256 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
29258 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
29259 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
29260 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
29263 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
29264 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29266 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
29267 * config/pa/pa.opt: Make mbig-switch a no-op.
29268 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
29269 (CASE_VECTOR_MODE): Always return SImode.
29270 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
29271 for the !TARGET_BIG_SWITCH case.
29272 * config/pa/pa-linux.h: Likewise.
29273 * config/pa/pa-openbsd.h: Likewise.
29274 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
29275 * config/pa/pa.md (short_jump): Remove define_insn.
29276 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
29277 (casesi0): Remove define_insn.
29278 (type): Remove btable_branch.
29279 (pa_combine_type): Likewise.
29280 (in_nullified_branch_delay): Likewise.
29281 (in_call_delay): Likewise.
29282 (define_delay): Likewise.
29283 (define_insn_reservation "Z3"): Likewise.
29284 (define_insn_reservation "Z4"): Likewise.
29285 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
29286 (pa_adjust_insn_length): Remove adjustment for btable branches.
29287 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
29290 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
29292 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
29293 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
29294 Add m->r,x alternatives.
29295 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
29296 splitters using SWI48x mode iterator.
29297 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
29298 TARGET_64BIT. Add m->x alternative.
29299 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
29300 Add o->x alternative. Enable for TARGET_SSE.
29301 (sse_storeq): Remove expander.
29302 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
29303 with memory input operand.
29304 (*vec_extractv2di_1 splitter): New.
29305 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
29306 * config/i386/i386.md (ssevecmodelower): New mode attribute.
29308 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29310 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
29311 (INT_LOWPART): Delete.
29312 (extract_MB): Adjust.
29313 (extract_ME): Adjust.
29314 (print_operand): Adjust.
29316 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
29318 * config/rs6000/predicates.md (reg_or_add_cint_operand,
29319 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29320 (reg_or_logical_cint_operand, easy_fp_constant,
29321 logical_const_operand): Delete "CONST_DOUBLE" case.
29322 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
29323 "HOST_BITS_PER_WIDE_INT == 64" test.
29324 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
29325 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
29326 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
29327 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
29329 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
29330 CONST_DOUBLE DImode/VOIDmode case.
29331 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
29332 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29333 CONST_DOUBLE VOIDmode case.
29334 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
29335 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
29336 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
29337 Delete CONST_DOUBLE case.
29338 (splitters for mov FMOVE64 const_double): Delete
29339 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
29340 "HOST_BITS_PER_WIDE_INT >= 64" test.
29341 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
29343 (mov DI const_double): Delete.
29345 2013-05-04 Jakub Jelinek <jakub@redhat.com>
29347 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
29348 on op shows all bits zero in mode of a lowpart subreg, return zero.
29350 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29353 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
29354 to save TFmode registers and DImode to save TImode registers for
29355 caller save operations.
29356 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
29357 mark being partially clobbered since they only use the first
29360 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
29361 and TDmode only use the upper 64-bits of each VSX register.
29363 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29365 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
29366 (find_candidates_in_block): Disable slsr_process_phi.
29368 2013-05-03 Guozhi Wei <carrot@google.com>
29370 * coverage.c (coverage_obj_init): Move the construction of gcov
29372 (build_init_ctor): ... here.
29374 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29376 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
29377 (slsr_cand_d): Redefine def_phi.
29378 (stride_status, phi_adjust_status, count_phis_status): New enums.
29379 (find_phi_def): New.
29380 (find_basis_for_base_expr): New.
29381 (find_basis_for_candidate): Handle hidden bases.
29382 (alloc_cand_and_find_basis): Handle phi candidates.
29383 (slsr_process_phi): New.
29384 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
29385 (create_mul_imm_cand): Likewise.
29386 (create_add_ssa_cand): Exclude phi base candidates.
29387 (create_add_imm_cand): Likewise.
29388 (slsr_process_cast): Likewise.
29389 (slsr_process_copy): Likewise.
29390 (find_candidates_in_block): Handle phi candidates.
29391 (dump_candidate): Likewise.
29392 (unconditional_cands): Delete.
29393 (unconditional_cands_with_known_stride_p): Delete.
29394 (phi_dependent_cand_p): New.
29395 (cand_increment): Handle phi-dependent candidates.
29396 (replace_dependent): Delete.
29397 (replace_mult_candidate): New.
29398 (replace_unconditional_candidate): New.
29399 (incr_vec_index): Move to avoid forward reference.
29400 (create_add_on_incoming_edge): New.
29401 (create_phi_basis): New.
29402 (replace_dependents): Delete.
29403 (replace_conditional_candidate): New.
29404 (phi_add_costs): New.
29405 (replace_uncond_cands_and_profitable_phis): New.
29406 (record_increment): Handle phi adjustments.
29407 (record_phi_increments): New.
29408 (record_increments): Handle phi adjustments.
29409 (phi_incr_cost): New.
29410 (lowest_cost_path): Handle phis.
29411 (total_savings): Likewise.
29412 (analyze_increments): Likewise.
29413 (ncd_with_phi): New.
29414 (ncd_of_cand_and_phis): New.
29415 (nearest_common_dominator_for_cands): Handle phi increments.
29416 (all_phi_incrs_profitable): New.
29417 (replace_profitable_candidates): Handle phi-dependent candidates.
29418 (analyze_candidates_and_replace): Likewise.
29420 2013-05-03 Teresa Johnson <tejohnson@google.com>
29423 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
29424 do not exceed REG_BR_PROB_BASE.
29426 2013-05-03 Jeff Law <law@redhat.com>
29428 PR tree-optimization/57144
29429 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
29430 operand of the condition will bit into the new type when eliminating
29431 a cast feeding a condition.
29433 2013-05-03 Jakub Jelinek <jakub@redhat.com>
29435 PR rtl-optimization/57130
29436 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
29437 of COMPARE as in_code to the recursive call if needed.
29439 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
29441 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
29442 (enabled): Handle new members.
29443 * config/i386/sse.md (*vec_concatv2si): Merge from
29444 *vec_concatv2si_sse2 and vec_concatv2si_sse.
29445 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
29447 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
29449 PR tree-optimization/57027
29450 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
29451 for fnms opportunity, check we got the prerequisite kind
29452 of tree / gimple before using accessor functions.
29454 2013-05-03 Richard Biener <rguenther@suse.de>
29456 * double-int.h (lshift): New overload without precision
29457 and arith argument.
29458 (operator *=, operator +=, operator -=): Move ...
29459 * double-int.c (operator *=, operator +=, operator -=): ... here
29460 and implement more efficiently.
29461 (mul_double_with_sign): Remove.
29462 (lshift_double): Adjust to take unsinged shift argument, push
29463 dispatching code to callers.
29464 (mul_double_wide_with_sign): Add early out for callers that
29465 are not interested in high parts or overflow.
29466 (lshift): New function.
29467 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
29468 dispatch code here.
29469 (lrotate, rrotate): Use logical shifts.
29470 * expr.c (get_inner_reference): Use lshift.
29471 * fixed-value.c (do_fixed_divide): Likewise.
29472 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29473 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
29474 (indirect_refs_may_alias_p): Likewise.
29475 (stmt_kills_ref_p_1): Likewise.
29477 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29479 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
29481 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
29483 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
29484 scalar form of FABD instruction.
29486 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
29488 * lra-constraints.c (process_alt_operands): Add checking alt
29489 number to choose the best alternative.
29491 2013-05-02 Richard Biener <rguenther@suse.de>
29493 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
29494 bitmap and its handling.
29495 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
29497 2013-05-02 Richard Biener <rguenther@suse.de>
29499 PR middle-end/57140
29500 * tree-inline.c (copy_loops): Properly handle removed loops.
29501 (copy_cfg_body): Mark destination loops for fixup if source
29502 loops needed fixup.
29504 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
29507 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
29508 generating simple_return for naked functions.
29510 2013-05-02 Martin Jambor <mjambor@suse.cz>
29512 PR middle-end/56988
29513 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
29514 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
29516 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
29517 ipa_agg_replacement_value structures.
29518 (known_aggs_to_agg_replacement_list): Likewise.
29519 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
29520 (read_agg_replacement_chain): Likewise.
29521 (ipcp_transform_function): Also check that by_ref flags match.
29523 2013-05-02 Richard Biener <rguenther@suse.de>
29525 * graphds.h (struct graph): Add obstack member.
29526 * graphds.c (new_graph): Initialize obstack and allocate
29528 (add_edge): Allocate edge from the obstack.
29529 (free_graph): Free the obstack instead of all edges and vertices.
29531 2013-05-02 Teresa Johnson <tejohnson@google.com>
29533 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
29535 * cfg.c (update_bb_profile_for_threading): Ditto.
29536 * tree-inline.c (copy_bb): Ditto.
29537 (copy_edges_for_bb): Ditto.
29538 (initialize_cfun): Ditto.
29539 (copy_cfg_body): Ditto.
29540 (expand_call_inline): Ditto.
29541 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
29542 (estimate_node_size_and_time): Ditto.
29543 (inline_merge_summary): Ditto.
29544 * cgraphclones.c (cgraph_clone_edge): Ditto.
29545 (cgraph_clone_node): Ditto.
29546 * sched-rgn.c (compute_dom_prob_ps): Ditto.
29547 (compute_trg_info): Ditto.
29549 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29551 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
29552 S reg when fp attribute set.
29553 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
29555 2013-05-02 Ian Bolton <ian.bolton@arm.com>
29557 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
29559 (*and_one_cmplsi3_compare0_uxtw): Likewise.
29560 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
29561 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
29563 2013-05-02 Richard Biener <rguenther@suse.de>
29565 * tree-scalar-evolution.c (scev_info_hasher): Remove.
29566 (struct instantiate_cache_entry): New type.
29567 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
29568 (struct instantiate_cache_type): New type.
29569 (set_instantiated_value, get_instantiated_value): Remove.
29570 (get_instantiated_value_entry): New function.
29571 (instantiate_scev_name): Use the new cache and adjust.
29572 (instantiate_scev_poly): Adjust.
29573 (instantiate_scev_binary): Likewise.
29574 (instantiate_array_ref): Likewise.
29575 (instantiate_scev_convert): Likewise.
29576 (instantiate_scev_not): Likewise.
29577 (instantiate_scev_3): Likewise.
29578 (instantiate_scev_2): Likewise.
29579 (instantiate_scev_r): Likewise.
29580 (instantiate_scev): Likewise.
29581 (resolve_mixers): Likewise.
29583 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
29586 * lra-constraints.c (best_small_class_operands_num): Remove.
29587 (process_alt_operands): Remove small_class_operands_num. Take
29588 small classes operands into losers and only if the operand is not
29589 matched. Modify debugging output.
29590 (curr_insn_transform): Remove best_small_class_operands_num.
29593 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29595 * config/aarch64/aarch64-builtins.c
29596 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
29597 * config/aarch64/aarch64-simd-builtins.def
29598 (reduc_splus_): Add new modes.
29599 (reduc_uplus_): New.
29600 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
29601 (reduc_uplus_v4sf): Likewise.
29602 (reduc_splus_v4sf): Likewise.
29603 (aarch64_addv<mode>): Likewise.
29604 (reduc_uplus_<mode>): Likewise.
29605 (reduc_splus_<mode>): Likewise.
29606 (aarch64_addvv2di): Likewise.
29607 (reduc_uplus_v2di): Likewise.
29608 (reduc_splus_v2di): Likewise.
29609 (aarch64_addvv2si): Likewise.
29610 (reduc_uplus_v2si): Likewise.
29611 (reduc_splus_v2si): Likewise.
29612 (reduc_<sur>plus_<mode>): New.
29613 (reduc_<sur>plus_v2di): Likewise.
29614 (reduc_<sur>plus_v2si): Likewise.
29615 (reduc_<sur>plus_v4sf): Likewise.
29616 (aarch64_addpv4sf): Likewise.
29617 * config/aarch64/arm_neon.h
29618 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
29619 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
29620 add UNSPEC_SADDV, UNSPEC_UADDV.
29622 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
29624 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29626 * config/aarch64/arm_neon.h
29627 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
29629 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29631 * config/aarch64/aarch64-builtins
29632 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
29634 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29636 * config/aarch64/aarch64-simd-builtins.def
29637 (reduc_smax_): New.
29638 (reduc_smin_): Likewise.
29639 (reduc_umax_): Likewise.
29640 (reduc_umin_): Likewise.
29641 (reduc_smax_nan_): Likewise.
29642 (reduc_smin_nan_): Likewise.
29645 (smax): Update for V2SF, V4SF and V2DF modes.
29648 (smin_nan): Likewise.
29649 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
29650 (<su><maxmin><mode>3): ...This, refactor.
29651 (s<maxmin><mode>3): New.
29652 (<maxmin_uns><mode>3): Likewise.
29653 (reduc_<maxmin_uns>_<mode>): Refactor.
29654 (reduc_<maxmin_uns>_v4sf): Likewise.
29655 (reduc_<maxmin_uns>_v2si): Likewise.
29656 (aarch64_<fmaxmin><mode>: Remove.
29657 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
29659 (vmin<q>_f<32,64>): Likewise.
29660 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
29662 (su): Add mappings for smax, smin, umax, umin.
29664 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
29665 (FMAXMIN): Rename as...
29666 (FMAXMIN_UNS): ...This.
29668 (fmaxminv): Likewise.
29669 (fmaxmin): Likewise.
29671 (maxmin_uns_op): Likewise.
29673 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29675 * config/aarch64/arm_neon.h
29676 (vac<ge, gt><sd>_f<32, 64>): Rename to...
29677 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
29678 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
29680 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29682 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
29683 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
29685 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29687 * config/aarch64/aarch64-simd.md
29688 (vcond<mode>_internal): Handle special cases for constant masks.
29689 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
29690 (vcondu<mode><mode>): Likewise.
29691 (vcond<v_cmp_result><mode>): New.
29693 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29695 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
29696 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
29697 * config/aarch64/aarch64-simd-builtins.def
29698 (cmeq): Update to BUILTIN_VALLDI.
29703 * config/aarch64/arm_neon.h
29704 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
29705 to builtins or C as appropriate.
29707 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
29709 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
29711 (cmhi): Rename to...
29713 * config/aarch64/aarch64-simd.md
29714 (simd_mode): Add SF.
29715 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
29716 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
29717 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
29718 (cstore<mode>_neg): ...This.
29719 * config/aarch64/iterators.md
29721 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
29722 (COMPARISONS): New.
29723 (UCOMPARISONS): Likewise.
29724 (optab): Add missing comparisons.
29730 (VCMP_S): Likewise.
29731 (VCMP_U): Likewise.
29732 (V_cmp_result): Add DF, SF modes.
29733 (v_cmp_result): Likewise.
29735 (vmtype): Likewise.
29736 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
29738 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
29740 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
29741 define_insn to define_insn_and_split.
29742 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
29743 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
29744 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
29745 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
29746 (thumb2_negscc): Likewise.
29748 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
29750 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
29752 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
29754 * config/arm/thumb2.md: Remove trailing whitespaces.
29756 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29758 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
29759 Use gen_int_mode rather than GEN_INT.
29761 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
29763 * value-prof.c (stream_in_histogram_value): Remove the strayed
29766 2013-04-30 Richard Biener <rguenther@suse.de>
29768 PR middle-end/57122
29769 * cfghooks.c (split_edge): Properly check for the loop latch edge.
29771 2013-04-30 Richard Biener <rguenther@suse.de>
29773 PR middle-end/57107
29774 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
29776 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
29778 PR rtl-optimization/56957
29779 PR rtl-optimization/57105
29780 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
29781 variable. Use just INSN_UID for determining whether an insn
29782 should be only disconnected from the insn stream.
29783 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
29785 2013-04-30 Jakub Jelinek <jakub@redhat.com>
29787 PR tree-optimization/57104
29788 * tsan.c (instrument_expr): Don't instrument accesses to
29789 DECL_HARD_REGISTER VAR_DECLs.
29791 2013-04-30 Richard Biener <rguenther@suse.de>
29793 * function.h (loops_for_fn): New inline function.
29794 (set_loops_for_fn): Likewise.
29795 * cfgloop.h (place_new_loop): Add struct function parameter.
29796 (get_loop): Likewise.
29797 (get_loops): Likewise.
29798 (number_of_loops): Likewise.
29799 (fel_next): Adjust.
29800 (fel_init): Likewise.
29801 * cfg.c (get_loop_copy): Adjust.
29802 * cfgloop.c (flow_loops_dump): Likewise.
29803 (record_loop_exits): Likewise.
29804 (verify_loop_structure): Likewise.
29805 * cfgloopanal.c (mark_irreducible_loops): Likewise.
29806 (estimate_reg_pressure_cost): Likewise.
29807 (mark_loop_exit_edges): Likewise.
29808 * cfgloopmanip.c (place_new_loop): Likewise.
29809 (add_loop): Likewise.
29810 (duplicate_loop): Likewise.
29811 * graph.c (draw_cfg_nodes): Likewise.
29812 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
29813 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
29814 (extract_affine_chrec): Likewise.
29815 (build_scop_iteration_domain): Likewise.
29816 * graphite.c (graphite_initialize): Likewise.
29817 * ira-build.c (create_loop_tree_nodes): Likewise.
29818 (more_one_region_p): Likewise.
29819 (rebuild_regno_allocno_maps): Likewise.
29820 (mark_loops_for_removal): Likewise.
29821 (mark_all_loops_for_removal): Likewise.
29822 (remove_unnecessary_regions): Likewise.
29823 (ira_build): Likewise.
29824 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
29825 * loop-init.c (fix_loop_structure): Likewise.
29826 (gate_rtl_move_loop_invariants): Likewise.
29827 (gate_rtl_unswitch): Likewise.
29828 (gate_rtl_unroll_and_peel_loops): Likewise.
29829 (rtl_doloop): Likewise.
29830 * lto-streamer-in.c (input_cfg): Likewise.
29831 * lto-streamer-out.c (output_cfg): Likewise.
29832 * modulo-sched.c (sms_schedule): Likewise.
29833 * predict.c (tree_estimate_probability): Likewise.
29834 (tree_estimate_probability_driver): Likewise.
29835 (estimate_loops): Likewise.
29836 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
29837 (move_sese_region_to_fn): Likewise.
29838 (debug_loop_num): Likewise.
29839 * tree-chrec.c (chrec_evaluate): Likewise.
29840 (hide_evolution_in_other_loops_than_loop): Likewise.
29841 (chrec_component_in_loop_num): Likewise.
29842 (reset_evolution_in_loop): Likewise.
29843 (evolution_function_is_invariant_rec_p): Likewise.
29844 * tree-if-conv.c (main_tree_if_conversion): Likewise.
29845 * tree-inline.c (copy_loops): Likewise.
29846 (copy_cfg_body): Likewise.
29847 (tree_function_versioning): Likewise.
29848 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
29849 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
29851 (add_to_evolution_1): Likewise.
29852 (scev_const_prop): Likewise.
29853 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
29854 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
29855 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
29856 (tree_ssa_lim_initialize): Likewise.
29857 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
29858 (verify_loop_closed_ssa): Likewise.
29859 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
29860 (tree_ssa_loop_im): Likewise.
29861 (tree_ssa_loop_unswitch): Likewise.
29862 (tree_vectorize): Likewise.
29863 (check_data_deps): Likewise.
29864 (tree_ssa_loop_ivcanon): Likewise.
29865 (tree_ssa_loop_bounds): Likewise.
29866 (tree_complete_unroll): Likewise.
29867 (tree_complete_unroll_inner): Likewise.
29868 (tree_parallelize_loops): Likewise.
29869 (tree_ssa_loop_prefetch): Likewise.
29870 (tree_ssa_loop_ivopts): Likewise.
29871 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
29872 * tree-vectorizer.c (vectorize_loops): Likewise.
29874 2013-04-29 Mike Frysinger <vapier@gentoo.org>
29876 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
29877 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
29878 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
29879 with EABI_LINK_SPEC.
29881 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
29884 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
29887 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
29890 * lra-constraints.c (process_alt_operands): Discourage a bit more
29891 using memory for pseudos. Print cost dump for alternatives.
29892 Modify cost values for conflicts with early clobbers.
29893 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
29895 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
29898 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
29900 2013-04-29 Ian Bolton <ian.bolton@arm.com>
29902 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
29903 from/to S register.
29904 (movdi_aarch64): Support LDR/STR from/to D register.
29906 2013-04-29 Ian Bolton <ian.bolton@arm.com>
29908 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
29909 or higher by default.
29911 2013-04-29 Richard Biener <rguenther@suse.de>
29913 PR middle-end/57075
29914 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
29915 even if not adding abnormal edges for calls that can make
29918 2013-04-29 Richard Biener <rguenther@suse.de>
29920 PR middle-end/57103
29921 * tree-cfg.c (move_stmt_op): Fix condition under which to update
29923 (move_stmt_r): Remove redundant checking.
29925 2013-04-29 Teresa Johnson <tejohnson@google.com>
29928 * basic-block.h (apply_scale): New function.
29929 (apply_probability): Use apply_scale.
29930 * gimple-streamer-in.c (input_bb): Ditto.
29931 * lto-streamer-in.c (input_cfg): Ditto.
29932 * lto-cgraph.c (merge_profile_summaries): Ditto.
29933 * tree-optimize.c (execute_fixup_cfg): Ditto.
29934 * tree-inline.c (copy_bb): Update comment to use apply_scale.
29935 (copy_edges_for_bb): Ditto.
29936 (copy_cfg_body): Ditto.
29938 2013-04-29 Tom de Vries <tom@codesourcery.com>
29940 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
29941 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
29942 (tail_merge_optimize): Handle current_loops == NULL.
29944 2013-04-26 Jeff Law <law@redhat.com>
29946 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
29947 (simplify_cond_using_ranges): Generalize code to simplify
29948 COND_EXPRs where one argument is a constant and the other
29949 is an SSA_NAME created by an integral type conversion.
29951 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29953 * config/arm/arm.md (store_minmaxsi): Use only when
29954 optimize_insn_for_size_p.
29956 2013-04-29 Christian Bruel <christian.bruel@st.com>
29959 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
29961 2013-04-29 Richard Biener <rguenther@suse.de>
29963 PR middle-end/57089
29964 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
29965 loop tree make sure to schedule a fixup for the child as well.
29966 (expand_omp_for_generic): Properly add loops.
29967 (expand_omp_for_static_nochunk): Likewise.
29968 (expand_omp_for_static_chunk): Likewise.
29969 (expand_omp_for): For the degenerate case fixup loops.
29970 (expand_omp_sections): Fix default bb placement in loops.
29971 (expand_omp_atomic_pipeline): Properly add loops.
29973 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29975 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
29977 2013-04-29 Tom de Vries <tom@codesourcery.com>
29979 * tree-ssa-tail-merge.c: Update header comment.
29981 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29983 * config/aarch64/arm_neon.h
29984 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
29985 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
29986 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
29987 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
29988 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
29989 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
29990 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
29991 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
29993 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
29995 * config/aarch64/aarch64-simd.md
29996 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
29997 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
29998 fix_trunc, fixuns_trunc.
29999 (ftrunc<VDQF:mode>2): New.
30000 * config/aarch64/iterators.md (optab): Add fix, fixuns.
30001 (fix_trunc_optab): New.
30003 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30005 * config/aarch64/aarch64-builtins.c
30006 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
30007 iceilf, lround, iroundf.
30009 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
30012 * config/i386/i386.h (enum ix86_tune_indices)
30013 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
30014 New, split from X86_TUNE_INTER_UNIT_MOVES.
30015 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
30016 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
30017 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
30018 (TARGET_INTER_UNIT_MOVES): Remove.
30019 * config/i386/i386.c (initial_ix86_tune_features): Update.
30020 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
30021 (ix86_expand_convert_uns_didf_sse): Use
30022 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30023 (ix86_expand_vector_init_one_nonzero): Ditto.
30024 (ix86_expand_vector_init_interleave): Ditto.
30025 (inline_secondary_memory_needed): Return true for moves from SSE class
30026 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
30027 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
30028 * config/i386/constraints.md (Yi, Ym): Depend on
30029 TARGET_INTER_UNIT_MOVES_TO_VEC.
30030 (Yj, Yn): New constraints.
30031 * config/i386/i386.md (*movdi_internal): Change constraints of
30032 operand 1 from Yi to Yj and from Ym to Yn.
30033 (*movsi_internal): Ditto.
30034 (*movdf_internal): Ditto.
30035 (*movsf_internal): Ditto.
30036 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
30037 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
30038 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
30039 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
30040 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
30041 * config/i386/sse.md (movdi_to_sse): Ditto.
30042 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
30043 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
30044 TARGET_INTER_UNIT_MOVES.
30045 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
30046 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
30047 instead of TARGET_INTER_UNIT_MOVES.
30048 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
30049 operand 1 from Yi to Yj and from Ym to Yn.
30051 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30053 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
30054 (float_truncate_hi_): Likewise.
30055 (float_extend_lo_): Likewise.
30056 (float_truncate_lo_): Likewise.
30057 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
30058 (aarch64_float_extend_lo_v2df): Likewise.
30059 (vec_unpacks_hi_v4sf): Likewise.
30060 (aarch64_float_truncate_lo_v2sf): Likewise.
30061 (aarch64_float_truncate_hi_v4sf): Likewise.
30062 (vec_pack_trunc_v2df): Likewise.
30063 (vec_pack_trunc_df): Likewise.
30065 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30067 * config/aarch64/aarch64-builtins.c
30068 (aarch64_fold_builtin): Fold float conversions.
30069 * config/aarch64/aarch64-simd-builtins.def
30070 (floatv2si, floatv4si, floatv2di): New.
30071 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
30072 * config/aarch64/aarch64-simd.md
30073 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
30074 * config/aarch64/iterators.md (FLOATUORS): New.
30075 (optab): Add float, floatuns.
30076 (su_optab): Likewise.
30078 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30080 * config/aarch64/aarch64-builtins.c
30081 (aarch64_builtin_vectorized_function): Use new names for
30083 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
30084 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
30085 (fcvtzu): Split as...
30086 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
30087 (fcvtas): Split as...
30088 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
30089 (fcvtau): Split as...
30090 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
30091 (fcvtps): Split as...
30092 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
30093 (fcvtpu): Split as...
30094 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
30095 (fcvtms): Split as...
30096 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
30097 (fcvtmu): Split as...
30098 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
30099 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
30100 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
30101 (lfrintnusf, lfrintnudf): Likewise.
30102 * config/aarch64/aarch64-simd.md
30103 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
30105 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
30106 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
30107 (fcvt_pattern): Likewise.
30109 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30111 * config/aarch64/aarch64-simd.md
30112 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
30113 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
30115 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30117 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
30118 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
30119 (vrnd<a,m,n,p>_f32): Implement using builtins.
30120 (vrnd<i,x><q>_f<32, 64>): New.
30122 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
30124 * config/aarch64/aarch64-builtins.c
30125 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
30126 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
30127 (frintz): Rename to...
30129 (frintp): Rename to...
30131 (frintm): Rename to...
30133 (frinti): Rename to...
30134 (nearbyint): ...this.
30135 (frintx): Rename to...
30137 (frinta): Rename to...
30139 * config/aarch64/aarch64-simd.md
30140 (aarch64_frint<frint_suffix><mode>): Delete.
30141 (<frint_pattern><mode>2): Convert to insn.
30142 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
30143 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
30144 (frint_pattern): Likewise.
30145 (frint_suffix): Likewise.
30147 2013-04-29 Richard Biener <rguenther@suse.de>
30149 PR tree-optimization/57081
30150 * loop-init.c: Include tree-flow.h.
30151 (loop_optimizer_finalize): Free number of iteration estimates.
30152 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
30154 2013-04-29 Jakub Jelinek <jakub@redhat.com>
30156 PR tree-optimization/57083
30157 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
30158 non-singleton shift count range, zero extend low_bound for uns case.
30160 * config/i386/predicates.md (general_vector_operand): New predicate.
30161 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
30162 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
30163 if they aren't nonimmediate operands. If their original values
30164 satisfy const_vector_equal_evenodd_p, don't shift them.
30165 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
30166 predicates. For the SSE4.1 case force operands[{1,2}] into registers
30167 if not nonimmediate_operand.
30168 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
30169 instead of register_operand.
30170 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
30172 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
30174 * stor-layout.c (finalize_size_functions): Allocate a structure and
30175 reset cfun before dumping the functions.
30177 2013-04-27 Jakub Jelinek <jakub@redhat.com>
30179 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
30182 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
30183 use xop_pmacsdqh if uns_p.
30184 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
30185 the immediate rotate count.
30187 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
30189 * rtl.h (struct rtx_def): Add comment for field jump.
30190 (LRA_SUBREG_P): New macro.
30191 * recog.c (register_operand): Check LRA_SUBREG_P.
30192 * lra.c (lra): Add note at the end of RTL code. Align non-empty
30194 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
30195 (lra_final_code_change): Skip subreg change for operators.
30196 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
30197 if there are no operand changes.
30198 * lra-constraints.c (curr_insn_set): New.
30199 (match_reload): Set LRA_SUBREG_P.
30200 (emit_spill_move): Ditto.
30201 (check_and_process_move): Use curr_insn_set. Process only single
30202 set insns. Don't initialize sec_mem_p and change_p.
30203 (simplify_operand_subreg): Use LRA_SUBREG_P.
30204 (reg_in_class_p): New function.
30205 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30206 of #ifdef. Add code to remove cycling.
30207 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30208 non-null disp. Reload inner instead of disp when base and index
30209 are null. Try to put lo_sum into register.
30210 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30211 (check_and_process_move): Move code for move cost check to
30212 simple_move_p. Remove equiv_substitution.
30213 (simple_move_p): New function.
30214 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
30215 curr_insn_set. Call check_and_process_move only for single set
30216 insns. Use the new function. Move call of check_and_process_move
30217 after operand equiv substitution and address process.
30219 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30222 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
30223 with nonlocal goto receivers or returns twice calls, ignore
30224 unininitialized values from abnormal edges to nl goto receiver
30225 or returns twice call.
30227 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30229 PR tree-optimization/57051
30230 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
30231 and VEC_RSHIFT_EXPR if shift count is a multiple of element
30234 2013-04-26 Richard Biener <rguenther@suse.de>
30236 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
30237 (expand_omp_taskreg): Likewise. Mark loops for fixup.
30238 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
30239 (fixup_loop_arrays_after_move): New function.
30240 (move_sese_region_to_fn): Properly outline the loop tree parts
30241 of the SESE region.
30243 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
30245 * config/i386/i386.md (type, unit): Fix long lines.
30247 2013-04-26 Richard Biener <rguenther@suse.de>
30249 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
30250 (lto-streamer-out.o): Likewise.
30251 * cfgloop.c (init_loops_structure): Export, add struct function
30252 argument and adjust.
30253 (flow_loops_find): Adjust.
30254 * cfgloop.h (enum loop_estimation): Add EST_LAST.
30255 (init_loops_structure): Declare.
30256 * lto-streamer-in.c: Include cfgloop.h.
30257 (input_cfg): Input the loop tree.
30258 * lto-streamer-out.c: Include cfgloop.h.
30259 (output_cfg): Output the loop tree.
30260 (output_struct_function_base): Do not drop PROP_loops.
30262 2013-03-26 Richard Biener <rguenther@suse.de>
30264 * tree-cfg.c (execute_build_cfg): Build the loop tree.
30265 (pass_build_cfg): Provide PROP_loops.
30266 (move_sese_region_to_fn): Remove loops that are outlined into fn
30268 * tree-inline.c: Include cfgloop.h.
30269 (initialize_cfun): Do not drop PROP_loops.
30270 (copy_loops): New function.
30271 (copy_cfg_body): Copy loop structure.
30272 (tree_function_versioning): Initialize destination loop tree.
30273 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
30274 (pass_parallelize_loops): Do IL verification.
30275 * loop-init.c (loop_optimizer_init): Fixup loops if required.
30276 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
30277 the CFG make sure we fixup loops as well.
30278 * tree-ssa-tail-merge.c: Include cfgloop.h.
30279 (replace_block_by): When merging loop latches mark loops for fixup.
30280 * lto-streamer-out.c (output_struct_function_base): Drop
30281 PROP_loops for now.
30282 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
30283 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
30284 * ipa-split.c: Include cfgloop.h.
30285 (split_function): Add the new return block to the loop tree root.
30286 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
30287 whether we have removed the forwarder block.
30288 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
30289 * cfgloop.h (place_new_loop): Declare.
30290 * cfgloopmanip.c (place_new_loop): Export.
30291 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
30292 (tree-switch-conversion.o): Likewise.
30293 (tree-complex.o): Likewise.
30294 (tree-inline.o): Likewise.
30295 (tree-ssa-tailmerge.o): Likewise.
30296 (ipa-split.o): Likewise.
30297 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
30298 (tree-ssa-copy.o): Likewise.
30299 * tree-switch-conversion.c: Include cfgloop.h
30300 (process_switch): If we emit a bit-test cascade, schedule loops
30302 * tree-complex.c: Include cfgloop.h.
30303 (expand_complex_div_wide): Properly add new basic-blocks to loops.
30304 * asan.c: Include cfgloop.h.
30305 (create_cond_insert_point): Properly add new basic-blocks to
30306 loops, schedule loop fixup.
30307 * cfgloop.c (verify_loop_structure): Check that looks are not
30309 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
30311 (expand_omp_for_generic): Likewise.
30312 (expand_omp_sections): Likewise.
30313 (expand_omp_atomic_pipeline): Schedule loops for fixup.
30314 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
30315 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
30316 is initialized, not when loops are present.
30317 * tree-parloops.c (parallelize_loops): Remove checking here.
30318 * passes.c (init_optimization_passes): Schedule a copy-propagation
30319 pass before complete unrolling of inner loops.
30321 2013-04-26 Jakub Jelinek <jakub@redhat.com>
30323 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
30324 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
30325 (colorize_init): Add argument to _WIN32 version.
30326 * toplev.c: Include diagnostic-color.h.
30327 (process_options): Default to -fdiagnostics-color=auto if
30328 GCC_COLORS env var is in the environment.
30329 * common.opt (fdiagnostics-color=): Add Var and Init.
30330 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
30331 env var is in the environment, the default is auto rather than never.
30333 * diagnostic.h (file_name_as_prefix): Add context argument.
30334 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
30335 the string as locus.
30336 * langhooks.c (lhd_print_error_function): Adjust caller.
30338 2013-04-25 Lawrence Crowl <crowl@google.com>
30340 * var-tracking.c (shared_hash_def::htab):
30341 Change type to hash_table. Update dependent calls and types.
30343 2013-04-25 Lawrence Crowl <crowl@google.com>
30345 * Makefile.in: Update as needed below.
30347 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
30348 Move declaration to after the type's method definitons.
30350 * attribs.c (htab_t scoped_attributes::attribute_hash):
30351 Change type to hash_table. Update dependent calls and types.
30353 * bitmap.c (htab_t bitmap_desc_hash):
30354 Change type to hash_table. Update dependent calls and types.
30356 * cselib.c (htab_t cselib_hash_table):
30357 Change type to hash_table. Update dependent calls and types.
30359 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
30360 (hash_string_slot_node): Move implementation into lto-streamer.h
30361 struct string_slot_hasher.
30362 (eq_string_slot_node): Likewise.
30364 * data-streamer-out.c: Update output_block::string_hash_table
30365 dependent calls and types.
30367 * dwarf2cfi.c (htab_t trace_index):
30368 Change type to hash_table. Update dependent calls and types.
30370 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
30371 Change type to hash_table. Update dependent calls and types.
30372 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
30373 (htab_t optimize_external_refs::map): Likewise.
30374 (htab_t output_comp_unit::extern_map): Likewise.
30375 (htab_t output_comdat_type_unit::extern_map): Likewise.
30376 (htab_t output_macinfo::macinfo_htab): Likewise.
30377 (htab_t optimize_location_lists::htab): Likewise.
30378 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
30380 * except.c (htab_t ehspec_hash_type):
30381 Change type to hash_table. Update dependent calls and types.
30382 (assign_filter_values::ttypes): Likewise.
30383 (assign_filter_values::ehspec): Likewise.
30384 (sjlj_assign_call_site_values::ar_hash): Likewise.
30385 (convert_to_eh_region_ranges::ar_hash): Likewise.
30387 * gcse.c (htab_t pre_ldst_table):
30388 Change type to hash_table. Update dependent calls and types.
30390 * ggc-common.c (htab_t saving_htab):
30391 Change type to hash_table. Update dependent calls and types.
30392 (htab_t loc_hash): Likewise.
30393 (htab_t ptr_hash): Likewise.
30394 (call_count): Rename ggc_call_count.
30395 (call_alloc): Rename ggc_call_alloc.
30396 (loc_descriptor): Rename make_loc_descriptor.
30397 (add_statistics): Rename ggc_add_statistics.
30399 * ggc-common.c (saving_htab):
30400 Change type to hash_table. Update dependent calls and types.
30402 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
30403 (push_gimplify_context): Likewise.
30404 (pop_gimplify_context): Likewise.
30405 (struct gimple_temp_hash_elt): Added.
30406 (struct gimplify_hasher): Likewise.
30407 (struct gimplify_ctx.temp_htab):
30408 Change type to hash_table. Update dependent calls and types.
30410 * gimple-fold.c: Include gimplify-ctx.h.
30412 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
30413 Change type to hash_table. Update dependent calls and types.
30414 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
30415 avoid potential global name collision.
30417 * gimplify.c: Include gimplify-ctx.h.
30418 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
30419 (htab_t gimplify_ctx::temp_htab):
30420 Update dependent calls and types for new type hash_table.
30421 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
30422 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
30424 * gimplify-ctx.h: New.
30425 (struct gimple_temp_hash_elt): Move from gimplify.c.
30426 (class gimplify_hasher): New.
30427 (struct gimplify_ctx): Move from gimple.h.
30428 (htab_t gimplify_ctx::temp_htab):
30429 Change type to hash_table. Update dependent calls and types.
30431 * graphite-clast-to-gimple.c: Include graphite-htab.h.
30432 (htab_t ivs_params::newivs_index):
30433 Change type to hash_table. Update dependent calls and types.
30434 (htab_t ivs_params::params_index): Likewise.
30435 (htab_t print_generated_program::params_index): Likewise.
30436 (htab_t gloog::newivs_index): Likewise.
30437 (htab_t gloog::params_index): Likewise.
30439 * graphite.c: Include graphite-htab.h.
30440 4htab_t graphite_transform_loops::bb_pbb_mapping):
30441 Change type to hash_table. Update dependent calls and types.
30443 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
30444 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
30445 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
30447 * graphite-dependences.c: Include graphite-htab.h.
30448 (loop_is_parallel_p): Change hash table type of parameter.
30450 * graphite-htab.h: New.
30451 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
30452 (extern find_pbb_via_hash): Move from graphite-poly.h.
30453 (extern loop_is_parallel_p): Move from graphite-poly.h.
30454 (extern get_loop_body_pbbs): Move from graphite-poly.h.
30456 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
30457 (extern loop_is_parallel_p): Move to graphite-htab.h.
30458 (extern get_loop_body_pbbs): Move to graphite-htab.h.
30460 * haifa-sched.c (htab_t delay_htab):
30461 Change type to hash_table. Update dependent calls and types.
30462 (htab_t delay_htab_i2): Likewise.
30464 * ira-color.c (htab_t allocno_hard_regs_htab):
30465 Change type to hash_table. Update dependent calls and types.
30467 * ira-costs.c (htab_t cost_classes_htab):
30468 Change type to hash_table. Update dependent calls and types.
30470 * loop-invariant.c (htab_t merge_identical_invariants::eq):
30471 Change type to hash_table. Update dependent calls and types.
30473 * loop-iv.c (htab_t bivs):
30474 Change type to hash_table. Update dependent calls and types.
30476 * loop-unroll.c (htab_t opt_info::insns_to_split):
30477 Change type to hash_table. Update dependent calls and types.
30478 (htab_t opt_info::insns_with_var_to_expand): Likewise.
30480 * lto-streamer.h (struct string_slot): Move from data-streamer.h
30481 (struct string_slot_hasher): New.
30482 (htab_t output_block::string_hash_table):
30483 Change type to hash_table. Update dependent calls and types.
30485 * lto-streamer-in.c (freeing_string_slot_hasher): New.
30486 (htab_t file_name_hash_table):
30487 Change type to hash_table. Update dependent calls and types.
30489 * lto-streamer-out.c: Update output_block::string_hash_table dependent
30492 * lto-streamer.c (htab_t tree_htab):
30493 Change type to hash_table. Update dependent calls and types.
30495 * omp-low.c: Include gimplify-ctx.h.
30497 * passes.c (htab_t name_to_pass_map):
30498 Change type to hash_table. Update dependent calls and types.
30499 (pass_traverse): Rename to passes_pass_traverse.
30501 * plugin.c (htab_t event_tab):
30502 Change type to hash_table. Update dependent calls and types.
30504 * postreload-gcse.c (htab_t expr_table):
30505 Change type to hash_table. Update dependent calls and types.
30506 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
30508 * sese.c (debug_rename_map_1): Make extern.
30509 (htab_t copy_bb_and_scalar_dependences::rename_map):
30510 Change type to hash_table. Update dependent calls and types.
30512 * sese.h (extern debug_rename_map): Move to .c file.
30514 * store-motion.c (htab_t store_motion_mems_table):
30515 Change type to hash_table. Update dependent calls and types.
30517 * trans-mem.c (htab_t tm_new_mem_hash):
30518 Change type to hash_table. Update dependent calls and types.
30520 * tree-browser.c (htab_t TB_up_ht):
30521 Change type to hash_table. Update dependent calls and types.
30523 * tree-cfg.c (htab_t discriminator_per_locus):
30524 Change type to hash_table. Update dependent calls and types.
30526 * tree-complex.c: Include tree-hasher.h
30527 (htab_t complex_variable_components):
30528 Change type to hash_table. Update dependent calls and types.
30530 * tree-eh.c (htab_t finally_tree):
30531 Change type to hash_table. Update dependent calls and types.
30533 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
30534 struct int_tree_hasher.
30535 (extern int_tree_map_eq): Likewise.
30536 (uid_decl_map_hash): Removed.
30537 (extern decl_tree_map_eq): Likewise.
30539 * tree-hasher.h: New.
30540 (struct int_tree_hasher): New.
30541 (typedef int_tree_htab_type): New.
30543 * tree-inline.c: Include gimplify-ctx.h.
30545 * tree-mudflap.c: Include gimplify-ctx.h.
30547 * tree-parloops.c: Include tree-hasher.h.
30548 (htab_t eliminate_local_variables_stmt::decl_address):
30549 Change type to hash_table. Update dependent calls and types.
30550 (htab_t separate_decls_in_region::decl_copies): Likewise.
30552 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
30553 Change type to hash_table. Update dependent calls and types.
30555 * tree-sra.c (candidates):
30556 Change type to hash_table. Update dependent calls and types.
30558 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
30560 (int_tree_map_hash): Likewise.
30562 * tree-ssa-dom.c (htab_t avail_exprs):
30563 Change type to hash_table. Update dependent calls and types.
30565 * tree-ssa-live.c (var_map_base_init::tree_to_index):
30566 Change type to hash_table. Update dependent calls and types.
30568 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
30569 Change type to hash_table. Update dependent calls and types.
30571 * tree-ssa-phiopt.c (seen_ssa_names):
30572 Change type to hash_table. Update dependent calls and types.
30574 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
30575 Change type to hash_table. Update dependent calls and types.
30577 * tree-ssa-uncprop.c (equiv):
30578 Change type to hash_table. Update dependent calls and types.
30580 2013-04-25 Jakub Jelinek <jakub@redhat.com>
30582 PR rtl-optimization/57003
30583 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
30584 call note_stores with kill_clobbered_value callback again after
30585 killing regs_invalidated_by_call.
30587 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30589 * config/aarch64/aarch64-simd.md
30590 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
30591 (aarch64_simd_bsl<mode>): Likewise.
30592 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
30594 2013-04-25 Marek Polacek <polacek@redhat.com>
30596 PR tree-optimization/57066
30597 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
30599 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30601 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
30603 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30605 * config/aarch64/aarch64-builtins.c
30606 (aarch64_fold_builtin): New.
30607 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
30608 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
30609 * config/aarch64/aarch64-simd-builtins.def (abs): New.
30610 * config/aarch64/arm_neon.h
30611 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
30613 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30614 Tejas Belagod <tejas.belagod@arm.com>
30616 * config/aarch64/aarch64-builtins.c
30617 (aarch64_gimple_fold_builtin): New.
30618 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
30619 * config/aarch64/aarch64-simd-builtins.def (addv): New.
30620 * config/aarch64/aarch64-simd.md (addpv4sf): New.
30621 (addvv4sf): Update.
30622 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
30624 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30626 * config/aarch64/aarch64.md
30627 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
30629 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30631 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
30632 (*ngcsi_uxtw): New pattern.
30634 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30635 Julian Brown <julian@codesourcery.com>
30637 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
30638 (TB_DREG): Add T_V4HF.
30639 (v4hf_UP): New macro.
30640 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30641 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30642 Handle initialisation of V4HF. Adjust initialisation of reinterpret
30644 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
30645 (arm_vector_mode_supported_p): Handle V4HF.
30646 (arm_mangle_map): Handle V4HFmode.
30647 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
30648 * config/arm/arm_neon_builtins.def: Add entries for
30649 vcvtv4hfv4sf, vcvtv4sfv4hf.
30650 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
30651 (neon_vcvtv4hfv4sf): Likewise.
30652 * config/arm/neon-gen.ml: Handle half-precision floating point
30654 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
30655 * config/arm/arm_neon.h: Regenerate.
30656 * config/arm/neon.ml (type elts): Add F16.
30657 (type vectype): Add T_float16x4, T_floatHF.
30658 (type vecmode): Add V4HF.
30659 (type features): Add Requires_FP_bit feature.
30660 (elt_width): Handle F16.
30661 (elt_class): Likewise.
30662 (elt_of_class_width): Likewise.
30663 (mode_of_elt): Refactor.
30664 (type_for_elt): Handle F16, fix error messages.
30665 (vectype_size): Handle T_float16x4.
30666 (vcvt_sh): New function.
30667 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
30668 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
30669 (string_of_mode): Handle V4HF.
30670 * doc/arm-neon-intrinsics.texi: Regenerate.
30672 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
30674 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
30675 format specifier in 'X' case.
30677 2013-04-25 Alan Modra <amodra@gmail.com>
30680 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
30681 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
30682 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
30683 Repeat for many other rotate/shift and mask patterns using subregs.
30684 Name lshiftrt insns.
30685 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
30686 on WORDS_BIG_ENDIAN.
30688 2013-04-25 Alan Modra <amodra@gmail.com>
30690 * config.gcc: Support little-endian powerpc-linux targets.
30691 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
30692 (LINK_OS_LINUX_SPEC): Define.
30693 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
30694 Preserve MASK_LITTLE_ENDIAN.
30695 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
30696 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
30697 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
30698 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
30699 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
30700 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
30701 Correct fp word order for little-endian. Don't shift toc entries
30702 smaller than a word for little-endian.
30703 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
30704 (bswapdi2 splits): Correct low-part subreg for little-endian.
30705 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
30706 low/high where such is correct only for be.
30707 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
30708 little-endian for -mcall-aixdesc.
30710 2013-04-25 Alan Modra <amodra@gmail.com>
30712 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
30713 replace_equiv_address_nv.
30715 2013-04-25 Alan Modra <amodra@gmail.com>
30717 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
30719 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30722 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30723 * rtl.h (struct rtx_def): ...
30725 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30727 PR rtl-optimizations/57046
30728 * lra-constraints (split_reg): Set up lra_risky_transformations_p
30729 for multi-reg splits.
30731 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
30733 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
30735 2013-04-24 Sterling Augustine <saugustine@google.com>
30737 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
30738 (comp_dir_string, debug_str_dwo_section): New.
30739 (DEBUG_STR_DWO_SECTION): Rename to ...
30740 (DEBUG_DWO_STR_SECTION): ... this.
30741 (DEBUG_NORM_STR_SECTION): Delete.
30742 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
30743 (DEBUG_STR_DWO_SECTION_FLAGS): New.
30744 (find_AT_string): Move most logic to ...
30745 (find_AT_string_in_table): ... here. New.
30746 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
30747 add_skeleton_AT_string. Delete logic.
30748 (output_skeleton_debug_sections): Remove call to
30749 add_top_level_skeleton_die_attrs.
30750 (add_comp_dir_attribute): Move logic to comp_dir_string.
30751 (dwarf2out_init): Initialize debug_str_dwo_section.
30752 (output_indirect_string): Call find_string_form.
30753 (output_indirect_strings): Rewrite.
30754 (prune_unused_types): Empty skeleton_debug_str_hash.
30755 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
30756 (dwarf2out_finish): Call output_indirect_strings.
30758 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
30760 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
30762 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
30764 * rtl.h (struct rtx_def): Add comment for field jump.
30765 (LRA_SUBREG_P): New macro.
30766 * recog.c (register_operand): Check LRA_SUBREG_P.
30767 * lra.c (lra): Add note at the end of RTL code. Align non-empty
30769 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
30770 (lra_final_code_change): Skip subreg change for operators.
30771 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
30772 if there are no operand changes.
30773 * lra-constraints.c (curr_insn_set): New.
30774 (match_reload): Set LRA_SUBREG_P.
30775 (emit_spill_move): Ditto.
30776 (check_and_process_move): Use curr_insn_set. Process only single
30777 set insns. Don't initialize sec_mem_p and change_p.
30778 (simplify_operand_subreg): Use LRA_SUBREG_P.
30779 (reg_in_class_p): New function.
30780 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
30781 of #ifdef. Add code to remove cycling.
30782 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
30783 non-null disp. Reload inner instead of disp when base and index
30784 are null. Try to put lo_sum into register.
30785 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
30786 (check_and_process_move): Move code for move cost check to
30787 simple_move_p. Remove equiv_substitution.
30788 (simple_move_p): New function.
30789 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
30790 curr_insn_set. Call check_and_process_move only for single set
30791 insns. Use the new function. Move call of check_and_process_move
30792 after operand equiv substitution and address process.
30794 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
30796 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
30797 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
30798 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
30800 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
30802 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
30804 2013-04-24 Marek Polacek <polacek@redhat.com>
30806 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
30807 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
30808 (select_loops_exit_conditions): Likewise.
30809 (number_of_iterations_for_all_loops): Likewise.
30810 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
30811 (scev_analysis): Likewise.
30813 2013-04-02 Catherine Moore <clm@codesourcery.com>
30814 Chao-ying Fu <fu@mips.com>
30816 * config/mips/micromips.md (jraddiusp): New pattern.
30817 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
30818 instruction if possible.
30820 2013-04-24 Alan Modra <amodra@gmail.com>
30822 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
30824 2013-04-24 Julian Brown <julian@codesourcery.com>
30825 Chung-Lin Tang <cltang@codesourcery.com>
30827 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
30828 dependency behavior in enumeration type DIE generation. Add TODO note
30829 to comments about future DW_FORM_sdata/udata re-work of related code.
30831 2013-04-23 Lawrence Crowl <crowl@google.com>
30833 * Makefile.in: Update as needed below.
30835 * hash-table.h (class hash_table):
30836 Correct many methods with parameter types compare_type to the correct
30837 value_type. (Correct code was unlikely to notice the change.)
30838 (hash_table::elements_with_deleted) New.
30839 (class hashtable::iterator): New.
30840 (hashtable::begin()): New.
30841 (hashtable::end()): New.
30842 (FOR_EACH_HASH_TABLE_ELEMENT): New.
30844 * statistics.c (statistics_hashes):
30845 Change type to hash_table. Update dependent calls and types.
30847 * tree-into-ssa.c (var_infos):
30848 Change type to hash_table. Update dependent calls and types.
30850 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
30851 Change type to hash_table. Update dependent calls and types.
30853 * tree-ssa-loop-im.c (struct mem_ref.refs):
30854 Change type to hash_table. Update dependent calls and types.
30856 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
30857 Change type to hash_table. Update dependent calls and types.
30859 * tree-ssa-sccvn.c (vn_tables_s::nary):
30860 Change type to hash_table. Update dependent calls and types.
30861 (vn_tables_s::phis): Likewise.
30862 (vn_tables_s::references): Likewise.
30864 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
30865 (vn_reference_eq): Update parameter and return types.
30867 * tree-ssa-structalias.c (pointer_equiv_class_table):
30868 Change type to hash_table. Update dependent calls and types.
30869 (location_equiv_class_table): Likewise.
30871 * tree-vect-data-refs.c: Consequential changes for making
30872 peeling a hash_table.
30874 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
30875 (destroy_loop_vec_info): Dependent hash_table update.
30877 * tree-vectorizer.h (peeling_htab):
30878 Change type to hash_table. Update dependent calls and types.
30880 2013-04-23 Shiva Chen <shiva0217@gmail.com>
30882 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
30883 to check the register content is equal or not.
30884 * lra-constraints.c (match_reload): Use lra_assign_reg_val
30885 to assign register content record.
30886 * lra-eliminations.c (update_reg_eliminate): Use
30887 lra_update_reg_val_offset to update register content offset.
30888 * lra-int.h (struct lra_reg): Add offset member.
30889 (lra_reg_val_equal_p): New static inline function.
30890 (lra_update_reg_val_offset): New static inline function.
30891 (lra_assign_reg_val): New static inline function.
30892 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
30893 to assign register content record.
30894 (initialize_lra_reg_info_element): Initial offset to zero.
30896 2013-04-23 Catherine Moore <clm@codesourcery.com>
30898 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
30899 operands. Record compression.
30901 2013-04-23 Xinliang David Li <davidxl@google.com>
30903 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
30905 2013-04-23 Richard Biener <rguenther@suse.de>
30907 PR middle-end/57036
30908 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
30909 parameter, only add abnormal goto edges from the copied body
30910 if the call could perform abnormal gotos.
30911 (copy_cfg_body): Adjust.
30913 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
30915 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
30917 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
30919 * coretypes.h (gimple_stmt_iterator): Add struct to make
30922 2013-04-23 Richard Biener <rguenther@suse.de>
30924 PR tree-optimization/57026
30925 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
30926 from SSA names occuring in abnormal PHI nodes.
30928 2013-04-22 Andi Kleen <ak@linux.intel.com>
30930 * lto/lto.c (print_lto_report_1): Fix LTO report names.
30932 2013-04-22 Andi Kleen <ak@linux.intel.com>
30934 * lto/lto.c (print_lto_report_1): Declare early.
30935 (read_cgraph_and_symbols): Call print_lto_report_1 early.
30937 2013-04-22 Andi Kleen <ak@linux.intel.com>
30939 * common.opt (-flto-report-wpa): Add.
30940 * doc/invoke.texi (-flto-report-wpa): Add.
30941 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
30944 2013-04-22 Xinliang David Li <davidxl@google.com>
30946 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
30947 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
30948 * Makefile.in: New dependency
30950 David Daney <ddaney.cavm@gmail.com>
30952 * configure.ac (gcc_cv_as_micromips_support): Use the
30953 --fatal-warnings option.
30954 * configure: Regenerate.
30956 2013-04-22 Marek Polacek <polacek@redhat.com>
30959 * tsan.c (instrument_expr): Don't instrument expression
30960 in case its size is zero.
30962 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
30966 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30968 * config/alpha/alpha.c (TARGET_LRA_P): New define.
30970 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
30972 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
30973 (gimple_stmt_iterator): New typedef.
30974 * gimple.h (gimple_stmt_iterator): Rename to...
30975 (gimple_stmt_iterator_d): ... This.
30976 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
30977 trees be valid for GIMPLE and GENERIC.
30978 (TARGET_GIMPLE_FOLD_BUILTIN): New.
30979 * gimple-fold.c (gimple_fold_call): Call target hook
30980 gimple_fold_builtin.
30981 * hooks.c (hook_bool_gsiptr_false): New.
30982 * hooks.h (hook_bool_gsiptr_false): New.
30983 * target.def (fold_stmt): New.
30984 * doc/tm.texi: Regenerate.
30986 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
30989 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
30990 a set sp if no stack realignment.
30992 2013-04-22 Nick Clifton <nickc@redhat.com>
30994 * config.gcc (tilegx-linux): Extend extra_objs rather than
30996 (tilepro-linux): Likewise.
30998 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31000 * config/aarch64/aarch64-builtins.c
31002 (CF0, CF1, CF2, CF3, CF4, CF10): New.
31003 (VAR<1-12>): Add MAP parameter.
31004 (BUILTIN_*): Likewise.
31005 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
31006 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
31007 (aarch64_ushl_n<mode>): Likewise.
31008 (aarch64_sshr_n<mode>): Likewise.
31009 (aarch64_ushr_n<mode>): Likewise.
31010 (aarch64_<maxmin><mode>): Likewise.
31011 (aarch64_sqrt<mode>): Likewise.
31012 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
31013 (vshr<q>_n_*): Likewise.
31015 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
31017 * config/aarch64/aarch64-builtins.c
31018 (aarch64_simd_builtin_type_mode): Handle SF types.
31020 (BUILTIN_GPF): Define.
31021 (aarch64_init_simd_builtins): Handle SF types.
31022 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
31023 (frecps): Likewise.
31024 (frecpx): Likewise.
31025 * config/aarch64/aarch64-simd.md
31026 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
31027 (aarch64_frecpe<mode>): New.
31028 (aarch64_frecps<mode>): Likewise.
31029 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
31030 (v8type): Add frecp<esx>.
31031 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
31032 (aarch64_frecps<mode>): Likewise.
31033 * config/aarch64/iterators.md (FRECP): New.
31034 (frecp_suffix): Likewise.
31035 * config/aarch64/arm_neon.h
31036 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
31038 2013-04-22 Christian Bruel <christian.bruel@st.com>
31041 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
31042 (REG_CLASS_NAMES): Idem.
31043 (REG_CLASS_CONTENTS): Idem.
31044 (REGCLASS_HAS_FP_REG): Idem.
31045 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
31046 (sh_conditional_register_usage): Idem.
31048 2013-04-21 Jeff Law <law@redhat.com>
31050 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
31051 (ssa_forward_propagate_and_combine): Use it.
31053 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31055 * lra.c: Update the flow chart diagram.
31057 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
31059 PR rtl-optimization/56847
31060 * lra-constraints.c (process_alt_operands): Discourage alternative
31061 with non-matche doffsettable memory constraint fro memory with
31064 2013-04-19 Richard Biener <rguenther@suse.de>
31066 PR tree-optimization/56982
31067 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
31069 * gimplify.c (gimplify_call_expr): Notice special calls.
31070 (gimplify_modify_expr): Likewise.
31071 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
31072 abnormal control flow receivers.
31073 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
31074 in the same way as cfun->has_nonlocal_labels.
31075 (gimple_purge_dead_abnormal_call_edges): Likewise.
31076 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
31077 receivers start a basic-block.
31079 2013-04-19 Richard Biener <rguenther@suse.de>
31081 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
31083 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
31084 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
31085 (SLP_TREE_LOAD_PERMUTATION): Add.
31086 (vect_transform_slp_perm_load): Adjust prototype.
31087 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
31088 (vect_free_slp_instance): Likewise.
31089 (vect_create_new_slp_node): Likewise.
31090 (vect_supported_slp_permutation_p): Remove.
31091 (vect_slp_rearrange_stmts): Adjust.
31092 (vect_supported_load_permutation_p): Likewise. Inline
31093 vect_supported_slp_permutation_p here.
31094 (vect_analyze_slp_instance): Compute load permutations per
31095 slp node instead of per instance.
31096 (vect_get_slp_defs): Adjust.
31097 (vect_transform_slp_perm_load): Likewise.
31098 (vect_schedule_slp_instance): Remove redundant code.
31099 (vect_schedule_slp): Remove hack for PR56270, add it ...
31100 * tree-vect-stmts.c (vectorizable_load): ... here, do not
31101 CSE loads for SLP. Adjust.
31103 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31105 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
31106 spelling in two comments.
31108 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
31111 * config/arm/arm.c (load_multiple_sequence): Require SP
31112 as base register for loads if SP is in the register list.
31114 2013-04-19 Martin Jambor <mjambor@suse.cz>
31116 PR tree-optimization/56718
31117 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
31118 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
31119 and made public. Adjusted all callers.
31120 (ipa_intraprocedural_devirtualization): New function.
31121 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
31122 (ipa_intraprocedural_devirtualization): Likewise.
31123 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
31125 2013-04-19 Richard Biener <rguenther@suse.de>
31127 PR tree-optimization/57000
31128 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
31130 2013-04-19 Terry Guo <terry.guo@arm.com>
31132 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
31134 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
31135 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
31136 (cortex_m4_fmacs): Use new reservations.
31137 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
31139 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
31141 PR rtl-optimization/56999
31142 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
31144 (lra_coalesce): Remove split_origin_bitmap and related code.
31145 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
31146 ranges if necessary.
31148 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
31150 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
31152 (ix86_expand_call): Remove clobbered_registers array and use
31153 x86_64_ms_sysv_extra_clobbered_registers instead.
31154 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
31156 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
31158 * config/i386/i386.md (*call_rex64_ms_sysv): Use
31159 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
31160 (*call_value_rex64_ms_sysv): Ditto.
31162 2013-04-18 Cary Coutant <ccoutant@google.com>
31164 * dwarf2out.c (output_pubnames): Check die_perennial_p of
31165 parent instead of die_mark.
31167 2013-04-18 Diego Novillo <dnovillo@google.com>
31169 * gimple.c (create_gimple_tmp): New.
31170 (get_expr_type): New.
31171 (build_assign): New.
31172 (build_type_cast): New.
31173 * gimple.h (enum ssa_mode): Define.
31174 (gimple_seq_set_location): New.
31175 * asan.c (build_check_stmt): Change some gimple_build_* calls
31176 to use build_assign and build_type_cast.
31178 2013-04-18 Richard Biener <rguenther@suse.de>
31180 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31181 handle negative step. Remove redundant checks.
31182 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
31183 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
31184 for negative step and grouped loads fail to vectorize.
31186 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31188 * emit-rtl.c (reset_insn_used_flags): New function.
31189 (reset_all_used_flags): Use it.
31190 (verify_insn_sharing): New function.
31191 (verify_rtl_sharing): Fix verification for SEQUENCEs.
31193 2013-04-18 Jakub Jelinek <jakub@redhat.com>
31195 PR tree-optimization/56984
31196 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
31197 and (x >> M) >= N don't register any assertion if N << M is the
31200 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
31202 * lower-subreg.c (resolve_simple_move): If called self-recursive,
31203 do not delete_insn insns that have not yet been emitted, only
31204 unlink them with remove_insn.
31205 * df-scan.c (df_insn_delete): Revert r197492.
31207 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
31209 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
31210 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
31212 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31214 * config/arm/arm.md (movsicc_insn): Convert define_insn into
31215 define_insn_and_split.
31216 (and_scc,ior_scc,negscc): Likewise.
31217 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
31219 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
31221 * config/arm/arm.c (use_return_insn): Return 0 for targets that
31222 can benefit from using a sequence of LDRD instructions in epilogue
31223 instead of a single LDM instruction.
31225 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
31228 * doc/extend.texi: Fix typo.
31230 2013-04-17 Richard Biener <rguenther@suse.de>
31232 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
31233 (vect_build_slp_tree): ... here.
31234 (vect_build_slp_tree_1): Compute which stmts of the SLP group
31235 match. Remove special-casing of mismatched complex loads.
31236 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
31237 re-try the match with swapped commutative operands.
31238 (vect_supported_load_permutation_p): Remove special-casing of
31239 mismatched complex loads.
31240 (vect_analyze_slp_instance): Adjust.
31242 2013-04-17 Richard Biener <rguenther@suse.de>
31244 PR rtl-optimization/56921
31245 * cfgloop.h (struct loop): Add simple_loop_desc member.
31246 (struct niter_desc): Mark with GTY(()).
31247 (simple_loop_desc): Do not use aux field but simple_loop_desc.
31248 * loop-iv.c (get_simple_loop_desc): Likewise.
31249 (free_simple_loop_desc): Likewise.
31252 2013-04-16 Richard Biener <rguenther@suse.de>
31254 PR rtl-optimization/56921
31255 * loop-init.c (pass_rtl_move_loop_invariants): Add
31256 TODO_do_not_ggc_collect to todo_flags_finish.
31257 (pass_rtl_unswitch): Same.
31258 (pass_rtl_unroll_and_peel_loops): Same.
31259 (pass_rtl_doloop): Same.
31261 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
31263 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
31264 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
31265 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
31267 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
31268 * tree-streamer.c (record_common_node): Adjust reference in comment.
31270 2013-04-17 Terry Guo <terry.guo@arm.com>
31272 * config/arm/cortex-m4.md: Add a new bypass.
31274 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31276 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
31278 (*subs_<optab><mode>_multp2): New pattern.
31279 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31280 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
31282 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31284 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
31285 (*subs_mul_imm_<mode>): New pattern.
31287 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
31290 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
31291 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
31292 (vsx_movti_32bit): Change j->wa to O->wa.
31294 2013-04-16 Richard Biener <rguenther@suse.de>
31296 PR rtl-optimization/56921
31297 * loop-init.c (pass_rtl_move_loop_invariants): Add
31298 TODO_do_not_ggc_collect to todo_flags_finish.
31299 (pass_rtl_unswitch): Same.
31300 (pass_rtl_unroll_and_peel_loops): Same.
31301 (pass_rtl_doloop): Same.
31303 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
31305 * config/arm/arm.c (emit_multi_reg_push): New declaration
31306 for an existing function.
31307 (arm_emit_strd_push): New function.
31308 (arm_expand_prologue): Used here.
31309 (arm_emit_ldrd_pop): New function.
31310 (arm_expand_epilogue): Used here.
31311 (arm_get_frame_offsets): Update condition.
31312 (arm_emit_multi_reg_pop): Add a special case for load of a single
31313 register with writeback.
31315 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
31317 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
31320 2013-04-16 Richard Biener <rguenther@suse.de>
31322 PR tree-optimization/56756
31323 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
31324 (first_mem_ref_loc): New.
31325 (execute_sm): Place the load temporarily before a previous
31326 access instead of in the latch edge to ensure its SSA dependencies
31327 are defined at points dominating the load.
31329 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
31331 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
31332 correct fix by moving header and footer insn to the footer of
31333 the merged basic block. Clear BB_END of the merged-away block.
31335 PR middle-end/43631
31336 * emit-rtl.c (make_note_raw): New function.
31337 (link_insn_into_chain): New static inline function.
31338 (add_insn): Use it.
31339 (add_insn_before, add_insn_after): Factor insn chain linking code...
31340 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
31341 using link_insn_into_chain.
31342 (note_outside_basic_block_p): New helper function for emit_note_after
31343 and emit_note_before.
31344 (emit_note_after): Use nobb variant of add_insn_after if the note
31345 should not be contained in a basic block.
31346 (emit_note_before): Use nobb variant of add_insn_before if the note
31347 should not be contained in a basic block.
31348 (emit_note_copy): Use make_note_raw.
31349 (emit_note): Likewise.
31350 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
31351 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
31352 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
31353 the moved barrier the tail of the basic block it follows.
31354 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
31356 2013-04-15 Jakub Jelinek <jakub@redhat.com>
31358 PR tree-optimization/56962
31359 * gimple-ssa-strength-reduction.c (record_increment): Only set
31360 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
31361 either rhs1 or rhs2 is equal to c->base_expr.
31363 2013-04-15 Richard Biener <rguenther@suse.de>
31365 PR tree-optimization/56933
31366 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
31368 (GROUP_READ_WRITE_DEPENDENCE): Remove.
31369 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
31370 * tree-vect-data-refs.c (vect_analyze_group_access): Move
31371 dependence check ...
31372 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
31374 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
31375 GROUP_READ_WRITE_DEPENDENCE.
31377 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31379 * emit-rtl.c (reset_all_used_flags): New function.
31380 (verify_rtl_sharing): Call reset_all_used_flags before and after
31381 performing the checks.
31383 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31385 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
31386 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
31387 * config/arm/constraints.md (De): New constraint.
31388 * config/arm/neon.md (anddi3_neon): Delete.
31389 (neon_vand<mode>): Expand to standard anddi3 pattern.
31390 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
31391 Move earlier in the file.
31392 (neon_inv_logic_op2): Likewise.
31393 (arm_anddi_operand_neon): New predicate.
31395 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31397 * configure.ac (gcc_cv_ld_as_needed): Set
31398 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
31399 Use -z ignore, -z record on *-*-solaris2*.
31400 (HAVE_LD_AS_NEEDED): Update comment.
31401 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
31402 * configure: Regenerate.
31403 * config.in: Regenerate.
31404 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
31405 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
31406 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
31407 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
31408 equivalents. Fix markup.
31409 * doc/tm.texi: Regenerate.
31411 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
31413 * config/i386/i386.opt: New option mstack-protector-guard=.
31414 * config/i386/i386-opts.h: Add enum stack_protector_guard.
31415 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
31416 TARGET_SSP_TLS_GUARD.
31417 * config/i386/i386.c (ix86_option_override_internal): Set
31418 ix86_stack_protector_guard.
31419 * config/i386/i386.md (stack_protect_set): Enable for
31420 TARGET_SSP_TLS_GUARD only.
31421 (stack_protect_set_<mode>): Ditto.
31422 (stack_protect_test): Ditto.
31423 (stack_protect_test_<mode>): Ditto.
31424 * doc/invoke.texi (i386 Option): Document.
31426 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
31429 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
31430 (S_MODES): Set H_MODE bit.
31431 (SF_MODES): Set only S_MODE and SF_MODE bits.
31432 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
31433 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
31434 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
31435 <MODE_FLOAT>: Likewise.
31437 2013-04-15 Joey Ye <joey.ye@arm.com>
31439 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
31441 2013-04-15 Joey Ye <joey.ye@arm.com>
31443 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
31445 (thumb_far_jump_used_p): Count instruction size and set
31448 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
31450 * reorg.c (fill_simple_delay_slots): Reindent block of code.
31451 * resource.c (mark_target_live_regs): Reformat conditional block.
31453 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31455 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
31456 notes, they are emitted only just before final.
31457 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
31459 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
31461 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
31462 * cfgrtl.c (delete_insn): Call it here instead.
31463 * lra-spills.c (lra_final_code_change): Use delete_insn.
31464 * haifa-sched.c (sched_remove_insn): Likewise.
31465 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
31466 returning to the nop pool.
31467 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
31468 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
31470 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31472 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
31473 * doc/tm.texi: Regenerated.
31475 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
31477 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
31480 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
31482 * df-core.c (df_find_def): Compare register numbers.
31483 (df_find_use): Likewise.
31485 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
31488 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
31489 lra_in_progress for return.
31491 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31493 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
31494 define_insn into define_insn_and_split and emit movsicc patterns.
31496 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
31498 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
31500 2013-04-12 Richard Biener <rguenther@suse.de>
31502 * tree-pass.h (TODO_do_not_ggc_collect): New.
31503 * passes.c (execute_one_ipa_transform_pass): Honor
31504 TODO_do_not_ggc_collect.
31505 (execute_one_pass): Likewise.
31508 2013-04-10 Richard Biener <rguenther@suse.de>
31510 * passes.c (init_optimization_passes): Remove reload pass.
31511 * ira.c (do_reload): Merge into ...
31513 (rest_of_handle_reload): Remove.
31514 (pass_reload): Likewise.
31515 * config/i386/i386.c (ix86_option_override): Refer to ira instead
31516 of reload for vzeroupper pass placement.
31518 2013-04-12 Jakub Jelinek <jakub@redhat.com>
31520 PR tree-optimization/56918
31521 PR tree-optimization/56920
31522 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
31523 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
31524 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
31525 use wide_mul_with_sign method.
31527 2013-04-12 Richard Biener <rguenther@suse.de>
31529 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
31530 not be considered a gimple constant.
31532 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
31534 * fold-const.c (const_binop): Handle vector shifts by a scalar.
31535 (fold_binary_loc): Call const_binop also for mixed vector-scalar
31538 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
31539 Jakub Jelinek <jakub@redhat.com>
31541 * opts.c: Include diagnostic-color.h.
31542 (common_handle_option): Handle OPT_fdiagnostics_color_.
31543 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
31544 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
31545 (diagnostic-color.o): New.
31546 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
31547 (diagnostic_color_rule): New enum.
31548 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
31549 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
31550 the location string.
31551 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
31552 either NULL, or color kind.
31553 * diagnostic-color.c: New file.
31554 * diagnostic-color.h: New file.
31555 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
31557 * doc/invoke.texi (-fdiagnostics-color): Document.
31558 * pretty-print.h (pp_show_color): Define.
31559 (struct pretty_print_info): Add show_color field.
31560 * diagnostic.c: Include diagnostic-color.h.
31561 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
31562 macros. Colorize error:, warning: etc. strings and also the location
31564 (diagnostic_show_locus): Colorize the caret line.
31565 * pretty-print.c: Include diagnostic-color.h.
31566 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
31567 inside of %< %> quotes or quoted through q format modifier.
31569 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31571 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
31573 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31575 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
31576 code in CC_NZ mode.
31577 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
31580 2013-04-11 Marek Polacek <polacek@redhat.com>
31582 PR tree-optimization/48184
31583 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
31585 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
31587 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
31588 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
31589 (skip_simple_arithmetic): Tidy up.
31590 * tree.h (skip_simple_constant_arithmetic): Declare.
31592 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31594 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
31596 2013-04-11 Richard Biener <rguenther@suse.de>
31598 * tree-vect-loop.c (get_initial_def_for_induction): Properly
31599 generate vector constants.
31601 2013-04-11 Richard Biener <rguenther@suse.de>
31603 PR tree-optimization/56878
31604 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
31605 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
31607 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31608 Prefer to align the DR with the most invariant base address.
31610 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31612 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
31615 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
31617 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
31618 floating-point vector comparisons against 0.
31620 2013-04-11 Jakub Jelinek <jakub@redhat.com>
31622 PR tree-optimization/56899
31623 * fold-const.c (extract_muldiv_1): Apply distributive law
31624 only if TYPE_OVERFLOW_WRAPS (ctype).
31626 2013-04-11 Bin Cheng <bin.cheng@arm.com>
31629 * ira-costs.c (scan_one_insn): Check whether the source rtx of
31630 loading has side effect.
31632 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
31634 * config/sparc/sparc.c: Include tree-pass.h.
31635 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
31636 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
31637 head of file. Change return type. Split off gate function.
31638 (sparc_gate_work_around_errata): New function.
31639 (pass_work_around_errata): New pass definition.
31640 (insert_pass_work_around_errata) New pass insert definition to
31641 insert pass_work_around_errata just after delayed-branch scheduling.
31642 (sparc_option_override): Insert the pass.
31643 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
31645 2013-04-10 David S. Miller <davem@davemloft.net>
31647 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
31648 or -mcpu=hypersparc.
31650 * target.def (cstore_mode): New hook.
31651 * target.h: Include insn-codes.h
31652 * targhooks.c: Likewise.
31653 (default_cstore_mode): New function.
31654 * targhooks.h: Declare it.
31655 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
31656 * doc/tm.texi: Rebuild.
31657 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
31658 target hook, rather than inspecting the insn_data.
31659 * config/sparc/sparc.c (sparc_cstore_mode): New function.
31660 (TARGET_CSTORE_MODE): Redefine.
31661 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
31663 * config/sparc/predicates.md (cstore_result_operand): New special
31665 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
31666 Use it for operand 0.
31667 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
31668 (*snesi_special): Likewise.
31669 (*snesi_zero): Likewise.
31670 (*seqsi_zero): Likewise.
31671 (*sltu_insn): Likewise.
31672 (*sgeu_insn): Likewise.
31673 (*seqdi_special): Make operand 0 and comparison operation be of
31675 (*snedi_special): Likewise.
31676 (*snedi_special_vis3): Likewise.
31677 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
31678 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
31679 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
31680 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
31681 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
31682 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
31683 (*sltu_extend_sp64): Likewise.
31684 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
31685 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
31686 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
31687 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
31688 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
31690 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
31692 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
31693 (aarch64_start_file): Use the new function.
31695 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31696 Jason Merrill <jason@redhat.com>
31698 * common.opt: Add -gdwarf.
31699 * opts.c (common_handle_option): Handle it.
31700 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
31702 2013-04-10 Richard Biener <rguenther@suse.de>
31704 * passes.c (execute_todo): Do not call ggc_collect conditional here.
31705 (execute_one_ipa_transform_pass): But unconditionally here.
31706 (execute_one_pass): And here.
31707 (init_optimization_passes): Remove reload pass.
31708 * tree-pass.h (TODO_ggc_collect): Remove.
31709 (pass_reload): Likewise.
31710 * ira.c (do_reload): Merge into ...
31712 (rest_of_handle_reload): Remove.
31713 (pass_reload): Likewise.
31714 * config/i386/i386.c (ix86_option_override): Refer to ira instead
31715 of reload for vzeroupper pass placement.
31716 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
31717 and todo_flags_finish of all passes.
31719 2013-04-10 Richard Biener <rguenther@suse.de>
31721 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
31722 first_const_oprnd field, rename first_def_type to first_op_type.
31723 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
31724 (vect_get_and_check_slp_defs): Always use the type of the
31725 operand. Allow mixed vect_external_def, vect_constant_def types.
31726 (vect_get_constant_vectors): Handle mixed vect_external_def,
31727 vect_constant_def types.
31729 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
31731 PR tree-optimization/55524
31732 * tree-ssa-math-opts.c
31733 (convert_mult_to_fma): Don't use an fms construct
31734 when we don't have an fms operation, but fnma, and it looks
31735 likely that we'll be able to use the latter.
31737 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31739 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
31741 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
31742 inline fail caused by overwritable functions.
31744 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
31746 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
31747 unnecessary bits in the constant power of two case.
31749 2013-04-10 Richard Biener <rguenther@suse.de>
31751 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
31752 broken code swapping operands.
31753 (vect_build_slp_tree): Do not compute load permutations here.
31754 (vect_analyze_slp_instance): Compute load permutations here,
31755 after building the SLP tree.
31757 2013-04-09 Christian Bruel <christian.bruel@st.com>
31759 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
31760 of next/prev_real_insn.
31762 2013-04-09 Jan Hubicka <jh@suse.cz>
31764 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
31765 Drop aliased parameter.
31766 (function_and_variable_visibility): Do not handle alias pairs.
31767 * cgraph.c (varpool_externally_visible_p): Update prototype.
31768 * varpool.c (varpool_add_new_variable): Update.
31770 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31772 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
31774 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
31776 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
31778 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
31780 2013-04-09 Marek Polacek <polacek@redhat.com>
31782 PR tree-optimization/48762
31783 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
31785 2013-04-09 Richard Biener <rguenther@suse.de>
31787 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
31789 (vect_build_slp_tree): Likewise.
31790 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
31791 calculating the cost of a SLP instance.
31792 (vect_analyze_slp_instance): Use it from here, after building
31795 2013-04-09 Jakub Jelinek <jakub@redhat.com>
31797 PR middle-end/56883
31798 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
31799 expand_omp_for_static_chunk): Use simple_p = true in
31800 force_gimple_operand_gsi calls when assigning to addressable decls.
31802 2013-04-09 Jeff Law <law@redhat.com>
31804 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
31805 when the boolean was created by converting a wider object which
31806 had a boolean range.
31808 2013-04-09 Richard Biener <rguenther@suse.de>
31810 * tree-vectorizer.h (slp_void_p): Remove.
31811 (slp_tree): Typedef before _slp_tree declaration.
31812 (struct _slp_tree): Use a vector of slp_tree as children.
31813 (vect_get_place_in_interleaving_chain): Remove.
31814 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
31816 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
31818 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
31819 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
31820 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
31821 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
31822 Use slp_node instead of slp_void_p and adjust.
31824 2013-04-09 Richard Biener <rguenther@suse.de>
31826 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
31827 work that is not necessary.
31829 2013-04-09 Jakub Jelinek <jakub@redhat.com>
31831 PR tree-optimization/56854
31832 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
31833 forward into clobber stmts if it would change MEM_REF lhs into
31836 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
31838 * tree.c (type_hash_lookup, type_hash_add): Make static.
31839 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
31841 2013-04-09 Richard Biener <rguenther@suse.de>
31843 * tree.h (unsave_expr_now): Remove.
31844 * tree-inline.c (mark_local_for_remap_r): Remove.
31845 (unsave_expr_1): Likewise.
31846 (unsave_r): Likewise.
31847 (unsave_expr_now): Likewise.
31848 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
31849 (propagate_tree_value): Likewise.
31851 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
31853 * doc/rtl.texi (sequence): Rewrite documentation to match the
31854 current use of SEQUENCE rtl objects.
31855 * rtl.def (SEQUENCE): Likewise.
31857 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
31858 Update documentation.
31859 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
31860 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
31862 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
31864 2013-04-08 Teresa Johnson <tejohnson@google.com>
31866 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
31867 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
31869 (estimate_edge_size_and_time): Add comment to suggest using rounding
31871 (estimate_node_size_and_time): Ditto.
31872 (remap_edge_change_prob): Use helper rounding divide methods.
31873 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
31874 (gimple_mod_pow2_value_transform): Ditto.
31875 (gimple_mod_subtract_transform): Ditto.
31876 (gimple_ic_transform): Ditto.
31877 (gimple_stringops_transform): Ditto.
31878 * stmt.c (conditional_probability): Ditto.
31879 (emit_case_dispatch_table): Ditto.
31880 * lto-cgraph.c (merge_profile_summaries): Ditto.
31881 * tree-optimize.c (execute_fixup_cfg): Ditto.
31882 * cfgcleanup.c (try_forward_edges): Ditto.
31883 * cfgloopmanip.c (scale_loop_profile): Ditto.
31885 (duplicate_loop_to_header_edge): Ditto.
31886 (lv_adjust_loop_entry_edge): Ditto.
31887 * tree-vect-loop.c (vect_transform_loop): Ditto.
31888 * profile.c (compute_branch_probabilities): Ditto.
31889 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
31890 * lto-streamer-in.c (input_cfg): Ditto.
31891 * gimple-streamer-in.c (input_bb): Ditto.
31892 * ipa-cp.c (update_profiling_info): Ditto.
31893 (update_specialized_profile): Ditto.
31894 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
31895 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
31897 * sched-rgn.c (compute_dom_prob_ps): Ditto.
31898 (compute_trg_info): Ditto.
31899 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
31900 (purge_dead_edges): Ditto.
31901 * loop-unswitch.c (unswitch_loop): Ditto.
31902 * cgraphclones.c (cgraph_clone_edge): Ditto.
31903 (cgraph_clone_node): Ditto.
31904 * tree-inline.c (copy_bb): Ditto.
31905 (copy_edges_for_bb): Ditto.
31906 (initialize_cfun): Ditto.
31907 (copy_cfg_body): Ditto.
31908 (expand_call_inline): Ditto.
31910 2013-04-08 Kai Tietz <ktietz@redhat.com>
31912 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
31913 TARGET_CYGWIN64 by TARGET_64BIT.
31915 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
31917 * config/epiphany/epiphany.md (GPR_1): New constant.
31918 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
31919 * config/epiphany/epiphany.c (gen_compare_reg):
31920 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
31921 is already in place.
31922 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
31923 Don't require being called during rtl expansion; If y operlaps r0,
31925 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
31926 (epiphany_expand_epilogue): Likewise.
31928 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
31929 Don't use CC_FPmode for ORDERED / UNORDERED.
31930 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
31932 * config/epiphany/constraints.md (CnL): New constraint.
31933 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
31934 * config/epiphany/predicates.md (add_operand): Allow 1024.
31936 * config/epiphany/epiphany.md (logical_op): New code iterator.
31937 (op_mnc): New code attribute.
31938 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
31939 (mov_f+1, mov_f+2): New peephole2 patterns.
31941 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
31942 (cstoresi4): Also allow re-use of zero result when doing a NE
31943 comparison to a non-zero operand.
31944 Use (clobber (scratch)) for first insn if the gpr output is not needed.
31946 * config/epiphany/epiphany.md (<insn_opname>v2si3):
31947 Use gen_addsi3_i / gen_subsi3_i.
31949 2013-04-08 Jakub Jelinek <jakub@redhat.com>
31953 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
31954 contain anything but clobbers, at most one __builtin_stack_restore,
31955 optionally debug stmts and final resx, and if it has at least one
31956 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
31957 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
31958 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
31959 which isn't defaut definition, remove them.
31960 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
31961 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
31962 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
31963 with MEM_REF LHS with SSA_NAME address.
31965 2013-04-08 Jeff Law <law@redhat.com>
31967 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
31969 2013-04-08 Richard Biener <rguenther@suse.de>
31971 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
31973 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
31974 determined vector type.
31975 (vect_analyze_data_refs): Likewise.
31976 (vect_get_new_vect_var): Adjust.
31977 (vect_create_destination_var): Preserve SSA name versions.
31978 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
31979 not dump anything here.
31981 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
31983 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
31984 Add member lr_slot_known.
31985 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
31987 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
31988 Remove code that sets lr_slot_offset according to what a previous
31989 version of epiphany_emit_save_restore used to do.
31990 (epiphany_emit_save_restore): When doing an lr save or restore,
31991 set/verify lr_slot_known and lr_slot_offset.
31993 2013-04-08 Xinyu Qi <xyqi@marvell.com>
31996 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
31999 2013-04-08 Richard Biener <rguenther@suse.de>
32001 * alias.c (find_base_term): Fix thinko in previous change.
32003 2013-04-08 Jakub Jelinek <jakub@redhat.com>
32005 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
32006 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
32007 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
32008 if possible to compute val.
32009 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
32010 For QImode integers don't require anything about precision. Use
32011 const_with_all_bytes_same to find out if the constant doesn't have
32012 repeated bytes in it.
32014 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32016 * config/s390/s390.c (s390_expand_insv): Only accept insertions
32019 2013-04-08 Marek Polacek <polacek@redhat.com>
32021 PR rtl-optimization/48182
32022 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
32025 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32028 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
32029 nuses, make sure we have a label.
32031 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32034 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
32035 (rs6000_emit_swdiv_low_precision): Remove.
32036 (rs6000_emit_swdiv): Rewrite to handle between one and four
32037 iterations of Newton-Raphson generally; modify required number of
32038 iterations for some cases.
32039 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
32041 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
32043 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
32044 set-but-unused variable.
32046 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
32047 basic blocks of released function bodies garbage-collectable.
32049 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
32050 (struct rtl_opt_pass): Add TODO_df_finish.
32052 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
32054 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32056 * config/arm/constraints.md (q): New constraint.
32057 * config/arm/ldrdstrd.md: New file.
32058 * config/arm/arm.md (ldrdstrd.md) New include.
32059 (arm_movdi): Use "q" instead of "r" constraint
32060 for double-word memory access.
32061 (movdf_soft_insn): Likewise.
32062 * config/arm/vfp.md (movdi_vfp): Likewise.
32063 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
32064 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
32065 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
32066 (mem_ok_for_ldrd_strd): Likewise.
32067 (output_move_double): Update assertion.
32069 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32071 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
32073 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32075 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
32076 define_insn_and_split.
32077 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
32079 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32081 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
32082 define_insn_and_split.
32083 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
32084 (shiftsi3_compare): New pattern.
32085 (rrx): New pattern.
32086 * config/arm/unspecs.md (UNSPEC_RRX): New.
32088 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32090 * config/arm/arm.md (negdi_extendsidi): New pattern.
32091 (negdi_zero_extendsidi): Likewise.
32093 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32095 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
32096 define_insn_and_split.
32097 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
32098 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
32100 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32102 * config/arm/arm.md (arm_subdi3): Convert define_insn into
32103 define_insn_and_split.
32104 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
32105 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
32107 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32109 * config/arm/arm.md (subsi3_carryin): New pattern.
32110 (subsi3_carryin_const): Likewise.
32111 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
32112 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
32114 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32116 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
32118 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
32120 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
32121 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
32123 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32125 * config/arm/arm.c (arm_expand_builtin): Change fcode
32126 type to unsigned int.
32128 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32130 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
32132 2013-04-04 Ian Lance Taylor <iant@google.com>
32134 * doc/standards.texi (Standards): The Go frontend supports the Go 1
32137 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
32139 PR middle-end/56729
32140 * df-scan.c (df_insn_delete): Disable failing assert.
32142 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32144 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
32145 New function prototype.
32146 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
32147 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
32148 (arm_builtin_vectorized_function): New function.
32150 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32152 * config/arm/arm_neon_builtins.def: New file.
32153 * config/arm/arm.c (neon_builtin_data): Move contents to
32154 arm_neon_builtins.def.
32155 (enum arm_builtins): Include neon builtin definitions.
32156 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
32157 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
32159 2013-04-04 Marek Polacek <polacek@redhat.com>
32161 PR tree-optimization/48186
32162 * predict.c (maybe_hot_frequency_p): Return false if
32163 HOT_BB_FREQUENCY_FRACTION is 0.
32164 (cgraph_maybe_hot_edge_p): Likewise.
32166 2013-04-04 Richard Biener <rguenther@suse.de>
32168 PR tree-optimization/56826
32169 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
32172 2013-04-04 Richard Biener <rguenther@suse.de>
32174 PR tree-optimization/56213
32175 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
32176 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
32178 2013-04-04 Richard Biener <rguenther@suse.de>
32180 PR tree-optimization/56837
32181 * tree-loop-distribution.c (classify_partition): For non-zero
32182 values require that the value has the same precision as its
32183 mode to be useful as memset value.
32185 2013-04-03 Nick Clifton <nickc@redhat.com>
32187 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
32188 (fmssf4): Use fmsf.s on E3V5 architectures.
32189 (fnmasf4): Use fnmaf.s on E3V5 architectures.
32190 (fnmssf4): Use fnmsf.s on E3V5 architectures.
32192 2013-04-03 Jeff Law <law@redhat.com>
32194 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
32195 (lra-eliminations.o): Likewise.
32197 2013-04-03 Teresa Johnson <tejohnson@google.com>
32199 * gcov-io.c (compute_working_sets): Moved most of body of old
32200 compute_working_sets here from profile.c.
32201 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
32202 (gcov_working_set_t): Moved typedef here from basic-block.h
32203 (compute_working_set): Declare.
32204 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
32205 (get_working_sets): Renamed from compute_working_set,
32206 replace most of body with call to new compute_working_sets.
32207 (get_exec_counts): Replace call to compute_working_sets
32208 to get_working_sets.
32209 * profile.h (get_working_sets): Renamed from compute_working_set.
32210 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
32211 to get_working_sets.
32212 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
32213 * gcov-dump.c (dump_working_sets): New function.
32215 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
32217 * hwint.c (sext_hwi, zext_hwi): New functions.
32218 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
32219 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
32220 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
32221 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
32222 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
32223 (sext_hwi, zext_hwi): New functions.
32225 2013-04-03 Jeff Law <law@redhat.com>
32227 PR tree-optimization/56799
32228 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
32229 back test for widening conversion erroneously dropped in prior change.
32231 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32234 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
32235 instead of next_real_insn.
32237 2013-04-03 Marek Polacek <polacek@redhat.com>
32240 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
32242 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32245 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
32247 (thumb1_output_casesi): Likewise.
32248 (thumb2_output_casesi): Likewise.
32250 2013-04-03 Richard Biener <rguenther@suse.de>
32252 PR tree-optimization/56817
32253 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
32255 (tree_unroll_loops_completely_1): ... new function to manually
32256 walk the loop tree, properly defering outer loops of unrolled
32257 loops to later iterations.
32259 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32261 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
32262 (vectorizable_load): Likewise.
32263 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
32264 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
32266 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32268 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
32271 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32273 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
32275 2013-04-03 Bin Cheng <bin.cheng@arm.com>
32277 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
32279 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32281 PR tree-optimization/56790
32282 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
32285 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
32287 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
32289 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
32290 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
32293 2013-04-03 Jakub Jelinek <jakub@redhat.com>
32296 * tree.h (force_folding_builtin_constant_p): New decl.
32297 * builtins.c (force_folding_builtin_constant_p): New variable.
32298 (fold_builtin_constant_p): Fold immediately also if
32299 force_folding_builtin_constant_p.
32301 2013-04-03 Richard Biener <rguenther@suse.de>
32303 PR tree-optimization/56812
32304 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
32305 DRs of the same interleaving chain are independent.
32307 2013-04-02 Jason Merrill <jason@redhat.com>
32309 * gdbinit.in (pbb): Use debug fn.
32311 2013-04-02 Lawrence Crowl <crowl@google.com>
32313 * sese.h (struct ivtype_map_elt_s): Remove unused.
32314 (extern debug_ivtype_map): Remove unused.
32315 (extern eq_ivtype_map_elts): Remove unused.
32316 * sese.c (debug_ivtype_map): Removed unused.
32317 (debug_ivtype_map_1): Removed unused.
32318 (debug_ivtype_elt): Remove unused.
32319 (eq_ivtype_map_elts): Remove unused.
32321 2013-04-02 Kai Tietz <ktietz@redhat.com>
32324 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
32325 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
32326 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
32328 (legitimize_pe_coff_symbol): Likewise.
32329 (is_imported_p): New helper-function.
32330 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
32331 for Windows x64 targets.
32332 (ix86_expand_prologue): Optimize for pe-coff targets.
32333 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
32334 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
32335 medium/large code-model.
32336 (legitimize_pic_address): Likewise.
32337 (legitimize_tls_address): Likewise.
32338 (ix86_expand_call): Likewise.
32339 (x86_output_mi_thunk): Likewise.
32340 (get_dllimport_decl): Add new beimport argument.
32341 (construct_plt_address): Don't assert for x64 pe-coff targets.
32342 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
32344 (SYMBOL_FLAG_STUBVAR): New macro.
32345 (SYMBOL_REF_STUBVAR_P): Likewise.
32346 * config/i386/winnt.c (stub_list): New structure.
32347 (stub_head): New local variable.
32348 (i386_pe_record_stub): New function.
32349 (i386_pe_file_end): Emit refptr-stubs.
32351 2013-04-02 Jakub Jelinek <jakub@redhat.com>
32353 PR rtl-optimization/56745
32354 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
32355 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
32358 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
32359 and both of them are MEM_REFs, just compare first argument for
32360 equality and attempt to deal even with differing offsets.
32363 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
32364 of gimple_clobber_p to be MEM_REF.
32365 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
32366 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
32367 after gimplification.
32368 * asan.c (get_mem_ref_of_assignment): Don't instrument
32369 gimple_clobber_p stmts.
32370 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
32371 gimple_clobber_p stmt if they have MEM_REF lhs and
32372 are dead because of another gimple_clobber_p stmt.
32373 * tree-ssa-live.c (clear_unused_block_pointer): Treat
32374 gimple_clobber_p stmts like debug stmts.
32375 (remove_unused_locals): Remove clobbers with MEM_REF lhs
32376 that refer to unused VAR_DECLs or uninitialized values.
32377 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
32378 gimple_clobber_p stmts if they refer to removed parameters.
32379 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
32382 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
32384 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
32385 using SWI48 mode attribute.
32387 2013-04-02 Wei Mi <wmi@google.com>
32389 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
32390 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
32391 *<rotate_insn><mode>3_mask in i386.md.
32393 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
32395 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
32397 2013-04-02 Richard Biener <rguenther@suse.de>
32399 PR tree-optimization/56778
32400 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32401 Runtime alias tests are not supported for gather loads.
32402 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
32403 stmts referenced from SSA operands before updating SSA form.
32405 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
32406 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32408 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
32409 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
32410 * config/arm/cortex-a53.md: New file.
32411 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
32412 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
32413 * config/arm/arm.c (arm_issue_rate): Likewise.
32414 * config/arm/arm-tune.md: Regenerate
32415 * config/arm/arm-tables.opt: Regenerate.
32416 * config/arm/arm-cores.def: Add cortex-a53.
32418 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
32420 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
32423 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32425 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
32426 scalar load/store operations using B/H registers.
32427 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
32429 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
32431 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
32433 * config/aarch64/aarch64.c
32434 (aarch64_simd_scalar_immediate_valid_for_move): New.
32435 * config/aarch64/aarch64-protos.h
32436 (aarch64_simd_scalar_immediate_valid_for_move): New.
32437 * config/aarch64/constraints.md (Dh, Dq): New.
32438 * config/aarch64/iterators.md (hq): New.
32440 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
32442 * reorg.c (get_branch_condition): Deal with conditional returns.
32443 (fill_simple_delay_slots): Remove dead code dealing with jumps.
32445 2013-04-01 Wei Mi <wmi@google.com>
32447 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
32448 Truncate operand 2 using %b asm operand modifier.
32449 (*<shift_insn><mode>3_mask): Ditto.
32450 (*<rotate_insn><mode>3_mask): Ditto.
32452 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
32454 PR middle-end/56798
32455 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
32457 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
32459 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
32461 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
32463 2013-03-30 Lawrence Crowl <crowl@google.com>
32465 * dse.c (clear_alias_sets): Remove never set.
32466 (disqualified_clear_alias_sets): Remove never set.
32467 (clear_alias_mode_pool): Remove never set.
32468 (dse_step0): Remove condition that is never true.
32469 (canon_address): Remove condition that is never true.
32470 (dse_step7): Remove condition that is never true.
32471 (rest_of_handle_dse): Remove condition that is never true.
32472 (rest_of_handle_dse::did_global): Remove never read from above.
32473 (dse_step2_spill): Remove never called from above.
32474 (dse_step5_spill): Remove never called from above.
32476 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
32478 * doc/md.texi (Standard Names) <casesi>: Update documentation for
32479 JUMP_TABLE_DATA changes.
32480 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
32481 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
32482 (Insns) <jump_table_data>: New entry.
32483 * doc/tm.texi: Regenerate.
32485 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
32487 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
32488 for table jump at the end of a basic block using tablejump_p.
32489 * targhooks.c (default_invalid_within_doloop): Likewise.
32490 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
32491 target hook implementation that is identical to the default hook.
32492 (rs6000_invalid_within_doloop): Remove.
32494 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
32495 unused variable from tablejump_p call.
32497 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
32498 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
32499 (INSN_DELETED_P): Likewise.
32500 (emit_jump_table_data): New prototype.
32501 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
32502 after 4th as unused.
32503 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
32504 * sched-vis.c (print_insn): Likewise.
32505 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
32506 insn for compatibility with back ends that use next_active_insn to
32507 identify jump table data.
32508 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
32509 (remove_insn): Likewise.
32510 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
32512 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
32513 (emit_jump_table_data): New function.
32515 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
32516 basic block, a JUMP_TABLE_DATA never is.
32517 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
32518 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
32519 off from code handling real insns.
32520 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
32521 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
32522 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
32523 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
32524 is not a NONDEBUG_INSN_P.
32525 * ira-costs.c (scan_one_insn): Likewise.
32526 * jump.c (mark_all_labels): Likewise.
32527 (mark_jump_label_1): Likewise.
32528 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32529 * lra.c (get_insn_freq): Expect all insns reaching here to be in
32531 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
32532 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
32533 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
32534 JUMP_TABLE_DATA_P insns.
32535 (calculate_elim_costs_all_insns): Likewise.
32536 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
32537 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
32538 (delete_output_reload): Code style fixups.
32539 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
32540 insn flags on this non-insn.
32541 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
32542 as scheduling barriers, for pre-change compatibility.
32543 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
32544 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
32546 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
32547 redundant JUMP_TABLE_DATA_P test.
32548 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
32549 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
32550 (frv_for_each_packet): Likewise.
32551 * config/i386/i386.c (min_insn_size): Likewise.
32552 (ix86_avoid_jump_mispredicts): Likewise.
32553 * config/m32r/m32r.c (m32r_is_insn): Likewise.
32554 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
32555 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
32556 (mips16_insn_length): Robustify.
32557 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
32558 (mips16_split_long_branches): Likewise.
32559 * config/pa/pa.c (pa_combine_instructions): Likewise.
32560 * config/rs6000/rs6000.c (get_next_active_insn): Treat
32561 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
32562 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
32563 as contributing to pool range lengths.
32564 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
32565 Remove redundant JUMP_TABLE_DATA_P test.
32566 (sh_loop_align): Likewise.
32567 (split_branches): Likewise.
32568 (sh_insn_length_adjustment): Likewise.
32569 * config/spu/spu.c (get_branch_target): Likewise.
32571 2013-03-29 Jan Hubicka <jh@suse.cz>
32573 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
32574 gcov streaming; stream hot bb threshold to ltrans.
32575 * predict.c (get_hot_bb_threshold): Break out from ....
32576 (maybe_hot_count_p): ... here.
32577 (set_hot_bb_threshold): New function.
32578 * lto-section-in.c (lto_section_name): Add profile.
32579 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
32580 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
32581 and data-streamer.h
32582 (histogram_entry): New structure.
32583 (histogram, histogram_pool): New global vars.
32584 (histogram_hash): New structure.
32585 (histogram_hash::hash): New method.
32586 (histogram_hash::equal): Likewise.
32587 (account_time_size): New function.
32588 (cmp_counts): New function.
32589 (dump_histogram): New function.
32590 (ipa_profile_generate_summary): New function.
32591 (ipa_profile_write_summary): New function.
32592 (ipa_profile_read_summary): New function.
32593 (ipa_profile): Decide on threshold.
32594 (pass_ipa_profile): Add ipa_profile_write_summary and
32595 ipa_profile_read_summary.
32596 * Makefile.in (ipa.o): Update dependencies.
32597 * lto-streamer.h (LTO_section_ipa_profile): New section.
32599 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
32601 * tree.h (VAR_P): New.
32603 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
32606 * doc/invoke.texi ([-fwhole-program]): Fix typo.
32608 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
32610 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
32611 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
32612 (control_flow_insn_p): Likewise.
32613 * cfgrtl.c (duplicate_insn_chain): Likewise.
32614 * final.c (get_attr_length_1): Likewise.
32615 (shorten_branches): Likewise.
32616 (final_scan_insn): Likewise.
32617 * function.c (instantiate_virtual_regs): Likewise.
32618 * gcse.c (insert_insn_end_basic_block): Likewise.
32619 * ira-costs.c (scan_one_insn): Likewise.
32620 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
32621 * lra.c (check_rtl): Likewise.
32622 * reload1.c (elimination_costs_in_insn): Likewise.
32623 * reorg.c (follow_jumps): Likewise.
32625 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
32626 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
32627 (thumb_far_jump_used_p): Likewise.
32628 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
32629 (workaround_speculation): Likewise.
32630 (add_sched_insns_for_speculation): Likewise.
32631 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
32632 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
32633 (frv_for_each_packet): Likewise.
32634 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
32635 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
32636 (final_emit_insn_group_barriers): Likewise.
32637 * config/m32r/m32r.c (m32r_is_insn): Likewise.
32638 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
32639 (mips16_insn_length): Likewise.
32640 * config/pa/pa.c (pa_reorg): Likewise.
32641 (pa_combine_instructions): Likewise.
32642 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
32643 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
32644 (sh_reorg): Likewise.
32645 (split_branches): Likewise.
32646 * config/spu/spu.c (get_branch_target): Likewise.
32648 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
32651 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
32653 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
32654 Fix declaration name.
32656 2013-03-28 Lawrence Crowl <crowl@google.com>
32658 * graphds.h (struct graph.indicies): Remove unused.
32659 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
32660 (SCOP_ORIGINAL_PDDRS): Remove unused.
32661 * sese.h (extern insert_loop_close_phis): Removed unused.
32662 (extern insert_guard_phis): Removed unused.
32663 (extern ivtype_map_elt_info): Removed unused.
32664 (new_ivtype_map_elt): Removed unused.
32665 * sese.c (ivtype_map_elt_info): Removed unused.
32667 2013-03-28 Lawrence Crowl <crowl@google.com>
32669 * Makefile.in: Add several missing include dependences.
32671 (test-dump.o): New. This object is not added to any executable,
32672 but is present for ad-hoc testing.
32674 (debug (const bitmap_head_def &)): New.
32675 (debug (const bitmap_head_def *)): New.
32677 (extern debug (const bitmap_head_def &)): New.
32678 (extern debug (const bitmap_head_def *)): New.
32680 (debug (edge_def &)): New.
32681 (debug (edge_def *)): New.
32683 (debug (basic_block_def &)): New.
32684 (debug (basic_block_def *)): New.
32686 (dump_node (const_tree, int, FILE *)): Correct source file.
32688 (debug (die_struct &)): New.
32689 (debug (die_struct *)): New.
32691 (extern debug (die_struct &)): New.
32692 (extern debug (die_struct *)): New.
32693 * gimple-pretty-print.c
32694 (debug (gimple_statement_d &)): New.
32695 (debug (gimple_statement_d *)): New.
32696 * gimple-pretty-print.h
32697 (extern debug (gimple_statement_d &)): New.
32698 (extern debug (gimple_statement_d *)): New.
32700 (debug (ira_allocno_copy &)): New.
32701 (debug (ira_allocno_copy *)): New.
32702 (debug (ira_allocno &)): New.
32703 (debug (ira_allocno *)): New.
32705 (extern debug (ira_allocno_copy &)): New.
32706 (extern debug (ira_allocno_copy *)): New.
32707 (extern debug (ira_allocno &)): New.
32708 (extern debug (ira_allocno *)): New.
32710 (debug (live_range &)): New.
32711 (debug (live_range *)): New.
32713 (debug (lra_live_range &)): New.
32714 (debug (lra_live_range *)): New.
32716 (debug (lra_live_range &)): New.
32717 (debug (lra_live_range *)): New.
32719 (debug (omega_pb_d &)): New.
32720 (debug (omega_pb_d *)): New.
32722 (extern debug (omega_pb_d &)): New.
32723 (extern debug (omega_pb_d *)): New.
32725 (debug (const rtx_def &)): New.
32726 (debug (const rtx_def *)): New.
32728 (debug_tree (tree): Move within file.
32729 (debug_raw (const tree_node &)): New.
32730 (debug_raw (const tree_node *)): New.
32731 (dump_tree_via_hooks (const tree_node *, int)): New.
32732 (debug (const tree_node &)): New.
32733 (debug (const tree_node *)): New.
32734 (debug_verbose (const tree_node &)): New.
32735 (debug_verbose (const tree_node *)): New.
32736 (debug_head (const tree_node &)): New.
32737 (debug_head (const tree_node *)): New.
32738 (debug_body (const tree_node &)): New.
32739 (debug_body (const tree_node *)): New.
32740 (debug_vec_tree (tree): Move and reimplement in terms of dump.
32741 (debug (vec<tree, va_gc> &)): New.
32742 (debug (vec<tree, va_gc> *)): New.
32744 (extern debug (const rtx_def &)): New.
32745 (extern debug (const rtx_def *)): New.
32747 (debug_raw (simple_bitmap_def &)): New.
32748 (debug_raw (simple_bitmap_def *)): New.
32749 (debug (simple_bitmap_def &)): New.
32750 (debug (simple_bitmap_def *)): New.
32752 (extern debug (simple_bitmap_def &)): New.
32753 (extern debug (simple_bitmap_def *)): New.
32754 (extern debug_raw (simple_bitmap_def &)): New.
32755 (extern debug_raw (simple_bitmap_def *)): New.
32757 (debug (vinsn_def &)): New.
32758 (debug (vinsn_def *)): New.
32759 (debug_verbose (vinsn_def &)): New.
32760 (debug_verbose (vinsn_def *)): New.
32761 (debug (expr_def &)): New.
32762 (debug (expr_def *)): New.
32763 (debug_verbose (expr_def &)): New.
32764 (debug_verbose (expr_def *)): New.
32765 (debug (vec<rtx> &)): New.
32766 (debug (vec<rtx> *)): New.
32768 (extern debug (vinsn_def &)): New.
32769 (extern debug (vinsn_def *)): New.
32770 (extern debug_verbose (vinsn_def &)): New.
32771 (extern debug_verbose (vinsn_def *)): New.
32772 (extern debug (expr_def &)): New.
32773 (extern debug (expr_def *)): New.
32774 (extern debug_verbose (expr_def &)): New.
32775 (extern debug_verbose (expr_def *)): New.
32776 (extern debug (vec<rtx> &)): New.
32777 (extern debug (vec<rtx> *)): New.
32779 (_list_iter_cond_expr): Make inline instead of static.
32781 (debug (sreal &)): New.
32782 (debug (sreal *)): New.
32784 (extern debug (sreal &)): New.
32785 (extern debug (sreal *)): New.
32787 (extern debug_raw (const tree_node &)): New.
32788 (extern debug_raw (const tree_node *)): New.
32789 (extern debug (const tree_node &)): New.
32790 (extern debug (const tree_node *)): New.
32791 (extern debug_verbose (const tree_node &)): New.
32792 (extern debug_verbose (const tree_node *)): New.
32793 (extern debug_head (const tree_node &)): New.
32794 (extern debug_head (const tree_node *)): New.
32795 (extern debug_body (const tree_node &)): New.
32796 (extern debug_body (const tree_node *)): New.
32797 (extern debug (vec<tree, va_gc> &)): New.
32798 (extern debug (vec<tree, va_gc> *)): New.
32800 (debug (struct loop &)): New.
32801 (debug (struct loop *)): New.
32802 (debug_verbose (struct loop &)): New.
32803 (debug_verbose (struct loop *)): New.
32804 * tree-dump.c: Add header dependence.
32806 (extern debug (struct loop &)): New.
32807 (extern debug (struct loop *)): New.
32808 (extern debug_verbose (struct loop &)): New.
32809 (extern debug_verbose (struct loop *)): New.
32811 (debug (data_reference &)): New.
32812 (debug (data_reference *)): New.
32813 (debug (vec<data_reference_p> &)): New.
32814 (debug (vec<data_reference_p> *)): New.
32815 (debug (vec<ddr_p> &)): New.
32816 (debug (vec<ddr_p> *)): New.
32818 (extern debug (data_reference &)): New.
32819 (extern debug (data_reference *)): New.
32820 (extern debug (vec<data_reference_p> &)): New.
32821 (extern debug (vec<data_reference_p> *)): New.
32822 (extern debug (vec<ddr_p> &)): New.
32823 (extern debug (vec<ddr_p> *)): New.
32825 (debug (pt_solution &)): New.
32826 (debug (pt_solution *)): New.
32828 (extern debug (pt_solution &)): New.
32829 (extern debug (pt_solution *)): New.
32831 (debug (_var_map &)): New.
32832 (debug (_var_map *)): New.
32833 (debug (tree_live_info_d &)): New.
32834 (debug (tree_live_info_d *)): New.
32836 (extern debug (_var_map &)): New.
32837 (extern debug (_var_map *)): New.
32838 (extern debug (tree_live_info_d &)): New.
32839 (extern debug (tree_live_info_d *)): New.
32841 2013-03-28 Jan Hubicka <jh@suse.cz>
32843 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
32845 2013-03-28 Ian Bolton <ian.bolton@arm.com>
32847 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
32848 record only when desired or required.
32850 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
32852 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
32853 *vec_extractv2di_1_rex64. Use x64 isa attribute.
32855 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32857 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
32858 (*andsi3_compare0_uxtw): New pattern.
32859 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
32860 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
32862 2013-03-28 Jan Hubicka <jh@suse.cz>
32864 * data-streamer-in.c (streamer_read_gcov_count): New function.
32865 * gimple-streamer-out.c: Include value-prof.h.
32866 (output_gimple_stmt): Output histogram.
32867 (output_bb): Use streamer_write_gcov_count.
32868 * value-prof.c: Include data-streamer.h
32869 (dump_histogram_value): Add HIST_TYPE_MAX.
32870 (stream_out_histogram_value): New function.
32871 (stream_in_histogram_value): New function.
32872 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
32873 (stream_out_histogram_value, stream_in_histogram_value): Declare.
32874 * data-streamer-out.c (streamer_write_gcov_count): New function.
32875 (streamer_write_gcov_count_stream): New function.
32876 * lto-cgraph.c (lto_output_edge): Update counter streaming.
32877 (lto_output_node): Likewise.
32878 (input_node, input_edge): Likewise.
32879 * lto-streamer-out.c (output_cfg): Update streaming.
32880 * lto-streamer-in.c (input_cfg): Likewise.
32881 * data-streamer.h (streamer_write_gcov_count,
32882 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
32883 * gimple-streamer-in.c: Include value-prof.h
32884 (input_gimple_stmt): Input histograms.
32885 (input_bb): Update profile streaming.
32887 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
32889 * genmodes.c (emit_max_int): New function.
32890 (emit_insn_modes_h): Added call to emit_max_function.
32891 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
32893 * machmode.def: Fixed comment.
32895 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
32897 * combine.c (try_combine): Removed useless assert.
32898 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
32900 2013-03-28 Marek Polacek <polacek@redhat.com>
32901 Richard Biener <rguenther@suse.de>
32903 PR tree-optimization/56695
32904 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
32905 build signed result of a vector comparison.
32906 * tree-cfg.c (verify_gimple_comparison): Check that a result
32907 of a vector comparison has signed type.
32909 2013-03-28 Richard Biener <rguenther@suse.de>
32911 PR tree-optimization/37021
32912 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
32913 do not restrict gaps between groups.
32914 * tree-vect-stmts.c (vectorizable_load): Properly account for
32915 a gap between groups.
32917 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
32919 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
32920 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
32923 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
32925 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
32926 * doc/extend.texi (Named Address Spaces): Ditto.
32927 (Variable Attributes): Ditto.
32929 2013-03-27 Kai Tietz <ktietz@redhat.com>
32931 * config.build: Add support for cygwin x64 target.
32932 * config.gcc: Likewise.
32933 * config.host: Likewise.
32934 * configure.ac: Likewise
32935 * configure: Regenerated.
32937 2013-03-27 Kai Tietz <ktietz@redhat.com>
32939 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
32940 * config/i386/t-cygwin-w64: New file.
32941 * config/i386/cygwin-w64.h: New file.
32942 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
32943 and add support for x64-cygwin target.
32944 (CPP_SPEC): Likewise.
32945 (CXX_WRAP_SPEC_LIST): Undefine before define.
32946 (LIBGCJ_SONAME): Use 15 as version.
32948 2013-03-27 Richard Biener <rguenther@suse.de>
32950 PR tree-optimization/56716
32951 * tree-ssa-structalias.c (perform_var_substitution): Adjust
32952 dumping for ref nodes.
32954 2013-03-27 Martin Jambor <mjambor@suse.cz>
32956 PR tree-optimization/55334
32957 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
32958 restricted pointers to arrays.
32960 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
32962 * Makefile.in (.SUFFIXES): Add .cc.
32963 (.c.o): Apply same recipe for implicit rule .cc.o.
32965 2013-03-27 Richard Biener <rguenther@suse.de>
32967 PR tree-optimization/37021
32968 * tree-vect-data-refs.c (vect_check_strided_load): Allow
32969 REALPART/IMAGPART_EXPRs around the supported refs.
32970 * tree-ssa-structalias.c (find_func_aliases): Assume that
32971 floating-point values are not used to transfer pointers.
32973 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
32975 * target.def (TARGET_HAS_IFUNC_P): New target hook.
32976 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
32977 * doc/tm.texi: Regenerate.
32978 * targhooks.h (default_has_ifunc_p): New.
32979 * targhooks.c (default_has_ifunc_p): Ditto.
32980 * config/linux-protos.h: New file.
32981 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
32982 hook for linux which disables support of indirect functions in android.
32983 * config/linux-android.c: New file.
32984 * config/t-linux-android.c: Ditto.
32985 * config.gcc: Added new object file linux-android.o.
32986 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
32987 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
32988 * varasm.c (do_assemble_alias): Likewise.
32989 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
32990 doesn't support indirect functions.
32991 * configure: Regenerate.
32993 2013-03-27 Bin Cheng <bin.cheng@arm.com>
32996 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
32997 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
33000 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33002 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
33004 2013-03-27 Terry Guo <terry.guo@arm.com>
33006 * config/arm/arm-cores.def: Added core cortex-r7.
33007 * config/arm/arm-tune.md: Regenerated.
33008 * config/arm/arm-tables.opt: Regenerated.
33009 * doc/invoke.texi: Added entry for core cortex-r7.
33011 2013-03-27 Walter Lee <walt@tilera.com>
33013 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
33014 double-decrement of next_scratch_regno.
33016 2013-03-27 Walter Lee <walt@tilera.com>
33018 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
33020 (insn_v1mulus): Ditto.
33021 (insn_v2muls): Ditto.
33023 2013-03-27 Walter Lee <walt@tilera.com>
33025 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
33026 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
33028 2013-03-27 Walter Lee <walt@tilera.com>
33030 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
33031 (*sibcall_value): Ditto.
33033 2013-03-27 Walter Lee <walt@tilera.com>
33035 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
33036 (insn_mnz_v8qi): ... this ...
33037 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
33039 (insn_v<n>mnz): Replaced by ...
33040 (insn_v1mnz): ... this ...
33041 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
33043 (insn_mz_<mode>): Replaced by ...
33044 (insn_mz_v8qi): ... this ...
33045 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
33047 (insn_v<n>mz): Replaced by ...
33048 (insn_v1mz): ... this ...
33049 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
33052 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
33054 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
33056 2013-03-26 Roland McGrath <mcgrathr@google.com>
33058 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
33059 than fprintf with a non-constant, non-format string.
33061 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33063 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
33064 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
33065 operand 0 predicate.
33066 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
33067 attribute. Use general_x64nomem_operand as operand 1 predicate.
33068 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
33069 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33070 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
33071 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
33072 (mov<mode>_insv_1): Remove expander. Merge insn with
33073 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
33074 Use general_x64nomem_operand as operand 1 predicate.
33075 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
33076 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
33077 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33078 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
33079 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
33080 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
33081 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
33082 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
33083 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
33084 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
33085 (general_x64nomem_operand): Ditto.
33087 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
33089 * config/rtems.opt: Add -pthread option.
33091 2013-03-26 Richard Biener <rguenther@suse.de>
33093 * alias.c (find_base_term): Avoid redundant and not used recursion.
33094 (base_alias_check): Get the initial base term from the caller.
33095 (true_dependence_1): Compute and pass base terms to base_alias_check.
33096 (write_dependence_p): Likewise.
33097 (may_alias_p): Likewise.
33099 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
33101 * config/aarch64/aarch64.c (aarch64_classify_address): Support
33102 PC-relative load in SI modes and above only.
33104 2013-03-26 Xinyu Qi <xyqi@marvell.com>
33106 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33107 * config/arm/iwmmxt.md (WCGR0): Update.
33108 (WCGR1, WCGR2, WCGR3): Likewise.
33110 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
33112 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
33113 Use x64 and nox64 isa attributes.
33115 2013-03-26 Richard Biener <rguenther@suse.de>
33117 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
33118 alignment computations and rely on get_object_alignment_1
33119 for the !TYPE_P case.
33120 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
33122 2013-03-26 Walter Lee <walt@tilera.com>
33124 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
33125 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
33127 2013-03-25 Jeff Law <law@redhat.com>
33129 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
33130 check for INTEGRAL_TYPE_P that was missing due to checking in
33131 wrong version of prior patch.
33133 2013-03-25 Walter Lee <walt@tilera.com>
33135 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
33136 TILEGX_INSN_SHUFFLEBYTES1.
33137 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
33139 (tilegx_builtins): Ditto.
33140 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
33142 2013-03-25 Walter Lee <walt@tilera.com>
33144 * config/tilegx/tilegx.md (floatsisf2): New pattern.
33145 (floatunssisf2): New pattern.
33146 (floatsidf2): New pattern.
33147 (floatunssidf2): New pattern.
33149 2013-03-25 Walter Lee <walt@tilera.com>
33151 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
33152 tests for constraint J, K, N, P.
33154 2013-03-25 Walter Lee <walt@tilera.com>
33156 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
33157 Use indirect/pcrel encoding.
33158 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
33161 2013-03-25 Steve Ellcey <sellcey@mips.com>
33163 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
33164 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
33165 * config/mips/mips.c (mips_option_override): Set IMADD default.
33166 * config/mips/mips.h (PTF_AVOID_IMADD): New.
33167 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
33168 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
33169 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
33170 * doc/invoke.texi (-mimadd/-mno-imadd): New.
33172 2013-03-25 Jeff Law <law@redhat.com>
33174 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
33175 slightly to avoid creating and folding useless trees. Simplify
33176 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
33178 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
33180 * config/i386/i386.md (*zero_extendsidi2): Merge with
33181 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
33182 * config/i386/predicates.md (x86_64_zext_operand): Rename from
33183 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
33184 targets. Clarify comment.
33186 2013-03-25 Martin Jambor <mjambor@suse.cz>
33188 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
33189 pass-through jump functions differently.
33190 (ipa_read_jump_function): Likewise. Also use setter functions to set
33193 2013-03-25 Martin Jambor <mjambor@suse.cz>
33195 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
33196 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
33198 (ipa_get_indirect_edge_target): New function.
33199 (devirtualization_time_bonus): New parameter known_aggs, pass it to
33200 ipa_get_indirect_edge_target. Update all callers.
33201 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
33202 ipa_get_indirect_edge_target_1 instead of calling
33203 ipa_get_indirect_edge_target.
33204 (create_specialized_node): Pass aggvlas to
33205 ipcp_discover_new_direct_edges.
33207 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33209 * config/arm/arm.md (f_sels, f_seld): New types.
33210 (*cmov<mode>): New pattern.
33211 * config/arm/predicates.md (arm_vsel_comparison_operator): New
33214 2013-03-25 Kai Tietz <ktietz@redhat.com>
33216 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
33217 POSIX-printf for mingw-hosted builds.
33219 2013-03-25 Richard Biener <rguenther@suse.de>
33221 PR middle-end/56694
33222 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
33223 must-not-throw stmt location.
33225 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33227 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
33228 Emit load-acquire versions when acq is true.
33229 (arm_emit_store_exclusive): Add rel parameter.
33230 Emit store-release versions when rel is true.
33231 (arm_split_compare_and_swap): Use acquire-release instructions
33233 of barriers when appropriate.
33234 (arm_split_atomic_op): Likewise.
33235 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
33236 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
33237 (VUNSPEC_SLX): Likewise.
33238 (VUNSPEC_LDA): Likewise.
33239 (VUNSPEC_STL): Likewise.
33240 * config/arm/sync.md (atomic_load<mode>): New pattern.
33241 (atomic_store<mode>): Likewise.
33242 (arm_load_acquire_exclusive<mode>): Likewise.
33243 (arm_load_acquire_exclusivesi): Likewise.
33244 (arm_load_acquire_exclusivedi): Likewise.
33245 (arm_store_release_exclusive<mode>): Likewise.
33247 2013-03-25 Catherine Moore <clm@codesourcery.com>
33249 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
33250 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
33251 * config/mip/predicates.md (lwsp_swsp_operand,
33252 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
33253 sb16_operand, db4_operand, db7_operand, ib3_operand,
33254 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
33255 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
33256 andi16_operand): New predicates.
33257 * config/mips/mips.md (compression): New attribute.
33258 (enabled): New attribute.
33259 (length): Consider compression in computing length.
33260 (shift_compression): New code attribute.
33261 (*add<mode>3): New operands. Record compression.
33262 (sub<mode>3): Likewise.
33263 (one_cmpl<mode>2): Likewise.
33264 (*and<mode>3): Likewise.
33265 (*ior<mode>3): Likewise.
33266 (unnamed pattern for xor): Likewise.
33267 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
33268 (*<optab><mode>3): Likewise.
33269 (*mov<mode>_internal: Likewise.
33270 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
33271 (mips_unsigned_immediate_p): New.
33272 (umips_lwsp_swsp_address_p): New.
33273 (m16_based_address_p): New.
33274 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
33275 (mips_unsigned_immediate_p): New prototype.
33276 (lwsp_swsp_address_p): New prototype.
33277 (m16_based_address_p): New prototype.
33278 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
33279 (mips_signed_immediate_p): New function.
33280 (m16_based_address_p): New function.
33281 (lwsp_swsp_address_p): New function.
33282 (mips_print_operand_punctuation): Recognize short delay slot insns
33283 for microMIPS.add<mode>3"
33285 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33288 * config/arm/iterators.md (v_cmp_result): New mode attribute.
33289 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
33291 2013-03-25 Richard Biener <rguenther@suse.de>
33293 PR tree-optimization/56689
33294 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
33297 2013-03-25 Richard Biener <rguenther@suse.de>
33299 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
33301 (memory_references): Likewise.
33302 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
33303 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
33304 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
33305 (gather_mem_refs_in_loops): Fold into ...
33306 (analyze_memory_references): ... this. Move initialization
33307 to tree_ssa_lim_initialize.
33308 (fill_always_executed_in): Rename to ...
33309 (fill_always_executed_in_1): ... this.
33310 (fill_always_executed_in): Move contains_call computation to
33311 this new function from ...
33312 (tree_ssa_lim_initialize): ... here.
33313 (tree_ssa_lim): Call fill_always_executed_in.
33315 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33317 * postreload.c (reload_combine): Fix code detecting returns.
33319 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
33321 * function.c (emit_use_return_register_into_block): On cc0 targets,
33322 do not emit the sequence between cc0 setter and user.
33324 2013-03-25 Kai Tietz <ktietz@redhat.com>
33326 * config/i386/predicates.md (local_symbolic_operand): Interpret
33327 dll-imported symbols as none-local.
33329 2013-03-25 Richard Biener <rguenther@suse.de>
33331 * tree-ssa-loop-im.c (struct depend): Remove.
33332 (struct lim_aux_data): Make depends a vec of gimples.
33333 (free_lim_aux_data): Adjust.
33334 (add_dependency): Likewise.
33335 (set_level): Likewise.
33337 2013-03-25 Richard Biener <rguenther@suse.de>
33339 PR middle-end/56434
33340 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
33341 the pointer returned by calls with ECF_MALLOC set.
33343 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33345 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
33347 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
33349 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
33350 using MMXMODE mode iterator.
33351 (*move<mode>_internal): Merge with *movv2sf_internal and
33352 *movv2sf_internal_rex64 using MMXMODE mode iterator.
33354 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33356 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
33357 (record_last_mem_set_info): Likewise.
33359 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
33360 of XNEWVEC followed by memset.
33361 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
33363 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
33365 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33366 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
33367 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
33368 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
33369 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
33370 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
33371 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
33372 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
33373 BARRIER_P instead of GET_CODE.
33375 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33377 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
33378 inaccuracy in the probing code.
33380 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
33381 (ctrapdi4): Likewise.
33383 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33385 * calls.c (expand_call): Add missing guard to code handling return
33386 of non-BLKmode structures in MSB.
33387 * function.c (expand_function_end): Likewise.
33389 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
33391 * combine.c (try_combine): Adjust comment. Do not add the set of
33392 insn #0 if the destination indirectly is set or dies in insn #2.
33393 Tidy up code to distribute a new note.
33395 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33397 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
33398 also for alternatives 16 and 17.
33400 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
33402 * config/i386/sse.md (*mov<mode>_internal): Merge with
33403 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
33404 Emit insn template depending on type attribute. Use
33405 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
33406 movd instead of movq mnemonic for interunit moves. Rewrite mode
33407 attribute calculation. Remove unit attribute calculation.
33408 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
33409 Set prefix_data16 attribute for DImode ssemov types.
33410 Use Ym instead of y for SSE-MMX conversion alternatives.
33411 Reorder operand constraints.
33413 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
33415 * df.h (df_insn_delete): Adjust prototype.
33416 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
33417 and let it decide whether mark the basic block dirty.
33418 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
33419 * df-scan.c (df_insn_info_delete): New helper function, split
33420 off from df_insn_delete.
33421 (df_scan_free_bb_info): Use it.
33422 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
33424 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
33425 that the insn is actually an insn and it has a non-NULL basic block.
33426 Do not mark basic block dirty if only deleting a DEBUG_INSN.
33428 2013-03-22 Richard Biener <rguenther@suse.de>
33430 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
33432 (mem_ref_alloc): Do not allocate them.
33433 (refs_independent_p): Do not query or maintain a cache.
33435 2013-03-22 Richard Biener <rguenther@suse.de>
33437 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
33438 (gather_mem_refs_in_loops): Do not compute it.
33439 (analyze_memory_references): Do not allocate it.
33440 (tree_ssa_lim_finalize): Do not free it.
33441 (for_all_locs_in_loop): Do not query all_refs_in_loop.
33443 2013-03-22 Richard Biener <rguenther@suse.de>
33445 * is-a.h (as_a): Use gcc_checking_assert.
33447 2013-03-22 Ian Bolton <ian.bolton@arm.com>
33449 * config/aarch64/aarch64.c (aarch64_print_operand): New
33450 format specifier for printing a constant in hex.
33451 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
33452 format specifier for printing second operand.
33454 2013-03-22 Richard Biener <rguenther@suse.de>
33456 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
33458 (gather_mem_refs_in_loops): Perform store accumulation here.
33459 (create_vop_ref_mapping_loop): Remove.
33460 (create_vop_ref_mapping): Likewise.
33461 (analyze_memory_references): Initialize refs_stored_in_loop.
33462 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
33463 (record_indep_loop): Remove.
33464 (record_dep_loop): New function.
33465 (ref_indep_loop_p_1): Adjust to only walk over references
33466 in the loop, not its subloops.
33467 (ref_indep_loop_p): Rename to ...
33468 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
33469 maintaining a more fine-grained cache.
33470 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
33471 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
33473 2013-03-22 Richard Biener <rguenther@suse.de>
33475 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
33476 (struct mem_ref): Make accesses_in_loop a vec of a vec of
33477 aggregate mem_ref_loc.
33478 (free_mem_ref_locs): Inline into ...
33479 (memref_free): ... this and adjust.
33480 (mem_ref_alloc): Adjust.
33481 (mem_ref_locs_alloc): Remove.
33482 (record_mem_ref_loc): Adjust.
33483 (get_all_locs_in_loop): Rewrite into ...
33484 (for_all_locs_in_loop): ... this iterator.
33485 (rewrite_mem_ref_loc): New functor.
33486 (rewrite_mem_refs): Use for_all_locs_in_loop.
33487 (sm_set_flag_if_changed): New functor.
33488 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
33489 (ref_always_accessed): New functor.
33490 (ref_always_accessed_p): Use for_all_locs_in_loop.
33492 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33494 * tree-pass.h (PROP_gimple_lvec): New.
33495 * passes.c (dump_properties): Handle PROP_gimple_lvec.
33496 (init_optimization_passes): Move pass_lower_vector.
33497 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
33499 (pass_lower_vector): Provide PROP_gimple_lvec.
33500 (pass_lower_vector_ssa): Likewise.
33501 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
33503 2013-03-21 Mark Wielaard <mjw@redhat.com>
33505 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
33507 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
33509 * config/i386/i386.md (*movdi_internal): Disparage slightly
33510 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
33511 conversion alternatives.
33513 2013-03-21 Jakub Jelinek <jakub@redhat.com>
33515 PR middle-end/48087
33516 * diagnostic.def (DK_WERROR): New kind.
33517 * diagnostic.h (werrorcount): Define.
33518 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
33519 promoted to DK_ERROR, increment DK_WERROR counter instead of
33521 * toplev.c (toplev_main): Call print_ignored_options even if
33522 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
33523 even if just werrorcount is non-zero.
33526 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
33528 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
33529 (string_cst_pool_decl): New function.
33530 (optimize_one_addr_into_implicit_ptr): New function.
33531 (resolve_addr_in_expr): Optimize DWARF location expression
33532 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
33533 which doesn't live in memory, but has DW_AT_location or
33534 DW_AT_const_value, or refers to a string literal, into
33535 DW_OP_GNU_implicit_pointer.
33536 (optimize_location_into_implicit_ptr): New function.
33537 (resolve_addr): If removing DW_AT_location of a variable because
33538 it was DW_OP_addr of address of the variable, but the variable doesn't
33539 live in memory, try to emit const value attribute for the initializer.
33541 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33543 * tree.h (VECTOR_TYPE_P): New macro.
33544 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
33545 TYPE_MODE): Use it.
33546 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
33547 VEC_COND_EXPR cannot be lvalues.
33548 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
33550 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
33552 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
33553 Restrict the transformation to equal modes.
33555 2013-03-21 Richard Biener <rguenther@suse.de>
33557 PR tree-optimization/39326
33558 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
33559 (MEM_ANALYZABLE): Adjust.
33560 (record_mem_ref_loc): Move bitmap ops ...
33561 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
33562 unanalyzable refs, do not record locations for it.
33563 (analyze_memory_references): Allocate ref zero as shared
33565 (refs_independent_p): Do not test for unanalyzed mems here.
33566 (ref_indep_loop_p_1): Special-case disambiguation against
33567 the unanalyzed ref.
33568 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
33570 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
33572 * config/arm/arm-protos.h (tune_params): Add
33573 prefer_neon_for_64bits field.
33574 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
33575 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
33576 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
33577 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
33578 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
33579 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
33580 (arm_option_override): Handle -mneon-for-64bits new option.
33581 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
33582 (prefer_neon_for_64bits): Declare new variable.
33583 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
33584 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
33585 (arch_enabled): Handle new arch types. Remove support for onlya8
33587 (one_cmpldi2): Use new arch names.
33588 (zero_extend<mode>di2, extend<mode>di2): Ditto.
33589 * config/arm/arm.opt (mneon-for-64bits): Add option.
33590 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
33591 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
33592 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
33594 * doc/invoke.texi (-mneon-for-64bits): Document.
33596 2013-03-21 Richard Biener <rguenther@suse.de>
33598 PR tree-optimization/39326
33599 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
33600 (sort_bbs_in_loop_postorder_cmp): New function.
33601 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
33603 2013-03-21 Richard Biener <rguenther@suse.de>
33605 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
33606 (vect_insert_into_interleaving_chain): Likewise.
33607 (vect_drs_dependent_in_basic_block): Inline ...
33608 (vect_slp_analyze_data_ref_dependence): ... here. New function,
33610 (vect_analyze_data_ref_dependence): ... here. Simplify.
33611 (vect_check_interleaving): Simplify.
33612 (vect_analyze_data_ref_dependences): Likewise. Split out ...
33613 (vect_slp_analyze_data_ref_dependences): ... this new function.
33614 (dr_group_sort_cmp): New function.
33615 (vect_analyze_data_ref_accesses): Compute data-reference groups
33616 here instead of in vect_analyze_data_ref_dependence. Use
33617 a more efficient algorithm.
33618 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
33619 vect_slp_analyze_data_ref_dependences. Call
33620 vect_analyze_data_ref_accesses earlier.
33621 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
33622 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
33623 (vect_slp_analyze_data_ref_dependences): New prototype.
33625 2013-03-21 Richard Biener <rguenther@suse.de>
33627 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
33628 ref is stored in the loop.
33629 (find_refs_for_sm): Walk only over all stores.
33630 (store_motion_loop): Allocate from lim_bitmap_obstack.
33631 (store_motion): Likewise.
33633 2013-03-21 Richard Biener <rguenther@suse.de>
33635 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
33636 Update virtual SSA form.
33638 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33640 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
33641 * configure: Regenerate.
33642 * config.in: Regenerate.
33643 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
33644 if !HAVE_LD_EH_FRAME_CIEV3.
33646 2013-03-21 Richard Biener <rguenther@suse.de>
33648 * tree-cfg.c (verify_expr_no_block): New function.
33649 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
33650 nor DECL_VALUE_EXPR have locations with associated blocks.
33651 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
33652 (clear_unused_block_pointer): Remove code dealing with
33653 blocks in DECL_DEBUG_EXPR locations.
33655 2013-03-21 Richard Biener <rguenther@suse.de>
33657 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
33658 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
33659 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
33660 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
33661 instead of DECL_DEBUG_EXPR_IS_FROM.
33662 * gimplify.c (gimplify_modify_expr): Likewise.
33663 * tree-cfg.c (verify_expr_location_1): Likewise.
33664 * tree-complex.c (create_one_component_var): Likewise.
33665 * tree-sra.c (create_access_replacement): Likewise.
33666 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
33667 (clear_unused_block_pointer): Likewise.
33668 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
33669 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
33670 * var-tracking.c (var_debug_decl): Likewise.
33671 (track_expr_p): Likewise.
33672 * tree-inline.c (add_local_variables): Likewise. Set
33673 DECL_HAS_DEBUG_EXPR_P after copying it.
33674 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
33675 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
33677 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
33680 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
33681 * configure: Regenerate.
33682 * config.in: Regenerate.
33683 * config/i386/i386.md (*movdf_internal): Use
33684 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
33685 movd instead of movq mnemonic for interunit moves.
33686 (*movdi_internal): Ditto.
33688 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33690 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
33691 (abd<mode>_3): New pattern.
33692 (aba<mode>_3): New pattern.
33693 (fabd<mode>_3): New pattern.
33695 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33697 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
33698 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
33699 occurrence of REGISTER_PREFIX as its empty string.
33701 2013-03-20 Jeff Law <law@redhat.com>
33703 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
33704 addititional equivalences for equality comparisons between an SSA_NAME
33705 and a constant where the SSA_NAME was set from a widening conversion.
33707 2013-03-20 Walter Lee <walt@tilera.com>
33709 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
33711 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33713 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
33714 depending on type attribute.
33715 (*movti_internal): Ditto.
33716 (*movtf_internal): Ditto.
33717 (*movxf_internal): Ditto.
33718 (*movdf_internal): Ditto.
33719 (*movsf_internal): Ditto.
33721 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
33723 * config/i386/i386.md (*movti_internal): Set prefix attribute to
33724 maybe_vex for sselog1 and ssemov types.
33725 (*movdi_internal): Reorder operand constraints.
33726 (*movsi_internal): Ditto. Set prefix attribute to
33727 maybe_vex for sselog1 and ssemov types.
33728 (*movtf_internal): Set prefix attribute to maybe_vex
33729 for sselog1 and ssemov types.
33730 (*movdf_internal): Ditto. Set prefix_data16 attribute for
33731 DImode ssemov types. Reorder operand constraints.
33732 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
33733 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
33734 attribute for SImode ssemov types. Reorder operand constraints.
33736 2013-03-20 Martin Jambor <mjambor@suse.cz>
33738 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
33739 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
33741 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
33743 * config/rs6000/predicates.md (indexed_address, update_address_mem
33744 update_indexed_address_mem): New predicates.
33745 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
33746 attribute for load/store instructions.
33747 * config/rs6000/dfp.md (movsd_store): Likewise.
33748 (movsd_load): Likewise.
33749 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
33750 (unnamed HI->DI extend define_insn): Likewise.
33751 (unnamed SI->DI extend define_insn): Likewise.
33752 (unnamed QI->SI extend define_insn): Likewise.
33753 (unnamed QI->HI extend define_insn): Likewise.
33754 (unnamed HI->SI extend define_insn): Likewise.
33755 (unnamed HI->SI extend define_insn): Likewise.
33756 (extendsfdf2_fpr): Likewise.
33757 (movsi_internal1): Likewise.
33758 (movsi_internal1_single): Likewise.
33759 (movhi_internal): Likewise.
33760 (movqi_internal): Likewise.
33761 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
33762 attribute for load/store instructions.
33763 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
33765 (mov<mode>_softfloat): Likewise.
33766 (mov<mode>_hardfloat32): Likewise.
33767 (mov<mode>_hardfloat64): Likewise.
33768 (mov<mode>_softfloat64): Likewise.
33769 (movdi_internal32): Likewise.
33770 (movdi_internal64): Likewise.
33771 (probe_stack_<mode>): Likewise.
33773 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
33775 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
33776 floating point, and decimal floating point to reload iterator.
33778 * config/rs6000/constraints.md (wl constraint): New constraints to
33779 return FLOAT_REGS if certain options are used to reduce the number
33780 of separate patterns that exist in the file.
33781 (wx constraint): Likewise.
33782 (wz constraint): Likewise.
33784 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
33785 -mdebug=reg, print wg, wl, wx, and wz constraints.
33786 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
33787 Initialize the reload functions for 64-bit binary/decimal floating
33789 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
33790 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
33791 create the buffer on the stack to overcome not having a 32-bit
33793 (rs6000_emit_move): Likewise.
33794 (rs6000_secondary_memory_needed_rtx): Likewise.
33795 (rs6000_alloc_sdmode_stack_slot): Likewise.
33796 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
33797 via xxlxor, just like DFmode 0.0.
33799 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
33800 define as 1 if we are running on a power7 or newer.
33801 (enum r6000_reg_class_enum): Add new constraints.
33803 * config/rs6000/dfp.md (movsd): Delete, combine with binary
33804 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
33805 with other moves by using conditional constraits (wg). Use LFIWZX
33806 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
33807 (movsd splitter): Likewise.
33808 (movsd_hardfloat): Likewise.
33809 (movsd_softfloat): Likewise.
33811 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
33812 binary and decimal floating point moves.
33813 (fmove_ok): New attributes to combine binary and decimal floating
33814 point moves, and to combine power6x (mfpgpr) moves along normal
33816 (real_value_to_target): Likewise.
33817 (f32_lr): Likewise.
33818 (f32_lm): Likewise.
33819 (f32_li): Likewise.
33820 (f32_sr): Likewise.
33821 (f32_sm): Likewise.
33822 (f32_si): Likewise.
33823 (movsf): Combine binary and decimal floating point moves. Combine
33824 power6x (mfpgpr) moves with other moves by using conditional
33825 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
33826 (mov<mode> for SFmode/SDmode); Likewise.
33827 (SFmode/SDmode splitters): Likewise.
33828 (movsf_hardfloat): Likewise.
33829 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
33830 (movsf_softfloat): Likewise.
33831 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
33833 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
33834 wx and wz constraints.
33836 * config/rs6000/constraints.md (wg constraint): New constraint to
33837 return FLOAT_REGS if -mmfpgpr (power6x) was used.
33839 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
33842 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
33843 -mdebug=reg, print wg, wl, wx, and wz constraints.
33844 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
33845 Initialize the reload functions for 64-bit binary/decimal floating
33847 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
33848 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
33849 create the buffer on the stack to overcome not having a 32-bit
33851 (rs6000_emit_move): Likewise.
33852 (rs6000_secondary_memory_needed_rtx): Likewise.
33853 (rs6000_alloc_sdmode_stack_slot): Likewise.
33854 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
33855 via xxlxor, just like DFmode 0.0.
33857 * config/rs6000/dfp.md (movdd): Delete, combine with binary
33858 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
33859 with other moves by using conditional constraits (wg). Use LFIWZX
33860 and STFIWX for loading SDmode on power7.
33861 (movdd splitters): Likewise.
33862 (movdd_hardfloat32): Likewise.
33863 (movdd_softfloat32): Likewise.
33864 (movdd_hardfloat64_mfpgpr): Likewise.
33865 (movdd_hardfloat64): Likewise.
33866 (movdd_softfloat64): Likewise.
33868 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
33869 64-bit binary and decimal floating point moves.
33870 (FMOVE64X): Likewise.
33871 (movdf): Combine 64-bit binary and decimal floating point moves.
33872 Combine power6x (mfpgpr) moves with other moves by using
33873 conditional constraits (wg).
33874 (mov<mode> for DFmode/DDmode): Likewise.
33875 (DFmode/DDmode splitters): Likewise.
33876 (movdf_hardfloat32): Likewise.
33877 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
33878 (movdf_softfloat32): Likewise.
33879 (movdf_hardfloat64_mfpgpr): Likewise.
33880 (movdf_hardfloat64): Likewise.
33881 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
33882 (movdf_softfloat64): Likewise.
33883 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
33884 (reload_<mode>_load): Move to later in the file so they aren't in
33885 the middle of the floating point move insns.
33886 (reload_<mode>_store): Likewise.
33888 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
33891 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
33892 constraint if -mdebug=reg.
33893 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
33894 Enable using dd reload support if needed.
33896 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
33897 binary and decimal floating point moves in rs6000.md.
33898 (movtd_internal): Likewise.
33900 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
33901 decimal floating point moves.
33903 (movtf_internal): Likewise.
33904 (mov<mode>_internal, TDmode/TFmode): Likewise.
33905 (movtf_softfloat): Likewise.
33906 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
33908 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
33909 movdi_internal64, using wg constraint for move direct operations.
33910 (movdi_internal64): Likewise.
33912 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
33913 MODES_TIEABLE_P for selected modes. Print the numerical value of
33914 the various virtual registers. Use GPR/FPR first/last values,
33915 instead of hard coding the register numbers. Print which modes
33916 have reload functions registered.
33917 (rs6000_option_override_internal): If -mdebug=reg, trace the options
33918 settings before/after setting cpu, target and subtarget settings.
33919 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
33920 and for secondary reload failures in rs6000_secondary_reload_inner.
33921 (rs6000_secondary_reload_fail): Likewise.
33922 (rs6000_secondary_reload_inner): Likewise.
33924 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
33925 macros for first/last GPR and FPR registers.
33926 (LAST_GPR_REGNO): Likewise.
33927 (FIRST_FPR_REGNO): Likewise.
33928 (LAST_FPR_REGNO): Likewise.
33930 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
33931 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
33932 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
33933 (vcond<mode><mode>): Likewise.
33934 (vcondu<mode><mode>): Likewise.
33935 (vector_gtu<mode>): Likewise.
33936 (vector_gte<mode>): Likewise.
33937 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
33938 to prevent the compiler from converting DImode operations to TImode.
33939 (ior<mode>3): Likewise.
33940 (and<mode>3): Likewise.
33941 (one_cmpl<mode>2): Likewise.
33942 (nor<mode>3): Likewise.
33943 (andc<mode>3): Likewise.
33945 * config/rs6000/constraints.md (wt constraint): New constraint
33946 that returns VSX_REGS if TImode is allowed in VSX registers.
33948 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
33949 constant under VSX.
33951 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
33952 similar to TImode, but it is restricted to being in the GPRs.
33954 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
33955 TImode to occupy a single VSX register.
33957 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
33958 -mvsx-timode for power7/power8.
33959 (power7 cpu): Likewise.
33960 (power8 cpu): Likewise.
33962 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
33963 sure that TFmode/TDmode take up two registers if they are ever
33964 allowed in the upper VSX registers.
33965 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
33967 (rs6000_init_hard_regno_mode_ok): Likewise.
33968 (rs6000_debug_reg_global): Add debugging for PTImode and wt
33969 constraint. Print if LRA is turned on.
33970 (rs6000_option_override_internal): Give an error if -mvsx-timode
33971 and VSX is not enabled.
33972 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
33973 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
33974 to reg+offset addressing. Use PTImode when checking offset
33975 addresses for validity.
33976 (reg_offset_addressing_ok_p): Likewise.
33977 (rs6000_legitimate_offset_address_p): Likewise.
33978 (rs6000_legitimize_address): Likewise.
33979 (rs6000_legitimize_reload_address): Likewise.
33980 (rs6000_legitimate_address_p): Likewise.
33981 (rs6000_eliminate_indexed_memrefs): Likewise.
33982 (rs6000_emit_move): Likewise.
33983 (rs6000_secondary_reload): Likewise.
33984 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
33985 reloads to fpr registers to continue to use reg+offset addressing,
33986 but 64-bit reloads to altivec registers need reg+reg addressing.
33987 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
33988 it. Treat LO_SUM like a PLUS operation.
33989 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
33990 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
33991 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
33992 registers to share a register with a smaller sized type, since VSX
33993 puts scalars in the upper 64-bits.
33994 (print_operand): Add support for PTImode.
33995 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
33996 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
33997 registers, but don't have arithmetic support.
33998 (rs6000_memory_move_cost): Add test for VSX.
33999 (rs6000_opt_masks): Add -mvsx-timode.
34001 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
34004 (VSr): Use wt constraint for TImode.
34005 (VSv): Drop TImode support.
34006 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
34007 (vsx_movti_64bit): Likewise.
34008 (vsx_movti_32bit): Likewise.
34009 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
34010 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
34011 one '?' on the appropriate output constraint. Do not allow TImode
34012 logical operations on 32-bit systems.
34013 (vsx_ior<mode>3): Likewise.
34014 (vsx_xor<mode>3): Likewise.
34015 (vsx_one_cmpl<mode>2): Likewise.
34016 (vsx_nor<mode>3): Likewise.
34017 (vsx_andc<mode>3): Likewise.
34018 (vsx_concat_<mode>): Likewise.
34019 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
34021 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
34022 OPTION_MASK_VSX_TIMODE.
34023 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
34024 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
34026 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
34027 (TI2 iterator): New iterator for TImode, PTImode.
34028 (wd mode attribute): Add values for vector types.
34029 (movti_string): Replace TI move operations with operations for TImode
34030 and PTImode. Add support for TImode being allowed in VSX registers.
34031 (mov<mode>_string, TImode/PTImode): Likewise.
34032 (movti_ppc64): Likewise.
34033 (mov<mode>_ppc64, TImode/PTImode): Likewise.
34034 (TI mode splitters): Likewise.
34036 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
34039 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
34041 PR tree-optimization/56355
34042 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
34043 Also handle integers with undefined overflow.
34045 2013-03-20 Catherine Moore <clm@codesourcery.com>
34046 Maciej W. Rozycki <macro@codesourcery.com>
34047 Tom de Vries <tom@codesourcery.com>
34048 Nathan Sidwell <nathan@codesourcery.com>
34049 Iain Sandoe <iain@codesourcery.com>
34050 Nathan Froyd <froydnj@codesourcery.com>
34051 Chao-ying Fu <fu@mips.com>
34053 * doc/extend.texi: (micromips, nomicromips, nocompression):
34054 Document new function attributes.
34055 * doc/invoke.texi (minterlink-compressed, mmicromips,
34056 m14k, m14ke, m14kec): Document new options.
34057 (minterlink-mips16): Update documentation.
34058 * doc/md.texi (ZC, ZD): Document new constraints.
34059 * configure.ac (gcc_cv_as_micromips): Check if linker
34060 supports the .set micromips directive.
34061 * configure: Regenerate.
34062 * config.in: Regenerate.
34063 * config/mips/mips-tables.opt: Regenerate.
34064 * config/mips/micromips.md: New file.
34065 * constraints.md (ZC, ZD): New constraints.
34066 * config/mips/predicates.md (movep_src_register): New predicate.
34067 (movep_src_operand): New predicate.
34068 (non_volatile_mem_operand): New predicate.
34069 * config/mips/mips.md (multimem): New type.
34070 (length): Differentiate between 17-bit and 18-bit branch offsets.
34071 (MOVEP1, MOVEP2): New mode iterator.
34072 (mov_<load>l): Use ZC constraint.
34073 (mov_<load>r): Likewise.
34074 (mov_<store>l): Likewise.
34075 (mov_<store>r): Likewise.
34076 (*branch_equality<mode>_inverted): Add microMIPS support.
34077 (*branch_equality<mode>): Likewise.
34078 (*jump_absolute): Likewise.
34079 (indirect_jump_<mode>): Likewise.
34080 (tablejump_<mode>): Likewise.
34081 (<optab>_internal): Likewise.
34082 (sibcall_internal): Likewise.
34083 (sibcall_value_internal): Likewise.
34084 (prefetch): Use constraint ZD.
34085 * config/mips/mips.opt (minterlink-compressed): New option.
34086 (minterlink-mips16): Now an alias for minterlink-compressed.
34087 (mmicromips): New option.
34088 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34089 (compare_and_swap_12): Likewise.
34090 (sync_add<mode>): Likewise.
34091 (sync_<optab>_12): Likewise.
34092 (sync_old_<optab>_12): Likewise.
34093 (sync_new_<optab>_12): Likewise.
34094 (sync_nand_12): Likewise.
34095 (sync_old_nand_12): Likewise.
34096 (sync_new_nand_12): Likewise.
34097 (sync_sub<mode>): Likewise.
34098 (sync_old_add<mode>): Likewise.
34099 (sync_old_sub<mode>): Likewise.
34100 (sync_new_add<mode>): Likewise.
34101 (sync_new_sub<mode>): Likewise.
34102 (sync_<optab><mode>): Likewise.
34103 (sync_old_<optab><mode>): Likewise.
34104 (sync_new_<optab><mode>): Likewise.
34105 (sync_nand<mode>): Likewise.
34106 (sync_old_nand<mode>): Likewise.
34107 (sync_new_nand<mode>): Likewise.
34108 (sync_lock_test_and_set<mode>): Likewise.
34109 (test_and_set_12): Likewise.
34110 (atomic_compare_and_swap<mode>): Likewise.
34111 (atomic_exchange<mode>_llsc): Likewise.
34112 (atomic_fetch_add<mode>_llsc): Likewise.
34113 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34114 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34115 (umips_save_restore_pattern_p): Likewise.
34116 (umips_load_store_pair_p): Likewise.
34117 (umips_output_load_store_pair): Likewise.
34118 (umips_movep_target_p): Likewise.
34119 (umips_12bit_offset_address_p): Likewise.
34120 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34121 (mips_base_mips16): Rename this...
34122 (mips_base_compression_flags): ...to this. Update all uses.
34123 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34124 (mips_mips16_decl_p): Delete.
34125 (mips_nomips16_decl_p): Delete.
34126 (mips_get_compress_on_flags): New function.
34127 (mips_get_compress_off_flags): New function.
34128 (mips_get_compress_mode): New function.
34129 (mips_get_compress_on_name): New function.
34130 (mips_get_compress_off_name): New function.
34131 (mips_insert_attributes): Support multiple compression types.
34132 (mips_merge_decl_attributes): Likewise.
34133 (umips_12bit_offset_address_p): New function.
34134 (mips_start_function_definition): Emit .set micromips directive.
34135 (mips_call_may_need_jalx_p): New function.
34136 (mips_function_ok_for_sibcall): Add microMIPS support.
34137 (mips_print_operand_punctuation): Support short delay slots and
34139 (umips_swm_mask, umips_swm_encoding): New.
34140 (umips_build_save_restore): New function.
34141 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34142 (was_mips16_p): Remove.
34143 (old_compression_mode): New.
34144 (mips_set_compression_mode): New function.
34145 (mips_set_current_function): Add microMIPS support.
34146 (mips_option_override): Likewise.
34147 (umips_save_restore_pattern_p): New function.
34148 (umips_output_save_restore): New function.
34149 (umips_load_store_pair_p_1): New function.
34150 (umips_load_store_pair_p): New function.
34151 (umips_output_load_store_pair_1): New function.
34152 (umips_output_load_store_pair): New function.
34153 (umips_movep_target_p) New function.
34154 (mips_prepare_pch_save): Add microMIPS support.
34155 * config/mips/mips.h (TARGET_COMPRESSION): New.
34156 (TARGET_CPU_CPP_BUILTINS): Update macro
34157 to use new compression flags and to support microMIPS.
34158 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34159 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34160 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34161 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34162 (ASM_SPEC): Support mmicromips and mno-micromips.
34163 (M16STORE_REG_P): New macro.
34164 (MIPS_CALL): Support TARGET_MICROMIPS.
34165 (MICROMIPS_J): New macro.
34166 (mips_base_mips16): Rename this...
34167 (mips_base_compression_flags): ...to this.
34168 (UMIPS_12BIT_OFFSET_P): New macro.
34169 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34170 (MULTILIB_DIRNAMES): Likewise.
34171 2013-03-20 Richard Biener <rguenther@suse.de>
34173 PR tree-optimization/56661
34174 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
34175 the result does not have to be distinct.
34177 2013-03-20 Richard Biener <rguenther@suse.de>
34179 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
34182 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34183 Steven Bosscher <steven@gcc.gnu.org>
34185 PR rtl-optimization/56605
34186 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
34188 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34191 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
34192 that require movd instead of movq.
34194 2013-03-20 Richard Biener <rguenther@suse.de>
34196 * tree-ssa-structalias.c (struct variable_info): Add pointer
34197 to the first field of an aggregate with sub-vars. Make
34198 this and the pointer to the next subfield its ID.
34199 (vi_next): New function.
34200 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
34201 storedanything_id, integer_id): Increment by one.
34202 (new_var_info, get_call_vi, lookup_call_clobber_vi,
34203 get_call_clobber_vi): Adjust.
34204 (solution_set_expand): Simplify and speedup.
34205 (solution_set_add): Inline into ...
34206 (set_union_with_increment): ... this. Adjust accordingly.
34207 (do_sd_constraint): Likewise.
34208 (do_ds_constraint): Likewise.
34209 (do_complex_constraint): Simplify.
34210 (build_pred_graph): Adjust.
34211 (solve_graph): Likewise. Simplify and speedup.
34212 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
34213 get_constraint_for_component_ref, get_constraint_for_1,
34214 first_vi_for_offset, first_or_preceding_vi_for_offset,
34215 create_function_info_for, create_variable_info_for_1,
34216 create_variable_info_for, intra_create_variable_infos): Adjust.
34217 (init_base_vars): Push NULL for ID zero.
34218 (compute_points_to_sets): Adjust.
34220 2013-03-20 Richard Biener <rguenther@suse.de>
34222 * cfgloop.c (verify_loop_structure): Streamline and avoid
34223 ICEing on corrupt loop tree.
34224 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
34227 2013-03-20 Richard Biener <rguenther@suse.de>
34229 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
34230 check whether an SSA update is needed.
34232 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
34234 * config/mips/constraints.md (T): Rename to...
34238 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
34239 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
34241 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34243 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
34244 (*subsi3_carryin_uxtw): Likewise.
34246 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34248 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
34249 (*rorsi3_insn_uxtw): Likewise.
34251 2013-03-19 Ian Bolton <ian.bolton@arm.com>
34253 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
34254 (*extrsi5_insn_uxtw): Likewise.
34256 2013-03-19 Richard Biener <rguenther@suse.de>
34258 PR tree-optimization/56273
34259 * passes.c (init_optimization_passes): Move second VRP after DOM.
34261 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
34263 * config/i386/i386.md (*movti_internal): Merge from
34264 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
34265 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
34266 nox64 isa attributes.
34268 2013-03-18 Richard Biener <rguenther@suse.de>
34270 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
34272 (merge_node_constraints): Likewise.
34273 (build_succ_graph): Likewise.
34274 (valid_graph_edge): Inline into single caller.
34275 (unify_nodes): Likewise. Use bitmap_set_bit return value
34277 (scc_visit): Fix formatting and variable use.
34278 (do_sd_constraint): Use gcc_checking_assert.
34279 (do_ds_constraint): Likewise.
34280 (do_complex_constraint): Likewise.
34281 (condense_visit): Likewise. Cleanup.
34282 (dump_pred_graph): New function.
34283 (perform_var_substitution): Dump the pred-graph before
34284 variable substitution.
34285 (find_equivalent_node): Use gcc_checking_assert.
34286 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
34288 2013-03-18 Richard Biener <rguenther@suse.de>
34290 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34291 Remove cond_expr_stmt_list argument and do not gimplify the
34293 (vect_loop_versioning): Adjust.
34294 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
34295 Cleanup to use less temporaries.
34296 (vect_create_data_ref_ptr): Cleanup.
34298 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34300 PR tree-optimization/56635
34301 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
34302 require types_compatible_p types.
34304 2013-03-18 Nick Clifton <nickc@redhat.com>
34306 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
34307 spurious backslash.
34309 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
34310 Add missing line to comment describing function.
34312 2013-03-18 Richard Biener <rguenther@suse.de>
34314 PR tree-optimization/56210
34315 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34316 Handle string / character search functions.
34317 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
34319 2013-03-18 Richard Biener <rguenther@suse.de>
34321 PR middle-end/56483
34322 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
34323 and implement properly.
34324 * gimple.h (gimple_cond_single_var_p): Remove.
34326 2013-03-18 Richard Biener <rguenther@suse.de>
34328 * tree-data-ref.h (find_data_references_in_loop): Declare.
34329 * tree-data-ref.c (get_references_in_stmt): Use a stack
34330 vector pre-allocated in the callers.
34331 (find_data_references_in_stmt): Adjust.
34332 (graphite_find_data_references_in_stmt): Likewise.
34333 (create_rdg_vertices): Likewise.
34334 (find_data_references_in_loop): Export.
34335 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
34336 Compute dependences here...
34337 (vect_analyze_data_refs): ...not here. When we encounter
34338 a non-vectorizable data reference in basic-block vectorization
34339 truncate the data reference vector. Do not bother to
34340 fixup data-dependence information for gather loads.
34341 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
34342 of data references, as reported.
34344 2013-03-18 Richard Biener <rguenther@suse.de>
34346 PR tree-optimization/3713
34347 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
34348 has_constants and expr.
34349 (stmt_has_constants): Properly valueize SSA names when deciding
34350 whether the stmt has constants.
34352 2013-03-18 Richard Biener <rguenther@suse.de>
34354 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
34355 whole function when there is nothing to do.
34356 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
34357 * tree-vectorizer.c (vectorize_loops): Update virtual and
34358 loop-closed SSA once.
34359 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
34361 2013-03-18 Richard Biener <rguenther@suse.de>
34363 PR middle-end/56113
34364 * domwalk.c (bb_postorder): New global static.
34365 (cmp_bb_postorder): New function.
34366 (walk_dominator_tree): Replace scheme imposing an order for
34367 visiting dominator sons by one sorting them at the time they
34368 are pushed on the stack.
34370 2013-03-18 Richard Biener <rguenther@suse.de>
34372 PR tree-optimization/39326
34373 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
34374 (struct mem_ref): Replace mem member with ao_ref typed member.
34375 (MEM_ANALYZABLE): Adjust.
34376 (memref_eq): Likewise.
34377 (mem_ref_alloc): Likewise.
34378 (gather_mem_refs_stmt): Likewise.
34379 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
34380 (execute_sm_if_changed_flag_set): Adjust.
34381 (execute_sm): Likewise.
34382 (ref_always_accessed_p): Likewise.
34383 (refs_independent_p): Likewise.
34384 (can_sm_ref_p): Likewise.
34386 2013-03-18 Jakub Jelinek <jakub@redhat.com>
34389 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
34390 return 1 even for !unsignedp.
34392 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34394 * config/i386/i386.md (isa): Add x64 and nox64.
34395 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
34396 (*pushtf): Enable *roF alternative for x64 isa only.
34397 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
34398 mode attribute of integer alternatives to DImode for TARGET_64BIT.
34399 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
34400 (*movtf_internal): Merge from *movtf_internal_rex64 and
34401 *movtf_internal_sse. Use x64 and nox64 isa attributes.
34402 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
34403 nox64 isa attributes.
34404 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
34405 nox64 isa attributes.
34406 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
34408 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
34410 * config/alpha/alpha.c (TARGET_LRA_P): New define.
34412 2013-03-17 Jakub Jelinek <jakub@redhat.com>
34415 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
34416 class names. Remove trailing comma after "ALL_REGS".
34418 2013-03-16 Jan Hubicka <jh@suse.cz>
34420 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
34421 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
34422 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
34423 of cgraph_get_create_node.
34424 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
34426 2013-03-16 Jason Merrill <jason@redhat.com>
34429 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
34430 with DW_AT_default_value.
34432 2013-03-16 Jakub Jelinek <jakub@redhat.com>
34434 * BASE-VER: Set to 4.9.0.
34436 2013-03-14 Andi Kleen <ak@linux.intel.com>
34439 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
34440 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
34441 Document _x* TSX intrinsics.
34443 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
34444 David Holsgrove <david.holsgrove@xilinx.com>
34446 * configure.ac: Add MicroBlaze TLS support detection.
34447 * configure: Regenerate.
34448 * config/microblaze/microblaze-protos.h
34449 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
34450 symbol_mentioned_p, label_mentioned_p): Add prototypes.
34451 * config/microblaze/microblaze.c (microblaze_address_type): Add
34452 ADDRESS_TLS and tls_reloc address types.
34453 (microblaze_address_info): Add tls_reloc.
34454 (TARGET_HAVE_TLS): Define.
34455 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
34456 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
34457 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
34458 load_tls_operand, microblaze_call_tls_get_addr,
34459 microblaze_legitimize_tls_address): New functions.
34460 (microblaze_classify_unspec): Handle UNSPEC_TLS.
34461 (get_base_reg): Use microblaze_tls_symbol_p.
34462 (microblaze_classify_address): Handle TLS.
34463 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
34464 label_mentioned_p and microblaze_tls_referenced_p.
34465 (microblaze_legitimize_address): Handle TLS.
34466 (microblaze_address_insns): Handle ADDRESS_TLS.
34467 (pic_address_needs_scratch): Handle TLS.
34468 (print_operand_address): Handle TLS.
34469 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
34470 (microblaze_expand_move): Handle TLS.
34471 (microblaze_legitimate_constant_p): Check
34472 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
34473 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
34474 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
34475 (PIC_OFFSET_TABLE_REGNUM): Set.
34476 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
34477 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
34478 (addsi3, movsi_internal2, movdf_internal): Update constraints
34479 * config/microblaze/predicates.md (arith_plus_operand): Define
34480 (move_operand): Redefine as move_src_operand,
34481 check microblaze_tls_referenced_p.
34483 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34485 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
34486 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
34488 2013-03-14 Ian Bolton <ian.bolton@arm.com>
34490 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
34493 2013-03-14 Jakub Jelinek <jakub@redhat.com>
34495 PR tree-optimization/53265
34496 * common.opt (Waggressive-loop-optimizations): New option.
34497 * tree-ssa-loop-niter.c: Include tree-pass.h.
34498 (do_warn_aggressive_loop_optimizations): New function.
34499 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
34500 if number_of_latch_executions returned constant.
34501 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
34502 early. If number_of_latch_executions returned constant, set
34503 nb_iterations_upper_bound back to it.
34504 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
34506 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
34507 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
34509 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
34510 (MULTILIB_OSDIRNAMES): Set.
34511 * genmultilib: If defaultosdirname doesn't start with :: , set
34512 defaultosdirname2 instead, clear it and emit two . multilib_raw
34513 entries instead of just one.
34515 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
34517 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34518 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
34519 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
34520 (SUBTARGET_OVERRIDE_OPTIONS): New.
34522 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
34525 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
34526 (musermode): Convert to Var(TARGET_USERMODE).
34527 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
34528 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
34529 * config/sh/sh.c (sh_option_override): Use
34530 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
34531 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
34533 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
34535 (udivsi3_i4_single, divsi3_i4_single): Use
34536 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
34538 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
34540 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
34543 2013-03-13 Richard Biener <rguenther@suse.de>
34545 PR tree-optimization/56608
34546 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
34547 calls when vectorizing basic-blocks.
34549 2013-03-13 Jakub Jelinek <jakub@redhat.com>
34552 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
34555 2013-03-12 Jakub Jelinek <jakub@redhat.com>
34557 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
34559 2013-03-11 Jan Hubicka <jh@suse.cz>
34562 * lto-streamer-out.c (output_symbol_p): Skip references from
34563 constructors of external variables.
34565 2013-03-11 Jan Hubicka <jh@suse.cz>
34567 PR middle-end/56571
34568 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
34570 * emit-rtl.c (verify_rtx_sharing): Likewise.
34571 (copy_insn_1): Likewise.
34572 * rtl.c (copy_rtx): Likewise.
34574 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
34577 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
34578 output_operand_lossage message.
34580 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
34583 * arm.c (shift_op): Validate RTL pattern on the fly.
34584 (arm_print_operand, case 'S'): Don't use shift_operator to validate
34587 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34590 * config/pa/pa.md (call_value): Check for calls to powf and direct to
34591 new call patterns that clobber %fr12.
34592 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
34593 split and postreload patterns.
34594 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
34595 registers %fr12 and %fr12R as call used.
34597 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
34599 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
34600 (canon_address, record_store, replace_read, check_mem_read_rtx,
34601 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
34602 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
34603 rest_of_handle_dse): Likewise.
34605 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
34607 PR middle-end/56524
34608 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
34610 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
34611 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
34612 (save_optabs_if_changed): Replace with...
34613 (init_tree_optimization_optabs): ...this.
34614 * optabs.c (save_optabs_if_changed): Rename to...
34615 (init_tree_optimization_optabs): ...this. Take the optimization node
34616 as argument. Do nothing if the base optabs are already correct.
34617 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
34618 to recompute optabs.
34619 * function.h (function): Remove optabs field.
34620 * function.c (invoke_set_current_function_hook): Call
34621 init_tree_optimization_optabs. Use the result to initialize
34624 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
34626 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
34627 if GTMA_HAS_NO_INSTRUMENTATION.
34628 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
34629 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
34630 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
34631 * gimple-pretty-print.c (dump_gimple_transaction): Handle
34632 GTMA_HAS_NO_INSTRUMENTATION.
34634 2013-03-08 Jakub Jelinek <jakub@redhat.com>
34636 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
34639 2013-03-08 Marek Polacek <polacek@redhat.com>
34640 Jakub Jelinek <jakub@redhat.com>
34642 PR tree-optimization/56478
34643 * predict.c (is_comparison_with_loop_invariant_p): Change the
34644 type of loop_step to tree.
34645 (predict_loops): Adjust.
34646 (predict_iv_comparison): Perform the computations on double_ints.
34648 2013-03-08 Richard Biener <rguenther@suse.de>
34650 PR tree-optimization/56570
34651 * tree-cfg.c (verify_expr_location_1): Verify locations for
34653 * tree-sra.c (create_access_replacement): Strip locations
34654 from DECL_DEBUG_EXPRs.
34656 2013-03-08 Richard Biener <rguenther@suse.de>
34658 * tree-inline.c (expand_call_inline): Do not associate
34659 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
34660 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
34662 2013-03-08 Richard Biener <rguenther@suse.de>
34664 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
34665 or block changes with -Og. Fix for location / block encoding
34666 changes and PHI arguments with locations.
34668 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
34670 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
34672 (struct output_info): Likewise.
34673 (register_overhead): Remove bad gcc_assert.
34674 (bitmap_find_bit): If there is only a single bitmap element, do not
34675 count a miss as a search.
34676 (print_statistics): Update for counter type changes.
34677 (dump_bitmap_statistics): Likewise. Print headers such that they
34678 are properly lined up with the printed counters.
34680 2013-03-07 Jakub Jelinek <jakub@redhat.com>
34682 PR tree-optimization/56559
34683 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
34684 check that it has only a single use.
34686 2013-03-07 Richard Biener <rguenther@suse.de>
34688 * doc/invoke.texi (fwhole-program): Discourage use in combination
34691 2013-03-06 Jakub Jelinek <jakub@redhat.com>
34693 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
34695 PR tree-optimization/56539
34696 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
34697 instead of GSI_CONTINUE_LINKING as last argument to
34698 force_gimple_operand_gsi. Adjust function comment.
34700 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
34703 PR middle-end/56548
34704 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
34705 promoted mode, convert the result back to the original mode.
34707 2013-03-06 Richard Biener <rguenther@suse.de>
34709 PR middle-end/56294
34710 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
34711 (insert_updated_phi_nodes_compare_uids): New function.
34712 (update_ssa): Sort symbols_to_rename after UID before
34713 traversing it to insert PHI nodes.
34715 2013-03-06 Richard Biener <rguenther@suse.de>
34717 PR middle-end/50494
34718 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
34719 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
34722 2013-02-13 Richard Biener <rguenther@suse.de>
34725 * varasm.c (output_constant_def_1): Get the decl representing
34726 the constant as argument.
34727 (output_constant_def): Wrap output_constant_def_1.
34728 (make_decl_rtl): Use output_constant_def_1 with the decl
34729 representing the constant.
34730 (build_constant_desc): Optionally re-use a decl already
34731 representing the constant.
34732 (tree_output_constant_def): Adjust.
34734 2013-03-06 Joey Ye <joey.ye@arm.com>
34737 * gcc.c (convert_white_space): New function.
34738 (main): Handles white space in function name.
34740 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
34743 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
34744 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
34745 to SH_DIV_CALL_TABLE for TARGET_SH2.
34746 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
34748 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
34749 call-table options.
34751 2013-03-05 Sterling Augustine <saugustine@google.com>
34752 Cary Coutant <ccoutant@google.com>
34755 * dwarf2out.c (resolve_addr): Don't call
34756 remove_loc_list_addr_table_entries a second time for the same
34759 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34762 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
34763 (avoid_complex_debug_insns): New function.
34764 (expand_debug_locations): Call it.
34766 PR rtl-optimization/56484
34767 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
34768 lifetimes of hard registers on small register class machines.
34770 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
34772 * config/microblaze/microblaze-protos.h: Rename
34773 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
34774 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
34776 (microblaze_fast_interrupt_function_p): New function.
34777 (microblaze_is_interrupt_handler): Rename to
34778 microblaze_is_interrupt_variant and add fast_interrupt check.
34779 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
34780 (save_restore_insns): Likewise.
34781 (compute_frame_size): Likewise.
34782 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
34783 (microblaze_globalize_label): Likewise.
34784 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
34785 * config/microblaze/microblaze.md: Use wrapper
34786 microblaze_is_interrupt_variant.
34788 2013-03-05 Kai Tietz <ktietz@redhat.com>
34790 * sdbout.c (sdbout_one_type): Switch to current function's section
34791 supporting cold/hot.
34793 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
34795 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
34798 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34800 PR middle-end/56461
34801 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
34802 if VALGRIND_GET_VBITS is defined, temporarily make object
34803 memory all defined, and restore previous valgrind addressability
34804 and definability afterwards. Free this_object at the end.
34806 PR middle-end/56461
34807 * lra.c (lra): Call lra_clear_live_ranges if live_p,
34808 right before calling lra_create_live_ranges, also call it
34809 when clearing live_p. Only call lra_clear_live_ranges
34810 at the end if live_p.
34812 PR middle-end/56461
34813 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
34815 2013-03-05 Richard Biener <rguenther@suse.de>
34817 PR tree-optimization/56521
34818 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
34821 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
34824 * except.h (remove_unreachable_eh_regions): New prototype.
34825 * except.c (remove_eh_handler_splicer): New function, split out
34826 of remove_eh_handler.
34827 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
34828 warning about running it on many EH regions one at a time.
34829 (remove_unreachable_eh_regions_worker): New function, walk the
34830 EH tree in depth-first order and remove non-marked regions.
34831 (remove_unreachable_eh_regions): New function.
34832 * tree-eh.c (mark_reachable_handlers): New function, split out
34833 from remove_unreachable_handlers.
34834 (remove_unreachable_handlers): Use mark_reachable_handlers and
34835 remove_unreachable_eh_regions.
34836 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
34837 and remove_unreachable_eh_regions.
34839 2013-03-05 Richard Biener <rguenther@suse.de>
34841 PR middle-end/56525
34842 * loop-init.c (fix_loop_structure): Remove loops in two stages,
34843 not freeing them until the end.
34845 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34847 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
34849 2013-03-05 Richard Biener <rguenther@suse.de>
34851 PR tree-optimization/56270
34852 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
34853 of loads after scheduling an SLP instance.
34855 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34857 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
34859 (check_gcc_parallelize): Run guality.exp as a separate job from
34860 vect.exp with unsorted.exp and $(dg_target_exps) separately from
34861 struct-layout-1.exp with stackalign.exp.
34863 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
34865 PR middle-end/56461
34866 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
34867 load_index sbitmap even if some bit in it isn't set.
34869 PR middle-end/56461
34870 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
34871 (discover_iteration_bound_by_body_walk): Change queues to
34872 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
34873 spelling in comment. Call safe_push on queues[bound_index] directly.
34874 Release queues[queue_index] in every iteration unconditionally.
34875 Release bounds vector.
34877 PR middle-end/56461
34878 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
34879 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
34880 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
34883 2013-03-05 Richard Biener <rguenther@suse.de>
34886 * tree-inline.c (remap_blocks_to_null): New function.
34887 (expand_call_inline): When expanding a call stmt without
34888 an associated block inline remap all callee blocks to NULL.
34890 2013-03-05 Jakub Jelinek <jakub@redhat.com>
34892 PR rtl-optimization/56494
34893 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
34894 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
34895 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
34897 PR middle-end/56461
34898 * sel-sched-ir.c (free_sched_pools): Release
34899 succs_info_pool.stack[succs_info_pool.max_top] vectors too
34900 if succs_info_pool.max_top isn't -1.
34903 * opts.c (opts_obstack, opts_concat): Moved to...
34904 * opts-common.c (opts_obstack, opts_concat): ... here.
34906 2013-03-04 Jakub Jelinek <jakub@redhat.com>
34908 PR middle-end/56461
34909 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
34911 2013-03-04 Martin Jambor <mjambor@suse.cz>
34913 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
34914 all appropriate places.
34916 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
34918 PR tree-optimization/56424
34919 * ipa-split.c (split_function): Do not set the RSO flag if result is
34920 not by reference and its type is a register type.
34922 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
34924 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
34925 (microblaze_legitimate_pic_operand): Likewise
34926 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
34927 new function microblaze_legitimate_pic_operand
34928 * config/microblaze/microblaze-protos.h
34929 (microblaze_legitimate_pic_operand): Declare.
34931 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34933 * config/microblaze/predicates.md (call_insn_simple_operand):
34934 New predicate for supported rtx code types.
34935 * config/microblaze/microblaze.md (call_internal1): Use
34936 call_insn_simple_operand predicate.
34938 2013-03-04 Jakub Jelinek <jakub@redhat.com>
34940 PR middle-end/56461
34941 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
34942 partitions.ordered_remove.
34944 PR middle-end/56461
34945 * tree-vect-stmts.c (vectorizable_conversion): Don't call
34946 vec_oprnds0.create (1) for modifier == NONE.
34948 PR middle-end/56461
34949 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
34950 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
34951 vec_oprnds1 right before pushing anything to it for
34954 PR middle-end/56461
34955 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
34956 set nbbs to 0 instead of having separate code path.
34957 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
34958 instead of false as last argument if returning NULL.
34960 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
34962 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
34963 the attribute is now called "target" instead of "option".
34964 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
34965 * doc/tm.texi.in (Target Attributes): Likewise document the correct
34966 attribute/pragma name for TARGET_OPTION_VALID_P and
34967 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
34968 * doc/tm.texi: Regenerated.
34970 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
34972 * config/microblaze/microblaze.c:
34973 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
34974 * config/microblaze/microblaze.h: Add -mxl-reorder to
34976 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
34977 instructions emitted if TARGET_REORDER.
34978 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
34979 or 0 for -m/-mno case, but initialises as 2 to detect default use case
34982 2013-03-01 Xinliang David Li <davidxl@google.com>
34984 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
34987 2013-03-01 Jakub Jelinek <jakub@redhat.com>
34989 PR middle-end/56461
34990 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
34991 vector even when returning true. Fix up function comment formatting.
34993 PR middle-end/56461
34994 * ira-build.c (ira_loop_nodes_count): New variable.
34995 (create_loop_tree_nodes): Initialize it.
34996 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
34998 PR middle-end/56461
34999 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
35000 method on dr_chain and result_chain.
35001 * tree-vect-stmts.c (vectorizable_store): Only call
35002 result_chain.create if j == 0.
35004 PR middle-end/56461
35005 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
35006 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
35007 before overwriting it.
35009 2013-03-01 Tobias Burnus <burnus@net-b.de>
35011 * doc/extended.texi (C Extensions): Change order in @menu
35013 (Other MIPS Built-in Functions): Move last MIPS entry before
35014 "picoChip Built-in Functions".
35015 (SH Built-in Functions): Move after RX Built-in Functions.
35016 * doc/gcc.texi (Introduction): Change order in @menu
35018 * doc/md.texi (Constraints): Ditto.
35019 * gty.texi (Type Information): Ditto.
35020 (User-provided marking routines for template types): Make
35022 * doc/invoke.texi (AArch64 Options): Move before
35023 "Adapteva Epiphany Options".
35025 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
35026 Jakub Jelinek <jakub@redhat.com>
35029 * asan.c (gate_asan): Lookup no_sanitize_address instead of
35030 no_address_safety_analysis attribute.
35031 * doc/extend.texi (no_address_safety_attribute): Rename to
35032 no_sanitize_address attribute, mention no_address_safety_analysis
35033 attribute as deprecated alias.
35035 2013-02-28 Jakub Jelinek <jakub@redhat.com>
35037 PR middle-end/56461
35038 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
35039 type to vec<vec<tree> > *.
35040 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
35041 to be vec<tree> instead of vec<tree> *, set vec_defs
35042 to vNULL and call vec_defs.create (number_of_vects), adjust other
35044 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
35045 vectorizable_condition): Adjust vect_get_slp_defs callers.
35047 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35049 * config/aarch64/aarch64.c
35050 (aarch64_float_const_representable): Remove unused variable.
35052 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35054 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
35056 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35058 * config/aarch64/aarch64-builtins.c
35059 (aarch64_init_simd_builtins): Make static.
35061 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
35063 * config/aarch64/aarch64.c
35064 (aarch64_simd_make_constant): Make static.
35066 2013-02-28 Martin Jambor <mjambor@suse.cz>
35068 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
35069 with no initialization to the RHS of debug statements.
35071 2013-02-28 Martin Jambor <mjambor@suse.cz>
35073 PR tree-optimization/56294
35074 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
35076 (get_access_replacement): Do not call create_access_replacement.
35077 Assert a replacement exists.
35078 (get_repl_default_def_ssa_name): Create the replacement declaration
35081 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35083 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
35084 final_end_function.
35086 2013-02-28 Marek Polacek <polacek@redhat.com>
35088 PR rtl-optimization/56466
35089 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
35090 if we're changing a loop.
35091 (peel_loops_completely): Likewise.
35093 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
35096 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
35098 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35101 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
35102 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
35103 INTX_FTYPE_FX, FX_FTYPE_INTX.
35104 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
35106 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35108 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
35109 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
35110 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
35111 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
35112 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
35113 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
35114 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
35115 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
35116 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
35117 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
35118 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
35119 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
35120 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
35121 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
35122 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
35123 (avrxmega6): Increase max flash segments from 5 to 6.
35124 * config/avr/t-multilib: Regenerate.
35125 * config/avr/avr-tables.opt: Regenerate.
35126 * doc/avr-mmcu.texi: Regenerate.
35128 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
35130 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
35131 (avr_device_to_arch): Rename to avr_device_to_ld.
35132 (avr_device_to_as): New prototype.
35133 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
35134 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
35135 * config/avr/driver-avr.c (avr_device_to_as): New.
35136 (avr_device_to_arch): Rename to avr_device_to_ld.
35138 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35140 PR middle-end/56461
35141 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
35142 method on dr_chain and result_chain.
35144 PR middle-end/56461
35145 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
35146 pointer_set_destroy on not_executed_last_iteration.
35148 PR middle-end/56461
35149 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
35151 PR middle-end/56461
35152 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
35153 FOR_EACH_DEFINED_FUNCTION when freeing state.
35155 PR middle-end/56461
35156 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
35158 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
35161 PR middle-end/56461
35162 * ipa-cp.c (decide_whether_version_node): Call vec_free on
35163 known_aggs[i].items and release known_aggs vector.
35165 PR middle-end/56461
35166 * ipa-reference.c (propagate): Free node_info even for alias nodes.
35168 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35170 * config/microblaze/microblaze.c (microblaze_emit_compare):
35171 Use xor for EQ/NE comparisions.
35172 * config/microblaze/microblaze.md (cstoresf4): Add constraints
35173 (cbranchsf4): Adjust operator to comparison_operator.
35175 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35177 PR middle-end/56461
35178 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
35180 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
35181 vec_safe_push, always update *slot.
35182 (redirect_edge_var_map_clear): Use vec_free.
35183 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
35184 (free_var_map_entry): Use vec_free.
35185 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
35186 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
35188 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
35190 PR middle-end/45472
35191 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
35192 when the may_trap_p bit of the exprs being merged differs.
35193 Reorder tests for speculativeness in the logical and operator.
35195 2013-02-27 Jakub Jelinek <jakub@redhat.com>
35197 * incpath.c (add_standard_paths): Use reconcat instead of concat
35198 where appropriate and avoid leaking memory.
35200 * opts.h: Include obstack.h.
35201 (opts_concat): New prototype.
35202 (opts_obstack): New declaration.
35203 * opts.c (opts_concat): New function.
35204 (opts_obstack): New variable.
35205 (init_options_struct): Call gcc_init_obstack on opts_obstack.
35206 (finish_options): Use opts_concat instead of concat
35207 and XOBNEWVEC instead of XNEWVEC.
35208 * opts-common.c (generate_canonical_option, decode_cmdline_option,
35209 generate_option): Likewise.
35210 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
35211 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
35214 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
35215 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
35217 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35219 PR middle-end/56461
35220 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
35222 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35224 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
35225 (arm_block_move_unaligned_straight): Likewise.
35226 (arm_adjust_block_mem): Likewise.
35228 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
35231 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
35232 temp, cond and label.
35233 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
35236 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
35237 * config/c6x/c6x.h (dbx_register_map): Update declaration.
35240 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
35241 of prologue/epilogue functions.
35244 * config/tilegx/tilegx.c (tilegx_expand_prologue):
35245 Remove unused variable cfa_offset.
35246 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
35249 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
35250 type promotion to unsigned.
35253 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
35254 for HOST_WIDE_INT of 32 bit / same size as int.
35255 (arm_block_move_unaligned_straight): Likewise.
35256 (arm_adjust_block_mem): Likewise.
35259 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
35262 2013-02-26 Marek Polacek <polacek@redhat.com>
35264 PR tree-optimization/56426
35265 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
35267 2013-02-26 Richard Biener <rguenther@suse.de>
35270 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
35271 unused variable loops.
35273 2013-02-26 Jakub Jelinek <jakub@redhat.com>
35275 PR tree-optimization/56448
35276 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
35277 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
35278 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
35279 later operands of the references, or even first operand for
35280 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
35282 PR tree-optimization/56443
35283 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
35284 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
35285 to type_for_mode langhook.
35287 2013-02-25 Matt Turner <mattst88@gmail.com>
35289 * doc/invoke.texi: Document r4700.
35291 2013-02-25 Richard Biener <rguenther@suse.de>
35293 PR tree-optimization/56175
35294 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
35296 (simplify_bitwise_binary): ... here. Also guard the conversion
35297 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
35299 2013-02-25 Catherine Moore <clm@codesourcery.com>
35302 2013-02-24 Catherine Moore <clm@codesourcery.com>
35303 Maciej W. Rozycki <macro@codesourcery.com>
35304 Tom de Vries <tom@codesourcery.com>
35305 Nathan Sidwell <nathan@codesourcery.com>
35306 Iain Sandoe <iain@codesourcery.com>
35307 Nathan Froyd <froydnj@codesourcery.com>
35308 Chao-ying Fu <fu@mips.com>
35310 * doc/extend.texi: (micromips, nomicromips, nocompression):
35311 Document new function attributes.
35312 * doc/invoke.texi (minterlink-compressed, mmicromips,
35313 m14k, m14ke, m14kec): Document new options.
35314 (minterlink-mips16): Update documentation.
35315 * doc/md.texi (ZC, ZD): Document new constraints.
35316 * configure.ac (gcc_cv_as_micromips): Check if linker
35317 supports the .set micromips directive.
35318 * configure: Regenerate.
35319 * config.in: Regenerate.
35320 * config/mips/mips-tables.opt: Regenerate.
35321 * config/mips/micromips.md: New file.
35322 * constraints.md (ZC, AD): New constraints.
35323 * config/mips/predicates.md (movep_src_register): New predicate.
35324 (movep_src_operand): New predicate.
35325 (non_volatile_mem_operand): New predicate.
35326 * config/mips/mips.md (multimem): New type.
35327 (length): Differentiate between 17-bit and 18-bit branch offsets.
35328 (MOVEP1, MOVEP2): New mode iterator.
35329 (mov_<load>l): Use ZC constraint.
35330 (mov_<load>r): Likewise.
35331 (mov_<store>l): Likewise.
35332 (mov_<store>r): Likewise.
35333 (*branch_equality<mode>_inverted): Add microMIPS support.
35334 (*branch_equality<mode>): Likewise.
35335 (*jump_absolute): Likewise.
35336 (indirect_jump_<mode>): Likewise.
35337 (tablejump_<mode>): Likewise.
35338 (<optab>_internal): Likewise.
35339 (sibcall_internal): Likewise.
35340 (sibcall_value_internal): Likewise.
35341 (prefetch): Use constraint ZD.
35342 * config/mips/mips.opt (minterlink-compressed): New option.
35343 (minterlink-mips16): Now an alias for minterlink-compressed.
35344 (mmicromips): New option.
35345 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35346 (compare_and_swap_12): Likewise.
35347 (sync_add<mode>): Likewise.
35348 (sync_<optab>_12): Likewise.
35349 (sync_old_<optab>_12): Likewise.
35350 (sync_new_<optab>_12): Likewise.
35351 (sync_nand_12): Likewise.
35352 (sync_old_nand_12): Likewise.
35353 (sync_new_nand_12): Likewise.
35354 (sync_sub<mode>): Likewise.
35355 (sync_old_add<mode>): Likewise.
35356 (sync_old_sub<mode>): Likewise.
35357 (sync_new_add<mode>): Likewise.
35358 (sync_new_sub<mode>): Likewise.
35359 (sync_<optab><mode>): Likewise.
35360 (sync_old_<optab><mode>): Likewise.
35361 (sync_new_<optab><mode>): Likewise.
35362 (sync_nand<mode>): Likewise.
35363 (sync_old_nand<mode>): Likewise.
35364 (sync_new_nand<mode>): Likewise.
35365 (sync_lock_test_and_set<mode>): Likewise.
35366 (test_and_set_12): Likewise.
35367 (atomic_compare_and_swap<mode>): Likewise.
35368 (atomic_exchange<mode>_llsc): Likewise.
35369 (atomic_fetch_add<mode>_llsc): Likewise.
35370 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35371 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35372 (umips_save_restore_pattern_p): Likewise.
35373 (umips_load_store_pair_p): Likewise.
35374 (umips_output_load_store_pair): Likewise.
35375 (umips_movep_target_p): Likewise.
35376 (umips_12bit_offset_address_p): Likewise.
35377 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35378 (mips_base_mips16): Rename this...
35379 (mips_base_compression_flags): ...to this. Update all uses.
35380 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35381 (mips_mips16_decl_p): Delete.
35382 (mips_nomips16_decl_p): Delete.
35383 (mips_get_compress_on_flags): New function.
35384 (mips_get_compress_off_flags): New function.
35385 (mips_get_compress_mode): New function.
35386 (mips_get_compress_on_name): New function.
35387 (mips_get_compress_off_name): New function.
35388 (mips_insert_attributes): Support multiple compression types.
35389 (mips_merge_decl_attributes): Likewise.
35390 (umips_12bit_offset_address_p): New function.
35391 (mips_start_function_definition): Emit .set micromips directive.
35392 (mips_call_may_need_jalx_p): New function.
35393 (mips_function_ok_for_sibcall): Add microMIPS support.
35394 (mips_print_operand_punctuation): Support short delay slots and
35396 (umips_swm_mask, umips_swm_encoding): New.
35397 (umips_build_save_restore): New function.
35398 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35399 (was_mips16_p): Remove.
35400 (old_compression_mode): New.
35401 (mips_set_compression_mode): New function.
35402 (mips_set_current_function): Add microMIPS support.
35403 (mips_option_override): Likewise.
35404 (umips_save_restore_pattern_p): New function.
35405 (umips_output_save_restore): New function.
35406 (umips_load_store_pair_p_1): New function.
35407 (umips_load_store_pair_p): New function.
35408 (umips_output_load_store_pair_1): New function.
35409 (umips_output_load_store_pair): New function.
35410 (umips_movep_target_p) New function.
35411 (mips_prepare_pch_save): Add microMIPS support.
35412 * config/mips/mips.h (TARGET_COMPRESSION): New.
35413 (TARGET_CPU_CPP_BUILTINS): Update macro
35414 to use new compression flags and to support microMIPS.
35415 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35416 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35417 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35418 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35419 (ASM_SPEC): Support mmicromips and mno-micromips.
35420 (M16STORE_REG_P): New macro.
35421 (MIPS_CALL): Support TARGET_MICROMIPS.
35422 (MICROMIPS_J): New macro.
35423 (mips_base_mips16): Rename this...
35424 (mips_base_compression_flags): ...to this.
35425 (UMIPS_12BIT_OFFSET_P): New macro.
35426 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35427 (MULTILIB_DIRNAMES): Likewise.
35429 2013-02-25 Tom de Vries <tom@codesourcery.com>
35431 PR rtl-optimization/56131
35432 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
35433 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
35434 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
35436 2013-02-25 Tobias Burnus <burnus@net-b.de>
35438 * doc/invoke.texi (-fsanitize=): Move from optimization
35439 to debugging options.
35441 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35443 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
35445 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
35446 Alexander Monakov <amonakov@ispras.ru>
35448 PR middle-end/56077
35449 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
35450 flush pending lists also on non-jumps. Adjust comment.
35452 2013-02-24 Catherine Moore <clm@codesourcery.com>
35453 Maciej W. Rozycki <macro@codesourcery.com>
35454 Tom de Vries <tom@codesourcery.com>
35455 Nathan Sidwell <nathan@codesourcery.com>
35456 Iain Sandoe <iain@codesourcery.com>
35457 Nathan Froyd <froydnj@codesourcery.com>
35458 Chao-ying Fu <fu@mips.com>
35460 * doc/extend.texi: (micromips, nomicromips, nocompression):
35461 Document new function attributes.
35462 * doc/invoke.texi (minterlink-compressed, mmicromips,
35463 m14k, m14ke, m14kec): Document new options.
35464 (minterlink-mips16): Update documentation.
35465 * doc/md.texi (ZC, ZD): Document new constraints.
35466 * configure.ac (gcc_cv_as_micromips): Check if linker
35467 supports the .set micromips directive.
35468 * configure: Regenerate.
35469 * config.in: Regenerate.
35470 * config/mips/mips-tables.opt: Regenerate.
35471 * config/mips/micromips.md: New file.
35472 * constraints.md (ZC, AD): New constraints.
35473 * config/mips/predicates.md (movep_src_register): New predicate.
35474 (movep_src_operand): New predicate.
35475 (non_volatile_mem_operand): New predicate.
35476 * config/mips/mips.md (multimem): New type.
35477 (length): Differentiate between 17-bit and 18-bit branch offsets.
35478 (MOVEP1, MOVEP2): New mode iterator.
35479 (mov_<load>l): Use ZC constraint.
35480 (mov_<load>r): Likewise.
35481 (mov_<store>l): Likewise.
35482 (mov_<store>r): Likewise.
35483 (*branch_equality<mode>_inverted): Add microMIPS support.
35484 (*branch_equality<mode>): Likewise.
35485 (*jump_absolute): Likewise.
35486 (indirect_jump_<mode>): Likewise.
35487 (tablejump_<mode>): Likewise.
35488 (<optab>_internal): Likewise.
35489 (sibcall_internal): Likewise.
35490 (sibcall_value_internal): Likewise.
35491 (prefetch): Use constraint ZD.
35492 * config/mips/mips.opt (minterlink-compressed): New option.
35493 (minterlink-mips16): Now an alias for minterlink-compressed.
35494 (mmicromips): New option.
35495 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35496 (compare_and_swap_12): Likewise.
35497 (sync_add<mode>): Likewise.
35498 (sync_<optab>_12): Likewise.
35499 (sync_old_<optab>_12): Likewise.
35500 (sync_new_<optab>_12): Likewise.
35501 (sync_nand_12): Likewise.
35502 (sync_old_nand_12): Likewise.
35503 (sync_new_nand_12): Likewise.
35504 (sync_sub<mode>): Likewise.
35505 (sync_old_add<mode>): Likewise.
35506 (sync_old_sub<mode>): Likewise.
35507 (sync_new_add<mode>): Likewise.
35508 (sync_new_sub<mode>): Likewise.
35509 (sync_<optab><mode>): Likewise.
35510 (sync_old_<optab><mode>): Likewise.
35511 (sync_new_<optab><mode>): Likewise.
35512 (sync_nand<mode>): Likewise.
35513 (sync_old_nand<mode>): Likewise.
35514 (sync_new_nand<mode>): Likewise.
35515 (sync_lock_test_and_set<mode>): Likewise.
35516 (test_and_set_12): Likewise.
35517 (atomic_compare_and_swap<mode>): Likewise.
35518 (atomic_exchange<mode>_llsc): Likewise.
35519 (atomic_fetch_add<mode>_llsc): Likewise.
35520 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35521 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35522 (umips_save_restore_pattern_p): Likewise.
35523 (umips_load_store_pair_p): Likewise.
35524 (umips_output_load_store_pair): Likewise.
35525 (umips_movep_target_p): Likewise.
35526 (umips_12bit_offset_address_p): Likewise.
35527 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35528 (mips_base_mips16): Rename this...
35529 (mips_base_compression_flags): ...to this. Update all uses.
35530 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35531 (mips_mips16_decl_p): Delete.
35532 (mips_nomips16_decl_p): Delete.
35533 (mips_get_compress_on_flags): New function.
35534 (mips_get_compress_off_flags): New function.
35535 (mips_get_compress_mode): New function.
35536 (mips_get_compress_on_name): New function.
35537 (mips_get_compress_off_name): New function.
35538 (mips_insert_attributes): Support multiple compression types.
35539 (mips_merge_decl_attributes): Likewise.
35540 (umips_12bit_offset_address_p): New function.
35541 (mips_start_function_definition): Emit .set micromips directive.
35542 (mips_call_may_need_jalx_p): New function.
35543 (mips_function_ok_for_sibcall): Add microMIPS support.
35544 (mips_print_operand_punctuation): Support short delay slots and
35546 (umips_swm_mask, umips_swm_encoding): New.
35547 (umips_build_save_restore): New function.
35548 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35549 (was_mips16_p): Remove.
35550 (old_compression_mode): New.
35551 (mips_set_compression_mode): New function.
35552 (mips_set_current_function): Add microMIPS support.
35553 (mips_option_override): Likewise.
35554 (umips_save_restore_pattern_p): New function.
35555 (umips_output_save_restore): New function.
35556 (umips_load_store_pair_p_1): New function.
35557 (umips_load_store_pair_p): New function.
35558 (umips_output_load_store_pair_1): New function.
35559 (umips_output_load_store_pair): New function.
35560 (umips_movep_target_p) New function.
35561 (mips_prepare_pch_save): Add microMIPS support.
35562 * config/mips/mips.h (TARGET_COMPRESSION): New.
35563 (TARGET_CPU_CPP_BUILTINS): Update macro
35564 to use new compression flags and to support microMIPS.
35565 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35566 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35567 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35568 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35569 (ASM_SPEC): Support mmicromips and mno-micromips.
35570 (M16STORE_REG_P): New macro.
35571 (MIPS_CALL): Support TARGET_MICROMIPS.
35572 (MICROMIPS_J): New macro.
35573 (mips_base_mips16): Rename this...
35574 (mips_base_compression_flags): ...to this.
35575 (UMIPS_12BIT_OFFSET_P): New macro.
35576 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35577 (MULTILIB_DIRNAMES): Likewise.
35579 2013-02-24 Jakub Jelinek <jakub@redhat.com>
35582 * target-globals.c (save_target_globals): For init_reg_sets and
35583 target_reinit remporarily set this_fn_optabs to this_target_optabs.
35585 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
35587 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
35588 * config/aarch64/t-aarch64
35589 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
35591 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
35593 PR inline-asm/56148
35594 * lra-constraints.c (process_alt_operands): Reload operand
35595 conflicting with earlier clobber only if no more other conflicting
35598 2013-02-22 Jakub Jelinek <jakub@redhat.com>
35601 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
35602 if not linking a shared library.
35604 2013-02-22 Seth LaForge <sethml@google.com>
35606 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
35608 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
35610 * config/arm/arm.md (split for extendsidi): Update condition.
35611 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
35612 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
35613 (qhs_zextenddi_cstr): Likewise.
35615 2013-02-21 Jakub Jelinek <jakub@redhat.com>
35617 PR middle-end/56420
35618 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
35619 avoid signed wrapping.
35620 (expand_mult): Handle properly multiplication by
35621 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
35622 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
35623 in the compiler if coeff is HOST_WIDE_INT_MIN.
35624 (expand_divmod): Don't make ext_op1 static, change it's type to
35625 uhwi. Avoid undefined behavior in -INTVAL (op1).
35627 PR rtl-optimization/50339
35628 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
35630 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
35631 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
35632 into splitting_ashiftrt field.
35633 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
35635 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
35638 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
35640 PR middle-end/56108
35641 * trans-mem.c (execute_tm_mark): Do not expand transactions that
35642 are sure to go irrevocable.
35644 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
35646 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
35647 scalars are valid operands.
35649 2013-02-21 Martin Jambor <mjambor@suse.cz>
35651 PR tree-optimization/56310
35652 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
35653 only matching indices and non-negative final offsets.
35654 (intersect_aggregates_with_edge): Pass src_idx to
35655 agg_replacements_to_vector. Pass src_idx insstead of index to
35656 intersect_with_agg_replacements.
35658 2013-02-21 Martin Jambor <mjambor@suse.cz>
35660 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
35661 instead of hard-wired defaults.
35663 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
35665 * doc/invoke.texi (MIPS Options): Update documentation of the
35666 floating-point multiply-accumulate instruction restrictions.
35668 2013-02-21 Kostya Serebryany <kcc@google.com>
35670 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
35671 asan_shadow_offset on x86_64 linux.
35673 2013-02-21 Richard Biener <rguenther@suse.de>
35675 PR tree-optimization/56415
35677 2013-02-11 Richard Biener <rguenther@suse.de>
35679 PR tree-optimization/56273
35680 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
35683 2013-02-21 Jakub Jelinek <jakub@redhat.com>
35686 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
35689 PR inline-asm/56405
35690 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
35691 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
35693 2013-02-20 Jan Hubicka <jh@suse.cz>
35695 PR tree-optimization/56265
35696 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
35697 when target is referenced for first time.
35699 2013-02-20 Richard Biener <rguenther@suse.de>
35701 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
35702 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
35703 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
35704 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
35705 not return anything.
35706 (rename_ssa_copies): Do not remove unused locals.
35707 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
35708 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
35709 * passes.c (execute_function_todo): Do not schedule unused locals
35710 removal if cleanup_tree_cfg did something.
35711 * tree-ssa-live.c (remove_unused_locals): Dump statistics
35712 about the number of removed locals.
35714 2013-02-20 Richard Biener <rguenther@suse.de>
35716 PR tree-optimization/56398
35717 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
35719 2013-02-20 Martin Jambor <mjambor@suse.cz>
35721 PR tree-optimization/55334
35722 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
35723 restricted pointers to arrays.
35725 2013-02-20 Richard Biener <rguenther@suse.de>
35726 Jakub Jelinek <jakub@redhat.com>
35728 PR tree-optimization/56396
35729 * tree-ssa-ccp.c (n_const_val): New static variable.
35730 (get_value): Return NULL for SSA names we don't have a lattice
35732 (ccp_initialize): Initialize n_const_val.
35733 * tree-ssa-copy.c (n_copy_of): New static variable.
35734 (init_copy_prop): Initialize n_copy_of.
35735 (get_value): Return NULL_TREE for SSA names we don't have a
35738 2013-02-20 Martin Jambor <mjambor@suse.cz>
35740 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
35742 2013-02-20 Richard Biener <rguenther@suse.de>
35744 * genpreds.c (write_lookup_constraint): Do not compare first
35745 letter of the constraint again.
35747 2013-02-20 Richard Biener <rguenther@suse.de>
35749 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
35751 (get_use_iv_cost): Terminate hashtable walk when coming across
35754 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
35756 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
35757 reassociation for avx2 targets.
35759 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35761 * config/microblaze/microblaze.c: microblaze_has_clz = 0
35762 Add version check for v8.10.a to enable microblaze_has_clz
35763 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
35764 version and TARGET_PATTERN_COMPARE check
35765 * config/microblaze/microblaze.md: New clzsi2 instruction
35767 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35769 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
35770 function before branching.
35772 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
35774 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
35776 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
35778 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
35780 PR middle-end/55889
35781 * sel-sched.c: Include ira.h.
35782 (implicit_clobber_conflict_p): New function.
35783 (moveup_expr): Use it.
35784 * Makefile.in (sel-sched.o): Depend on ira.h.
35786 2013-02-19 Richard Biener <rguenther@suse.de>
35788 PR tree-optimization/56384
35789 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
35790 (vn_hash_type): Split out from ...
35791 (vn_hash_constant_with_type): ... here.
35792 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
35793 (vn_phi_eq): Compare types from vn_phi_s structure.
35794 (vn_phi_lookup): Populate vn_phi_s type.
35795 (vn_phi_insert): Likewise.
35797 2013-02-19 Jakub Jelinek <jakub@redhat.com>
35799 PR tree-optimization/56350
35800 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
35801 if haven't found reduction or nested cycle operand, rather than
35802 asserting we must find it.
35804 PR tree-optimization/56381
35805 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
35808 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
35809 Jakub Jelinek <jakub@redhat.com>
35812 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
35813 (swap_optab_enable): Same.
35814 (init_all_optabs): Use argument instead of global.
35815 * tree.h (struct tree_optimization_option): New field target_optabs.
35816 * expr.h (init_all_optabs): Add argument to prototype.
35817 (TREE_OPTIMIZATION_OPTABS): New.
35818 (save_optabs_if_changed): Protoize.
35819 * optabs.h: Declare this_fn_optabs.
35820 * optabs.c (save_optabs_if_changed): New.
35821 Declare this_fn_optabs.
35822 (init_optabs): Add argument to init_all_optabs() call.
35823 * function.c (invoke_set_current_function_hook): Handle per
35825 * function.h (struct function): New field optabs.
35826 * config/mips/mips.c (mips_set_mips16_mode): Handle when
35827 optimization_current_node has changed.
35828 * target-globals.h (save_target_globals_default_opts): Protoize.
35829 * target-globals.c (save_target_globals_default_opts): New.
35831 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35834 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
35835 registers %fr12 and %fr12R as call used.
35838 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
35839 and HImode, require all displacements to be an integer multiple of
35841 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
35842 only allow QImode and HImode when reload is in progress and strict is
35843 true. Likewise for symbolic addresses. Use base14_operand to check
35844 displacements in REG+BASE addresses.
35846 2013-02-18 Richard Biener <rguenther@suse.de>
35848 PR tree-optimization/56366
35849 * tree-vect-loop.c (get_initial_def_for_induction): Properly
35850 handle sign-conversion of outer-loop initial induction value.
35852 2013-02-18 Richard Biener <rguenther@suse.de>
35854 PR middle-end/56349
35855 * cfghooks.c (merge_blocks): If we merge a latch into another
35856 block adjust references to it.
35857 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
35858 (verify_loop_structure): Verify that a recorded latch is in fact
35861 2013-02-18 Richard Biener <rguenther@suse.de>
35863 PR tree-optimization/56321
35864 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
35865 order SSA name release and virtual operand unlinking.
35867 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35869 * config/microblaze/microblaze.md (save_stack_block): Define.
35870 (restore_stack_block): Likewise.
35872 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35874 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
35875 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
35876 * config/microblaze/microblaze.c (microblaze_option_override):
35877 Bail out early for PIC modes when target does not support PIC.
35879 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35881 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
35882 Replace with a microblaze version.
35883 (microblaze_trampoline_init): Adapt for microblaze.
35884 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
35887 2013-02-16 Jakub Jelinek <jakub@redhat.com>
35888 Dodji Seketeli <dodji@redhat.com>
35891 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
35892 (instrument_mem_region_access): Do not forget to always put
35893 instrumentation of the of 'base' and 'base + len' in a "if (len !=
35894 0) statement, even for cases where either 'base' or 'base + len'
35895 are not instrumented -- because they have been previously
35896 instrumented. Simplify the logic by putting all the statements
35897 instrument 'base + len' inside a sequence, and then insert that
35898 sequence right before the current insertion point. Then, to
35899 instrument 'base + len', just get an iterator on that statement.
35900 And do not forget to update the pointer to iterator the function
35901 received as argument.
35903 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
35905 PR rtl-optimization/56348
35906 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
35908 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
35910 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
35911 (clean_graph_dump_file): Pass base to start_graph_dump.
35913 2013-02-14 Richard Henderson <rth@redhat.com>
35916 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
35918 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
35920 * collect2-aix.h: Define F_LOADONLY.
35922 2013-02-14 Richard Biener <rguenther@suse.de>
35925 * varasm.c (output_constant_def_1): Get the decl representing
35926 the constant as argument.
35927 (output_constant_def): Wrap output_constant_def_1.
35928 (make_decl_rtl): Use output_constant_def_1 with the decl
35929 representing the constant.
35930 (build_constant_desc): Optionally re-use a decl already
35931 representing the constant.
35932 (tree_output_constant_def): Adjust.
35934 2013-02-14 Dodji Seketeli <dodji@redhat.com>
35937 * asan.c (instrument_builtin_call): Really put the length of the
35938 second source argument into src1_len.
35940 2013-02-13 Jakub Jelinek <jakub@redhat.com>
35942 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
35943 argument. If it is false, don't create edge from then_bb to
35945 (insert_if_then_before_iter): Pass true to it.
35946 (build_check_stmt): Pass false to it.
35947 (transform_statements): Flush hash table only on extended basic
35948 block boundaries, rather than at the beginning of every bb.
35949 Don't flush hash table on nonfreeing_call_p calls.
35950 * tree-flow.h (nonfreeing_call_p): New prototype.
35951 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
35953 2013-02-13 David S. Miller <davem@davemloft.net>
35955 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
35957 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
35960 * ira.c (max_regno_before_ira): Move from ...
35962 (fix_reg_equiv_init): Use max_regno_before_ira instead of
35965 2013-02-13 Jakub Jelinek <jakub@redhat.com>
35967 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
35969 2013-02-13 Richard Biener <rguenther@suse.de>
35972 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
35973 globals in MEM_REFs.
35975 2013-02-13 Richard Biener <rguenther@suse.de>
35977 * loop-init.c (loop_optimizer_init): Clear loop state when
35978 re-initializing preserved loops.
35979 * loop-unswitch.c (unswitch_single_loop): Return whether
35980 we unswitched the loop. Do not verify loop state here.
35981 (unswitch_loops): When we unswitched a loop discover new loops.
35983 2013-02-13 Kostya Serebryany <kcc@google.com>
35985 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
35987 * sanitizer.def: Rename __asan_init to __asan_init_v1.
35989 2013-02-12 Dodji Seketeli <dodji@redhat.com>
35991 Avoid instrumenting duplicated memory access in the same basic block
35992 * Makefile.in (asan.o): Add new dependency on hash-table.h
35993 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
35994 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
35995 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
35996 (free_mem_ref_resources, has_mem_ref_been_instrumented)
35997 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
35998 (get_mem_ref_of_assignment): New functions.
35999 (get_mem_refs_of_builtin_call): Extract from
36000 instrument_builtin_call and tweak a little bit to make it fit with
36002 (instrument_builtin_call): Use the new
36003 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
36004 of is_gimple_builtin_call.
36005 (instrument_derefs, instrument_mem_region_access): Insert the
36006 instrumented memory reference into the hash table.
36007 (maybe_instrument_assignment): Renamed instrument_assignment into
36008 this, and change it to advance the iterator when instrumentation
36009 actually happened and return true in that case. This makes it
36010 homogeneous with maybe_instrument_assignment, and thus give a
36011 chance to callers to be more 'regular'.
36012 (transform_statements): Clear the memory reference hash table
36013 whenever we enter a new BB, when we cross a function call, or when
36014 we are done transforming statements. Use
36015 maybe_instrument_assignment instead of instrumentation. No more
36016 need to special case maybe_instrument_assignment and advance the
36017 iterator after calling it; it's now handled just like
36018 maybe_instrument_call. Update comment.
36020 2013-02-13 Richard Biener <rguenther@suse.de>
36022 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
36023 Fix loop discovery code.
36025 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
36027 PR inline-asm/56148
36028 * lra-constraints.c (process_alt_operands): Match early clobber
36029 operand with itself. Check conflicts with earlyclobber only if
36030 the operand is not reloaded. Prefer to reload conflicting operand
36031 if earlyclobber and matching operands are the same.
36033 2013-02-12 Richard Biener <rguenther@suse.de>
36036 * lto-streamer-out.c (write_symbol): Do not output symbols
36037 for hard register variables.
36039 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
36042 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
36043 (umulsidi3_insn, mulsidi3_insn): New insns.
36045 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
36047 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
36048 (struct tune_params): Add vec_costs field.
36049 * config/arm/arm.c (arm_builtin_vectorization_cost)
36050 (arm_add_stmt_cost): New functions.
36051 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
36052 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
36053 (arm_default_vec_cost): New struct of type cpu_vec_costs.
36054 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
36055 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
36056 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
36057 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
36059 2013-02-12 Richard Biener <rguenther@suse.de>
36062 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
36063 decls again if possible.
36065 2013-02-12 Richard Biener <rguenther@suse.de>
36067 PR middle-end/56288
36068 * tree-ssa.c (verify_ssa_name): Fix check, move
36069 SSA_NAME_IN_FREE_LIST check up.
36071 2013-02-12 Jakub Jelinek <jakub@redhat.com>
36072 Steven Bosscher <steven@gcc.gnu.org>
36074 PR rtl-optimization/56151
36075 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
36076 equal to op0 or op1, and last_insn pattern is CODE operation
36077 with MEM dest and one of the operands matches that MEM.
36079 2013-02-11 Sriraman Tallam <tmsriram@google.com>
36081 * doc/extend.texi: Document Function Multiversioning and "default"
36082 parameter string to target attribute.
36083 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
36084 target attribute parameter is "default".
36085 (ix86_compare_version_priority): Remove checks for target attribute.
36086 (ix86_mangle_function_version_assembler_name): Change error to sorry.
36087 Remove check for target attribute equal to NULL. Add assert.
36088 (ix86_generate_version_dispatcher_body): Change error to sorry.
36090 2013-02-11 Iain Sandoe <iain@codesourcery.com>
36091 Jack Howarth <howarth@bromo.med.uc.edu>
36092 Patrick Marlier <patrick.marlier@gmail.com>
36095 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
36096 define ENDFILE_SPEC as TM_DESTRUCTOR.
36097 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
36099 2013-02-11 Alexander Potapenko <glider@google.com>
36100 Jack Howarth <howarth@bromo.med.uc.edu>
36101 Jakub Jelinek <jakub@redhat.com>
36104 * config/darwin.c (cdtor_record): Rename ctor_record.
36105 (sort_cdtor_records): Rename sort_ctor_records.
36106 (finalize_dtors): New routine to sort destructors by
36107 priority before use in assemble_integer.
36108 (machopic_asm_out_destructor): Use finalize_dtors if needed.
36110 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
36112 PR rtl-optimization/56275
36113 * simplify-rtx.c (avoid_constant_pool_reference): Check that
36114 offset is non-negative and less than cmode size before
36115 calling simplify_subreg.
36117 2013-02-11 Richard Biener <rguenther@suse.de>
36119 PR tree-optimization/56264
36120 * cfgloop.h (fix_loop_structure): Adjust prototype.
36121 * loop-init.c (fix_loop_structure): Return the number of
36122 newly discovered loops.
36123 * tree-cfgcleanup.c (repair_loop_structures): When new loops
36124 are discovered, do a full loop-closed SSA rewrite.
36126 2013-02-11 Richard Biener <rguenther@suse.de>
36128 PR tree-optimization/56273
36129 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36131 (check_array_ref): Fix missing newline in dumps.
36132 (search_for_addr_array): Likewise.
36134 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
36136 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
36138 2013-02-09 Jakub Jelinek <jakub@redhat.com>
36141 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
36143 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
36145 PR rtl-optimization/56246
36146 * lra-constraints.c (simplify_operand_subreg): Try to reuse
36148 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
36149 constraints are satisfied.
36151 2013-02-08 Jeff Law <law@redhat.com>
36154 * emit-rtl.c (reg_is_parm_p): New function.
36155 * regs.h (reg_is_parm_p): New prototype.
36156 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
36157 callee-clobbered registers.
36159 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
36162 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
36163 If there is no implicit builtin declaration, just return NULL.
36165 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36167 * config/i386/sse.md (FMAMODEM): New mode iterator.
36168 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
36169 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
36171 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36173 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
36174 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
36175 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
36177 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36179 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
36180 (microblaze*-*-elf): Likewise.
36181 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
36183 * config/microblaze/microblaze-c.c: Add builtin defines for
36184 _LITTLE_ENDIAN and _BIG_ENDIAN.
36185 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
36186 add to TARGET_DEFAULT flags.
36187 Expand ASM_SPEC and LINK_SPEC.
36188 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
36189 * config/microblaze/microblaze.md: Update extendsidi2 and
36190 movdi_internal instructions to use low-order / high-order reg
36192 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
36193 options and inversemask / mask of LITTLE_ENDIAN.
36194 * config/microblaze/t-microblaze: Expand multilib options to
36195 include mlittle-endian (le) and update exceptions patterns.
36197 2013-02-08 Jakub Jelinek <jakub@redhat.com>
36199 PR rtl-optimization/56195
36200 * lra-constraints.c (get_reload_reg): Don't reuse regs
36201 if they have smaller mode than requested, if they have
36202 wider mode than requested, try to return a SUBREG.
36204 PR tree-optimization/56250
36205 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
36206 if type is unsigned and code isn't MULT_EXPR.
36208 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36210 PR tree-optimization/56064
36211 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
36212 bits according to mode.
36213 * fixed-value.h (fixed_from_double_int)
36214 (const_fixed_from_double_int): Adjust comments.
36216 2013-02-08 Richard Biener <rguenther@suse.de>
36219 * lto-streamer.h (struct data_in): Remove current_file, current_line
36220 and current_col members.
36221 * lto-streamer-out.c (lto_output_location): Stream changed bits
36222 en-block for efficiency.
36223 * lto-streamer-in.c (clear_line_info): Remove.
36224 (lto_input_location): Cache current file, line and column
36225 globally via local statics. Read changed bits en-block.
36226 (input_function): Do not call clear_line_info.
36227 (lto_read_body): Likewise.
36228 (lto_input_toplevel_asms): Likewise.
36230 2013-02-08 Michael Matz <matz@suse.de>
36232 PR tree-optimization/52448
36233 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
36234 (nt_call_phase): New static.
36235 (add_or_mark_expr): Only mark accesses with newer phase than any
36237 (nonfreeing_call_p): New.
36238 (nt_init_block): Update nt_call_phase, mark blocks as visited.
36239 (nt_fini_block): Keep blocks marked as visited.
36240 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
36242 2013-02-08 Richard Biener <rguenther@suse.de>
36244 * ira.c (ira): Free broken dominator information.
36246 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
36248 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
36250 2013-02-08 Marek Polacek <polacek@redhat.com>
36252 * cfgloop.c (verify_loop_structure): Add more checking of headers.
36254 2013-02-08 Richard Biener <rguenther@suse.de>
36256 PR middle-end/56181
36257 * cfgloop.h (flow_loops_find): Adjust.
36258 (bb_loop_header_p): Declare.
36259 * cfgloop.c (bb_loop_header_p): New function split out from ...
36260 (flow_loops_find): ... here. Adjust function signature,
36261 support incremental loop structure update.
36262 (verify_loop_structure): Cleanup. Verify a loop is a loop.
36263 * cfgloopmanip.c (fix_loop_structure): Move ...
36264 * loop-init.c (fix_loop_structure): ... here.
36265 (apply_loop_flags): Split out from ...
36266 (loop_optimizer_init): ... here.
36267 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
36268 in incremental mode, only remove dead loops here.
36270 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
36273 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
36274 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
36275 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
36276 (*round<mode>3.libgcc): New insns for fixed-modes.
36277 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
36278 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
36279 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
36280 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
36281 implementations. Define to __builtin_avr_absFX,
36282 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
36283 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
36284 __builtin_avr_countlsFX, respectively.
36285 * config/avr/avr-c.c (target.h): Include it.
36286 (enum avr_builtin_id): New enum.
36287 (avr_resolve_overloaded_builtin): New static function.
36288 (avr_register_target_pragmas): Use it to set
36289 targetm.resolve_overloaded_builtin.
36290 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
36291 tree nodes used by DEF_BUILTIN.
36292 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
36293 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
36294 <AVR_BUILTIN_xxBITS>: Same.
36296 2013-02-08 Richard Biener <rguenther@suse.de>
36298 * cfgloop.c (verify_loop_structure): Properly handle
36299 a loop exiting to another loop header.
36300 * ira-int.h (ira_loops): Remove.
36301 * ira.c (ira_loops): Remove.
36302 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
36303 (do_reload): Use loop_optimizer_finalize.
36304 * ira-build.c (create_loop_tree_nodes): Use get_loops and
36305 number_of_loops to access the loop tree.
36306 (more_one_region_p): Likewise.
36307 (finish_loop_tree_nodes): Likewise.
36308 (rebuild_regno_allocno_maps): Likewise.
36309 (mark_loops_for_removal): Likewise.
36310 (mark_all_loops_for_removal): Likewise.
36311 (remove_unnecessary_regions): Likewise.
36312 (ira_build): Likewise.
36313 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
36315 2013-02-08 Richard Biener <rguenther@suse.de>
36317 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
36318 * ipa-pure-const.c (analyze_function): Avoid calling
36319 mark_irreducible_loops twice.
36320 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
36322 2013-02-07 David S. Miller <davem@davemloft.net>
36324 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
36326 * var-tracking.c (vt_add_function_parameter): Test the presence of
36327 HAVE_window_save properly and do not remap argument registers when
36328 we have a leaf function.
36330 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
36333 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
36335 * config/i386/i386.c (ix86_print_operand): Ditto.
36337 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36339 * lra-constraints.c (process_alt_operands): Fix recently added comment.
36341 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
36343 PR rtl-optimization/56225
36344 * lra-constraints.c (process_alt_operands): Check that reload hard
36345 reg can hold value for strict_low_part.
36347 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36350 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
36351 dwarf2out_end_function.
36352 (in_first_function_p, maybe_at_text_label_p,
36353 first_loclabel_num_not_at_text_label): New variables.
36354 (dwarf2out_var_location): In the first function find out
36355 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
36356 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
36359 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
36361 PR rtl-optimization/56178
36362 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
36363 SUBREG of a register. Tidy up related block of code.
36364 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
36365 note if the source is a register or a SUBREG of a register.
36367 2013-02-07 Jakub Jelinek <jakub@redhat.com>
36370 * config/rs6000/rs6000.md (ptrm): New mode attr.
36371 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
36372 call_value_indirect_aix<pttrsize>,
36373 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
36376 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
36378 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
36379 if -bnortl. Convert to strcmp and strncmp.
36381 2013-02-07 Alan Modra <amodra@gmail.com>
36384 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
36385 addresses won't wrap when offsetting.
36386 (rs6000_secondary_reload): Provide secondary reloads needed for
36387 wrapping LO_SUM addresses.
36389 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
36391 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
36392 MACH, just __MACH__.
36394 2013-02-06 Richard Biener <rguenther@suse.de>
36396 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
36397 instead of calling fix_loop_structure.
36399 2013-02-06 Jakub Jelinek <jakub@redhat.com>
36401 PR middle-end/56217
36402 * omp-low.c (use_pointer_for_field): Return false if
36403 lower_send_shared_vars doesn't generate any copy-out code.
36405 2013-02-06 Tom de Vries <tom@codesourcery.com>
36407 PR rtl-optimization/56131
36408 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
36409 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
36410 of the label is NULL. Add comment.
36412 2013-02-05 Jakub Jelinek <jakub@redhat.com>
36414 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
36417 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
36418 (STATIC_LIBTSAN_LIBS): Likewise.
36419 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
36420 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
36421 is defined, don't add anything else beyond that.
36422 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
36423 (LINK_COMMAND_SPEC): Use them.
36425 PR tree-optimization/56205
36426 * tree-stdarg.c (check_all_va_list_escapes): Return true if
36427 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
36428 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
36430 2013-02-05 Richard Biener <rguenther@suse.de>
36432 PR tree-optimization/53342
36433 PR tree-optimization/53185
36434 * tree-vectorizer.h (vect_check_strided_load): Remove.
36435 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
36436 not disallow peeling for vectorized strided loads.
36437 (vect_check_strided_load): Make static and simplify.
36438 (vect_analyze_data_refs): Adjust.
36439 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
36440 correctly when vectorizing strided loads.
36442 2013-02-05 Richard Biener <rguenther@suse.de>
36444 * doc/install.texi: Refer to ISL, not PPL.
36446 2013-02-05 Jan Hubicka <jh@suse.cz>
36448 PR tree-optimization/55789
36449 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
36451 2013-02-05 Jan Hubicka <jh@suse.cz>
36453 PR tree-optimization/55789
36454 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
36455 the dead call anyway.
36457 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
36460 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
36462 2013-02-04 Alexander Potapenko <glider@google.com>
36463 Jack Howarth <howarth@bromo.med.uc.edu>
36464 Jakub Jelinek <jakub@redhat.com>
36467 * config/darwin.c (sort_ctor_records): Stabilized qsort
36468 on constructor priority by using original position.
36469 (finalize_ctors): New routine to sort constructors by
36470 priority before use in assemble_integer.
36471 (machopic_asm_out_constructor): Use finalize_ctors if needed.
36473 2013-02-04 Jakub Jelinek <jakub@redhat.com>
36476 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
36477 about visibility on artificial decls.
36478 * config/sol2.c (solaris_assemble_visibility): Likewise.
36480 2013-02-04 Kai Tietz <ktietz@redhat.com>
36483 * config/i386/i386.c (function_value_ms_64): Add additional valtype
36484 argument and improve checking of return-argument types for 16-byte
36486 (ix86_function_value_1): Add additional valtype argument on call
36487 of function_value_64.
36488 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
36489 handling infunction_value_64 function.
36491 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
36493 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
36495 2013-02-04 Richard Biener <rguenther@suse.de>
36497 PR tree-optimization/56188
36498 * tree-ssa-structalias.c (label_visit): Consider case with
36499 initially non-empty points-to set.
36500 (perform_var_substitution): Dump node mapping and clean up.
36502 2013-02-04 Richard Guenther <rguenther@suse.de>
36505 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
36506 node prevail as last resort.
36507 (lto_symtab_merge_decls): Remove guard on LTRANS here.
36508 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
36510 2013-02-04 Richard Biener <rguenther@suse.de>
36512 PR tree-optimization/56113
36513 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
36515 (equiv_class_lookup_or_add): ... this.
36516 (label_visit): Adjust and fix error in previous patch.
36517 (perform_var_substitution): Adjust.
36519 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
36521 * config/sh/divtab.c: Fix formatting and comments throughout the file.
36522 * config/sh/sh4-300.md: Likewise.
36523 * config/sh/sh4a.md: Likewise.
36524 * config/sh/constraints.md: Likewise.
36525 * config/sh/sh.md: Likewise.
36526 * config/sh/netbsd-elf.h: Likewise.
36527 * config/sh/predicates.md: Likewise.
36528 * config/sh/sh-protos.h: Likewise.
36529 * config/sh/ushmedia.h: Likewise.
36530 * config/sh/linux.h: Likewise.
36531 * config/sh/sh.c: Likewise.
36532 * config/sh/superh.h: Likewise.
36533 * config/sh/elf.h: Likewise.
36534 * config/sh/sh4.md: Likewise.
36535 * config/sh/sh.h: Likewise.
36537 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36539 * config/pa/constraints.md: Adjust unused letters. Change "T"
36540 constraint to match_test floating_point_store_memory_operand().
36541 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
36542 (base14_operand): New.
36543 (floating_point_store_memory_operand): New.
36544 (integer_store_memory_operand): Revise to use base14_operand and
36545 reg_plus_base_memory_operand.
36546 (move_dest_operand): Allow symbolic_memory_operands.
36547 (symbolic_memory_operand): Check for LO_SOM.
36548 (symbolic_operand): Change default case to break.
36549 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
36550 CONST_DOUBLE values to be reloaded by putting them into memory when
36551 the destination is a floating point register.
36552 (movdf): Remove code to handle CONST_DOUBLE.
36554 (reload_indf_r1): New.
36555 (reload_insf_r1): New.
36556 Consistently use "Q" and "T" constraints with integer and floating
36557 point move instructions, respectively.
36558 (movdi): Remove FAIL.
36559 Change predicate for source operand unamed DImode move from
36560 general_operand to move_src_operand.
36561 (umulsidi3): Change predicate for destination operand to
36563 Likewise for similar unamed patterns.
36564 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
36565 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
36566 (hppa_legitimize_address): Simplify mask calculation.
36567 (pa_emit_move_sequence): Revised handling of secondary reloads from
36568 REG+D addresses for floating point loads and stores. Directly handle
36569 loading CONST0_RTX (mode) to a floating point register.
36570 (pa_secondary_reload): Handle reloading DF and SFmode constant values
36571 to floating point registers. Don't restrict secondary reloads to
36572 floating point registers to integer modes. Revise some comments and
36574 (TARGET_LEGITIMATE_ADDRESS_P): Define.
36575 (pa_legitimate_address_p): New.
36576 (pa_legitimize_reload_address): New.
36577 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
36578 (STRICT_REG_OK_FOR_BASE_P): New.
36579 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
36580 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
36582 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
36583 Andrew Dixie <andrewd@gentrack.com>
36585 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
36588 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
36590 * expmed.c (extract_bit_field_1): Pass the full width of the
36591 structure to get_best_reg_extraction_insn.
36593 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
36596 * configure.ac (use_cxa_atexit): Add AIX.
36597 * configure: Regenerate.
36599 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
36601 2013-02-01 Jakub Jelinek <jakub@redhat.com>
36604 * final.c (need_profile_function): New variable.
36605 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
36606 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
36607 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
36608 notes, targetm.asm_out.function_prologue doesn't emit anything,
36609 HAVE_prologue and profiler should be emitted before prologue,
36610 set need_profile_function instead of emitting it.
36611 (final_scan_insn): If need_profile_function, emit
36612 profile_function on the first NOTE_INSN_BASIC_BLOCK or
36613 NOTE_INSN_FUNCTION_BEG note.
36615 2013-02-01 Richard Henderson <rth@redhat.com>
36617 * config/rs6000/rs6000.md (smulditi3): New.
36620 * config/alpha/alpha.md (umulditi3): New.
36622 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
36624 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
36625 (ASM_OUTPUT_ALIGNED_LOCAL): New.
36627 2013-02-01 Richard Biener <rguenther@suse.de>
36629 PR tree-optimization/56113
36630 * tree-ssa-structalias.c (label_visit): Reduce work for
36631 single-predecessor nodes.
36633 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
36635 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
36636 range isn't testing for zero.
36638 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
36640 PR middle-end/56113
36641 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
36643 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
36644 Nick Clifton <nickc@redhat.com>
36646 * config/v850/constraints.md (Q): Define as a memory constraint.
36647 * config/v850/predicates.md (label_ref_operand): New predicate.
36648 (e3v5_shift_operand): New predicate.
36649 (ior_operator): New predicate.
36650 * config/v850/t-v850: Add e3v5 multilib.
36651 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
36652 (v850_gen_movdi): Prototype.
36653 * config/v850/v850.c: Add support for e3v5 architecture.
36654 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
36656 (construct_save_jarl): Add e3v5 long JARL support.
36657 (v850_adjust_insn_length): New function. Adjust length of call
36658 insns when using e3v5 instructions.
36659 (v850_gen_movdi): New function: Generate instructions to move a
36661 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
36662 (CPP_SPEC): Define __v850e3v5__ as appropriate.
36663 (TARGET_USE_FPU): Enable for e3v5.
36664 (CONST_OK_FOR_W): New macro.
36665 (ADJUST_INSN_LENGTH): Define.
36666 * config/v850/v850.md (UNSPEC_LOOP): Define.
36667 (attr cpu): Add v850e3v5.
36668 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
36669 (movdi): New pattern.
36670 (movdi_internal): New pattern.
36671 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
36672 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
36673 (cstoresf4): Likewise.
36674 (cstoredf4): Likewise.
36675 (insv): New pattern.
36676 (rotlso3_a): New pattern.
36677 (rotlsi3_b): New pattern
36678 (rotlsi3_v850e3v5): New pattern.
36679 (doloop_begin): New pattern.
36680 (fix_loop_counter): New pattern.
36681 (doloop_end): New pattern.
36682 (branch_normal): Add e3v5 long branch support.
36683 (branch_invert): Likewise.
36684 (branch_z_normal): Likewise.
36685 (branch_z_invert): Likewise.
36686 (branch_nz_normal): Likewise.
36687 (branch_nz_invert): Likewise.
36688 (call_internal_short): Add e3v5 register-indirect JARL support.
36689 (call_internal_long): Likewise.
36690 (call_value_internal_short): Likewise.
36691 (call_value_internal_long): Likewise.
36692 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
36693 (mloop): New option.
36694 * config.gcc: Add support for configuring v840e3v5 target.
36695 * doc/invoke.texi: Document new v850 specific command line options.
36697 2013-01-31 Paul Koning <ni1d@arrl.net>
36701 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
36702 children if parent is a class.
36703 (prune_unused_types_prune): Don't add DW_AT_declaration.
36705 2013-01-31 Richard Biener <rguenther@suse.de>
36707 PR tree-optimization/56157
36708 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
36709 match up operand with SLP child.
36711 2013-01-31 Jason Merrill <jason@redhat.com>
36714 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
36715 parameters the first time.
36716 (gen_scheduled_generic_parms_dies): Check completeness here.
36718 2013-01-31 Richard Biener <rguenther@suse.de>
36720 PR middle-end/53073
36721 * common.opt (faggressive-loop-optimizations): New flag,
36722 enabled by default.
36723 * doc/invoke.texi (faggressive-loop-optimizations): Document.
36724 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
36725 infer_loop_bounds_from_undefined by it.
36727 2013-01-31 Richard Biener <rguenther@suse.de>
36729 PR tree-optimization/56150
36730 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
36731 visit virtual operands.
36732 (find_uses_to_rename_bb): Likewise.
36734 2013-01-31 Richard Biener <rguenther@suse.de>
36736 PR tree-optimization/56150
36737 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
36738 mixed store non-store stmts.
36740 2013-01-30 Jakub Jelinek <jakub@redhat.com>
36743 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
36744 LIBASAN_EARLY_SPEC is defined.
36745 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
36746 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
36748 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
36751 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
36752 invalid args instead of ICEing on it.
36753 (ix86_valid_target_attribute_tree): Return error_mark_node if
36754 ix86_valid_target_attribute_inner_p failed.
36755 (ix86_valid_target_attribute_p): Return false only if
36756 ix86_valid_target_attribute_tree returned error_mark_node. Allow
36757 target("default") attribute.
36758 (sorted_attr_string): Change argument from const char * to tree,
36759 merge in all target attribute arguments rather than just one.
36760 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
36761 instead of free. Avoid using strcat.
36762 (ix86_mangle_function_version_assembler_name): Mangle
36763 target("default") as if no target attribute is present. Adjust
36764 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
36765 instead of xmalloc and XDELETEVEC instead of free.
36766 (ix86_function_versions): Don't return true if one of the decls
36767 doesn't have target attribute. If they don't and one of the decls
36768 is DECL_FUNCTION_VERSIONED, report an error. Adjust
36769 sorted_attr_string caller. Use XDELETEVEC instead of free.
36770 (ix86_supports_function_versions): Remove.
36771 (make_name): Fix up formatting.
36772 (make_dispatcher_decl): Remove resolver_name and its initialization.
36773 Avoid leaking memory.
36774 (is_function_default_version): Return true if there is
36775 target("default") attribute rather than no target attribute at all.
36776 (make_resolver_func): Avoid leaking memory.
36777 (ix86_generate_version_dispatcher_body): Likewise.
36778 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
36779 * target.def (supports_function_versions): Remove.
36780 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
36781 * doc/tm.texi: Regenerated.
36783 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
36785 PR rtl-optimization/56144
36786 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
36787 for values with side effects.
36789 2013-01-30 Richard Biener <rguenther@suse.de>
36791 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
36792 (sparseset_pop): Likewise.
36793 * cfganal.c (compute_idf): Likewise. Increase work-stack size
36794 to be able to use quick_push in the worker loop.
36796 2013-01-30 Marek Polacek <polacek@redhat.com>
36798 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
36800 2013-01-30 Richard Biener <rguenther@suse.de>
36803 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
36805 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
36807 PR tree-optimization/56064
36808 * fixed-value.c (fixed_from_double_int): New function.
36809 * fixed-value.h (fixed_from_double_int): New prototype.
36810 (const_fixed_from_double_int): New static inline function.
36811 * fold-const.c (native_interpret_fixed): New static function.
36812 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
36813 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
36814 (native_encode_fixed): New static function.
36815 (native_encode_expr) <FIXED_CST>: Use it.
36816 (native_interpret_int): Move double_int worker code to...
36817 * double-int.c (double_int::from_buffer): ...this new static method.
36818 * double-int.h (double_int::from_buffer): Prototype it.
36820 2013-01-30 Richard Biener <rguenther@suse.de>
36822 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
36823 New pointer-map and obstack.
36824 (init_alias_vars): Allocate pointer-map and obstack.
36825 (delete_points_to_sets): Free them.
36826 (find_what_var_points_to): Cache result.
36827 (find_what_p_points_to): Adjust for changed interface of
36828 find_what_var_points_to.
36829 (compute_points_to_sets): Likewise.
36830 (ipa_pta_execute): Likewise.
36832 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36834 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
36835 * configure: Regenerate.
36836 * config.in: Regenerate.
36837 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
36838 #nobits/#progbits if supported.
36840 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
36843 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
36844 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
36845 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
36847 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36849 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
36850 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
36852 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36854 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
36855 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
36857 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36859 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
36861 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
36862 * config/arm/cortex-a7.md: New bypasses using
36863 arm_mac_accumulator_is_result.
36865 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36867 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
36868 (cortex_a7_neon_mla): Likewise.
36869 (cortex_a7_fpfmad): New reservation.
36870 (cortex_a7_fpmacs): Use ffmas and update required units.
36871 (cortex_a7_fpmuld): Update required units and latency.
36872 (cortex_a7_fpmacd): Likewise.
36873 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
36874 (cortex_a7_neon). Likewise.
36875 (bypass) Update participating units.
36877 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
36879 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
36880 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
36882 * config/arm/vfp11.md (vfp_farith): Use ffmas.
36883 (vfp_fmul): Use ffmad.
36884 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
36885 (cortex_r4_fmacd): Use ffmad.
36886 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
36887 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
36888 (cortex_a9_fmacd): Use ffmad.
36889 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
36890 (cortex_a8_vfp_macd): Use ffmad.
36891 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
36892 (cortex_a5_fpmacd): Use ffmad.
36893 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
36894 (cortex_a15_vfp_macd): Use ffmad.
36895 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
36897 2013-01-29 Jason Merrill <jason@redhat.com>
36900 * varasm.c (default_assemble_visibility): Don't warn about
36901 visibility on artificial decls.
36903 2013-01-29 Richard Biener <rguenther@suse.de>
36905 PR tree-optimization/56113
36906 * tree-ssa-structalias.c (equiv_class_lookup): Also return
36908 (label_visit): Free duplicate bitmaps and record the leader instead.
36909 (perform_var_substitution): Adjust.
36911 2013-01-29 Richard Biener <rguenther@suse.de>
36913 PR tree-optimization/55270
36914 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
36915 the CFG, schedule loops for fixup.
36917 2013-01-29 Nick Clifton <nickc@redhat.com>
36919 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
36922 2013-01-28 Leif Ekblad <leif@rdos.net>
36924 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
36925 * config/i386/i386.h (TARGET_RDOS): New macro.
36926 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
36927 * config/i386/i386.c (ix86_option_override_internal): For 64bit
36928 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
36929 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
36930 DEFAULT_LARGE_SECTION_THRESHOLD.
36931 * config/i386/i386.md (R14_REG, R15_REG): New constants.
36932 * config/i386/rdos.h: New file.
36933 * config/i386/rdos64.h: New file.
36935 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
36938 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
36941 2013-01-28 Jakub Jelinek <jakub@redhat.com>
36943 PR rtl-optimization/56117
36944 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
36945 call cselib_lookup_from_insn on the MEM before calling
36946 add_insn_mem_dependence.
36948 2013-01-28 Richard Biener <rguenther@suse.de>
36950 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
36951 to a stmt that didn't have one.
36952 (copy_phis_for_bb): Likewise for PHI arguments.
36953 (copy_debug_stmt): Likewise for debug stmts.
36955 2013-01-28 Richard Biener <rguenther@suse.de>
36957 PR tree-optimization/56034
36958 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
36959 (partition_builtin_p): Adjust.
36960 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
36961 it is the last partition.
36962 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
36963 up the vertex for the definition.
36964 (classify_partition): Classify whether a partition is a
36965 PKIND_REDUCTION, thus has uses outside of the loop.
36966 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
36967 Merge all PKIND_REDUCTION partitions into the last partition.
36968 (tree_loop_distribution): Seed partitions from reductions as well.
36970 2013-01-28 Jakub Jelinek <jakub@redhat.com>
36972 PR tree-optimization/56125
36973 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
36974 pow(x,c) into sqrt(x) * powi(x, n/2) or
36975 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
36976 optimizing for size.
36977 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
36978 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
36981 PR tree-optimization/56094
36982 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
36983 to UNKNOWN_LOCATION while gimplifying expr.
36985 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
36988 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
36989 operand 0 in movabs insn template for -masm=intel asm alternative.
36990 (*movabs<mode>_2): Ditto for operand 1.
36992 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
36995 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
36998 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37000 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
37003 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37005 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
37006 Undef to avoid warning.
37008 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37010 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
37011 * configure: Regenerate.
37013 2013-01-25 Jakub Jelinek <jakub@redhat.com>
37015 PR tree-optimization/56098
37016 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
37017 for stmts with volatile ops.
37018 (cond_store_replacement): Don't optimize if assign has volatile ops.
37019 (cond_if_else_store_replacement_1): Don't optimize if either
37020 then_assign or else_assign have volatile ops.
37021 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
37024 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37026 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
37028 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37030 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
37031 missing ':' in asm example.
37033 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
37035 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
37036 entries into lane and laneq entries.
37037 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
37038 Remove AdvSIMD scalar modes.
37039 (aarch64_sq<r>dmulh_laneq<mode>): New.
37040 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
37042 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
37043 builtin implementations to relfect changes in RTL in aarch64-simd.md.
37044 * config/aarch64/iterators.md (VCOND): New.
37047 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
37050 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
37051 Add NULL LIBNAME argument to existing definitions.
37052 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
37053 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
37054 * config/avr/avr.c (DEF_BUILTIN): Same.
37055 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
37056 (avr_expand_builtin): Expand to a vanilla call if a libgcc
37057 implementation is available (DECL_ASSEMBLER_NAME is set).
37058 (avr_fold_absfx): New static function.
37059 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
37060 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
37061 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
37062 AVR_BUILTIN_ABSLLK.
37063 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
37064 (abshk, absk, abslk, absllk): Provide as static inline functions.
37066 2013-01-25 Marek Polacek <polacek@redhat.com>
37068 PR tree-optimization/56035
37069 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
37071 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
37073 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
37074 (*movtf_internal_rex64): Add (!o,C) alternative
37075 (*movxf_internal_rex64): Ditto.
37076 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
37078 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
37080 * doc/invoke.texi: fix typo.
37081 * doc/objc.texi: fix typo.
37083 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
37085 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
37086 for the first two alternatives.
37088 2013-01-24 Diego Novillo <dnovillo@google.com>
37090 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
37091 (ggc-zone.o): Remove.
37092 * configure.ac: Remove option --with-gc.
37093 * configure: Re-generate.
37094 * doc/install.texi: Remove documentation for --with-gc.
37095 * gengtype.c (write_enum_defn): Remove. Update all users.
37096 (write_Types_process_field): Remove generation of gt_e_* argument.
37097 (output_type_enum): Remove. Update all users.
37098 (write_enum_defn): Remove. Update all users.
37099 (enum alloc_zone): Remove. Update all users.
37100 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
37101 * ggc-common.c (ggc_splay_alloc): Remove first argument.
37102 Update all callers.
37103 (struct ptr_data): Remove field TYPE. Update all users.
37104 (gt_pch_note_object): Remove argument TYPE. Update all users.
37105 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
37107 * ggc-none.c (ggc_alloc_typed_stat): Remove.
37108 (struct alloc_zone): Remove.
37109 (ggc_internal_alloc_zone_stat): Remove.
37110 (ggc_internal_cleared_alloc_zone_stat): Remove.
37111 * ggc-page.c (ggc_alloc_typed_stat): Remove.
37112 (ggc_pch_count_object): Remove last argument. Update all users.
37113 (ggc_pch_alloc_object): Remove last argument. Update all users.
37114 (struct alloc_zone): Remove.
37115 * ggc-zone.c: Remove.
37116 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
37117 (struct alloc_zone): Remove.
37118 (ggc_alloc_typed_stat): Remove.
37119 (ggc_alloc_typed): Remove.
37120 (ggc_splay_alloc): Remove first argument.
37121 (rtl_zone): Remove. Update all users.
37122 (tree_zone): Remove. Update all users.
37123 (tree_id_zone): Remove. Update all users.
37124 (ggc_internal_zone_alloc_stat): Remove. Update all users.
37125 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
37126 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
37127 * tree-ssanames.c: Remove references to zone allocator in comments.
37129 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
37131 * config/avr/avr.c (avr_out_fract): Make register numbers that
37132 might be outside of source operand signed.
37134 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
37136 * config/i386/constraints.md (Yf): New constraint.
37137 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
37138 of f constraint to conditionaly disable x87 register preferences.
37139 (*movdf_internal): Ditto.
37140 (*movsf_internal): Ditto.
37142 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
37144 PR inline-asm/55934
37145 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
37146 that have operands with impossible constraints.
37147 Add a FIXME for a speed-up opportunity.
37148 * lra-constraints.c (process_alt_operands): Verify that a class
37149 selected from constraints on asms is valid for the operand mode.
37150 (curr_insn_transform): Remove incorrect comment.
37152 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
37154 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
37155 TOC operand is a valid symbol ref in the constant pool.
37157 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37159 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
37161 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
37164 * config/avr/stdfix.h: New file.
37165 * t-avr (stdfix-gcc.h): New rule to build it.
37166 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
37168 2013-01-23 Kostya Serebryany <kcc@google.com>
37170 * config/darwin.h: remove dependency on
37171 CoreFoundation (asan on Mac OS).
37173 2013-01-23 Jakub Jelinek <jakub@redhat.com>
37176 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
37177 instead of cmpdi_operand for first comparison operand.
37178 Don't assert that comparison operands aren't both constants.
37180 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37182 * doc/install.texi (Downloading the Source): Update references to
37183 downloading separate components.
37185 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
37187 * doc/extend.texi (__int128): Improve grammar.
37189 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
37192 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
37193 alternative to (o,r).
37194 (*movdi_internal_rex64): Remove (!o,n) alternative.
37195 (DImode immediate->memory splitter): Remove.
37196 (DImode immediate->memory peephole2): Remove.
37197 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
37198 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
37199 alternative to (!o,*r).
37200 (*movtf_internal_sse): New pattern.
37201 (*movxf_internal_rex64): New pattern.
37202 (*movxf_internal): Disable for TARGET_64BIT.
37203 (*movdf_internal_rex64): Remove (!o,F) alternative.
37205 2013-01-22 Jakub Jelinek <jakub@redhat.com>
37207 PR middle-end/56074
37208 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
37209 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
37210 * tree-vect-loop-manip.c (find_loop_location): Also ignore
37211 stmt locations where LOCATION_LOCUS of the stmt location is
37212 UNKNOWN_LOCATION or BUILTINS_LOCATION.
37215 * config/i386/i386.md (UNSPEC_STOS): New.
37216 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
37217 *strsetqi_1): Add UNSPEC_STOS.
37219 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
37222 * doc/invoke.texi: Remove left over -Wsynth example.
37224 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37226 PR tree-optimization/56051
37227 * fold-const.c (fold_binary_loc): Don't fold
37228 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
37229 a narrowing conversion, or widening conversion from signed
37232 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37234 PR rtl-optimization/56023
37235 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
37236 dependent on debug instruction.
37238 2013-01-21 Martin Jambor <mjambor@suse.cz>
37240 PR middle-end/56022
37241 * function.c (allocate_struct_function): Call
37242 invoke_set_current_function_hook earlier.
37244 2013-01-21 Jakub Jelinek <jakub@redhat.com>
37246 * reload1.c (init_reload): Only initialize reload_obstack
37247 during the first call.
37249 2013-01-21 Marek Polacek <polacek@redhat.com>
37251 * cfgloop.c (verify_loop_structure): Fix up grammar.
37253 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
37255 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
37256 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
37258 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37261 * config/arm/marvell-pj4.md: Update copyright year.
37262 Fix up use of alu to alu_reg and simple_alu_imm.
37264 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
37266 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
37268 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
37271 * lra-constraints.c (curr_insn_transform): Don't reuse original
37272 insn for secondary memory move when memory mode should be different.
37274 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37276 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
37277 atomic_storedi_1): New patterns.
37279 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
37281 btver2 pipeline descriptions.
37282 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
37284 * config/i386/i386.md (btver2_decode): New type attributes.
37285 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
37287 * config/i386/btver2.md: New file describing btver2 pipelines.
37289 2013-01-19 Andrew Pinski <apinski@cavium.com>
37291 PR tree-optimization/52631
37292 * tree-ssa-sccvn (visit_use): Before looking up the original
37293 statement, try looking up the simplified expression.
37295 2013-01-19 Anthony Green <green@moxielogic.com>
37297 * config/moxie/moxie.c (moxie_expand_prologue): Set
37298 current_function_static_stack_size.
37300 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37302 PR tree-optimization/56029
37303 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
37304 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
37306 2013-01-18 Sharad Singhai <singhai@google.com>
37308 PR tree-optimization/55995
37309 * dumpfile.c (dump_loc): Print location only if available.
37310 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
37312 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
37315 * lra-constraints.c (curr_insn_transform): Reuse original insn for
37316 secondary memory move.
37317 (inherit_reload_reg): Use rclass instead of cl for
37318 check_secondary_memory_needed_p.
37320 2013-01-18 Jakub Jelinek <jakub@redhat.com>
37322 PR middle-end/56015
37323 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
37324 the case where writing real complex part of target modifies op1.
37326 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
37328 * config/aarch64/aarch64-simd.md
37329 (aarch64_vcond_internal<mode>): Handle unordered cases.
37330 * config/aarch64/iterators.md (v_cmp_result): New.
37332 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
37333 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37335 * config/arm/marvell-pj4.md: New file.
37336 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
37337 * config/arm/arm.md (generic_sched): Add marvell_pj4.
37338 (generic_vfp): Likewise.
37339 * config/arm/arm-cores.def: Add marvell-pj4.
37340 * config/arm/arm-tune.md: Regenerate.
37341 * config/arm/arm-tables.opt: Regenerate.
37342 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
37343 * doc/invoke.texi: Document marvell-pj4.
37345 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
37347 * config/aarch64/arm_neon.h: Map scalar types to standard types.
37349 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37354 * var-tracking.c (negative_power_of_two_p): New.
37355 (global_get_addr_cache, local_get_addr_cache): New.
37356 (get_addr_from_global_cache, get_addr_from_local_cache): New.
37357 (vt_canonicalize_addr): Rewrite using the above. Adjust the
37359 (vt_stack_offset_p): Remove.
37360 (vt_canon_true_dep): Always canonicalize loc's address.
37361 (clobber_overlapping_mems): Make sure we have a MEM.
37362 (local_get_addr_clear_given_value): New.
37363 (val_reset): Clear local cached entries.
37364 (compute_bb_dataflow): Create and release the local cache.
37365 Disable duplicate MEMs clobbering.
37366 (emit_notes_in_bb): Clobber MEMs likewise.
37367 (vt_emit_notes): Create and release the local cache.
37368 (vt_initialize, vt_finalize): Create and release the global
37369 cache, respectively.
37370 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
37372 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37374 PR libmudflap/53359
37375 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
37376 not found in the symtab.
37378 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
37381 PR rtl-optimization/55547
37382 PR rtl-optimization/53827
37385 * alias.c (offset_overlap_p): New, factored out of...
37386 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
37387 the conservative special case for symbolic constants. Don't
37388 adjust zero sizes on alignment.
37390 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
37392 PR rtl-optimization/52573
37393 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
37394 REG_UNUSED for the same register.
37396 2013-01-17 Richard Biener <rguenther@suse.de>
37397 Marek Polacek <polacek@redhat.com>
37399 PR rtl-optimization/55833
37400 * loop-unswitch.c (unswitch_loops): Move loop verification...
37401 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
37402 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
37403 Set it to true when we're removing a loop from hierarchy tree in
37404 an irreducible region.
37405 (fix_bb_placements): Adjust caller.
37406 (fix_loop_placements): Likewise.
37408 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
37410 * config/avr/builtins.def (DEF_BUILTIN): Factor out
37411 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
37412 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
37413 Remove ID. Adjust comments.
37414 * config/avr/avr-c.c (avr_builtin_name): Remove.
37415 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
37416 * config/avr/avr.c (avr_tolower): New static function.
37417 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
37418 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
37419 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
37422 2013-01-17 Jan Hubicka <jh@suse.cz>
37424 PR tree-optimization/55273
37425 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
37427 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
37430 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
37431 store through atomic_store<mode>_1.
37432 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
37434 2013-01-17 Martin Jambor <mjambor@suse.cz>
37436 PR tree-optimizations/55264
37437 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
37438 for virtual methods.
37439 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
37440 virtual methods before inlining is over.
37441 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
37443 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
37446 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
37448 PR rtl-optimization/56005
37449 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
37450 pending reads for prefetch.
37452 2013-01-16 Ian Bolton <ian.bolton@arm.com>
37454 * config/aarch64/aarch64.md
37455 (*cstoresi_neg_uxtw): New pattern.
37456 (*cmovsi_insn_uxtw): New pattern.
37457 (*<optab>si3_uxtw): New pattern.
37458 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
37459 (*<optab>si3_insn_uxtw): New pattern.
37460 (*bswapsi2_uxtw): New pattern.
37462 2013-01-16 Richard Biener <rguenther@suse.de>
37464 * tree-inline.c (tree_function_versioning): Remove set but
37465 never used variable.
37467 2013-01-16 Richard Biener <rguenther@suse.de>
37469 PR tree-optimization/55964
37470 * tree-flow.h (rename_variables_in_loop): Remove.
37471 (rename_variables_in_bb): Likewise.
37472 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
37473 (copy_loop_before): Adjust and delete update-ssa status.
37474 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
37475 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
37476 (rename_variables_in_loop): Remove.
37477 (slpeel_update_phis_for_duplicate_loop): Likewise.
37478 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
37479 use available cfg machinery instead of duplicating it.
37480 Update PHI nodes and perform poor-mans SSA update here.
37481 (slpeel_tree_peel_loop_to_edge): Adjust.
37483 2013-01-16 Richard Biener <rguenther@suse.de>
37485 PR tree-optimization/54767
37486 PR tree-optimization/53465
37487 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
37488 (vrp_visit_phi_node): For PHI arguments coming via backedges
37489 drop all symbolical range information.
37490 (execute_vrp): Compute backedges.
37492 2013-01-16 Richard Biener <rguenther@suse.de>
37494 * doc/install.texi: Update CLooG and ISL requirements to
37497 2013-01-16 Christian Bruel <christian.bruel@st.com>
37500 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
37501 (broken_move): Handle UNSPECV_SP_SWITCH_B.
37502 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
37504 2013-01-16 DJ Delorie <dj@redhat.com>
37506 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
37507 (UNSPECV_SP_SWITCH_E): New.
37508 (sp_switch_1): Change to an unspec.
37509 (sp_switch_2): Change to an unspec. Don't use post-inc when we
37512 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
37514 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
37515 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
37516 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
37517 (expand_mem_thread_fence): Ditto.
37518 (expand_mem_signal_fence): Ditto.
37519 (expand_atomic_load): Ditto.
37520 (expand_atomic_store): Ditto.
37522 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
37524 PR rtl-optimization/55547
37525 PR rtl-optimization/53827
37528 * alias.c (memrefs_conflict_p): Set sizes to negative after
37531 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37534 * function.c (thread_prologue_and_epilogue_insns): Always
37535 add crtl->drap_reg to set_up_by_prologue.set, even if
37536 stack_realign_drap is false.
37538 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37540 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
37541 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
37542 *call): Fix indention.
37544 2013-01-15 Tom de Vries <tom@codesourcery.com>
37547 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
37550 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
37552 PR rtl-optimization/55153
37553 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
37555 2013-01-15 Martin Jambor <mjambor@suse.cz>
37557 PR tree-optimization/55920
37558 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
37559 accesses as grp_to_be_debug_replaced.
37561 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37563 PR tree-optimization/55920
37564 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
37565 there is non-useless type conversion needed from debug rhs to lhs,
37566 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
37568 2013-01-15 Joseph Myers <joseph@codesourcery.com>
37569 Mikael Pettersson <mikpe@it.uu.se>
37572 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
37574 (ASM_OUTPUT_CASE_LABEL): Remove.
37575 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
37576 * final.c (shorten_branches): Update alignment of labels before
37577 jump tables if CASE_VECTOR_SHORTEN_MODE.
37579 2013-01-15 Richard Biener <rguenther@suse.de>
37582 * system.h: Do not include gmp.h for building host tools.
37584 2013-01-15 Richard Biener <rguenther@suse.de>
37586 PR middle-end/55882
37587 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
37588 account for bitpos when computing alignment.
37590 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
37592 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
37593 (ix86_target_macros_internal): Likewise.
37595 * config/i386/i386.c (m_CORE2I7): Removed.
37596 (m_CORE_HASWELL): New macro.
37597 (m_CORE_ALL): Likewise.
37598 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
37599 (initial_ix86_arch_features): Likewise.
37600 (processor_target_table): Initializations for Core avx2.
37601 (cpu_names): New names "core-avx2".
37602 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
37603 PROCESSOR_CORE_HASWELL.
37604 (ix86_issue_rate): New case.
37605 (ia32_multipass_dfa_lookahead): Likewise.
37606 (ix86_sched_init_global): Likewise.
37608 * config/i386/i386.h (TARGET_HASWELL): New macro.
37609 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
37610 (processor_type): New PROCESSOR_HASWELL.
37612 2013-01-15 Jakub Jelinek <jakub@redhat.com>
37614 PR tree-optimization/55955
37615 * tree-vect-loop.c (vectorizable_reduction): Give up early on
37616 *SHIFT_EXPR and *ROTATE_EXPR codes.
37618 PR tree-optimization/48766
37619 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
37620 -ftrapv disable -fwrapv.
37622 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37625 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
37626 etc. to 1 and not to __flash.
37627 Use LL suffix for __INT24_MAX__ with -mint8.
37628 Use ULL suffix for __UINT24_MAX__ with -mint8.
37630 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37632 * config/avr/avr-arch.h
37633 (struct base_arch_s): Use typedef avr_arch_t instead.
37634 (struct arch_info_s): Use typedef avr_arch_info_t instead.
37635 (struct mcu_type_s): Use typedef avr_mcu_t instead.
37636 * config/avr/avr.c: Same.
37637 * config/avr/avr-devices.c: Same.
37638 * config/avr/driver-avr.c: Same.
37639 * config/avr/gen-avr-mmcu-texi.c: Same.
37640 * config/avr/avr-mcus.def: Adjust comment.
37642 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
37644 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
37645 * config/aarch64/iterators.md (VALLDI): New.
37647 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
37648 Andi Kleen <ak@linux.intel.com>
37651 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
37652 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
37655 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37657 * config/avr/avr-stdint.h: Remove trailing blanks.
37658 * config/avr/avr-log.h: Same.
37659 * config/avr/avr-arch.h: Same.
37660 * config/avr/avr-devices.c: Same.
37661 * config/avr/avr-dimode.md: Same.
37662 * config/avr/predicates.md: Same.
37663 * config/avr/avr-c.c: Same. And fix typo.
37665 * config/avr/avr-protos.h: Same. And:
37666 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
37667 (init_cumulative_args): Rename to avr_init_cumulative_args.
37668 (expand_prologue): Rename to avr_expand_prologue.
37669 (expand_epilogue): Rename to avr_expand_epilogue.
37670 (adjust_insn_length): Rename to avr_adjust_insn_length.
37671 (notice_update_cc): Rename to avr_notice_update_cc.
37672 (final_prescan_insn): Rename to avr_final_prescan_insn.
37673 * config/avr/avr.c: Same.
37674 * config/avr/avr.h: Same.
37675 * config/avr/avr.md: Remove trailing blanks.
37676 (prologue): Use avr_expand_prologue.
37677 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
37679 2013-01-14 Richard Biener <rguenther@suse.de>
37681 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
37682 verify_location, collect_subblocks): New functions.
37683 (verify_gimple_in_cfg): Verify that locations only reference
37684 BLOCKs in the functions BLOCK tree.
37686 2013-01-14 Richard Biener <rguenther@suse.de>
37688 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
37690 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
37692 (insert_out_of_ssa_copy_on_edge): Likewise.
37693 (rewrite_close_phi_out_of_ssa): Likewise.
37694 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
37696 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
37697 propagated constants.
37698 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
37701 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
37703 * config/avr/avr-modes.def: Add GPL copyright notice.
37705 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
37707 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
37708 MEMMODEL_MASK to determine memory model.
37709 (atomic_store<mode>): Ditto from operands[2].
37710 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
37712 2013-01-13 Jakub Jelinek <jakub@redhat.com>
37715 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
37716 (fold_gimple_assign): Don't call unshare_expr here.
37717 (fold_ctor_reference): Call unshare_expr.
37719 2013-01-13 Terry Guo <terry.guo@arm.com>
37721 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
37722 * doc/fragments.texi: Document MULTILIB_REUSE.
37723 * gcc.c (multilib_reuse): New internal spec.
37724 (set_multilib_dir): Also search multilib from multilib_reuse.
37725 * genmultilib (tmpmultilib3): Refactor code.
37726 (tmpmultilib4): Ditto.
37727 (multilib_reuse): New multilib argument.
37729 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
37731 * Makefile.in: Update copyright.
37733 2013-01-12 Tom de Vries <tom@codesourcery.com>
37735 PR middle-end/55890
37736 * calls.c (expand_call): Check if arg_nr is valid.
37738 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
37740 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
37741 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
37742 documentation. Add missing '__' in front of
37743 __builtin_ia32_packssdw256.
37745 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37748 * config/s390/s390.c (s390_preferred_reload_class): Do not return
37749 NO_REGS for larl operands.
37750 (s390_reload_larl_operand): Use s390_load_address instead of
37753 2013-01-11 Richard Biener <rguenther@suse.de>
37755 * tree-cfg.c (verify_node_sharing_1): Split out from ...
37756 (verify_node_sharing): ... here.
37757 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
37759 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
37761 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
37762 Substitute TREECHECKING.
37763 * configure: Regenerate.
37764 * Makefile.in (TREECHECKING): New.
37766 2013-01-11 Richard Guenther <rguenther@suse.de>
37768 PR tree-optimization/44061
37769 * tree-vrp.c (extract_range_basic): Compute zero as
37770 value-range for __builtin_constant_p of function parameters.
37772 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
37774 Update copyright years.
37776 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
37778 PR rtl-optimization/55672
37779 * lra-eliminations.c (mark_not_eliminable): Permit addition with
37780 const to be eliminable.
37782 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
37784 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
37785 * configure: Regenerate.
37787 2013-01-10 Richard Biener <rguenther@suse.de>
37789 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
37791 2013-01-10 Richard Biener <rguenther@suse.de>
37794 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
37795 locations for virtual PHI arguments.
37796 (rewrite_update_phi_arguments): Likewise.
37798 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
37800 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
37803 2013-01-10 Jakub Jelinek <jakub@redhat.com>
37805 PR tree-optimization/55921
37806 * tree-complex.c (expand_complex_asm): New function.
37807 (expand_complex_operations_1): Call it for GIMPLE_ASM.
37809 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37812 * config/s390/s390.c (s390_symref_operand_p)
37813 (s390_loadrelative_operand_p): Merge the two functions.
37814 (s390_check_qrst_address, print_operand_address): Add parameters
37815 to s390_loadrelative_operand_p invokation.
37816 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
37817 (s390_reload_larl_operand, s390_secondary_reload): Use
37818 s390_loadrelative_operand_p instead of s390_symref_operand_p.
37819 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
37821 2013-01-09 Mike Stump <mikestump@comcast.net>
37823 * dse.c (record_store): Remove unnecessary assert.
37825 2013-01-09 Jan Hubicka <jh@suse.cz>
37827 PR tree-optimization/55569
37828 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
37829 * cfgloop.h (scale_loop_profile): Likewise.
37831 2013-01-09 Jan Hubicka <jh@suse.cz>
37834 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
37836 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
37838 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
37840 PR middle-end/55114
37841 * expr.h (maybe_emit_group_store): Declare.
37842 * expr.c (maybe_emit_group_store): New function.
37843 * builtins.c (expand_builtin_int_roundingfn): Call it.
37844 (expand_builtin_int_roundingfn_2): Likewise.
37846 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
37848 PR rtl-optimization/55829
37849 * lra-constraints.c (match_reload): Add code for absent output.
37850 (curr_insn_transform): Add code for reloads of matched inputs
37853 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
37855 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
37856 attribute of movddup insn to DF.
37857 (*vec_interleave_lowv2df): Ditto.
37858 (vec_dupv2df): Ditto.
37860 2013-01-09 Jan Hubicka <jh@suse.cz>
37862 PR tree-optimiation/55875
37863 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
37864 EVERY_ITERATION parameter.
37865 (number_of_iterations_exit): Check if exit is executed every iteration.
37866 (idx_infer_loop_bounds): Similarly here.
37867 (n_of_executions_at_most): Simplify
37868 to only test for cases where statement is dominated by the
37869 particular bound; handle correctly the "postdominance" test.
37870 (scev_probably_wraps_p): Use max loop iterations info
37871 as a global bound first.
37873 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
37874 Nick Clifton <nickc@redhat.com>
37876 * config/v850/v850.md (cbranchsf4): New pattern.
37877 (cstoresf4): New pattern.
37878 (cbranchdf4): New pattern.
37879 (cstoredf4): New pattern.
37880 (movsicc): Disallow floating point comparisons.
37881 (cmpsf_le_insn): Fix order of operators.
37882 (cmpsf_lt_insn): Likewise.
37883 (cmpsf_eq_insn): Likewise.
37884 (cmpdf_le_insn): Likewise.
37885 (cmpdf_lt_insn): Likewise.
37886 (cmpdf_eq_insn): Likewise.
37887 (cmpsf_ge_insn): Use LE comparison.
37888 (cmpdf_ge_insn): Likewise.
37889 (cmpsf_gt_insn): Use LT comparison.
37890 (cmpdf_gt_insn): Likewise.
37891 (cmpsf_ne_insn): Delete pattern.
37892 (cmpdf_ne_insn): Delete pattern.
37893 * config/v850/v850.c (v850_gen_float_compare): Use
37894 gen_cmpdf_eq_insn for NE comparison.
37895 (v850_float_z_comparison_operator)
37896 (v850_float_nz_comparison_operator): Move from here ...
37897 * config/v850/predicates.md: ... to here. Move GT and GE
37898 comparisons into v850_float_z_comparison_operator.
37899 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
37901 (v850_float_nz_comparison_operator): Likewise.
37903 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37905 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
37906 with calls to gen_insvsi/gen_insvdi.
37908 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
37910 * config/i386/i386.c (initial_ix86_tune_features): Set up
37911 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
37913 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
37914 Jakub Jelinek <jakub@redhat.com>
37916 PR tree-optimization/48189
37917 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
37918 If nitercst is 0, don't predict the exit edge.
37920 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37922 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
37923 in asm_fprintf with reg_names.
37924 (aarch64_print_operand_address): Likewise.
37925 (aarch64_return_addr): Likewise.
37926 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
37928 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37930 * config/pa/pa.h (VAL_U6_BITS_P): Define.
37931 (INT_U6_BITS): Likewise.
37932 * config/pa/predicates.md (uint6_operand): New predicate.
37933 (shift5_operand, shift6_operand): Likewise.
37934 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
37936 (lshrdi3): Use shift6_operand.
37937 (shrpsi4, shrpdi4): New insn patterns.
37938 (extzv): Delete expander.
37939 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
37940 predicates in unamed zero extract patterns. Tighten common constraint.
37941 (extv): Delete expander.
37942 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
37943 predicates in unamed sign extract patterns. Tighten common constraint.
37944 (insv): Delete expander.
37945 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
37946 predicates in unamed insert patterns. Tighten common constraint.
37947 Change uint32_operand predicate to uint6_operand predicate in unamed
37948 DImode pattern to insert constant values of type 1...1xxxx.
37950 2013-01-04 Jan Hubicka <jh@suse.cz>
37952 PR tree-optimization/55823
37953 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
37956 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37957 Uros Bizjak <ubizjak@gmail.com>
37959 PR rtl-optimization/55845
37960 * df-problems.c (can_move_insns_across): Stop scanning at
37961 volatile_insn_p source instruction or give up if
37962 across_from .. across_to range contains any volatile_insn_p
37965 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
37967 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
37968 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
37970 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
37971 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
37973 2013-01-08 Jakub Jelinek <jakub@redhat.com>
37976 * asan.c (asan_clear_shadow): New function.
37977 (asan_emit_stack_protection): Use it.
37979 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
37981 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
37982 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
37983 with tab instead of space.
37985 2013-01-08 Nick Clifton <nickc@redhat.com>
37987 * config/rl78/rl78.c (rl78_expand_prologue): Always select
37988 register bank 0 at the start of an interrupt handler.
37989 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
37992 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
37994 * config/aarch64/aarch64-simd.md
37995 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
37996 (aarch64_simd_bsl): Likewise.
37997 (aarch64_vcond_internal<mode>): Likewise.
37998 (vcond<mode><mode>): Likewise.
37999 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
38000 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
38002 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
38004 * config/aarch64/aarch64-builtins.c
38005 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
38007 2013-01-08 Martin Jambor <mjambor@suse.cz>
38010 * tree-sra.c (analyze_access_subtree): Return true also after
38011 potentially creating a debug-only replacement.
38013 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38015 PR middle-end/55890
38016 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
38018 PR tree-optimization/54120
38019 * tree-vrp.c (range_fits_type_p): Don't allow
38020 src_precision < precision from signed vr to unsigned_p
38021 if vr->min or vr->max is negative.
38022 (simplify_float_conversion_using_ranges): Test can_float_p
38023 against CODE_FOR_nothing.
38025 2013-01-08 Jakub Jelinek <jakub@redhat.com>
38026 Richard Biener <rguenther@suse.de>
38028 PR middle-end/55851
38029 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
38030 types instead of just INTEGER_TYPE types.
38032 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
38034 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
38037 2013-01-07 Steve Ellcey <sellcey@mips.com>
38040 * config/mips/mips.opt: Change mad to mmad to match documentation.
38042 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38045 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
38046 .progmemx.data now.
38048 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38051 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
38052 (avr_addrspace_t): Add .section_name field.
38053 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
38055 (avr_addrspace): Same. Initialize .section_name. Remove last
38056 NULL entry. Put __memx into .progmemx.data.
38057 (progmem_section_prefix): Remove.
38058 (avr_asm_init_sections): No need to initialize progmem_section.
38059 (avr_asm_named_section): Use avr_addrspace[].section_name to get
38060 section name prefix.
38061 (avr_asm_select_section): Ditto. And use get_unnamed_section to
38062 retrieve the progmem section.
38063 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
38064 boundary to run over avr_addrspace[].
38065 (avr_register_target_pragmas): Ditto.
38067 2013-01-06 Jakub Jelinek <jakub@redhat.com>
38069 * varasm.c (output_constant_def_contents): For asan_protect_global
38070 protected strings, adjust DECL_ALIGN if needed, before testing for
38072 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
38073 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
38075 (output_object_block): For asan protected decls, emit asan padding
38076 after their contents.
38077 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
38078 (asan_finish_file): Test it here instead.
38080 2013-01-07 Nick Clifton <nickc@redhat.com>
38081 Matthias Klose <doko@debian.org>
38082 Doug Kwan <dougkwan@google.com>
38083 H.J. Lu <hongjiu.lu@intel.com>
38086 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
38088 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
38090 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
38092 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
38094 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
38096 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38099 * doc/install.texi (Cross-Compiler-Specific Options): Document
38102 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
38104 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
38105 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
38106 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
38107 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
38108 vqmovun_high_s64): Fix source operand number and update copyright.
38110 2013-01-07 Richard Biener <rguenther@suse.de>
38112 PR middle-end/55890
38113 * gimple.h (gimple_call_builtin_p): New overload.
38114 * gimple.c (validate_call): New function.
38115 (gimple_call_builtin_p): Likewise.
38116 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
38117 Use gimple_call_builtin_p.
38118 (find_func_clobbers): Likewise.
38119 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
38120 (strlen_optimize_stmt): Likewise.
38122 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38124 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
38125 (vld1q_dup_*): Likewise.
38126 (vld1_*): Likewise.
38127 (vld1q_*): Likewise.
38128 (vld1_lane_*): Likewise.
38129 (vld1q_lane_*): Likewise.
38131 2013-01-07 Richard Biener <rguenther@suse.de>
38133 * lto-streamer.h (LTO_minor_version): Bump to 2.
38135 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
38137 * config/aarch64/aarch64-protos.h
38138 (aarch64_const_double_zero_rtx_p): Rename to...
38139 (aarch64_float_const_zero_rtx_p): ...this.
38140 (aarch64_float_const_representable_p): New.
38141 (aarch64_output_simd_mov_immediate): Likewise.
38142 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
38143 move immediate case.
38144 * config/aarch64/aarch64.c
38145 (aarch64_const_double_zero_rtx_p): Rename to...
38146 (aarch64_float_const_zero_rtx_p): ...this.
38147 (aarch64_print_operand): Allow printing of new constants.
38148 (aarch64_valid_floating_const): New.
38149 (aarch64_legitimate_constant_p): Check for valid floating-point
38151 (aarch64_simd_valid_immediate): Likewise.
38152 (aarch64_vect_float_const_representable_p): New.
38153 (aarch64_float_const_representable_p): Likewise.
38154 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
38155 (aarch64_output_simd_mov_immediate): New.
38156 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
38157 (*movdf_aarch64): Likewise.
38158 * config/aarch64/constraints.md (Ufc): New.
38159 (Y): call aarch64_float_const_zero_rtx.
38160 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
38162 2013-01-07 Richard Biener <rguenther@suse.de>
38164 PR tree-optimization/55888
38165 PR tree-optimization/55862
38166 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
38167 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
38168 not if it is contained therein.
38170 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38172 * config/avr/t-avr: Typo.
38174 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
38177 * config/avr/t-avr: Don't automatically rebuild
38178 $(srcdir)/config/avr/t-multilib
38179 $(srcdir)/config/avr/avr-tables.opt
38180 $(srcdir)/doc/avr-mmcu.texi
38181 (avr-mcus): New phony target to build them on request.
38182 (s-avr-mlib, s-avr-mmcu-texi): Remove.
38183 * avr/avr-mcus.def: Adjust comments.
38185 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
38187 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
38189 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38191 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
38193 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
38195 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
38197 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
38199 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
38200 to generate profiling.
38201 * config/rs6000/aix64.h (LIB_SPEC): Same.
38203 2013-01-04 Andrew Pinski <apinski@cavium.com>
38205 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
38207 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
38209 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
38211 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
38213 (ix86_expand_move): Ditto.
38214 (ix86_zero_extend_to_Pmode): Ditto.
38215 (ix86_expand_call): Ditto.
38216 (ix86_expand_special_args_builtin): Ditto.
38217 (ix86_expand_builtin): Ditto.
38219 2013-01-04 Richard Biener <rguenther@suse.de>
38221 PR tree-optimization/55862
38222 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
38223 translating them through PHI nodes.
38225 2013-01-04 Martin Jambor <mjambor@suse.cz>
38227 PR tree-optimization/55755
38228 * tree-sra.c (sra_modify_assign): Do not check that an access has no
38229 children when trying to avoid producing a VIEW_CONVERT_EXPR.
38231 2013-01-04 Marek Polacek <polacek@redhat.com>
38233 PR middle-end/55859
38234 * opts.c (default_options_optimization): Clarify error message.
38236 2013-01-04 Richard Biener <rguenther@suse.de>
38238 PR middle-end/55863
38239 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
38242 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38245 * config/pa/pa.md (movsi): Revert previous change.
38246 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
38249 2013-01-03 Richard Henderson <rth@redhat.com>
38251 * config/i386/i386.c (ix86_expand_move): Always assign to op1
38252 after eliminating TLS symbols.
38254 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
38257 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
38258 * graphite-poly.c (debug_gmp_value): Likewise.
38260 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
38263 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
38264 selected code model, define __code_mode_small__, __code_model_medium__,
38265 __code_model_large__, __code_model_32__ or __code_model_kernel__.
38266 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
38267 xchg temporary register with %k. Declare temporary register as
38269 [__x86_64__]: For medium and large code models, preserve %rbx register.
38271 2013-01-03 Richard Biener <rguenther@suse.de>
38273 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
38274 (dump_subscript): Adjust.
38275 (finalize_ddr_dependent): Do not dump redundant info.
38276 (analyze_siv_subscript): Adjust.
38277 (subscript_dependence_tester): Likewise.
38278 (compute_affine_dependence): Likewise.
38280 2013-01-03 Richard Biener <rguenther@suse.de>
38283 2013-01-03 Richard Biener <rguenther@suse.de>
38285 PR tree-optimization/55857
38286 * tree-vect-stmts.c (vectorizable_load): Do not setup
38287 re-alignment for invariant loads.
38289 2013-01-02 Richard Biener <rguenther@suse.de>
38291 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38292 invariant load do not generate a vector load from the scalar location.
38294 2013-01-03 Richard Biener <rguenther@suse.de>
38296 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
38297 for not vectorizing.
38298 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
38299 not build INDIRECT_REFs, call get_name once only.
38300 (vect_create_data_ref_ptr): Likewise. Dump base object kind
38301 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
38303 2013-01-03 Richard Biener <rguenther@suse.de>
38305 PR tree-optimization/55857
38306 * tree-vect-stmts.c (vectorizable_load): Do not setup
38307 re-alignment for invariant loads.
38309 2013-01-03 Richard Biener <rguenther@suse.de>
38312 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
38313 prefer a built-in decl.
38315 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38317 * gcc.c (process_command): Update copyright notice dates.
38318 * gcov.c (print_version): Likewise.
38319 * gcov-dump.c (print_version): Likewise.
38321 PR rtl-optimization/55838
38322 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
38323 iv0.step, iv1.step and step.
38325 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38326 Marc Glisse <marc.glisse@inria.fr>
38328 PR tree-optimization/55832
38329 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
38330 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
38331 integer_{one,zero}_node.
38333 2013-01-03 Jakub Jelinek <jakub@redhat.com>
38336 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
38337 * var-tracking.c (reverse_op): Don't add reverse ops to
38338 VALUEs that have already
38339 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
38341 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
38343 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
38345 2013-01-02 Teresa Johnson <tejohnson@google.com>
38347 * dumpfile.c (dump_loc): Print filename with location.
38348 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
38349 new location_t parameter to emit complete unroll message with
38350 new dump framework.
38351 (canonicalize_loop_induction_variables): Compute loops location
38352 and pass to try_unroll_loop_completely.
38353 * loop-unroll.c (report_unroll_peel): New function.
38354 (peel_loops_completely): Use new dump format with location
38355 for main dumpfile message, and invoke report_unroll_peel on success.
38356 (decide_unrolling_and_peeling): Ditto.
38357 (decide_peel_once_rolling): Remove old dumpfile message subsumed
38358 by report_unroll_peel.
38359 (decide_peel_completely): Ditto.
38360 (decide_unroll_constant_iterations): Ditto.
38361 (decide_unroll_runtime_iterations): Ditto.
38362 (decide_peel_simple): Ditto.
38363 (decide_unroll_stupid): Ditto.
38364 * cfgloop.c (get_loop_location): New function.
38365 * cfgloop.h (get_loop_location): Declare.
38367 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38369 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
38372 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38374 PR middle-end/55198
38375 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
38376 BLKmode objects when EXPAND_MEMORY is specified.
38378 2013-01-02 Sriraman Tallam <tmsriram@google.com>
38380 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
38382 (fold_builtin_cpu): Do not share cpu model decls across statements.
38384 2013-01-02 Jason Merrill <jason@redhat.com>
38387 * tree.c (build_array_type_1): Revert earlier change.
38389 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
38391 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
38393 * config/aarch64/aarch64-tune.md: Re-generate.
38395 2013-01-02 Richard Biener <rguenther@suse.de>
38397 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
38398 invariant load do not generate a vector load from the scalar location.
38400 2013-01-02 Richard Biener <rguenther@suse.de>
38403 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
38404 * configure: Regenerate.
38406 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38408 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
38409 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
38410 (expand_builtin_int_roundingfn_2): Keep the original target around
38411 for the fallback case.
38413 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
38415 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
38416 to be clear for sign changes.
38418 2013-01-01 Jan Hubicka <jh@suse.cz>
38420 * ipa-inline-analysis.c: Fix formatting.
38422 2013-01-01 Jakub Jelinek <jakub@redhat.com>
38424 PR tree-optimization/55831
38425 * tree-vect-loop.c (get_initial_def_for_induction): Use
38426 gsi_after_labels instead of gsi_start_bb.
38428 Copyright (C) 2013 Free Software Foundation, Inc.
38430 Copying and distribution of this file, with or without modification,
38431 are permitted in any medium without royalty provided the copyright
38432 notice and this notice are preserved.