1 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
4 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
7 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
8 Igor Zamyatin <igor.zamyatin@intel.com>
10 Silvermont (SLM) architecture performance tuning.
11 * config/i386/i386.h (enum ix86_tune_indices): Add
12 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
13 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
15 * config/i386/i386.c (initial_ix86_tune_features)
16 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
17 (ix86_lea_outperforms): Handle Silvermont tuning.
18 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
20 (ix86_use_lea_for_mov): Likewise.
21 (ix86_avoid_lea_for_addr): Likewise.
22 (ix86_lea_for_add_ok): Likewise.
23 (exact_dependency_1): New function.
24 (exact_store_load_dependency): Likewise.
25 (ix86_adjust_cost): Handle Silvermont tuning.
26 (do_reoder_for_imul): Likewise.
27 (swap_top_of_ready_list): New function.
28 (ix86_sched_reorder): Changed to handle Silvermont tuning.
30 * config/i386/i386.md (peepholes that split memory operand in fp
33 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
35 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
36 Remove un-necessary braces.
38 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
40 * config/aarch64/aarch64.c (aarch64_classify_symbol):
41 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
43 2013-05-31 Tobias Burnus <burnus@net-b.de>
46 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
49 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
52 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
53 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
54 * config/arm/neon.md (iordi3_neon): Remove.
55 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
56 * config/arm/predicates.md (imm_for_neon_logic_operand):
57 Move to earlier in the file.
58 (neon_logic_op2): Likewise.
59 (arm_iordi_operand_neon): New predicate.
61 2013-05-31 Richard Biener <rguenther@suse.de>
63 PR tree-optimization/57478
64 PR tree-optimization/57453
65 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
68 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
70 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
71 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
73 2013-05-30 Tobias Burnus <burnus@net-b.de>
74 Thomas Koenig <tkoenig@gcc.gnu.org>
77 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
78 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
80 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
82 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
84 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
86 * target.def (register_usage_leveling_p): New hook.
87 * targhooks.c (default_register_usage_leveling_p): New.
88 * targhooks.h (default_register_usage_leveling_p): New prototype.
89 * lra-assigns.c (register_usage_leveling_p): Use the hook.
90 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
91 * doc/tm.texi: Update.
92 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
94 2013-05-30 Ian Bolton <ian.bolton@arm.com>
96 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
97 (*insv_reg<mode>): New define_insn.
99 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
101 PR rtl-optimization/57439
102 * postreload.c (move2add_valid_value_p): Check that we have
103 a zero subreg_regno_offset when accessing the register in
106 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
107 Igor Zamyatin <igor.zamyatin@intel.com>
109 Silvermont (SLM) architecture pipeline model, tuning and
111 * config.gcc: Add slm config options and target.
113 * config/i386/slm.md: New.
115 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
117 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
119 (ix86_target_macros_internal): Likewise.
121 * gcc/config/i386/i386.c (slm_cost): New cost.
122 (m_SLM): New macro flag.
123 (initial_ix86_tune_features): Set m_SLM.
124 (x86_accumulate_outgoing_args): Likewise.
125 (x86_arch_always_fancy_math_387): Likewise.
126 (processor_target_table): Add slm cost.
127 (cpu_names): Add slm cpu name.
128 (x86_option_override_internal): Set SLM ISA.
129 (ix86_issue_rate): New case PROCESSOR_SLM.
130 (ia32_multipass_dfa_lookahead): Likewise.
131 (fold_builtin_cpu): Add slm.
133 * config/i386/i386.h (TARGET_SLM): New target macro.
134 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
135 (processor_type): Add PROCESSOR_SLM.
137 * config/i386/i386.md (cpu): Add new value "slm".
138 (slm.md): Include slm.md.
140 * libgcc/config/i386/cpuinfo.c (INTEL_SLM): New enum value.
142 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
143 Zhenqiang Chen <zhenqiang.chen@linaro.org>
145 * config/arm/arm-protos.h: Add and update function protos.
146 * config/arm/arm.c (use_simple_return_p): New added.
147 (thumb2_expand_return): Check simple_return flag.
148 * config/arm/arm.md: Add simple_return and conditional simple_return.
149 * config/arm/iterators.md: Add iterator for return and simple_return.
151 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
153 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
154 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
155 (arm_emit_vfp_multi_reg_pop): Likewise.
156 (thumb2_emit_ldrd_pop): Likewise.
157 (arm_expand_epilogue): Add misc REG_CFA notes.
158 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
160 2013-05-29 Lawrence Crowl <crowl@google.com>
162 * config/arm/t-arm: Update for below.
164 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
165 Change type to hash_table. Update dependent calls and types.
167 * config/i386/t-cygming: Update for below.
169 * config/i386/t-interix: Update for below.
171 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
172 Change type to hash_table. Update dependent calls and types.
173 (i386_find_on_wrapper_list::wrappers): Likewise.
175 * config/ia64/t-ia64: Update for below.
177 * config/ia64/ia64.c (bundle_state_table):
178 Change type to hash_table. Update dependent calls and types.
180 * config/mips/mips.c (mips_reorg_process_insns::htab):
181 Change type to hash_table. Update dependent calls and types.
183 * config/sol2.c (solaris_comdat_htab):
184 Change type to hash_table. Update dependent calls and types.
186 * config/t-sol2: Update for above.
188 2013-05-29 Teresa Johnson <tejohnson@google.com>
190 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
191 functions are not yet marked as defined.
193 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
194 Pat Haugen <pthaugen@us.ibm.com>
195 Peter Bergner <bergner@vnet.ibm.com>
197 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
201 (vrotl<mode>3): Likewise.
202 (vashl<mode>3): Likewise.
203 (vlshr<mode>3): Likewise.
204 (vashr<mode>3): Likewise.
206 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
207 support for power8 V2DI builtins.
209 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
210 power8 V2DI builtins.
227 (vcmpequd): Likewise.
228 (vcmpgtsd): Likewise.
229 (vcmpgtud): Likewise.
230 (vcmpequd_p): Likewise.
231 (vcmpgtsd_p): Likewise.
232 (vcmpgtud_p): Likewise.
250 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
251 support for power8 V2DI instructions.
253 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
254 power8 V2DI instructions. Combine pack and unpack insns to use an
255 iterator for each mode. Check whether a particular mode supports
256 Altivec instructions instead of just checking TARGET_ALTIVEC.
257 (UNSPEC_VPKUWUM): Likewise.
258 (UNSPEC_VPKSHSS): Likewise.
259 (UNSPEC_VPKSWSS): Likewise.
260 (UNSPEC_VPKUHUS): Likewise.
261 (UNSPEC_VPKSHUS): Likewise.
262 (UNSPEC_VPKUWUS): Likewise.
263 (UNSPEC_VPKSWUS): Likewise.
264 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
265 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
266 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
267 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
268 (UNSPEC_VUPKHSB): Likewise.
269 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
270 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
271 (UNSPEC_VUPKHSH): Likewise.
272 (UNSPEC_VUPKLSB): Likewise.
273 (UNSPEC_VUPKLSH): Likewise.
276 (VI_scalar): Likewise.
279 (VP_small): Likewise.
280 (VP_small_lc): Likewise.
282 (add<mode>3): Likewise.
283 (altivec_vaddcuw): Likewise.
284 (altivec_vaddu<VI_char>s): Likewise.
285 (altivec_vadds<VI_char>s): Likewise.
286 (sub<mode>3): Likewise.
287 (altivec_vsubcuw): Likewise.
288 (altivec_vsubu<VI_char>s): Likewise.
289 (altivec_vsubs<VI_char>s): Likewise.
290 (altivec_vavgs<VI_char>): Likewise.
291 (altivec_vcmpbfp): Likewise.
292 (altivec_eq<mode>): Likewise.
293 (altivec_gt<mode>): Likewise.
294 (altivec_gtu<mode>): Likewise.
295 (umax<mode>3): Likewise.
296 (smax<mode>3): Likewise.
297 (umin<mode>3): Likewise.
298 (smin<mode>3): Likewise.
299 (altivec_vpkuhum): Likewise.
300 (altivec_vpkuwum): Likewise.
301 (altivec_vpkshss): Likewise.
302 (altivec_vpkswss): Likewise.
303 (altivec_vpkuhus): Likewise.
304 (altivec_vpkshus): Likewise.
305 (altivec_vpkuwus): Likewise.
306 (altivec_vpkswus): Likewise.
307 (altivec_vpks<VI_char>ss): Likewise.
308 (altivec_vpks<VI_char>us): Likewise.
309 (altivec_vpku<VI_char>us): Likewise.
310 (altivec_vpku<VI_char>um): Likewise.
311 (altivec_vrl<VI_char>): Likewise.
312 (altivec_vsl<VI_char>): Likewise.
313 (altivec_vsr<VI_char>): Likewise.
314 (altivec_vsra<VI_char>): Likewise.
315 (altivec_vsldoi_<mode>): Likewise.
316 (altivec_vupkhsb): Likewise.
317 (altivec_vupkhs<VU_char>): Likewise.
318 (altivec_vupkls<VU_char>): Likewise.
319 (altivec_vupkhsh): Likewise.
320 (altivec_vupklsb): Likewise.
321 (altivec_vupklsh): Likewise.
322 (altivec_vcmpequ<VI_char>_p): Likewise.
323 (altivec_vcmpgts<VI_char>_p): Likewise.
324 (altivec_vcmpgtu<VI_char>_p): Likewise.
325 (abs<mode>2): Likewise.
326 (vec_unpacks_hi_v16qi): Likewise.
327 (vec_unpacks_hi_v8hi): Likewise.
328 (vec_unpacks_lo_v16qi): Likewise.
329 (vec_unpacks_hi_<VP_small_lc>): Likewise.
330 (vec_unpacks_lo_v8hi): Likewise.
331 (vec_unpacks_lo_<VP_small_lc>): Likewise.
332 (vec_pack_trunc_v8h): Likewise.
333 (vec_pack_trunc_v4si): Likewise.
334 (vec_pack_trunc_<mode>): Likewise.
336 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
338 (vec_vmaxsd): Likewise.
339 (vec_vmaxud): Likewise.
340 (vec_vminsd): Likewise.
341 (vec_vminud): Likewise.
342 (vec_vpksdss): Likewise.
343 (vec_vpksdus): Likewise.
344 (vec_vpkudum): Likewise.
345 (vec_vpkudus): Likewise.
346 (vec_vrld): Likewise.
347 (vec_vsld): Likewise.
348 (vec_vsrad): Likewise.
349 (vec_vsrd): Likewise.
350 (vec_vsubudm): Likewise.
351 (vec_vupkhsw): Likewise.
352 (vec_vupklsw): Likewise.
354 2013-05-29 Jan Hubicka <jh@suse.cz>
356 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
357 flags; reorder rest of fields in more consistent way.
358 (varpool_node): Remove analyzed, finalized and alias.
359 (cgraph_ndoe): Likewise.
360 (symtab_alias_ultimate_target): New function.
361 (cgraph_function_node): Move offline.
362 (cgraph_reset_node): Declare.
363 (cgraph_comdat_can_be_unshared_p): Remove.
364 (varpool_remove_initializer): Declare.
365 (varpool_first_defined_variable, varpool_next_defined_variable
366 cgraph_first_defined_function, cgraph_next_defined_function): Update.
367 (cgraph_function_with_gimple_body_p): Update.
368 (varpool_all_refs_explicit_p): Update.
369 (symtab_alias_target): New function.
370 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
371 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
372 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
373 (varpool_variable_node): Likewise.
374 * cgraph.c (cgraph_create_function_alias): Update.
375 (cgraph_add_thunk): Update.
376 (cgraph_remove_node): Update.
377 (dump_cgraph_node): Do not dump removed flags.
378 (cgraph_function_body_availability): Update.
379 (cgraph_propagate_frequency): Update.
380 (verify_cgraph_node): Check sanity of local flag.
381 (cgraph_function_node): Move here from cgraph.h; revamp for
382 cgraph_function_or_thunk_node.
383 * lto-symtab.c (lto_varpool_replace_node): Update.
384 (lto_symtab_resolve_can_prevail_p): Update.
385 (lto_symtab_merge_cgraph_nodes): Update.
386 * ipa-cp.c (determine_versionability, initialize_node_lattices,
387 propagate_constants_accross_call, devirtualization_time_bonus,
388 ipcp_propagate_stage): Update.
389 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
390 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
391 * ipa-reference.c (propagate): Update.
392 (write_node_summary_p): Update.
393 * toplev.c (wrapup_global_declaration_2): Update.
394 * cgraphunit.c (cgraph_analyze_function): Rename to ...
395 (analyze_function) ... this one.
396 (cgraph_process_new_functions): Update.
397 (cgraph_reset_node): Export.
398 (cgraph_finalize_function): Update.
399 (cgraph_add_new_function): Update.
400 (process_function_and_variable_attributes): Update.
401 (varpool_finalize_decl): Update.
402 (symbol_finalized): Remove.
403 (symbol_finalized_and_needed): Rename to ...
404 (symbol_defined_and_needed): ... update.
405 (cgraph_analyze_functions): Update.
406 (handle_alias_pairs): Update.
407 (mark_functions_to_output): Update.
408 (assemble_thunk): Update.
409 (output_in_order): Update.
410 (output_weakrefs): Update.
411 (finalize_compilation_unit): Update.
412 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
413 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
414 input_node, input_varpool_node): Update.
415 * dbxout.c (dbxout_expand_expr): Update.
416 * cgraphclones.c (cgraph_clone_node): Update.
417 (cgraph_copy_node_for_versioning): Update.
418 (cgraph_materialize_clone): Update.
419 (cgraph_materialize_all_clones): Update.
420 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
421 propagate_pure_const, propagate_nothrow): Update.
422 * lto-streamer-out.c (lto_output, write_symbol): Update.
423 * ipa-utils.c (ipa_reverse_postorder): Update.
424 * ipa-inline.c (can_inline_edge_p): Update.
425 (update_caller_keys, ipa_inline): Update.
426 * dwarf2out.c (reference_to_unused,
427 premark_types_used_by_global_vars_helper): Update.
428 * tree-eh.c (tree_could_trap_p): Update.
429 * ipa-split.c (consider_split, execute_split_functions): Update.
430 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
431 has_addr_references_p): Update;
432 move ahead in file for better readability.
433 (process_references): Simplify.
434 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
436 (cgraph_comdat_can_be_unshared_p): Make static.
437 (cgraph_externally_visible_p): Update.
438 (varpool_externally_visible_p): Update.
439 (function_and_variable_visibility): Update.
440 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
441 ipa_tm_mark_force_output_node): Update.
442 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
443 estimate_edge_devirt_benefit, inline_generate_summary,
444 inline_write_summary): Update.
445 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
446 * ipa-prop.c (ipa_compute_jump_functions): Update.
447 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
448 read_replacements_section): Update.
449 * varasm.c (mark_decl_referenced): Update.
450 (assemble_alias, dump_tm_clone_pairs): Update.
451 * tree-inline.c (copy_bb): Update.
452 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
454 * symtab.c (dump_symtab_base): Print new flags.
455 (verify_symtab_base): Verify new flags.
456 (symtab_alias_ultimate_target): New function.
457 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
458 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
460 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
461 * i386.c (ix86_get_function_versions_dispatcher,
462 ix86_generate_version_dispatcher_body): Update.
463 (fold_builtin_cpu): Use varpool_add_new_variable.
464 * varpool.c (varpool_remove_initializer): Break out from ...
465 (varpool_remove_node): ... this one.
466 (dump_varpool_node, varpool_node_for_asm,
467 cgraph_variable_initializer_availability, varpool_analyze_node,
468 varpool_assemble_decl, varpool_remove_unreferenced_decls,
469 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
471 2013-05-29 Jan Hubicka <jh@suse.cz>
473 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
475 2013-05-29 Easwaran Raman <eraman@google.com>
477 PR tree-optimization/57442
478 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
479 when control exits the main loop.
481 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
483 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
485 * rx/rx.opt: Add macro for rx100 with string rx100 and value
487 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
488 * rx/t-rx: Add rx100 under multi library matches option for nofpu
491 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
493 PR tree-optimization/57441
494 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
495 Don't limit size of incr_vec to number of candidates.
497 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
499 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
500 and mips16 directories.
501 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
503 (MULTILIB_DIRNAMES): Ditto.
504 (MULTILIB_EXCEPTIONS): Add new exceptions.
505 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
506 (MULTILIB_DIRNAMES): Ditto.
507 (MULTILIB_EXCEPTIONS): Add new exceptions.
509 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
510 Marcus Shawcroft <marcus.shawcroft@arm.com>
512 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
513 SYMBOL_TINY_ABSOLUTE.
514 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
515 SYMBOL_TINY_ABSOLUTE.
516 (aarch64_expand_mov_immediate): Likewise.
517 (aarch64_classify_symbol): Likewise.
518 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
519 Permit SYMBOL_TINY_ABSOLUTE.
520 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
522 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
523 Marcus Shawcroft <marcus.shawcroft@arm.com>
525 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
526 Refactor if/switch. Replace gcc_assert with if.
528 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
530 * config/i386/i386.c (initial_ix86_tune_features): Enable
531 FP Reassociation for AMD bdver1 and bdver2.
533 2013-05-29 Martin Jambor <mjambor@suse.cz>
535 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
536 and IMAGPART_EXPR do not occur within other handled_components.
538 2013-05-29 Richard Biener <rguenther@suse.de>
540 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
541 access on whether the use is in the BB we currently try to
543 (vect_bb_vectorization_profitable_p): Pass the BB we currently
544 vectorize to vect_bb_slp_scalar_cost.
546 2013-05-29 Richard Biener <rguenther@suse.de>
548 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
549 computing scalar cost offsetted by stmts that are kept live
551 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
552 for computation of scalar cost.
554 2013-05-28 Steve Ellcey <sellcey@mips.com>
556 * config/mips/mips-cpus.def (mips32r2): Change processor type.
558 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
560 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
561 array notation built-in reduction functions.
562 * doc/passes.texi (Passes): Added documentation about changes done
564 * doc/invoke.texi (C Dialect Options): Added documentation about
566 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
567 (BUILTINS_DEF): Depend on cilkplus.def.
568 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
569 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
570 * cilkplus.def: New file.
572 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
574 PR rtl-optimization/57439
575 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
577 2013-05-28 Easwaran Raman <eraman@google.com>
579 PR tree-optimization/57337
580 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
581 (find_insert_point): Correctly identify the insertion point
582 when two statements with the same UID is compared.
584 2013-05-28 Richard Biener <rguenther@suse.de>
586 PR tree-optimization/56787
587 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
588 from the list of data references.
589 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
591 (vect_analyze_loop_operations): Likewise.
592 (vect_transform_loop): Remove clobbers.
594 2013-05-28 Martin Jambor <mjambor@suse.cz>
596 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
597 and REALPART_EXPRs have scalar type.
599 2013-05-28 Richard Biener <rguenther@suse.de>
601 PR tree-optimization/57411
602 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
604 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
605 virtual operand propagation.
607 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
609 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
610 destination register for bmasksi_vis.
611 (vector_init_bshuffle): Likewise.
612 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
614 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
616 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
617 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
618 mode if the instruction isn't available in the original mode.
619 * config/sparc/sparc.opt (mfix-ut699): New option.
620 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
621 (divdf3): Turn into expander.
622 (divdf3_nofix): New insn.
623 (divdf3_fix): Likewise.
624 (divsf3): Disable if -mfix-ut699.
625 (sqrtdf2): Turn into expander.
626 (sqrtdf2_nofix): New insn.
627 (sqrtdf2_fix): Likewise.
628 (sqrtsf2): Disable if -mfix-ut699.
630 2013-05-27 Richard Biener <rguenther@suse.de>
633 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
634 block for the new loop.
636 2013-05-27 Richard Biener <rguenther@suse.de>
638 PR tree-optimization/57343
639 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
640 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
641 (number_of_iterations_cond): Do not build the folded tree.
643 2013-05-27 Richard Biener <rguenther@suse.de>
647 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
648 OEP_CONSTANT_ADDRESS_OF retained.
650 PR tree-optimization/57417
651 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
653 (set_ssa_val_to): Compare addresses using
654 get_addr_base_and_unit_offset.
656 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
658 PR rtl-optimization/56833
659 * postreload.c (move2add_record_mode): New function.
660 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
661 (move2add_use_add2_insn): Use move2add_record_sym_value.
662 (move2add_use_add3_insn): Likewise.
663 (reload_cse_move2add): Use move2add_valid_value_p and
664 move2add_record_mode. Invalidate call-clobbered and REG_INC
665 affected regs by setting reg_mode to VOIDmode.
666 (move2add_note_store): Don't pretend the inside of a SUBREG is
667 the actual destination. Invalidate single/leading registers by
668 setting reg_mode to VOIDmode.
669 Use move2add_record_sym_value, move2add_valid_value_p and
670 move2add_record_mode.
672 2013-05-27 Richard Biener <rguenther@suse.de>
674 PR tree-optimization/57396
675 * tree-affine.c (double_int_constant_multiple_p): Properly
676 return false for val == 0 and div != 0.
678 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
680 * config/mips/mips.h: Use #elif in preprocessor conditions.
682 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
685 * config/mips/constraints.md (kl): New constraint.
686 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
687 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
688 constraint for operand 0. Split after CSE for MIPS16. Emit a move
690 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
692 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
695 * config/mips/mips.c (mips_can_inline_p): New function.
696 (TARGET_CAN_INLINE_P): Define.
698 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
700 * sched-int.h (ds_t, dw_t): Make unsigned int.
701 Fix documentation that describes how all the ds_t bits are used.
702 Reserve the last bit for delayed-branch scheduling.
703 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
704 (BITS_PER_DEP_WEAK): Fix definition and documentation.
705 (gen_dep_weak_1): Remove prototype.
706 * sched-deps.c (get_dep_weak_1): Make static.
707 * target.def (speculate_insn, needs_block_p, gen_spec_check,
708 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
709 * doc/tm.texi: Regenerate.
710 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
712 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
715 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
717 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
718 Sandra Loosemore <sandra@codesourcery.com>
720 * config.gcc (powerpc-*): Allow native for with-cpu.
722 2013-05-24 Jeff Law <law@redhat.com>
724 PR tree-optimization/57124
725 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
726 conversion feeding a condition if the range has an overflow
727 if -fstrict-overflow. Add warnings for when we do make the
730 2013-05-24 Dehao Chen <dehao@google.com>
732 * tree-cfg.c (locus_discrim_map): Fix the typo.
733 (locus_discrim_hasher): Likewise.
734 (locus_discrim_hasher::hash): Likewise.
735 (locus_discrim_hasher::equal): Likewise.
737 2013-05-24 Martin Jambor <mjambor@suse.cz>
739 PR tree-optimization/57294
740 * cgraph.h (ipa_record_stmt_references): Declare.
741 * cgraphbuild.c (ipa_record_stmt_references): New function.
742 (build_cgraph_edges): Use ipa_record_stmt_references.
743 (rebuild_cgraph_edges): Likewise.
744 (cgraph_rebuild_references): Likewise.
745 * ipa-prop.c (ipa_modify_call_arguments): Discard references
746 associated with the old statement and build references from the
747 newly built statements.
748 * ipa-ref.c (ipa_remove_stmt_references): New function.
749 * ipa-ref.h (ipa_remove_stmt_references): Declare.
751 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
753 * lra-constraints.c (emit_spill_move): Use smaller mode for
755 (check_and_process_move): Consider mem-reg moves for secondary
757 (curr_insn_transform): Don't lose insns emitted before for
758 secondary memory moves.
759 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
760 reg set up in the current insn.
762 2013-05-24 Dehao Chen <dehao@google.com>
764 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
766 (locus_descrim_hasher::equal): Likewise.
767 (build_gimple_cfg): New discriminator assignment algorithm.
768 (make_edges): Likewise.
769 (next_discriminator_for_locus): Likewise.
770 (same_line_p): Likewise.
771 (assign_discriminators): Likewise.
772 (make_cond_expr_edges): Likewise.
773 (make_gimple_switch_edges): Likewise.
774 (make_goto_expr_edges): Likewise.
775 (make_gimple_asm_edges): Likewise.
777 2013-05-24 Ian Bolton <ian.bolton@arm.com>
779 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
780 X format specifier to only display bottom 16 bits.
781 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
782 immediate to match for operand 2, since it will be masked.
784 2013-05-24 Richard Biener <rguenther@suse.de>
786 PR tree-optimization/57287
787 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
788 all SSA names that occur in abnormal PHIs.
790 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
793 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
794 that index is not negative.
796 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
798 PR rtl-optimization/55177
799 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
800 (simplify_byte_swapping_operation): New.
801 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
802 (simplify_relational_operation_1): Deal with BSWAP.
804 2013-05-23 Richard Henderson <rth@redhat.com>
807 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
808 (ix86_reorg): Call it.
810 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
813 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
814 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
815 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
817 2013-05-23 Christian Bruel <christian.bruel@st.com>
820 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
822 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
823 Marcus Shawcroft <marcus.shawcroft@arm.com>
825 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
826 * config/aarch64/constraints.md (Usa): Remove.
827 * doc/md.texi (AArch64 Usa): Remove.
829 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
830 Marcus Shawcroft <marcus.shawcroft@arm.com>
832 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
833 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
834 * config/aarch64/predicates.md (aarch64_const_address): Remove.
835 (aarch64_mov_operand): Use aarch64_mov_operand_p.
837 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
839 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
840 instruction (AdvSIMD).
841 * config/aarch64/aarch64-builtins.c
842 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
843 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
845 2013-05-23 Martin Jambor <mjambor@suse.cz>
848 * tree.h (contains_bitfld_component_ref_p): Declare.
849 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
850 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
852 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
853 not access a bit-field. Assert all final offsets are byte-aligned.
855 2013-05-23 Richard Biener <rguenther@suse.de>
857 PR tree-optimization/57380
858 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
859 least one invariant or re-used load.
860 * passes.c (init_optimization_passes): Move pass_phiprop before
863 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
865 * config/aarch64/aarch64-simd.md
866 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
868 2013-05-23 Richard Biener <rguenther@suse.de>
871 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
872 OEP_CONSTANT_ADDRESS_OF retained.
874 2013-05-23 Jakub Jelinek <jakub@redhat.com>
877 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
878 don't lower unit. Handle unit not being always BITS_PER_WORD.
880 2013-05-23 Richard Biener <rguenther@suse.de>
882 PR rtl-optimization/57341
883 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
884 instead of true_dependence.
886 2013-05-22 David Malcolm <dmalcolm@redhat.com>
888 * bb-reorder.c (branch_threshold): Make const.
889 (exec_threshold): Ditto.
891 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
892 Pat Haugen <pthaugen@us.ibm.com>
893 Peter Bergner <bergner@vnet.ibm.com>
895 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
896 documentation for the power8 crypto builtins.
898 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
900 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
901 macros for defining power8 builtin functions.
902 (BU_P8V_AV_2): Likewise.
903 (BU_P8V_AV_P): Likewise.
904 (BU_P8V_VSX_1): Likewise.
905 (BU_P8V_OVERLOAD_1): Likewise.
906 (BU_P8V_OVERLOAD_2): Likewise.
907 (BU_CRYPTO_1): Likewise.
908 (BU_CRYPTO_2): Likewise.
909 (BU_CRYPTO_3): Likewise.
910 (BU_CRYPTO_OVERLOAD_1): Likewise.
911 (BU_CRYPTO_OVERLOAD_2): Likewise.
912 (XSCVSPDP): Fix typo, point to the correct instruction.
913 (VCIPHER): Add power8 crypto builtins.
914 (VCIPHERLAST): Likewise.
915 (VNCIPHER): Likewise.
916 (VNCIPHERLAST): Likewise.
920 (VPERMXOR_V2DI): Likewise.
921 (VPERMXOR_V4SI: Likewise.
922 (VPERMXOR_V8HI: Likewise.
923 (VPERMXOR_V16QI: Likewise.
924 (VSHASIGMAW): Likewise.
925 (VSHASIGMAD): Likewise.
927 (VPERMXOR): Likewise.
928 (VSHASIGMA): Likewise.
930 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
931 __CRYPTO__ if the crypto instructions are available.
932 (altivec_overloaded_builtins): Add support for overloaded power8
935 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
936 support for power8 crypto builtins.
937 (builtin_function_type): Likewise.
938 (altivec_init_builtins): Add support for builtins that take vector
939 long long (V2DI) arguments.
941 * config/rs6000/crypto.md: New file, define power8 crypto
944 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
945 Pat Haugen <pthaugen@us.ibm.com>
946 Peter Bergner <bergner@vnet.ibm.com>
948 * doc/invoke.texi (Option Summary): Add power8 options.
949 (RS/6000 and PowerPC Options): Likewise.
951 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
952 constraints.md instead of rs6000.h. Reorder w* constraints. Add
953 wm, wn, wr documentation.
955 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
956 registers if direct move instructions are enabled.
957 (wn): New constraint for no registers.
958 (wq): New constraint for quad word even GPR registers.
959 (wr): New constraint if 64-bit instructions are enabled.
960 (wv): New constraint if power8 vector instructions are enabled.
961 (wQ): New constraint for quad word memory locations.
963 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
964 constraint for 0..15 for crypto instructions.
965 (gpc_reg_operand): If VSX allow registers in VSX registers as well
966 as GPR and floating point registers.
967 (int_reg_operand): New predicate to match only GPR registers.
968 (base_reg_operand): New predicate to match base registers.
969 (quad_int_reg_operand): New predicate to match even GPR registers
970 for quad memory operations.
971 (vsx_reg_or_cint_operand): New predicate to allow vector logical
972 operations in both GPR and VSX registers.
973 (quad_memory_operand): New predicate for quad memory operations.
974 (reg_or_indexed_operand): New predicate for direct move support.
976 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
977 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
978 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
979 (POWERPC_MASKS): Add power8 options.
980 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
983 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
984 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
986 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
987 (-mpower8-fusion): New power8 options.
988 (-mpower8-fusion-sign): Likewise.
989 (-mpower8-vector): Likewise.
990 (-mcrypto): Likewise.
991 (-mdirect-move): Likewise.
992 (-mquad-memory): Likewise.
994 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
996 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
998 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
999 (rs6000_debug_vector_unit): Add p8_vector.
1000 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1001 definitions. Also print fusion state.
1002 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1003 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1004 (rs6000_option_override_internal): Add support for power8.
1005 (rs6000_common_init_builtins): Add debugging for skipped builtins
1007 (rs6000_adjust_cost): Add power8 support.
1008 (rs6000_issue_rate): Likewise.
1009 (insn_must_be_first_in_group): Likewise.
1010 (insn_must_be_last_in_group): Likewise.
1011 (force_new_group): Likewise.
1012 (rs6000_register_move_cost): Likewise.
1013 (rs6000_opt_masks): Likewise.
1015 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1016 power8 capable assembler, default to power7 options.
1017 (TARGET_DIRECT_MOVE): Likewise.
1018 (TARGET_CRYPTO): Likewise.
1019 (TARGET_P8_VECTOR): Likewise.
1020 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1021 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1022 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1023 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1024 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1025 (TARGET_XSCVDPSPN): Likewise.
1026 (TARGET_XSCVSPDPN): Likewsie.
1027 (TARGET_SYNC_HI_QI): Likewise.
1028 (TARGET_SYNC_TI): Likewise.
1029 (MASK_CRYPTO): Likewise.
1030 (MASK_DIRECT_MOVE): Likewise.
1031 (MASK_P8_FUSION): Likewise.
1032 (MASK_P8_VECTOR): Likewise.
1033 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1034 temporary used by some of the direct move instructions to get two FP
1035 temporary registers does not force creation of a stack frame.
1036 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1037 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1038 that any VSX registers are tieable, even if they are also an
1039 Altivec vector mode.
1040 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1041 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1042 (RS6000_BTM_CRYPTO): Likewise.
1043 (RS6000_BTM_COMMON): Likewise.
1045 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1046 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1047 (enum rs6000_vector): Add power8 vector support.
1049 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1053 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1054 (any_sibcall_could_use_r3): this and handle indirect calls.
1055 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1057 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1059 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1061 2013-05-22 Richard Biener <rguenther@suse.de>
1064 * profile.c (branch_prob): Do not split blocks that are
1065 abnormally receiving from ECF_RETURNS_TWICE functions.
1067 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1069 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1070 address mode. Move pointer mode initialization to the same place.
1072 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1074 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1075 while it has any effect.
1077 2013-05-21 Easwaran Raman <eraman@google.com>
1079 PR tree-optimization/57322
1080 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1081 UID of the statement added to the BB to be 1.
1083 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1085 PR tree-optimization/57331
1086 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1087 of conversion from pointer type to integral type with integer.
1089 2013-05-21 Martin Jambor <mjambor@suse.cz>
1092 * ipa-prop.c (ipa_read_node_info): Process param_used and
1093 controlled_uses in the same order as when writing.
1095 2013-05-21 Magnus Granberg <baldrick@free.fr>
1098 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1100 2013-05-21 Richard Biener <rguenther@suse.de>
1102 PR tree-optimization/57318
1103 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1104 estimate stmts with side-effects as likely eliminated.
1106 2013-05-21 Richard Biener <rguenther@suse.de>
1108 PR tree-optimization/57330
1109 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1110 preserve the call stmts fntype.
1112 2013-05-21 Richard Biener <rguenther@suse.de>
1114 PR tree-optimization/57303
1115 * tree-ssa-sink.c (statement_sink_location): Improve killing
1116 stmt detection and properly handle self-assignments.
1118 2013-05-21 Christian Bruel <christian.bruel@st.com>
1120 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1121 spanning registers. LEAF_REG_REMAP is supported only for contiguous
1122 registers. Set register size out of the PARALLEL loop.
1124 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1127 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1128 (*fmasf4, *fmasf4_media): New insns.
1130 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1132 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1133 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1134 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1135 (mips_idiv_insns): Update the comments to say that the returned
1136 instruction counts are in units of BASE_INSN_LENGTH.
1137 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1138 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1139 using 2 rather than 4 as the length of indirect MIPS16 and
1140 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1141 length of a NOP. Don't divide MIPS16 lengths by 2.
1142 (mips16_split_long_branches): Assume a branch is long if the
1143 length is greater than 4 rather than 8.
1144 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1145 rather than multiplying them by 2. Multiply instruction counts
1146 by BASE_INSN_LENGTH rather than 4.
1147 (*jump_mips16, tls_get_tp_mips16_<mode>)
1148 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1150 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1152 * config/mips/mips.md (extended_mips16): Remove branch case.
1153 (length): Remove duplicated extended_mips16 test.
1155 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1157 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1159 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1161 * recog.h (Recog_data): Rename to...
1162 (recog_data_d): ...this.
1163 (recog_data): Update accordingly.
1164 * recog.c (recog_data): Likewise.
1165 * reload.c (save_recog_data): Likewise.
1166 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1167 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1169 2013-05-17 Julian Brown <julian@codesourcery.com>
1171 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1172 found in a REG_EQUAL note, invalidate it.
1174 2013-05-17 Easwaran Raman <eraman@google.com>
1176 * tree-ssa-reassoc.c (find_insert_point): New function.
1177 (insert_stmt_after): Likewise.
1178 (get_def_stmt): Likewise.
1179 (ensure_ops_are_available): Likewise.
1180 (not_dominated_by): Likewise.
1181 (rewrite_expr_tree): Do not move statements beyond what is
1182 necessary. Remove call to swap_ops_for_binary_stmt...
1183 (reassociate_bb): ... and move it here.
1184 (build_and_add_sum): Assign UIDs for new statements.
1185 (linearize_expr): Likewise.
1186 (do_reassoc): Renumber gimple statement UIDs.
1188 2013-05-17 Jan Hubicka <jh@suse.cz>
1190 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1192 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
1193 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1195 (output_weakrefs): Update.
1197 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1198 Martin Jambor <mjambor@suse.cz>
1201 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1202 value that corresponds to the given aggval is found in values vector.
1204 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
1206 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1207 sse, sse2, sse3, ssse3 and sse4a flags to options.
1209 2013-05-17 David Malcolm <dmalcolm@redhat.com>
1211 * gengtype-state.c: (s_expr_writer): New class, to handle
1212 prettifying of output layout of s-expressions.
1213 (state_writer): New class, to write out gtype.state.
1214 (state_written_type_count): Move this variable into member data of
1216 (s_expr_writer::s_expr_writer): New code: constructor for new class
1217 (state_writer::state_writer(): ditto
1218 (s_expr_writer::write_new_line): New function
1219 (s_expr_writer::write_any_indent): ditto
1220 (s_expr_writer::begin_s_expr): ditto
1221 (s_expr_writer::end_s_expr): ditto
1222 (write_state_fileloc): convert to method of state_writer...
1223 (state_writer:: write_state_fileloc): ...and use methods of
1224 s_expr_writer to write indentation into the gtype.state output file
1225 to visually represent the hierarchical structure of the list
1227 (write_state_fields): ditto, renaming to...
1228 (state_writer::write_state_fields)
1229 (write_state_a_string): ditto, renaming to...
1230 (state_writer::write_state_a_string)
1231 (write_state_string_option): ditto, renaming to...
1232 (state_writer::write_state_string_option)
1233 (write_state_type_option): ditto, renaming to...
1234 (state_writer::write_state_type_option)
1235 (write_state_nested_option): ditto, renaming to...
1236 (state_writer::write_state_nested_option)
1237 (write_state_option): ditto, renaming to...
1238 (state_writer::write_state_option)
1239 (write_state_options): ditto, renaming to...
1240 (state_writer::write_state_options)
1241 (write_state_lang_bitmap): ditto, renaming to...
1242 (state_writer::write_state_lang_bitmap)
1243 (write_state_version): ditto, renaming to...
1244 (state_writer::write_state_version)
1245 (write_state_scalar_type): ditto, renaming to...
1246 (state_writer::write_state_scalar_type)
1247 (write_state_string_type): ditto, renaming to...
1248 (state_writer::write_state_string_type)
1249 (write_state_undefined_type): ditto, renaming to...
1250 (state_writer::write_state_undefined_type)
1251 (write_state_struct_union_type): ditto, renaming to...
1252 (state_writer::write_state_struct_union_type)
1253 (write_state_struct_type): ditto, renaming to...
1254 (state_writer::write_state_struct_type)
1255 (write_state_user_struct_type): ditto, renaming to...
1256 (state_writer::write_state_user_struct_type)
1257 (write_state_lang_struct_type): ditto, renaming to...
1258 (state_writer::write_state_lang_struct_type)
1259 (write_state_param_struct_type): ditto, renaming to...
1260 (state_writer::write_state_param_struct_type)
1261 (write_state_pointer_type): ditto, renaming to...
1262 (state_writer::write_state_pointer_type)
1263 (write_state_array_type): ditto, renaming to...
1264 (state_writer::write_state_array_type)
1265 (write_state_gc_used): ditto, renaming to...
1266 (state_writer::write_state_gc_used)
1267 (write_state_common_type_content): ditto, renaming to...
1268 (state_writer::write_state_common_type_content)
1269 (write_state_type): ditto, renaming to...
1270 (state_writer::write_state_type)
1271 (write_state_pair_list): ditto, renaming to...
1272 (state_writer::write_state_pair_list)
1273 (write_state_pair): ditto, renaming to...
1274 (state_writer::write_state_pair)
1275 (write_state_typedefs): ditto, renaming to...
1276 (state_writer::write_state_typedefs)
1277 (write_state_structures): ditto, renaming to...
1278 (state_writer::write_state_structures)
1279 (write_state_param_structs): ditto, renaming to...
1280 (state_writer::write_state_param_structs)
1281 (write_state_variables): ditto, renaming to...
1282 (state_writer::write_state_variables)
1283 (write_state_srcdir): ditto, renaming to...
1284 (state_writer::write_state_srcdir)
1285 (write_state_files_list): ditto, renaming to...
1286 (state_writer::write_state_files_list)
1287 (write_state_languages): ditto, renaming to...
1288 (state_writer::write_state_languages)
1289 (write_state): create a state_writer instance and use it when
1290 writing out the state file
1292 2013-05-17 Mike Stump <mikestump@comcast.net>
1294 PR rtl-optimization/57304
1295 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1296 accessing DF_REF_REAL_LOC.
1298 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1300 PR rtl-optimization/57281
1301 PR rtl-optimization/57300
1302 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1303 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1304 what the other splitter did if the registers are dead.
1306 2013-05-17 Richard Biener <rguenther@suse.de>
1308 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1311 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1313 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1316 2013-05-17 Marek Polacek <polacek@redhat.com>
1318 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1319 length when doing non-zero store of storing '\0' to '\0'.
1321 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1323 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1324 vect_external_def oprnd1 with loop_vinfo, try to emit
1325 optional cast, negation and and stmts on the loop preheader
1326 edge instead of into the pattern def seq.
1328 PR tree-optimization/57051
1329 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1330 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1332 2013-05-16 Nick Clifton <nickc@redhat.com>
1334 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1335 (rl78_is_naked_func): New function.
1336 (rl78_expand_prologue): Skip prologue generation for naked
1338 (rl78_expand_epilogue): Skip epilogue generation for naked
1340 * doc/extend.texi (naked): Add RL78 to the list of processors
1341 that supports this attribute.
1343 2013-05-16 Jeff Law <law@redhat.com>
1345 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1347 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1349 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1350 cache parameters using detect_caches_amd also for CYRIX,
1351 NSC and TM2 signatures.
1353 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1354 Dzianis Kahanovich <mahatma@eu.by>
1358 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1359 VIA/Centaur processors and determine their cache parameters
1360 using detect_caches_amd.
1362 2013-05-16 Teresa Johnson <tejohnson@google.com>
1364 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1365 (rtl_verify_edges): New function.
1366 (rtl_verify_bb_insns): Ditto.
1367 (rtl_verify_bb_pointers): Ditto.
1368 (rtl_verify_bb_insn_chain): Ditto.
1369 (rtl_verify_fallthru): Ditto.
1370 (rtl_verify_bb_layout): Ditto.
1371 (rtl_verify_flow_info_1): Outline checks into new functions.
1372 (rtl_verify_flow_info): Ditto.
1374 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
1376 * cfghooks.c (copy_bbs): Add update_dominance argument.
1377 * cfghooks.h (copy_bbs): Update prototype.
1378 * tree-cfg.c (gimple_duplicate_sese_region):
1379 Add update_dominance argument.
1380 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1381 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1382 gimple_duplicate_sese_region call.
1383 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1384 Update copy_bbs call.
1385 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1386 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1388 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1390 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1391 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1392 vect_recog_rotate_pattern.
1393 (vect_recog_rotate_pattern): New function.
1395 2013-05-16 Jason Merrill <jason@redhat.com>
1397 * Makefile.in (LLINKER): New variable.
1398 (mostlyclean): Remove link mutex.
1399 * configure.ac: Handle --enable-link-mutex.
1400 * lock-and-run.sh: New script.
1402 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1405 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1408 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1410 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1412 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1414 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1415 * config/arm/arm.c (next_consecutive_mem): New function.
1416 (gen_movmem_ldrd_strd): Likewise.
1417 * config/arm/arm.md (movmemqi): Update condition and code.
1418 (unaligned_loaddi, unaligned_storedi): New patterns.
1420 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1422 * config.gcc: Obsolete *-*-solaris2.9*.
1423 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1425 2013-05-16 Richard Biener <rguenther@suse.de>
1427 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1428 earlier, after GRAPHITE transforms and IV canonicalization.
1430 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1432 * omp-low.c (extract_omp_for_data): For collapsed loops,
1433 if at least one of the loops is known at compile time to
1434 iterate zero times, set count to 0.
1435 (expand_omp_regimplify_p): New function.
1436 (expand_omp_for_generic): For collapsed loops, if at least
1437 one of the loops isn't known to iterate at least once,
1438 add runtime check with setting count to 0.
1439 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1440 For unsigned types if it isn't known at compile time that
1441 the loop will iterate at least once, add runtime check to bypass
1442 the whole loop if initial condition isn't true.
1444 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1446 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1448 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
1451 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1452 transformations to avoid an infinite loop.
1454 2013-05-16 Marek Polacek <polacek@redhat.com>
1456 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1458 2013-05-15 Leif Ekblad <leif@rdos.net>
1460 * config/i386/i386.c (ix86_decompose_address): Use
1461 DEFAULT_TLS_SEG_REG to access TLS segment register.
1462 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1463 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1464 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1466 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1469 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1470 sibling calls to functions that would normally be lazily bound,
1471 unless $gp is call-clobbered.
1473 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
1475 * config/i386/i386.c (ix86_option_override_internal): Update
1476 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
1477 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1478 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
1479 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1481 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1483 2013-05-15 Andreas Schwab <schwab@suse.de>
1485 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1486 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1489 2013-05-15 Teresa Johnson <tejohnson@google.com>
1491 * loop-unroll.c (report_unroll_peel): Check decision before
1492 emitting unroll/peel message.
1494 2013-05-15 Teresa Johnson <tejohnson@google.com>
1496 * function.h (has_bb_partition): New rtl_data flag.
1497 (bb_reorder_complete): Ditto.
1498 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1499 instead of flag_reorder_blocks_and_partition.
1500 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1501 with some enhancements.
1502 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1503 * bb-reorder.c (connect_traces): Check for has_bb_partition
1504 instead of flag_reorder_blocks_and_partition.
1505 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1506 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1507 verify_hot_cold_block_grouping.
1508 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1510 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1513 * config/arm/predicates.md (call_insn_operand): New predicate.
1514 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1515 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1516 if insn is not a tail call.
1517 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1519 * config/arm/arm.h (enum reg_class): New caller save register class.
1520 (REG_CLASS_NAMES): Likewise.
1521 (REG_CLASS_CONTENTS): Likewise.
1522 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1525 2013-05-15 Richard Biener <rguenther@suse.de>
1527 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1528 of MSG_OPTIMIZED_LOCATIONS.
1529 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1530 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1532 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1533 of MSG_OPTIMIZED_LOCATIONS.
1534 (execute_vect_slp): Likewise.
1535 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1536 (vect_create_cond_for_alias_checks): Likewise.
1537 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1538 (vect_recog_widen_mult_pattern): Likewise.
1539 (vect_recog_widen_sum_pattern): Likewise.
1540 (vect_recog_over_widening_pattern): Likewise.
1541 (vect_recog_widen_shift_pattern): Likewise.
1542 (vect_recog_vector_vector_shift_pattern): Likewise.
1543 (vect_recog_divmod_pattern): Likewise.
1544 (vect_recog_mixed_size_cond_pattern): Likewise.
1545 (vect_recog_bool_pattern): Likewise.
1546 (vect_pattern_recog_1): Likewise.
1548 2013-05-15 Martin Jambor <mjambor@suse.cz>
1550 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1551 non-functions to builtin_unreachable.
1552 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1553 correct when new direct edges were discovered.
1555 2013-05-15 Martin Jambor <mjambor@suse.cz>
1557 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1558 header, print symbol order instead of node uid, print more information
1559 about indirect edge targets.
1560 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1562 (ipa_make_edge_direct_to_target): Likewise.
1563 (remove_described_reference): Likewise.
1564 (propagate_controlled_uses): Likewise.
1565 (ipa_print_node_params): Also print symbol order.
1566 (ipcp_transform_function): Print symbol order instead of node uids.
1567 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1568 (cgraph_get_create_real_symbol_node): Likewise.
1569 * ipa-cp.c (print_lattice): Likewise.
1570 (print_all_lattices): Likewise.
1571 (determine_versionability): Likewise.
1572 (initialize_node_lattices): Likewise.
1573 (estimate_local_effects): Likewise.
1574 (update_profiling_info): Likewise.
1575 (create_specialized_node): Likewise.
1576 (perhaps_add_new_callers): Likewise.
1577 (decide_about_value): Likewise.
1578 (decide_whether_version_node): Likewise.
1579 (identify_dead_nodes): Likewise.
1580 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1581 (dump_inline_summary): Likewise.
1582 (estimate_node_size_and_time): Likewise.
1583 (inline_analyze_function): Likewise.
1584 * ipa-inline.c (report_inline_failed_reason): Likewise.
1585 (want_early_inline_function_p): Likewise.
1586 (edge_badness): Likewise.
1587 (update_edge_key): Likewise.
1588 (inline_small_functions): Likewise. Add dumping of order to two other
1590 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1591 instead of node uids.
1592 (propagate_pure_const): Likewise.
1593 (propagate_pure_const): Likewise.
1594 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1595 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1596 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1598 * tree-pretty-print.c (dump_function_header): Likewise.
1599 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1600 Print symbol order instead of node uids.
1602 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1604 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1605 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1607 2013-05-15 Richard Biener <rguenther@suse.de>
1609 PR tree-optimization/57275
1610 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1611 return value for fail to do runtime alias checks for gather loads.
1613 2013-05-15 Jan Hubicka <jh@suse.cz>
1617 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1618 weakrefs are not external.
1619 (lto_symtab_merge_decls): Fix thinko when dealing with
1620 non-lto_symtab decls.
1621 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1622 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1623 * varpool.c (dump_varpool_node): Dump more flags.
1625 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1627 * config/i386/i386.c (processor_alias_table): Add instruction
1628 FSGSBASE for AMD bdver3 architecture.
1630 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1632 * tree.c (warn_deprecated_use): Print file:line using locus color.
1633 * diagnostic.c (diagnostic_report_current_module): Print file:line
1634 and file:line:column using locus color.
1636 2013-05-14 Mike Stump <mikestump@comcast.net>
1638 * gdbinit.in: Add __null.
1640 2013-05-14 Mike Stump <mikestump@comcast.net>
1642 * recog.h: Rename struct recog_data to Recog_data.
1643 * recog.c: Likewise.
1644 * reload.c (can_reload_into): Likewise.
1645 * config/picochip/picochip.c: Likewise.
1647 2013-05-14 Mike Stump <mikestump@comcast.net>
1649 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1651 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1653 * resource.h (struct resources): Remove unch_memory member.
1654 (CLEAR_RESOURCE): Don't clear unch_memory.
1655 * resource.c (mark_referenced_resources): Don't set it.
1656 (mark_set_resources): Likewise.
1657 (mark_target_live_regs): Don't clear it.
1658 (init_resource_info): Likewise.
1659 * reorg.c (resource_conflicts_p): Don't compare it.
1660 (redundant_insn): Don't set it.
1662 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1664 * emit-rtl.c (next_label): Remove unused function.
1665 (skip_consecutive_labels, link_cc0_insns): Move to ...
1666 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1667 only place where these functions are used, and make them static.
1669 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1671 * fold-const.c (fold_negate_expr): Handle vectors.
1672 (fold_truth_not_expr): Make it static.
1673 (fold_invert_truthvalue): New static function.
1674 (invert_truthvalue_loc): Handle vectors. Do not call
1675 fold_truth_not_expr directly.
1676 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1677 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1678 (fold_comparison): Handle vector constants.
1679 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1680 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1681 * tree.h (fold_truth_not_expr): Remove declaration.
1683 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1685 * config/aarch64/aarch64-simd.md
1686 (aarch64_vcond_internal<mode>): Rename to...
1687 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1688 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1689 float modes. Clarify all iterator modes.
1690 (vcond<mode><mode>): Use new name for vcond expanders.
1691 (vcond<v_cmp_result><mode>): Likewise.
1692 (vcondu<mode><mode>: Likewise.
1693 * config/aarch64/iterators.md (VDQF_COND): New.
1695 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1698 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1699 variable for the shift amount. Check that we shift by non-negative
1702 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1705 * config/arm/arm.h (EPILOGUE_USES): Only return true
1706 for LR_REGNUM after epilogue_completed.
1708 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1710 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
1713 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1716 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1717 and Solaris 11+/x86 with gld.
1718 * configure: Regenerate.
1720 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1722 * expmed.c (expand_shift_1): Canonicalize rotates by
1723 constant bitsize / 2 to bitsize - 1.
1724 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
1725 case ROTATERT>: Likewise.
1728 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1730 * config/i386/i386.md (rotateinv): New code attr.
1731 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1732 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1733 roll $31, %eax, etc.
1735 2013-05-14 Richard Biener <rguenther@suse.de>
1738 * tree-eh.c (sink_clobbers): Give up for successors with
1739 multiple predecessors and no virtual uses.
1741 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1743 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1744 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1746 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1749 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1750 the case when both op0 and op1 have VOIDmode.
1752 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1754 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1755 in multiply-accumulate mode.
1757 2013-05-13 Guozhi Wei <carrot@google.com>
1759 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1761 2013-05-13 Kai Tietz <ktietz@redhat.com>
1764 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
1765 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
1766 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
1767 * config/i386/i386.c (ix86_option_override_internal): Likewise.
1768 (ix86_expand_prologue): Likewise.
1769 (ix86_expand_split_stack_prologue): Likewise.
1770 (legitimate_pic_address_disp_p): Likewise.
1771 (legitimize_pic_address): Likewise.
1772 (legitimize_tls_address): Likewise.
1773 (legitimize_pe_coff_symbol): Likewise.
1774 (output_pic_addr_const): Likewise.
1775 (construct_plt_address): Likewise.
1776 (ix86_expand_call): Likewise.
1777 (x86_output_mi_thunk): Likewise.
1778 (x86_function_profiler): Likewise.
1780 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1782 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1783 similar switch cases.
1784 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1785 (aarch64_simd_mov_to_<mode>low): Delete.
1786 (aarch64_simd_mov_to_<mode>high): Delete.
1787 (move_lo_quad_<mode>): Add w<-r alternative.
1788 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1789 (aarch64_simd_mov_from_*): Update type attribute.
1790 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1793 2013-05-13 Jan Hubicka <jh@suse.cz>
1795 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1796 * config/i386/i386.c (ix86_compute_frame_layout,
1797 ix86_expand_epilogue, emit_i387_cw_initialization,
1798 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1799 ix86_local_alignment): Fix use of size/speed predicates.
1801 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1803 PR tree-optimization/45216
1804 PR tree-optimization/57157
1805 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1806 the (-Y) & (B - 1) variant if OP is |.
1807 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1808 return shifted. Use (-op1) & (prec - 1) as other_amount
1809 instead of prec - op1.
1811 2013-05-13 Martin Jambor <mjambor@suse.cz>
1814 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1815 (ipa_constant_data): New type.
1816 (ipa_jump_func): Use ipa_constant_data to hold information about
1817 constant jump functions.
1818 (ipa_get_jf_constant): Adjust to jump function type changes.
1819 (ipa_get_jf_constant_rdesc): New function.
1820 (ipa_param_descriptor): New field controlled_uses.
1821 (ipa_get_controlled_uses): New function.
1822 (ipa_set_controlled_uses): Likewise.
1823 * ipa-ref.h (ipa_find_reference): Declare.
1824 * ipa-prop.c (ipa_cst_ref_desc): New type.
1825 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1827 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1828 New parameter cs. Adjust all callers.
1829 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1830 (remove_described_reference): New function.
1831 (jfunc_rdesc_usable): Likewise.
1832 (try_make_edge_direct_simple_call): Decrement controlled use count,
1833 attempt to remove reference if it hits zero.
1834 (combine_controlled_uses_counters): New function.
1835 (propagate_controlled_uses): Likewise.
1836 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1837 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1838 (ipa_print_node_params): Print described use counter.
1839 (ipa_write_jump_function): Adjust to jump function type changes.
1840 (ipa_read_jump_function): New parameter CS, pass it to
1841 ipa_set_jf_constant. Adjust caller.
1842 (ipa_write_node_info): Stream controlled use count
1843 (ipa_read_node_info): Likewise.
1844 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1846 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1847 count. Remove cloning-added reference if it reaches zero.
1848 * ipa-ref.c (ipa_find_reference): New function.
1850 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1852 * config/i386/i386.c (processor_target_table): Modified default
1853 alignment values for AMD BD and BT architectures.
1855 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
1857 * tree-vect-generic.c (uniform_vector_p): Move ...
1858 * tree.c (uniform_vector_p): ... here.
1859 * tree.h (uniform_vector_p): Declare it.
1860 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1863 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1865 PR tree-optimization/57230
1866 * tree-ssa-strlen.c (handle_char_store): Record length for
1867 array store from STRING_CST.
1869 PR tree-optimization/57230
1870 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1873 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1875 * config/epiphany/epiphany.c (epiphany_init): Check size of
1876 NUM_MODES_FOR_MODE_SWITCHING.
1877 (epiphany_expand_prologue):
1878 Remove CONFIG_REGNUM initial value handling code.
1879 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1880 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
1881 (emit_set_fp_mode, epiphany_mode_after): Likewise.
1882 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1883 Don't return 1 for FP_MODE_NONE.
1884 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1885 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1886 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1887 * config/epiphany/epiphany.md (save_config): New pattern.
1889 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
1891 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1893 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
1895 * config/i386/i386.md (memory): Handle sseishft1.
1896 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1897 (*vec_extractv2di_1): Ditto.
1899 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1901 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1904 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1906 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1907 Add mthumb/march=armv7-a multilib.
1908 Add mthumb/march=armv7-r multilib.
1909 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1911 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1913 * config/v850/t-rtems: Add more multilibs.
1915 2013-05-10 Richard Biener <rguenther@suse.de>
1917 PR tree-optimization/57214
1918 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1919 not propagate from SSA names that occur in abnormal PHI nodes.
1921 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1923 * stor-layout.c (element_precision): New function.
1924 * machmode.h (element_precision): Declare it.
1925 * tree.c (build_minus_one_cst): New function.
1926 (element_precision): Likewise.
1927 * tree.h (build_minus_one_cst): Declare new function.
1928 (element_precision): Likewise.
1929 * fold-const.c (operand_equal_p): Use element_precision.
1930 (fold_binary_loc): Handle vector types.
1931 * convert.c (convert_to_integer): Use element_precision.
1932 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1935 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1937 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1938 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1939 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1940 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1941 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1942 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1943 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1944 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1945 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1946 (Uuw8): New constraints.
1947 (Usb4): Move into alphabetical order.
1948 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1949 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1950 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1951 previously unnamed patterns.
1952 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1953 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1954 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1955 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1956 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1957 of specific lengths.
1959 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1961 * config/i386/i386.md (rotateinv): New code attr.
1962 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1963 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1964 roll $31, %eax, etc.
1966 PR tree-optimization/45216
1967 PR tree-optimization/57157
1968 * tree-ssa-forwprop.c (simplify_rotate): New function.
1969 (ssa_forward_propagate_and_combine): Call it.
1971 2013-05-10 Richard Biener <rguenther@suse.de>
1973 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1974 disable peeling when we version for aliasing.
1975 (vector_alignment_reachable_p): Honor explicit user alignment.
1976 (vect_supportable_dr_alignment): Likewise.
1977 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1978 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1979 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1980 then peeling to arrange for the cost-model check to come first.
1982 2013-05-10 Alan Modra <amodra@gmail.com>
1984 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1985 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1986 * configure: Regenerate.
1988 2013-05-10 Alan Modra <amodra@gmail.com>
1991 * varasm.c (default_elf_select_section): Move !DECL_P check..
1992 (get_named_section): ..to here before calling get_section_name.
1994 (default_section_type_flags): Add DECL_P check.
1995 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1996 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1998 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2000 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2001 When using gen_stack_adjust_str with a register offset, add a
2002 REG_FRAME_RELATED_EXPR note.
2004 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
2006 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2007 (*vec_extractv4si_zext_mem): Ditto.
2008 (*vec_extractv2di): Add 0->x and x->x alternatives.
2009 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2010 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2012 2013-05-09 Jason Merrill <jason@redhat.com>
2014 N3639 C++1y VLA support
2015 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2018 * tree.c (build_constructor_va): New.
2019 * tree.h: Declare it.
2021 2013-05-09 Martin Jambor <mjambor@suse.cz>
2024 * gimple-fold.c (canonicalize_constructor_val): Call
2025 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2027 2013-05-09 Jan Hubicka <jh@suse.cz>
2028 Richard Biener <rguenther@suse.de>
2031 * symtab.c (symtab_make_decl_local): Do not add private names.
2033 2013-05-09 Jan Hubicka <jh@suse.cz>
2036 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2037 (unlink_from_assembler_name_hash): Likewise.
2038 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2039 symtab_unregister_node, symtab_initialize_asm_name_hash,
2040 change_decl_assembler_name): Update.
2042 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2044 * config/aarch64/aarch64.md: New movtf split.
2045 (*movtf_aarch64): Update.
2046 (aarch64_movdi_tilow): Handle TF modes and rename to
2047 aarch64_movdi_<mode>low.
2048 (aarch64_movdi_tihigh): Handle TF modes and rename to
2049 aarch64_movdi_<mode>high
2050 (aarch64_movtihigh_di): Handle TF modes and rename to
2051 aarch64_mov<mode>high_di
2052 (aarch64_movtilow_di): Handle TF modes and rename to
2053 aarch64_mov<mode>low_di
2054 (aarch64_movtilow_tilow): Remove spurious whitespace.
2055 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2057 (aarch64_print_operand): Update.
2059 2013-05-09 Alan Modra <amodra@gmail.com>
2061 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2063 * configure: Regenerate.
2065 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2067 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2068 splitter preparation statements.
2069 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2070 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2073 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2075 * gimple-ssa-strength-reduction.c (count_candidates): Change
2076 return value to int.
2077 (analyze_candidates_and_replace): Change type of length to int.
2079 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2081 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2082 (*vec_extract<mode>): Use VI12_128 mode iterator.
2083 (*vec_extract<mode>_mem): Ditto.
2084 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2087 2013-05-08 Diego Novillo <dnovillo@google.com>
2092 2012-08-17 Diego Novillo <dnovillo@google.com>
2095 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2096 * config.in: Regenerate.
2097 * configure: Regenerate.
2098 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2100 2013-05-08 Jan Hubicka <jh@suse.cz>
2103 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2104 * cgraph.h (symtab_node_base): Add unique_name.
2105 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2106 input_overwrite_node, input_varpool_node): Stream unique_name.
2107 * cgraphclones.c (cgraph_create_virtual_clone,
2108 cgraph_function_versioning): Set unique_name.
2109 * ipa.c (function_and_variable_visibility): Set unique_name.
2111 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2113 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2114 (alloc_cand_and_find_basis): Restrict conditional candidate
2115 processing to CAND_MULTs.
2117 2013-05-08 Jan Hubicka <jh@suse.cz>
2120 lto-symtab.c (lto_symtab_symbol_p): New function.
2121 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2122 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2123 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2124 Skip static symbols.
2126 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2128 PR tree-optimization/57200
2129 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2130 Only call inform if the preceding warning_at returns true.
2132 2013-05-07 Han Shen <shenhan@google.com>
2134 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2135 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2136 * common.opt (fstack-protector-strong): New option.
2137 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2138 * doc/invoke.texi (Optimization Options): Document
2139 "-fstack-protector-strong".
2140 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2142 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2144 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2146 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2148 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2149 it is not lhs of the insn.
2150 (setup_reg_equiv): Remove insn having equiv memory which it is not
2152 * lra-constraints.c (process_address): Try to improve generation
2153 code for address base + disp.
2154 (lra_constraints): Make correct the code for checking insn setting
2155 up backward equivalence. Remove insn only if it is in the init
2157 * lra-eliminations.c (update_reg_eliminate): Change return value.
2158 (lra_eliminate): Use the result.
2160 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
2162 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2163 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2164 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2165 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2166 register target operands.
2167 (*vec_extractv8hi_sse2): New pattern.
2168 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2169 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2170 (*vec_extract<mode>_mem): New insn and split pattern.
2172 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2174 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2175 (TARGET_ASAN_SHADOW_OFFSET): Define.
2176 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2177 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2179 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2181 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2182 (incr_vec_index): Return -1 if increment not found.
2183 (create_add_on_incoming_edge): Assert if increment not found.
2184 (record_increment): Limit number of increments recorded.
2185 (all_phi_incrs_profitable): Return false if an increment not found.
2186 (replace_profitable_candidates): Don't process increments that were
2188 (analyze_candidates_and_replace): Limit size of incr_vec.
2190 2013-05-07 Richard Biener <rguenther@suse.de>
2192 * calls.c (special_function_p): setjmp-like functions are leaf.
2193 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2194 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2196 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2198 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2199 (aarch64_simd_mov<mode>): New expander.
2200 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2201 (aarch64_simd_mov_to_<mode>high): Likewise.
2202 (aarch64_simd_mov_from_<mode>low): Likewise.
2203 (aarch64_simd_mov_from_<mode>high): Likewise.
2204 (aarch64_dup_lane<mode>): Update.
2205 (aarch64_dup_lanedi): New instruction pattern.
2206 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2207 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2209 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2211 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2212 (replace_mult_candidate): Remove unnecessary argument; remove
2213 unnecessary parameter from call to introduce_cast_before_cand.
2214 (replace_unconditional_candidate): Remove unnecessary parameter
2215 from call to replace_mult_candidate.
2216 (replace_conditional_candidate): Likewise.
2217 (insert_initializers): Use make_temp_ssa_name.
2218 (introduce_cast_before_cand): Remove unnecessary argument; use
2220 (replace_one_candidate): Remove unnecessary argument; remove
2221 unnecessary parameter from calls to introduce_cast_before_cand.
2222 (replace_profitable_candidates): Remove unnecessary parameters
2223 from calls to replace_one_candidate.
2225 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2227 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2228 phi def as possibly hiding a basis for a CAND_ADD whose operands
2229 have been commuted in the analysis.
2230 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2232 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2234 * config/aarch64/aarch64.md
2235 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2236 shift value between 0-4.
2238 2013-05-07 Richard Biener <rguenther@suse.de>
2240 * double-int.h (rshift): New overload.
2241 * double-int.c (rshift): New function.
2242 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2243 (create_reference_ops_from_ref): Remove.
2244 (vn_reference_insert): Use shared ops for constructing the
2245 reference and copy it.
2247 2013-05-07 Richard Biener <rguenther@suse.de>
2250 * tree-eh.c (sink_clobbers): Properly propagate
2251 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2253 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2255 PR tree-optimization/57149
2256 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2257 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2258 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2259 uninit_undefined_value_p instead of ssa_undefined_value_p.
2262 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2263 for modifier == EXPAND_INITIALIZER.
2265 2013-05-07 Anton Blanchard <anton@samba.org>
2267 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2268 for powerpc64 little endian.
2269 * configure: Regenerate.
2271 2013-05-06 Graham Stott <grahams@btinternet.com>
2273 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2274 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2275 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2276 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2278 2013-05-06 Graham Stott <grahams@btinternet.com>
2280 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2281 codes which allow non-lvalues.
2283 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
2285 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2286 components are all 1s.
2287 (integer_minus_onep): New function.
2288 * tree.h (integer_minus_onep): Declare it.
2289 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2290 integer_minus_onep instead of integer_all_onesp.
2292 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2295 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2296 variations of these patterns.
2298 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2300 * config/i386/i386.md (isa): Add x64_sse4 member.
2301 (enabled): Handle x64_sse4.
2302 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2303 instruction for 64bit SSE4_1 targets. Update insn attributes.
2304 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2305 instruction for SSE4_1 targets. Update insn attributes.
2306 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2307 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2308 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2310 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2311 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2312 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2314 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2317 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2319 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2321 * final.c (do_assembler_dialects): Don't handle curly braces and
2322 vertical bar escaped by % as dialect delimiters.
2323 (output_asm_insn): Print curly braces and vertical bar if escaped
2324 by % and ASSEMBLER_DIALECT defined.
2325 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2326 * doc/tm.texi: Regenerated.
2328 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2330 * config/mips/mips.c: Include tree-pass.h.
2331 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2332 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2333 (pass_mips_machine_reorg2): New machine specific pass.
2334 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2335 (mips_option_override): Register the new pass.
2336 * rtl.h (cleanup_barriers): Remove prototype.
2337 (dbr_schedule): Likewise.
2338 * jump.c (cleanup_barriers): Make static.
2339 * reorg.c (dbr_schedule): Likewise.
2341 2013-05-06 Richard Biener <rguenther@suse.de>
2343 PR tree-optimization/57185
2344 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2347 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2350 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2351 between "first_arg" and "insn", not "last" and "insn".
2353 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2355 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2356 (find_candidates_in_block): Re-enable slsr_process_phi.
2357 (create_phi_basis): Fix double counting of candidate adjustment.
2359 2013-05-06 Richard Biener <rguenther@suse.de>
2362 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2363 the edge is also fallthru, preserve it and just clear the
2365 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2366 also complex, preserve that and just clear the fallthru flag.
2367 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2368 update virtual operands.
2370 2013-05-06 Alan Modra <amodra@gmail.com>
2372 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2373 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2374 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2375 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2376 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2377 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2379 2013-05-06 Alan Modra <amodra@gmail.com>
2381 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2382 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2383 (DEFAULT_ASM_ENDIAN): Define.
2384 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2385 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2386 Update -K PIC clause from sysv4.h.
2387 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2388 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2390 2013-05-06 Alan Modra <amodra@gmail.com>
2392 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2393 twice for little-endian.
2394 (ashrdi3_no_power, ashrdi3): Support little-endian.
2396 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2399 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2400 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2402 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2403 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2404 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2407 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2408 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2410 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2411 * config/pa/pa.opt: Make mbig-switch a no-op.
2412 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2413 (CASE_VECTOR_MODE): Always return SImode.
2414 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2415 for the !TARGET_BIG_SWITCH case.
2416 * config/pa/pa-linux.h: Likewise.
2417 * config/pa/pa-openbsd.h: Likewise.
2418 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2419 * config/pa/pa.md (short_jump): Remove define_insn.
2420 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2421 (casesi0): Remove define_insn.
2422 (type): Remove btable_branch.
2423 (pa_combine_type): Likewise.
2424 (in_nullified_branch_delay): Likewise.
2425 (in_call_delay): Likewise.
2426 (define_delay): Likewise.
2427 (define_insn_reservation "Z3"): Likewise.
2428 (define_insn_reservation "Z4"): Likewise.
2429 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2430 (pa_adjust_insn_length): Remove adjustment for btable branches.
2431 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2434 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
2436 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2437 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2438 Add m->r,x alternatives.
2439 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2440 splitters using SWI48x mode iterator.
2441 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2442 TARGET_64BIT. Add m->x alternative.
2443 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2444 Add o->x alternative. Enable for TARGET_SSE.
2445 (sse_storeq): Remove expander.
2446 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2447 with memory input operand.
2448 (*vec_extractv2di_1 splitter): New.
2449 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2450 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2452 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2454 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2455 (INT_LOWPART): Delete.
2456 (extract_MB): Adjust.
2457 (extract_ME): Adjust.
2458 (print_operand): Adjust.
2460 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2462 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2463 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2464 (reg_or_logical_cint_operand, easy_fp_constant,
2465 logical_const_operand): Delete "CONST_DOUBLE" case.
2466 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2467 "HOST_BITS_PER_WIDE_INT == 64" test.
2468 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
2469 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2470 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2471 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2473 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2474 CONST_DOUBLE DImode/VOIDmode case.
2475 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2476 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2477 CONST_DOUBLE VOIDmode case.
2478 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2479 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2480 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2481 Delete CONST_DOUBLE case.
2482 (splitters for mov FMOVE64 const_double): Delete
2483 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2484 "HOST_BITS_PER_WIDE_INT >= 64" test.
2485 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2487 (mov DI const_double): Delete.
2489 2013-05-04 Jakub Jelinek <jakub@redhat.com>
2491 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2492 on op shows all bits zero in mode of a lowpart subreg, return zero.
2494 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2497 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2498 to save TFmode registers and DImode to save TImode registers for
2499 caller save operations.
2500 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2501 mark being partially clobbered since they only use the first
2504 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2505 and TDmode only use the upper 64-bits of each VSX register.
2507 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2509 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2510 (find_candidates_in_block): Disable slsr_process_phi.
2512 2013-05-03 Guozhi Wei <carrot@google.com>
2514 * coverage.c (coverage_obj_init): Move the construction of gcov
2516 (build_init_ctor): ... here.
2518 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2520 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2521 (slsr_cand_d): Redefine def_phi.
2522 (stride_status, phi_adjust_status, count_phis_status): New enums.
2523 (find_phi_def): New.
2524 (find_basis_for_base_expr): New.
2525 (find_basis_for_candidate): Handle hidden bases.
2526 (alloc_cand_and_find_basis): Handle phi candidates.
2527 (slsr_process_phi): New.
2528 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2529 (create_mul_imm_cand): Likewise.
2530 (create_add_ssa_cand): Exclude phi base candidates.
2531 (create_add_imm_cand): Likewise.
2532 (slsr_process_cast): Likewise.
2533 (slsr_process_copy): Likewise.
2534 (find_candidates_in_block): Handle phi candidates.
2535 (dump_candidate): Likewise.
2536 (unconditional_cands): Delete.
2537 (unconditional_cands_with_known_stride_p): Delete.
2538 (phi_dependent_cand_p): New.
2539 (cand_increment): Handle phi-dependent candidates.
2540 (replace_dependent): Delete.
2541 (replace_mult_candidate): New.
2542 (replace_unconditional_candidate): New.
2543 (incr_vec_index): Move to avoid forward reference.
2544 (create_add_on_incoming_edge): New.
2545 (create_phi_basis): New.
2546 (replace_dependents): Delete.
2547 (replace_conditional_candidate): New.
2548 (phi_add_costs): New.
2549 (replace_uncond_cands_and_profitable_phis): New.
2550 (record_increment): Handle phi adjustments.
2551 (record_phi_increments): New.
2552 (record_increments): Handle phi adjustments.
2553 (phi_incr_cost): New.
2554 (lowest_cost_path): Handle phis.
2555 (total_savings): Likewise.
2556 (analyze_increments): Likewise.
2557 (ncd_with_phi): New.
2558 (ncd_of_cand_and_phis): New.
2559 (nearest_common_dominator_for_cands): Handle phi increments.
2560 (all_phi_incrs_profitable): New.
2561 (replace_profitable_candidates): Handle phi-dependent candidates.
2562 (analyze_candidates_and_replace): Likewise.
2564 2013-05-03 Teresa Johnson <tejohnson@google.com>
2567 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2568 do not exceed REG_BR_PROB_BASE.
2570 2013-05-03 Jeff Law <law@redhat.com>
2572 PR tree-optimization/57144
2573 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2574 operand of the condition will bit into the new type when eliminating
2575 a cast feeding a condition.
2577 2013-05-03 Jakub Jelinek <jakub@redhat.com>
2579 PR rtl-optimization/57130
2580 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2581 of COMPARE as in_code to the recursive call if needed.
2583 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
2585 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2586 (enabled): Handle new members.
2587 * config/i386/sse.md (*vec_concatv2si): Merge from
2588 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2589 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2591 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2593 PR tree-optimization/57027
2594 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2595 for fnms opportunity, check we got the prerequisite kind
2596 of tree / gimple before using accessor functions.
2598 2013-05-03 Richard Biener <rguenther@suse.de>
2600 * double-int.h (lshift): New overload without precision
2602 (operator *=, operator +=, operator -=): Move ...
2603 * double-int.c (operator *=, operator +=, operator -=): ... here
2604 and implement more efficiently.
2605 (mul_double_with_sign): Remove.
2606 (lshift_double): Adjust to take unsinged shift argument, push
2607 dispatching code to callers.
2608 (mul_double_wide_with_sign): Add early out for callers that
2609 are not interested in high parts or overflow.
2610 (lshift): New function.
2611 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2613 (lrotate, rrotate): Use logical shifts.
2614 * expr.c (get_inner_reference): Use lshift.
2615 * fixed-value.c (do_fixed_divide): Likewise.
2616 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2617 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2618 (indirect_refs_may_alias_p): Likewise.
2619 (stmt_kills_ref_p_1): Likewise.
2621 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2623 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2625 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2627 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2628 scalar form of FABD instruction.
2630 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2632 * lra-constraints.c (process_alt_operands): Add checking alt
2633 number to choose the best alternative.
2635 2013-05-02 Richard Biener <rguenther@suse.de>
2637 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2638 bitmap and its handling.
2639 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2641 2013-05-02 Richard Biener <rguenther@suse.de>
2644 * tree-inline.c (copy_loops): Properly handle removed loops.
2645 (copy_cfg_body): Mark destination loops for fixup if source
2648 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2651 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2652 generating simple_return for naked functions.
2654 2013-05-02 Martin Jambor <mjambor@suse.cz>
2657 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2658 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2660 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2661 ipa_agg_replacement_value structures.
2662 (known_aggs_to_agg_replacement_list): Likewise.
2663 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2664 (read_agg_replacement_chain): Likewise.
2665 (ipcp_transform_function): Also check that by_ref flags match.
2667 2013-05-02 Richard Biener <rguenther@suse.de>
2669 * graphds.h (struct graph): Add obstack member.
2670 * graphds.c (new_graph): Initialize obstack and allocate
2672 (add_edge): Allocate edge from the obstack.
2673 (free_graph): Free the obstack instead of all edges and vertices.
2675 2013-05-02 Teresa Johnson <tejohnson@google.com>
2677 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2679 * cfg.c (update_bb_profile_for_threading): Ditto.
2680 * tree-inline.c (copy_bb): Ditto.
2681 (copy_edges_for_bb): Ditto.
2682 (initialize_cfun): Ditto.
2683 (copy_cfg_body): Ditto.
2684 (expand_call_inline): Ditto.
2685 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2686 (estimate_node_size_and_time): Ditto.
2687 (inline_merge_summary): Ditto.
2688 * cgraphclones.c (cgraph_clone_edge): Ditto.
2689 (cgraph_clone_node): Ditto.
2690 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2691 (compute_trg_info): Ditto.
2693 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2695 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2696 S reg when fp attribute set.
2697 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2699 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2701 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2703 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2704 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2705 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2707 2013-05-02 Richard Biener <rguenther@suse.de>
2709 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2710 (struct instantiate_cache_entry): New type.
2711 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2712 (struct instantiate_cache_type): New type.
2713 (set_instantiated_value, get_instantiated_value): Remove.
2714 (get_instantiated_value_entry): New function.
2715 (instantiate_scev_name): Use the new cache and adjust.
2716 (instantiate_scev_poly): Adjust.
2717 (instantiate_scev_binary): Likewise.
2718 (instantiate_array_ref): Likewise.
2719 (instantiate_scev_convert): Likewise.
2720 (instantiate_scev_not): Likewise.
2721 (instantiate_scev_3): Likewise.
2722 (instantiate_scev_2): Likewise.
2723 (instantiate_scev_r): Likewise.
2724 (instantiate_scev): Likewise.
2725 (resolve_mixers): Likewise.
2727 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2730 * lra-constraints.c (best_small_class_operands_num): Remove.
2731 (process_alt_operands): Remove small_class_operands_num. Take
2732 small classes operands into losers and only if the operand is not
2733 matched. Modify debugging output.
2734 (curr_insn_transform): Remove best_small_class_operands_num.
2737 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2739 * config/aarch64/aarch64-builtins.c
2740 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2741 * config/aarch64/aarch64-simd-builtins.def
2742 (reduc_splus_): Add new modes.
2743 (reduc_uplus_): New.
2744 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2745 (reduc_uplus_v4sf): Likewise.
2746 (reduc_splus_v4sf): Likewise.
2747 (aarch64_addv<mode>): Likewise.
2748 (reduc_uplus_<mode>): Likewise.
2749 (reduc_splus_<mode>): Likewise.
2750 (aarch64_addvv2di): Likewise.
2751 (reduc_uplus_v2di): Likewise.
2752 (reduc_splus_v2di): Likewise.
2753 (aarch64_addvv2si): Likewise.
2754 (reduc_uplus_v2si): Likewise.
2755 (reduc_splus_v2si): Likewise.
2756 (reduc_<sur>plus_<mode>): New.
2757 (reduc_<sur>plus_v2di): Likewise.
2758 (reduc_<sur>plus_v2si): Likewise.
2759 (reduc_<sur>plus_v4sf): Likewise.
2760 (aarch64_addpv4sf): Likewise.
2761 * config/aarch64/arm_neon.h
2762 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2763 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2764 add UNSPEC_SADDV, UNSPEC_UADDV.
2766 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2768 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2770 * config/aarch64/arm_neon.h
2771 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2773 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2775 * config/aarch64/aarch64-builtins
2776 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2778 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2780 * config/aarch64/aarch64-simd-builtins.def
2782 (reduc_smin_): Likewise.
2783 (reduc_umax_): Likewise.
2784 (reduc_umin_): Likewise.
2785 (reduc_smax_nan_): Likewise.
2786 (reduc_smin_nan_): Likewise.
2789 (smax): Update for V2SF, V4SF and V2DF modes.
2792 (smin_nan): Likewise.
2793 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2794 (<su><maxmin><mode>3): ...This, refactor.
2795 (s<maxmin><mode>3): New.
2796 (<maxmin_uns><mode>3): Likewise.
2797 (reduc_<maxmin_uns>_<mode>): Refactor.
2798 (reduc_<maxmin_uns>_v4sf): Likewise.
2799 (reduc_<maxmin_uns>_v2si): Likewise.
2800 (aarch64_<fmaxmin><mode>: Remove.
2801 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2803 (vmin<q>_f<32,64>): Likewise.
2804 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2806 (su): Add mappings for smax, smin, umax, umin.
2808 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2809 (FMAXMIN): Rename as...
2810 (FMAXMIN_UNS): ...This.
2812 (fmaxminv): Likewise.
2813 (fmaxmin): Likewise.
2815 (maxmin_uns_op): Likewise.
2817 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2819 * config/aarch64/arm_neon.h
2820 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2821 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2822 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2824 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2826 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2827 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2829 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2831 * config/aarch64/aarch64-simd.md
2832 (vcond<mode>_internal): Handle special cases for constant masks.
2833 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2834 (vcondu<mode><mode>): Likewise.
2835 (vcond<v_cmp_result><mode>): New.
2837 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2839 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2840 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2841 * config/aarch64/aarch64-simd-builtins.def
2842 (cmeq): Update to BUILTIN_VALLDI.
2847 * config/aarch64/arm_neon.h
2848 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2849 to builtins or C as appropriate.
2851 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2853 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2855 (cmhi): Rename to...
2857 * config/aarch64/aarch64-simd.md
2858 (simd_mode): Add SF.
2859 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2860 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2861 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2862 (cstore<mode>_neg): ...This.
2863 * config/aarch64/iterators.md
2865 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2867 (UCOMPARISONS): Likewise.
2868 (optab): Add missing comparisons.
2876 (V_cmp_result): Add DF, SF modes.
2877 (v_cmp_result): Likewise.
2880 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2882 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2884 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2885 define_insn to define_insn_and_split.
2886 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2887 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2888 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2889 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2890 (thumb2_negscc): Likewise.
2892 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2894 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2896 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2898 * config/arm/thumb2.md: Remove trailing whitespaces.
2900 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2902 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2903 Use gen_int_mode rather than GEN_INT.
2905 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2907 * value-prof.c (stream_in_histogram_value): Remove the strayed
2910 2013-04-30 Richard Biener <rguenther@suse.de>
2913 * cfghooks.c (split_edge): Properly check for the loop latch edge.
2915 2013-04-30 Richard Biener <rguenther@suse.de>
2918 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2920 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
2922 PR rtl-optimization/56957
2923 PR rtl-optimization/57105
2924 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2925 variable. Use just INSN_UID for determining whether an insn
2926 should be only disconnected from the insn stream.
2927 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2929 2013-04-30 Jakub Jelinek <jakub@redhat.com>
2931 PR tree-optimization/57104
2932 * tsan.c (instrument_expr): Don't instrument accesses to
2933 DECL_HARD_REGISTER VAR_DECLs.
2935 2013-04-30 Richard Biener <rguenther@suse.de>
2937 * function.h (loops_for_fn): New inline function.
2938 (set_loops_for_fn): Likewise.
2939 * cfgloop.h (place_new_loop): Add struct function parameter.
2940 (get_loop): Likewise.
2941 (get_loops): Likewise.
2942 (number_of_loops): Likewise.
2944 (fel_init): Likewise.
2945 * cfg.c (get_loop_copy): Adjust.
2946 * cfgloop.c (flow_loops_dump): Likewise.
2947 (record_loop_exits): Likewise.
2948 (verify_loop_structure): Likewise.
2949 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2950 (estimate_reg_pressure_cost): Likewise.
2951 (mark_loop_exit_edges): Likewise.
2952 * cfgloopmanip.c (place_new_loop): Likewise.
2953 (add_loop): Likewise.
2954 (duplicate_loop): Likewise.
2955 * graph.c (draw_cfg_nodes): Likewise.
2956 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2957 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2958 (extract_affine_chrec): Likewise.
2959 (build_scop_iteration_domain): Likewise.
2960 * graphite.c (graphite_initialize): Likewise.
2961 * ira-build.c (create_loop_tree_nodes): Likewise.
2962 (more_one_region_p): Likewise.
2963 (rebuild_regno_allocno_maps): Likewise.
2964 (mark_loops_for_removal): Likewise.
2965 (mark_all_loops_for_removal): Likewise.
2966 (remove_unnecessary_regions): Likewise.
2967 (ira_build): Likewise.
2968 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2969 * loop-init.c (fix_loop_structure): Likewise.
2970 (gate_rtl_move_loop_invariants): Likewise.
2971 (gate_rtl_unswitch): Likewise.
2972 (gate_rtl_unroll_and_peel_loops): Likewise.
2973 (rtl_doloop): Likewise.
2974 * lto-streamer-in.c (input_cfg): Likewise.
2975 * lto-streamer-out.c (output_cfg): Likewise.
2976 * modulo-sched.c (sms_schedule): Likewise.
2977 * predict.c (tree_estimate_probability): Likewise.
2978 (tree_estimate_probability_driver): Likewise.
2979 (estimate_loops): Likewise.
2980 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2981 (move_sese_region_to_fn): Likewise.
2982 (debug_loop_num): Likewise.
2983 * tree-chrec.c (chrec_evaluate): Likewise.
2984 (hide_evolution_in_other_loops_than_loop): Likewise.
2985 (chrec_component_in_loop_num): Likewise.
2986 (reset_evolution_in_loop): Likewise.
2987 (evolution_function_is_invariant_rec_p): Likewise.
2988 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2989 * tree-inline.c (copy_loops): Likewise.
2990 (copy_cfg_body): Likewise.
2991 (tree_function_versioning): Likewise.
2992 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2993 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2995 (add_to_evolution_1): Likewise.
2996 (scev_const_prop): Likewise.
2997 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2998 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2999 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3000 (tree_ssa_lim_initialize): Likewise.
3001 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3002 (verify_loop_closed_ssa): Likewise.
3003 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3004 (tree_ssa_loop_im): Likewise.
3005 (tree_ssa_loop_unswitch): Likewise.
3006 (tree_vectorize): Likewise.
3007 (check_data_deps): Likewise.
3008 (tree_ssa_loop_ivcanon): Likewise.
3009 (tree_ssa_loop_bounds): Likewise.
3010 (tree_complete_unroll): Likewise.
3011 (tree_complete_unroll_inner): Likewise.
3012 (tree_parallelize_loops): Likewise.
3013 (tree_ssa_loop_prefetch): Likewise.
3014 (tree_ssa_loop_ivopts): Likewise.
3015 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3016 * tree-vectorizer.c (vectorize_loops): Likewise.
3018 2013-04-29 Mike Frysinger <vapier@gentoo.org>
3020 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3021 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3022 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3023 with EABI_LINK_SPEC.
3025 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3028 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3031 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3034 * lra-constraints.c (process_alt_operands): Discourage a bit more
3035 using memory for pseudos. Print cost dump for alternatives.
3036 Modify cost values for conflicts with early clobbers.
3037 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3039 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3042 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3044 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3046 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3048 (movdi_aarch64): Support LDR/STR from/to D register.
3050 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3052 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3053 or higher by default.
3055 2013-04-29 Richard Biener <rguenther@suse.de>
3058 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3059 even if not adding abnormal edges for calls that can make
3062 2013-04-29 Richard Biener <rguenther@suse.de>
3065 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3067 (move_stmt_r): Remove redundant checking.
3069 2013-04-29 Teresa Johnson <tejohnson@google.com>
3072 * basic-block.h (apply_scale): New function.
3073 (apply_probability): Use apply_scale.
3074 * gimple-streamer-in.c (input_bb): Ditto.
3075 * lto-streamer-in.c (input_cfg): Ditto.
3076 * lto-cgraph.c (merge_profile_summaries): Ditto.
3077 * tree-optimize.c (execute_fixup_cfg): Ditto.
3078 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3079 (copy_edges_for_bb): Ditto.
3080 (copy_cfg_body): Ditto.
3082 2013-04-29 Tom de Vries <tom@codesourcery.com>
3084 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3085 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3086 (tail_merge_optimize): Handle current_loops == NULL.
3088 2013-04-26 Jeff Law <law@redhat.com>
3090 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3091 (simplify_cond_using_ranges): Generalize code to simplify
3092 COND_EXPRs where one argument is a constant and the other
3093 is an SSA_NAME created by an integral type conversion.
3095 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3097 * config/arm/arm.md (store_minmaxsi): Use only when
3098 optimize_insn_for_size_p.
3100 2013-04-29 Christian Bruel <christian.bruel@st.com>
3103 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3105 2013-04-29 Richard Biener <rguenther@suse.de>
3108 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3109 loop tree make sure to schedule a fixup for the child as well.
3110 (expand_omp_for_generic): Properly add loops.
3111 (expand_omp_for_static_nochunk): Likewise.
3112 (expand_omp_for_static_chunk): Likewise.
3113 (expand_omp_for): For the degenerate case fixup loops.
3114 (expand_omp_sections): Fix default bb placement in loops.
3115 (expand_omp_atomic_pipeline): Properly add loops.
3117 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3119 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3121 2013-04-29 Tom de Vries <tom@codesourcery.com>
3123 * tree-ssa-tail-merge.c: Update header comment.
3125 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3127 * config/aarch64/arm_neon.h
3128 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3129 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3130 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3131 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3132 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3133 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3134 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3135 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3137 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3139 * config/aarch64/aarch64-simd.md
3140 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3141 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3142 fix_trunc, fixuns_trunc.
3143 (ftrunc<VDQF:mode>2): New.
3144 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3145 (fix_trunc_optab): New.
3147 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3149 * config/aarch64/aarch64-builtins.c
3150 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3151 iceilf, lround, iroundf.
3153 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3156 * config/i386/i386.h (enum ix86_tune_indices)
3157 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3158 New, split from X86_TUNE_INTER_UNIT_MOVES.
3159 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3160 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3161 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3162 (TARGET_INTER_UNIT_MOVES): Remove.
3163 * config/i386/i386.c (initial_ix86_tune_features): Update.
3164 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3165 (ix86_expand_convert_uns_didf_sse): Use
3166 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3167 (ix86_expand_vector_init_one_nonzero): Ditto.
3168 (ix86_expand_vector_init_interleave): Ditto.
3169 (inline_secondary_memory_needed): Return true for moves from SSE class
3170 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3171 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3172 * config/i386/constraints.md (Yi, Ym): Depend on
3173 TARGET_INTER_UNIT_MOVES_TO_VEC.
3174 (Yj, Yn): New constraints.
3175 * config/i386/i386.md (*movdi_internal): Change constraints of
3176 operand 1 from Yi to Yj and from Ym to Yn.
3177 (*movsi_internal): Ditto.
3178 (*movdf_internal): Ditto.
3179 (*movsf_internal): Ditto.
3180 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3181 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3182 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3183 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3184 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3185 * config/i386/sse.md (movdi_to_sse): Ditto.
3186 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3187 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3188 TARGET_INTER_UNIT_MOVES.
3189 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3190 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3191 instead of TARGET_INTER_UNIT_MOVES.
3192 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3193 operand 1 from Yi to Yj and from Ym to Yn.
3195 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3197 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3198 (float_truncate_hi_): Likewise.
3199 (float_extend_lo_): Likewise.
3200 (float_truncate_lo_): Likewise.
3201 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3202 (aarch64_float_extend_lo_v2df): Likewise.
3203 (vec_unpacks_hi_v4sf): Likewise.
3204 (aarch64_float_truncate_lo_v2sf): Likewise.
3205 (aarch64_float_truncate_hi_v4sf): Likewise.
3206 (vec_pack_trunc_v2df): Likewise.
3207 (vec_pack_trunc_df): Likewise.
3209 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3211 * config/aarch64/aarch64-builtins.c
3212 (aarch64_fold_builtin): Fold float conversions.
3213 * config/aarch64/aarch64-simd-builtins.def
3214 (floatv2si, floatv4si, floatv2di): New.
3215 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3216 * config/aarch64/aarch64-simd.md
3217 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3218 * config/aarch64/iterators.md (FLOATUORS): New.
3219 (optab): Add float, floatuns.
3220 (su_optab): Likewise.
3222 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3224 * config/aarch64/aarch64-builtins.c
3225 (aarch64_builtin_vectorized_function): Use new names for
3227 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3228 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3229 (fcvtzu): Split as...
3230 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3231 (fcvtas): Split as...
3232 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3233 (fcvtau): Split as...
3234 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3235 (fcvtps): Split as...
3236 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3237 (fcvtpu): Split as...
3238 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3239 (fcvtms): Split as...
3240 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3241 (fcvtmu): Split as...
3242 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3243 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3244 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3245 (lfrintnusf, lfrintnudf): Likewise.
3246 * config/aarch64/aarch64-simd.md
3247 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3249 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3250 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3251 (fcvt_pattern): Likewise.
3253 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3255 * config/aarch64/aarch64-simd.md
3256 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3257 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3259 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3261 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3262 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3263 (vrnd<a,m,n,p>_f32): Implement using builtins.
3264 (vrnd<i,x><q>_f<32, 64>): New.
3266 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3268 * config/aarch64/aarch64-builtins.c
3269 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3270 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3271 (frintz): Rename to...
3273 (frintp): Rename to...
3275 (frintm): Rename to...
3277 (frinti): Rename to...
3278 (nearbyint): ...this.
3279 (frintx): Rename to...
3281 (frinta): Rename to...
3283 * config/aarch64/aarch64-simd.md
3284 (aarch64_frint<frint_suffix><mode>): Delete.
3285 (<frint_pattern><mode>2): Convert to insn.
3286 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3287 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3288 (frint_pattern): Likewise.
3289 (frint_suffix): Likewise.
3291 2013-04-29 Richard Biener <rguenther@suse.de>
3293 PR tree-optimization/57081
3294 * loop-init.c: Include tree-flow.h.
3295 (loop_optimizer_finalize): Free number of iteration estimates.
3296 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3298 2013-04-29 Jakub Jelinek <jakub@redhat.com>
3300 PR tree-optimization/57083
3301 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3302 non-singleton shift count range, zero extend low_bound for uns case.
3304 * config/i386/predicates.md (general_vector_operand): New predicate.
3305 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3306 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3307 if they aren't nonimmediate operands. If their original values
3308 satisfy const_vector_equal_evenodd_p, don't shift them.
3309 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3310 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3311 if not nonimmediate_operand.
3312 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3313 instead of register_operand.
3314 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3316 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
3318 * stor-layout.c (finalize_size_functions): Allocate a structure and
3319 reset cfun before dumping the functions.
3321 2013-04-27 Jakub Jelinek <jakub@redhat.com>
3323 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3326 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3327 use xop_pmacsdqh if uns_p.
3328 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3329 the immediate rotate count.
3331 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3333 * rtl.h (struct rtx_def): Add comment for field jump.
3334 (LRA_SUBREG_P): New macro.
3335 * recog.c (register_operand): Check LRA_SUBREG_P.
3336 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3338 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3339 (lra_final_code_change): Skip subreg change for operators.
3340 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3341 if there are no operand changes.
3342 * lra-constraints.c (curr_insn_set): New.
3343 (match_reload): Set LRA_SUBREG_P.
3344 (emit_spill_move): Ditto.
3345 (check_and_process_move): Use curr_insn_set. Process only single
3346 set insns. Don't initialize sec_mem_p and change_p.
3347 (simplify_operand_subreg): Use LRA_SUBREG_P.
3348 (reg_in_class_p): New function.
3349 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3350 of #ifdef. Add code to remove cycling.
3351 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3352 non-null disp. Reload inner instead of disp when base and index
3353 are null. Try to put lo_sum into register.
3354 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3355 (check_and_process_move): Move code for move cost check to
3356 simple_move_p. Remove equiv_substitution.
3357 (simple_move_p): New function.
3358 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3359 curr_insn_set. Call check_and_process_move only for single set
3360 insns. Use the new function. Move call of check_and_process_move
3361 after operand equiv substitution and address process.
3363 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3366 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3367 with nonlocal goto receivers or returns twice calls, ignore
3368 unininitialized values from abnormal edges to nl goto receiver
3369 or returns twice call.
3371 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3373 PR tree-optimization/57051
3374 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3375 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3378 2013-04-26 Richard Biener <rguenther@suse.de>
3380 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3381 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3382 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3383 (fixup_loop_arrays_after_move): New function.
3384 (move_sese_region_to_fn): Properly outline the loop tree parts
3387 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
3389 * config/i386/i386.md (type, unit): Fix long lines.
3391 2013-04-26 Richard Biener <rguenther@suse.de>
3393 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3394 (lto-streamer-out.o): Likewise.
3395 * cfgloop.c (init_loops_structure): Export, add struct function
3396 argument and adjust.
3397 (flow_loops_find): Adjust.
3398 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3399 (init_loops_structure): Declare.
3400 * lto-streamer-in.c: Include cfgloop.h.
3401 (input_cfg): Input the loop tree.
3402 * lto-streamer-out.c: Include cfgloop.h.
3403 (output_cfg): Output the loop tree.
3404 (output_struct_function_base): Do not drop PROP_loops.
3406 2013-03-26 Richard Biener <rguenther@suse.de>
3408 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3409 (pass_build_cfg): Provide PROP_loops.
3410 (move_sese_region_to_fn): Remove loops that are outlined into fn
3412 * tree-inline.c: Include cfgloop.h.
3413 (initialize_cfun): Do not drop PROP_loops.
3414 (copy_loops): New function.
3415 (copy_cfg_body): Copy loop structure.
3416 (tree_function_versioning): Initialize destination loop tree.
3417 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3418 (pass_parallelize_loops): Do IL verification.
3419 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3420 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3421 the CFG make sure we fixup loops as well.
3422 * tree-ssa-tail-merge.c: Include cfgloop.h.
3423 (replace_block_by): When merging loop latches mark loops for fixup.
3424 * lto-streamer-out.c (output_struct_function_base): Drop
3426 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3427 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3428 * ipa-split.c: Include cfgloop.h.
3429 (split_function): Add the new return block to the loop tree root.
3430 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3431 whether we have removed the forwarder block.
3432 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3433 * cfgloop.h (place_new_loop): Declare.
3434 * cfgloopmanip.c (place_new_loop): Export.
3435 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3436 (tree-switch-conversion.o): Likewise.
3437 (tree-complex.o): Likewise.
3438 (tree-inline.o): Likewise.
3439 (tree-ssa-tailmerge.o): Likewise.
3440 (ipa-split.o): Likewise.
3441 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3442 (tree-ssa-copy.o): Likewise.
3443 * tree-switch-conversion.c: Include cfgloop.h
3444 (process_switch): If we emit a bit-test cascade, schedule loops
3446 * tree-complex.c: Include cfgloop.h.
3447 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3448 * asan.c: Include cfgloop.h.
3449 (create_cond_insert_point): Properly add new basic-blocks to
3450 loops, schedule loop fixup.
3451 * cfgloop.c (verify_loop_structure): Check that looks are not
3453 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3455 (expand_omp_for_generic): Likewise.
3456 (expand_omp_sections): Likewise.
3457 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3458 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3459 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3460 is initialized, not when loops are present.
3461 * tree-parloops.c (parallelize_loops): Remove checking here.
3462 * passes.c (init_optimization_passes): Schedule a copy-propagation
3463 pass before complete unrolling of inner loops.
3465 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3467 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3468 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3469 (colorize_init): Add argument to _WIN32 version.
3470 * toplev.c: Include diagnostic-color.h.
3471 (process_options): Default to -fdiagnostics-color=auto if
3472 GCC_COLORS env var is in the environment.
3473 * common.opt (fdiagnostics-color=): Add Var and Init.
3474 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3475 env var is in the environment, the default is auto rather than never.
3477 * diagnostic.h (file_name_as_prefix): Add context argument.
3478 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3479 the string as locus.
3480 * langhooks.c (lhd_print_error_function): Adjust caller.
3482 2013-04-25 Lawrence Crowl <crowl@google.com>
3484 * var-tracking.c (shared_hash_def::htab):
3485 Change type to hash_table. Update dependent calls and types.
3487 2013-04-25 Lawrence Crowl <crowl@google.com>
3489 * Makefile.in: Update as needed below.
3491 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3492 Move declaration to after the type's method definitons.
3494 * attribs.c (htab_t scoped_attributes::attribute_hash):
3495 Change type to hash_table. Update dependent calls and types.
3497 * bitmap.c (htab_t bitmap_desc_hash):
3498 Change type to hash_table. Update dependent calls and types.
3500 * cselib.c (htab_t cselib_hash_table):
3501 Change type to hash_table. Update dependent calls and types.
3503 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3504 (hash_string_slot_node): Move implementation into lto-streamer.h
3505 struct string_slot_hasher.
3506 (eq_string_slot_node): Likewise.
3508 * data-streamer-out.c: Update output_block::string_hash_table
3509 dependent calls and types.
3511 * dwarf2cfi.c (htab_t trace_index):
3512 Change type to hash_table. Update dependent calls and types.
3514 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3515 Change type to hash_table. Update dependent calls and types.
3516 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3517 (htab_t optimize_external_refs::map): Likewise.
3518 (htab_t output_comp_unit::extern_map): Likewise.
3519 (htab_t output_comdat_type_unit::extern_map): Likewise.
3520 (htab_t output_macinfo::macinfo_htab): Likewise.
3521 (htab_t optimize_location_lists::htab): Likewise.
3522 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3524 * except.c (htab_t ehspec_hash_type):
3525 Change type to hash_table. Update dependent calls and types.
3526 (assign_filter_values::ttypes): Likewise.
3527 (assign_filter_values::ehspec): Likewise.
3528 (sjlj_assign_call_site_values::ar_hash): Likewise.
3529 (convert_to_eh_region_ranges::ar_hash): Likewise.
3531 * gcse.c (htab_t pre_ldst_table):
3532 Change type to hash_table. Update dependent calls and types.
3534 * ggc-common.c (htab_t saving_htab):
3535 Change type to hash_table. Update dependent calls and types.
3536 (htab_t loc_hash): Likewise.
3537 (htab_t ptr_hash): Likewise.
3538 (call_count): Rename ggc_call_count.
3539 (call_alloc): Rename ggc_call_alloc.
3540 (loc_descriptor): Rename make_loc_descriptor.
3541 (add_statistics): Rename ggc_add_statistics.
3543 * ggc-common.c (saving_htab):
3544 Change type to hash_table. Update dependent calls and types.
3546 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3547 (push_gimplify_context): Likewise.
3548 (pop_gimplify_context): Likewise.
3549 (struct gimple_temp_hash_elt): Added.
3550 (struct gimplify_hasher): Likewise.
3551 (struct gimplify_ctx.temp_htab):
3552 Change type to hash_table. Update dependent calls and types.
3554 * gimple-fold.c: Include gimplify-ctx.h.
3556 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3557 Change type to hash_table. Update dependent calls and types.
3558 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3559 avoid potential global name collision.
3561 * gimplify.c: Include gimplify-ctx.h.
3562 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3563 (htab_t gimplify_ctx::temp_htab):
3564 Update dependent calls and types for new type hash_table.
3565 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3566 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3568 * gimplify-ctx.h: New.
3569 (struct gimple_temp_hash_elt): Move from gimplify.c.
3570 (class gimplify_hasher): New.
3571 (struct gimplify_ctx): Move from gimple.h.
3572 (htab_t gimplify_ctx::temp_htab):
3573 Change type to hash_table. Update dependent calls and types.
3575 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3576 (htab_t ivs_params::newivs_index):
3577 Change type to hash_table. Update dependent calls and types.
3578 (htab_t ivs_params::params_index): Likewise.
3579 (htab_t print_generated_program::params_index): Likewise.
3580 (htab_t gloog::newivs_index): Likewise.
3581 (htab_t gloog::params_index): Likewise.
3583 * graphite.c: Include graphite-htab.h.
3584 4htab_t graphite_transform_loops::bb_pbb_mapping):
3585 Change type to hash_table. Update dependent calls and types.
3587 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3588 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3589 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3591 * graphite-dependences.c: Include graphite-htab.h.
3592 (loop_is_parallel_p): Change hash table type of parameter.
3594 * graphite-htab.h: New.
3595 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3596 (extern find_pbb_via_hash): Move from graphite-poly.h.
3597 (extern loop_is_parallel_p): Move from graphite-poly.h.
3598 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3600 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3601 (extern loop_is_parallel_p): Move to graphite-htab.h.
3602 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3604 * haifa-sched.c (htab_t delay_htab):
3605 Change type to hash_table. Update dependent calls and types.
3606 (htab_t delay_htab_i2): Likewise.
3608 * ira-color.c (htab_t allocno_hard_regs_htab):
3609 Change type to hash_table. Update dependent calls and types.
3611 * ira-costs.c (htab_t cost_classes_htab):
3612 Change type to hash_table. Update dependent calls and types.
3614 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3615 Change type to hash_table. Update dependent calls and types.
3617 * loop-iv.c (htab_t bivs):
3618 Change type to hash_table. Update dependent calls and types.
3620 * loop-unroll.c (htab_t opt_info::insns_to_split):
3621 Change type to hash_table. Update dependent calls and types.
3622 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3624 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3625 (struct string_slot_hasher): New.
3626 (htab_t output_block::string_hash_table):
3627 Change type to hash_table. Update dependent calls and types.
3629 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3630 (htab_t file_name_hash_table):
3631 Change type to hash_table. Update dependent calls and types.
3633 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3636 * lto-streamer.c (htab_t tree_htab):
3637 Change type to hash_table. Update dependent calls and types.
3639 * omp-low.c: Include gimplify-ctx.h.
3641 * passes.c (htab_t name_to_pass_map):
3642 Change type to hash_table. Update dependent calls and types.
3643 (pass_traverse): Rename to passes_pass_traverse.
3645 * plugin.c (htab_t event_tab):
3646 Change type to hash_table. Update dependent calls and types.
3648 * postreload-gcse.c (htab_t expr_table):
3649 Change type to hash_table. Update dependent calls and types.
3650 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3652 * sese.c (debug_rename_map_1): Make extern.
3653 (htab_t copy_bb_and_scalar_dependences::rename_map):
3654 Change type to hash_table. Update dependent calls and types.
3656 * sese.h (extern debug_rename_map): Move to .c file.
3658 * store-motion.c (htab_t store_motion_mems_table):
3659 Change type to hash_table. Update dependent calls and types.
3661 * trans-mem.c (htab_t tm_new_mem_hash):
3662 Change type to hash_table. Update dependent calls and types.
3664 * tree-browser.c (htab_t TB_up_ht):
3665 Change type to hash_table. Update dependent calls and types.
3667 * tree-cfg.c (htab_t discriminator_per_locus):
3668 Change type to hash_table. Update dependent calls and types.
3670 * tree-complex.c: Include tree-hasher.h
3671 (htab_t complex_variable_components):
3672 Change type to hash_table. Update dependent calls and types.
3674 * tree-eh.c (htab_t finally_tree):
3675 Change type to hash_table. Update dependent calls and types.
3677 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3678 struct int_tree_hasher.
3679 (extern int_tree_map_eq): Likewise.
3680 (uid_decl_map_hash): Removed.
3681 (extern decl_tree_map_eq): Likewise.
3683 * tree-hasher.h: New.
3684 (struct int_tree_hasher): New.
3685 (typedef int_tree_htab_type): New.
3687 * tree-inline.c: Include gimplify-ctx.h.
3689 * tree-mudflap.c: Include gimplify-ctx.h.
3691 * tree-parloops.c: Include tree-hasher.h.
3692 (htab_t eliminate_local_variables_stmt::decl_address):
3693 Change type to hash_table. Update dependent calls and types.
3694 (htab_t separate_decls_in_region::decl_copies): Likewise.
3696 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3697 Change type to hash_table. Update dependent calls and types.
3699 * tree-sra.c (candidates):
3700 Change type to hash_table. Update dependent calls and types.
3702 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3704 (int_tree_map_hash): Likewise.
3706 * tree-ssa-dom.c (htab_t avail_exprs):
3707 Change type to hash_table. Update dependent calls and types.
3709 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3710 Change type to hash_table. Update dependent calls and types.
3712 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3713 Change type to hash_table. Update dependent calls and types.
3715 * tree-ssa-phiopt.c (seen_ssa_names):
3716 Change type to hash_table. Update dependent calls and types.
3718 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3719 Change type to hash_table. Update dependent calls and types.
3721 * tree-ssa-uncprop.c (equiv):
3722 Change type to hash_table. Update dependent calls and types.
3724 2013-04-25 Jakub Jelinek <jakub@redhat.com>
3726 PR rtl-optimization/57003
3727 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3728 call note_stores with kill_clobbered_value callback again after
3729 killing regs_invalidated_by_call.
3731 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3733 * config/aarch64/aarch64-simd.md
3734 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3735 (aarch64_simd_bsl<mode>): Likewise.
3736 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3738 2013-04-25 Marek Polacek <polacek@redhat.com>
3740 PR tree-optimization/57066
3741 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
3743 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3745 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3747 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3749 * config/aarch64/aarch64-builtins.c
3750 (aarch64_fold_builtin): New.
3751 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3752 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3753 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3754 * config/aarch64/arm_neon.h
3755 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3757 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3758 Tejas Belagod <tejas.belagod@arm.com>
3760 * config/aarch64/aarch64-builtins.c
3761 (aarch64_gimple_fold_builtin): New.
3762 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3763 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3764 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3766 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3768 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3770 * config/aarch64/aarch64.md
3771 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3773 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3775 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3776 (*ngcsi_uxtw): New pattern.
3778 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3779 Julian Brown <julian@codesourcery.com>
3781 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3782 (TB_DREG): Add T_V4HF.
3783 (v4hf_UP): New macro.
3784 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3785 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3786 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3788 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3789 (arm_vector_mode_supported_p): Handle V4HF.
3790 (arm_mangle_map): Handle V4HFmode.
3791 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3792 * config/arm/arm_neon_builtins.def: Add entries for
3793 vcvtv4hfv4sf, vcvtv4sfv4hf.
3794 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3795 (neon_vcvtv4hfv4sf): Likewise.
3796 * config/arm/neon-gen.ml: Handle half-precision floating point
3798 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3799 * config/arm/arm_neon.h: Regenerate.
3800 * config/arm/neon.ml (type elts): Add F16.
3801 (type vectype): Add T_float16x4, T_floatHF.
3802 (type vecmode): Add V4HF.
3803 (type features): Add Requires_FP_bit feature.
3804 (elt_width): Handle F16.
3805 (elt_class): Likewise.
3806 (elt_of_class_width): Likewise.
3807 (mode_of_elt): Refactor.
3808 (type_for_elt): Handle F16, fix error messages.
3809 (vectype_size): Handle T_float16x4.
3810 (vcvt_sh): New function.
3811 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3812 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3813 (string_of_mode): Handle V4HF.
3814 * doc/arm-neon-intrinsics.texi: Regenerate.
3816 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3818 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3819 format specifier in 'X' case.
3821 2013-04-25 Alan Modra <amodra@gmail.com>
3824 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3825 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3826 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3827 Repeat for many other rotate/shift and mask patterns using subregs.
3828 Name lshiftrt insns.
3829 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3830 on WORDS_BIG_ENDIAN.
3832 2013-04-25 Alan Modra <amodra@gmail.com>
3834 * config.gcc: Support little-endian powerpc-linux targets.
3835 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3836 (LINK_OS_LINUX_SPEC): Define.
3837 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3838 Preserve MASK_LITTLE_ENDIAN.
3839 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3840 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3841 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3842 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3843 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3844 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3845 Correct fp word order for little-endian. Don't shift toc entries
3846 smaller than a word for little-endian.
3847 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3848 (bswapdi2 splits): Correct low-part subreg for little-endian.
3849 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3850 low/high where such is correct only for be.
3851 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3852 little-endian for -mcall-aixdesc.
3854 2013-04-25 Alan Modra <amodra@gmail.com>
3856 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3857 replace_equiv_address_nv.
3859 2013-04-25 Alan Modra <amodra@gmail.com>
3861 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3863 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3866 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3867 * rtl.h (struct rtx_def): ...
3869 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3871 PR rtl-optimizations/57046
3872 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3873 for multi-reg splits.
3875 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3877 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3879 2013-04-24 Sterling Augustine <saugustine@google.com>
3881 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3882 (comp_dir_string, debug_str_dwo_section): New.
3883 (DEBUG_STR_DWO_SECTION): Rename to ...
3884 (DEBUG_DWO_STR_SECTION): ... this.
3885 (DEBUG_NORM_STR_SECTION): Delete.
3886 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3887 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3888 (find_AT_string): Move most logic to ...
3889 (find_AT_string_in_table): ... here. New.
3890 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3891 add_skeleton_AT_string. Delete logic.
3892 (output_skeleton_debug_sections): Remove call to
3893 add_top_level_skeleton_die_attrs.
3894 (add_comp_dir_attribute): Move logic to comp_dir_string.
3895 (dwarf2out_init): Initialize debug_str_dwo_section.
3896 (output_indirect_string): Call find_string_form.
3897 (output_indirect_strings): Rewrite.
3898 (prune_unused_types): Empty skeleton_debug_str_hash.
3899 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3900 (dwarf2out_finish): Call output_indirect_strings.
3902 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3904 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3906 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3908 * rtl.h (struct rtx_def): Add comment for field jump.
3909 (LRA_SUBREG_P): New macro.
3910 * recog.c (register_operand): Check LRA_SUBREG_P.
3911 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3913 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3914 (lra_final_code_change): Skip subreg change for operators.
3915 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3916 if there are no operand changes.
3917 * lra-constraints.c (curr_insn_set): New.
3918 (match_reload): Set LRA_SUBREG_P.
3919 (emit_spill_move): Ditto.
3920 (check_and_process_move): Use curr_insn_set. Process only single
3921 set insns. Don't initialize sec_mem_p and change_p.
3922 (simplify_operand_subreg): Use LRA_SUBREG_P.
3923 (reg_in_class_p): New function.
3924 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3925 of #ifdef. Add code to remove cycling.
3926 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3927 non-null disp. Reload inner instead of disp when base and index
3928 are null. Try to put lo_sum into register.
3929 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3930 (check_and_process_move): Move code for move cost check to
3931 simple_move_p. Remove equiv_substitution.
3932 (simple_move_p): New function.
3933 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3934 curr_insn_set. Call check_and_process_move only for single set
3935 insns. Use the new function. Move call of check_and_process_move
3936 after operand equiv substitution and address process.
3938 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3940 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3941 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3942 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3944 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3946 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3948 2013-04-24 Marek Polacek <polacek@redhat.com>
3950 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3951 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3952 (select_loops_exit_conditions): Likewise.
3953 (number_of_iterations_for_all_loops): Likewise.
3954 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3955 (scev_analysis): Likewise.
3957 2013-04-02 Catherine Moore <clm@codesourcery.com>
3958 Chao-ying Fu <fu@mips.com>
3960 * config/mips/micromips.md (jraddiusp): New pattern.
3961 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3962 instruction if possible.
3964 2013-04-24 Alan Modra <amodra@gmail.com>
3966 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3968 2013-04-24 Julian Brown <julian@codesourcery.com>
3969 Chung-Lin Tang <cltang@codesourcery.com>
3971 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
3972 dependency behavior in enumeration type DIE generation. Add TODO note
3973 to comments about future DW_FORM_sdata/udata re-work of related code.
3975 2013-04-23 Lawrence Crowl <crowl@google.com>
3977 * Makefile.in: Update as needed below.
3979 * hash-table.h (class hash_table):
3980 Correct many methods with parameter types compare_type to the correct
3981 value_type. (Correct code was unlikely to notice the change.)
3982 (hash_table::elements_with_deleted) New.
3983 (class hashtable::iterator): New.
3984 (hashtable::begin()): New.
3985 (hashtable::end()): New.
3986 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3988 * statistics.c (statistics_hashes):
3989 Change type to hash_table. Update dependent calls and types.
3991 * tree-into-ssa.c (var_infos):
3992 Change type to hash_table. Update dependent calls and types.
3994 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3995 Change type to hash_table. Update dependent calls and types.
3997 * tree-ssa-loop-im.c (struct mem_ref.refs):
3998 Change type to hash_table. Update dependent calls and types.
4000 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4001 Change type to hash_table. Update dependent calls and types.
4003 * tree-ssa-sccvn.c (vn_tables_s::nary):
4004 Change type to hash_table. Update dependent calls and types.
4005 (vn_tables_s::phis): Likewise.
4006 (vn_tables_s::references): Likewise.
4008 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4009 (vn_reference_eq): Update parameter and return types.
4011 * tree-ssa-structalias.c (pointer_equiv_class_table):
4012 Change type to hash_table. Update dependent calls and types.
4013 (location_equiv_class_table): Likewise.
4015 * tree-vect-data-refs.c: Consequential changes for making
4016 peeling a hash_table.
4018 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4019 (destroy_loop_vec_info): Dependent hash_table update.
4021 * tree-vectorizer.h (peeling_htab):
4022 Change type to hash_table. Update dependent calls and types.
4024 2013-04-23 Shiva Chen <shiva0217@gmail.com>
4026 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4027 to check the register content is equal or not.
4028 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4029 to assign register content record.
4030 * lra-eliminations.c (update_reg_eliminate): Use
4031 lra_update_reg_val_offset to update register content offset.
4032 * lra-int.h (struct lra_reg): Add offset member.
4033 (lra_reg_val_equal_p): New static inline function.
4034 (lra_update_reg_val_offset): New static inline function.
4035 (lra_assign_reg_val): New static inline function.
4036 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4037 to assign register content record.
4038 (initialize_lra_reg_info_element): Initial offset to zero.
4040 2013-04-23 Catherine Moore <clm@codesourcery.com>
4042 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4043 operands. Record compression.
4045 2013-04-23 Xinliang David Li <davidxl@google.com>
4047 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4049 2013-04-23 Richard Biener <rguenther@suse.de>
4052 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4053 parameter, only add abnormal goto edges from the copied body
4054 if the call could perform abnormal gotos.
4055 (copy_cfg_body): Adjust.
4057 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4059 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4061 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4063 * coretypes.h (gimple_stmt_iterator): Add struct to make
4066 2013-04-23 Richard Biener <rguenther@suse.de>
4068 PR tree-optimization/57026
4069 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4070 from SSA names occuring in abnormal PHI nodes.
4072 2013-04-22 Andi Kleen <ak@linux.intel.com>
4074 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4076 2013-04-22 Andi Kleen <ak@linux.intel.com>
4078 * lto/lto.c (print_lto_report_1): Declare early.
4079 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4081 2013-04-22 Andi Kleen <ak@linux.intel.com>
4083 * common.opt (-flto-report-wpa): Add.
4084 * doc/invoke.texi (-flto-report-wpa): Add.
4085 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4088 2013-04-22 Xinliang David Li <davidxl@google.com>
4090 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4091 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4092 * Makefile.in: New dependency
4094 David Daney <ddaney.cavm@gmail.com>
4096 * configure.ac (gcc_cv_as_micromips_support): Use the
4097 --fatal-warnings option.
4098 * configure: Regenerate.
4100 2013-04-22 Marek Polacek <polacek@redhat.com>
4103 * tsan.c (instrument_expr): Don't instrument expression
4104 in case its size is zero.
4106 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
4110 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4112 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4114 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4116 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4117 (gimple_stmt_iterator): New typedef.
4118 * gimple.h (gimple_stmt_iterator): Rename to...
4119 (gimple_stmt_iterator_d): ... This.
4120 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4121 trees be valid for GIMPLE and GENERIC.
4122 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4123 * gimple-fold.c (gimple_fold_call): Call target hook
4124 gimple_fold_builtin.
4125 * hooks.c (hook_bool_gsiptr_false): New.
4126 * hooks.h (hook_bool_gsiptr_false): New.
4127 * target.def (fold_stmt): New.
4128 * doc/tm.texi: Regenerate.
4130 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4133 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4134 a set sp if no stack realignment.
4136 2013-04-22 Nick Clifton <nickc@redhat.com>
4138 * config.gcc (tilegx-linux): Extend extra_objs rather than
4140 (tilepro-linux): Likewise.
4142 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4144 * config/aarch64/aarch64-builtins.c
4146 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4147 (VAR<1-12>): Add MAP parameter.
4148 (BUILTIN_*): Likewise.
4149 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4150 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4151 (aarch64_ushl_n<mode>): Likewise.
4152 (aarch64_sshr_n<mode>): Likewise.
4153 (aarch64_ushr_n<mode>): Likewise.
4154 (aarch64_<maxmin><mode>): Likewise.
4155 (aarch64_sqrt<mode>): Likewise.
4156 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4157 (vshr<q>_n_*): Likewise.
4159 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4161 * config/aarch64/aarch64-builtins.c
4162 (aarch64_simd_builtin_type_mode): Handle SF types.
4164 (BUILTIN_GPF): Define.
4165 (aarch64_init_simd_builtins): Handle SF types.
4166 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4169 * config/aarch64/aarch64-simd.md
4170 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4171 (aarch64_frecpe<mode>): New.
4172 (aarch64_frecps<mode>): Likewise.
4173 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4174 (v8type): Add frecp<esx>.
4175 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4176 (aarch64_frecps<mode>): Likewise.
4177 * config/aarch64/iterators.md (FRECP): New.
4178 (frecp_suffix): Likewise.
4179 * config/aarch64/arm_neon.h
4180 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4182 2013-04-22 Christian Bruel <christian.bruel@st.com>
4185 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4186 (REG_CLASS_NAMES): Idem.
4187 (REG_CLASS_CONTENTS): Idem.
4188 (REGCLASS_HAS_FP_REG): Idem.
4189 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4190 (sh_conditional_register_usage): Idem.
4192 2013-04-21 Jeff Law <law@redhat.com>
4194 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4195 (ssa_forward_propagate_and_combine): Use it.
4197 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4199 * lra.c: Update the flow chart diagram.
4201 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4203 PR rtl-optimization/56847
4204 * lra-constraints.c (process_alt_operands): Discourage alternative
4205 with non-matche doffsettable memory constraint fro memory with
4208 2013-04-19 Richard Biener <rguenther@suse.de>
4210 PR tree-optimization/56982
4211 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4213 * gimplify.c (gimplify_call_expr): Notice special calls.
4214 (gimplify_modify_expr): Likewise.
4215 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4216 abnormal control flow receivers.
4217 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4218 in the same way as cfun->has_nonlocal_labels.
4219 (gimple_purge_dead_abnormal_call_edges): Likewise.
4220 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4221 receivers start a basic-block.
4223 2013-04-19 Richard Biener <rguenther@suse.de>
4225 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4227 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4228 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4229 (SLP_TREE_LOAD_PERMUTATION): Add.
4230 (vect_transform_slp_perm_load): Adjust prototype.
4231 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4232 (vect_free_slp_instance): Likewise.
4233 (vect_create_new_slp_node): Likewise.
4234 (vect_supported_slp_permutation_p): Remove.
4235 (vect_slp_rearrange_stmts): Adjust.
4236 (vect_supported_load_permutation_p): Likewise. Inline
4237 vect_supported_slp_permutation_p here.
4238 (vect_analyze_slp_instance): Compute load permutations per
4239 slp node instead of per instance.
4240 (vect_get_slp_defs): Adjust.
4241 (vect_transform_slp_perm_load): Likewise.
4242 (vect_schedule_slp_instance): Remove redundant code.
4243 (vect_schedule_slp): Remove hack for PR56270, add it ...
4244 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4245 CSE loads for SLP. Adjust.
4247 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4249 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4250 spelling in two comments.
4252 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4255 * config/arm/arm.c (load_multiple_sequence): Require SP
4256 as base register for loads if SP is in the register list.
4258 2013-04-19 Martin Jambor <mjambor@suse.cz>
4260 PR tree-optimization/56718
4261 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4262 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4263 and made public. Adjusted all callers.
4264 (ipa_intraprocedural_devirtualization): New function.
4265 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4266 (ipa_intraprocedural_devirtualization): Likewise.
4267 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4269 2013-04-19 Richard Biener <rguenther@suse.de>
4271 PR tree-optimization/57000
4272 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4274 2013-04-19 Terry Guo <terry.guo@arm.com>
4276 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4278 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4279 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4280 (cortex_m4_fmacs): Use new reservations.
4281 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4283 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4285 PR rtl-optimization/56999
4286 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4288 (lra_coalesce): Remove split_origin_bitmap and related code.
4289 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4290 ranges if necessary.
4292 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
4294 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4296 (ix86_expand_call): Remove clobbered_registers array and use
4297 x86_64_ms_sysv_extra_clobbered_registers instead.
4298 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4300 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4302 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4303 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4304 (*call_value_rex64_ms_sysv): Ditto.
4306 2013-04-18 Cary Coutant <ccoutant@google.com>
4308 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4309 parent instead of die_mark.
4311 2013-04-18 Diego Novillo <dnovillo@google.com>
4313 * gimple.c (create_gimple_tmp): New.
4314 (get_expr_type): New.
4315 (build_assign): New.
4316 (build_type_cast): New.
4317 * gimple.h (enum ssa_mode): Define.
4318 (gimple_seq_set_location): New.
4319 * asan.c (build_check_stmt): Change some gimple_build_* calls
4320 to use build_assign and build_type_cast.
4322 2013-04-18 Richard Biener <rguenther@suse.de>
4324 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4325 handle negative step. Remove redundant checks.
4326 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4327 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4328 for negative step and grouped loads fail to vectorize.
4330 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4332 * emit-rtl.c (reset_insn_used_flags): New function.
4333 (reset_all_used_flags): Use it.
4334 (verify_insn_sharing): New function.
4335 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4337 2013-04-18 Jakub Jelinek <jakub@redhat.com>
4339 PR tree-optimization/56984
4340 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4341 and (x >> M) >= N don't register any assertion if N << M is the
4344 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4346 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4347 do not delete_insn insns that have not yet been emitted, only
4348 unlink them with remove_insn.
4349 * df-scan.c (df_insn_delete): Revert r197492.
4351 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4353 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4354 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4356 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4358 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4359 define_insn_and_split.
4360 (and_scc,ior_scc,negscc): Likewise.
4361 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4363 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4365 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4366 can benefit from using a sequence of LDRD instructions in epilogue
4367 instead of a single LDM instruction.
4369 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4372 * doc/extend.texi: Fix typo.
4374 2013-04-17 Richard Biener <rguenther@suse.de>
4376 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4377 (vect_build_slp_tree): ... here.
4378 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4379 match. Remove special-casing of mismatched complex loads.
4380 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4381 re-try the match with swapped commutative operands.
4382 (vect_supported_load_permutation_p): Remove special-casing of
4383 mismatched complex loads.
4384 (vect_analyze_slp_instance): Adjust.
4386 2013-04-17 Richard Biener <rguenther@suse.de>
4388 PR rtl-optimization/56921
4389 * cfgloop.h (struct loop): Add simple_loop_desc member.
4390 (struct niter_desc): Mark with GTY(()).
4391 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4392 * loop-iv.c (get_simple_loop_desc): Likewise.
4393 (free_simple_loop_desc): Likewise.
4396 2013-04-16 Richard Biener <rguenther@suse.de>
4398 PR rtl-optimization/56921
4399 * loop-init.c (pass_rtl_move_loop_invariants): Add
4400 TODO_do_not_ggc_collect to todo_flags_finish.
4401 (pass_rtl_unswitch): Same.
4402 (pass_rtl_unroll_and_peel_loops): Same.
4403 (pass_rtl_doloop): Same.
4405 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4407 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4408 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4409 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4411 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4412 * tree-streamer.c (record_common_node): Adjust reference in comment.
4414 2013-04-17 Terry Guo <terry.guo@arm.com>
4416 * config/arm/cortex-m4.md: Add a new bypass.
4418 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4420 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4422 (*subs_<optab><mode>_multp2): New pattern.
4423 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4424 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4426 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4428 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4429 (*subs_mul_imm_<mode>): New pattern.
4431 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
4434 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4435 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4436 (vsx_movti_32bit): Change j->wa to O->wa.
4438 2013-04-16 Richard Biener <rguenther@suse.de>
4440 PR rtl-optimization/56921
4441 * loop-init.c (pass_rtl_move_loop_invariants): Add
4442 TODO_do_not_ggc_collect to todo_flags_finish.
4443 (pass_rtl_unswitch): Same.
4444 (pass_rtl_unroll_and_peel_loops): Same.
4445 (pass_rtl_doloop): Same.
4447 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
4449 * config/arm/arm.c (emit_multi_reg_push): New declaration
4450 for an existing function.
4451 (arm_emit_strd_push): New function.
4452 (arm_expand_prologue): Used here.
4453 (arm_emit_ldrd_pop): New function.
4454 (arm_expand_epilogue): Used here.
4455 (arm_get_frame_offsets): Update condition.
4456 (arm_emit_multi_reg_pop): Add a special case for load of a single
4457 register with writeback.
4459 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
4461 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4464 2013-04-16 Richard Biener <rguenther@suse.de>
4466 PR tree-optimization/56756
4467 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4468 (first_mem_ref_loc): New.
4469 (execute_sm): Place the load temporarily before a previous
4470 access instead of in the latch edge to ensure its SSA dependencies
4471 are defined at points dominating the load.
4473 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4475 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4476 correct fix by moving header and footer insn to the footer of
4477 the merged basic block. Clear BB_END of the merged-away block.
4480 * emit-rtl.c (make_note_raw): New function.
4481 (link_insn_into_chain): New static inline function.
4483 (add_insn_before, add_insn_after): Factor insn chain linking code...
4484 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4485 using link_insn_into_chain.
4486 (note_outside_basic_block_p): New helper function for emit_note_after
4487 and emit_note_before.
4488 (emit_note_after): Use nobb variant of add_insn_after if the note
4489 should not be contained in a basic block.
4490 (emit_note_before): Use nobb variant of add_insn_before if the note
4491 should not be contained in a basic block.
4492 (emit_note_copy): Use make_note_raw.
4493 (emit_note): Likewise.
4494 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4495 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4496 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4497 the moved barrier the tail of the basic block it follows.
4498 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4500 2013-04-15 Jakub Jelinek <jakub@redhat.com>
4502 PR tree-optimization/56962
4503 * gimple-ssa-strength-reduction.c (record_increment): Only set
4504 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4505 either rhs1 or rhs2 is equal to c->base_expr.
4507 2013-04-15 Richard Biener <rguenther@suse.de>
4509 PR tree-optimization/56933
4510 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4512 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4513 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4514 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4515 dependence check ...
4516 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4518 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4519 GROUP_READ_WRITE_DEPENDENCE.
4521 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4523 * emit-rtl.c (reset_all_used_flags): New function.
4524 (verify_rtl_sharing): Call reset_all_used_flags before and after
4525 performing the checks.
4527 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4529 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4530 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4531 * config/arm/constraints.md (De): New constraint.
4532 * config/arm/neon.md (anddi3_neon): Delete.
4533 (neon_vand<mode>): Expand to standard anddi3 pattern.
4534 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4535 Move earlier in the file.
4536 (neon_inv_logic_op2): Likewise.
4537 (arm_anddi_operand_neon): New predicate.
4539 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4541 * configure.ac (gcc_cv_ld_as_needed): Set
4542 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4543 Use -z ignore, -z record on *-*-solaris2*.
4544 (HAVE_LD_AS_NEEDED): Update comment.
4545 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4546 * configure: Regenerate.
4547 * config.in: Regenerate.
4548 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4549 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4550 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4551 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4552 equivalents. Fix markup.
4553 * doc/tm.texi: Regenerate.
4555 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4557 * config/i386/i386.opt: New option mstack-protector-guard=.
4558 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4559 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4560 TARGET_SSP_TLS_GUARD.
4561 * config/i386/i386.c (ix86_option_override_internal): Set
4562 ix86_stack_protector_guard.
4563 * config/i386/i386.md (stack_protect_set): Enable for
4564 TARGET_SSP_TLS_GUARD only.
4565 (stack_protect_set_<mode>): Ditto.
4566 (stack_protect_test): Ditto.
4567 (stack_protect_test_<mode>): Ditto.
4568 * doc/invoke.texi (i386 Option): Document.
4570 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4573 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4574 (S_MODES): Set H_MODE bit.
4575 (SF_MODES): Set only S_MODE and SF_MODE bits.
4576 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4577 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4578 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4579 <MODE_FLOAT>: Likewise.
4581 2013-04-15 Joey Ye <joey.ye@arm.com>
4583 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4585 2013-04-15 Joey Ye <joey.ye@arm.com>
4587 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4589 (thumb_far_jump_used_p): Count instruction size and set
4592 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4594 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4595 * resource.c (mark_target_live_regs): Reformat conditional block.
4597 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4599 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4600 notes, they are emitted only just before final.
4601 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4603 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4605 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4606 * cfgrtl.c (delete_insn): Call it here instead.
4607 * lra-spills.c (lra_final_code_change): Use delete_insn.
4608 * haifa-sched.c (sched_remove_insn): Likewise.
4609 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4610 returning to the nop pool.
4611 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4612 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4614 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4616 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4617 * doc/tm.texi: Regenerated.
4619 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
4621 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4624 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4626 * df-core.c (df_find_def): Compare register numbers.
4627 (df_find_use): Likewise.
4629 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4632 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4633 lra_in_progress for return.
4635 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4637 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4638 define_insn into define_insn_and_split and emit movsicc patterns.
4640 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4642 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4644 2013-04-12 Richard Biener <rguenther@suse.de>
4646 * tree-pass.h (TODO_do_not_ggc_collect): New.
4647 * passes.c (execute_one_ipa_transform_pass): Honor
4648 TODO_do_not_ggc_collect.
4649 (execute_one_pass): Likewise.
4652 2013-04-10 Richard Biener <rguenther@suse.de>
4654 * passes.c (init_optimization_passes): Remove reload pass.
4655 * ira.c (do_reload): Merge into ...
4657 (rest_of_handle_reload): Remove.
4658 (pass_reload): Likewise.
4659 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4660 of reload for vzeroupper pass placement.
4662 2013-04-12 Jakub Jelinek <jakub@redhat.com>
4664 PR tree-optimization/56918
4665 PR tree-optimization/56920
4666 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4667 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4668 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4669 use wide_mul_with_sign method.
4671 2013-04-12 Richard Biener <rguenther@suse.de>
4673 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4674 not be considered a gimple constant.
4676 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
4678 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4679 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4682 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4683 Jakub Jelinek <jakub@redhat.com>
4685 * opts.c: Include diagnostic-color.h.
4686 (common_handle_option): Handle OPT_fdiagnostics_color_.
4687 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4688 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4689 (diagnostic-color.o): New.
4690 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4691 (diagnostic_color_rule): New enum.
4692 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4693 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4694 the location string.
4695 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4696 either NULL, or color kind.
4697 * diagnostic-color.c: New file.
4698 * diagnostic-color.h: New file.
4699 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4701 * doc/invoke.texi (-fdiagnostics-color): Document.
4702 * pretty-print.h (pp_show_color): Define.
4703 (struct pretty_print_info): Add show_color field.
4704 * diagnostic.c: Include diagnostic-color.h.
4705 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4706 macros. Colorize error:, warning: etc. strings and also the location
4708 (diagnostic_show_locus): Colorize the caret line.
4709 * pretty-print.c: Include diagnostic-color.h.
4710 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4711 inside of %< %> quotes or quoted through q format modifier.
4713 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4715 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
4717 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4719 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4721 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4724 2013-04-11 Marek Polacek <polacek@redhat.com>
4726 PR tree-optimization/48184
4727 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
4729 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4731 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4732 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4733 (skip_simple_arithmetic): Tidy up.
4734 * tree.h (skip_simple_constant_arithmetic): Declare.
4736 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4738 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4740 2013-04-11 Richard Biener <rguenther@suse.de>
4742 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4743 generate vector constants.
4745 2013-04-11 Richard Biener <rguenther@suse.de>
4747 PR tree-optimization/56878
4748 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4749 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4751 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4752 Prefer to align the DR with the most invariant base address.
4754 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4756 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4759 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4761 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4762 floating-point vector comparisons against 0.
4764 2013-04-11 Jakub Jelinek <jakub@redhat.com>
4766 PR tree-optimization/56899
4767 * fold-const.c (extract_muldiv_1): Apply distributive law
4768 only if TYPE_OVERFLOW_WRAPS (ctype).
4770 2013-04-11 Bin Cheng <bin.cheng@arm.com>
4773 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4774 loading has side effect.
4776 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4778 * config/sparc/sparc.c: Include tree-pass.h.
4779 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4780 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4781 head of file. Change return type. Split off gate function.
4782 (sparc_gate_work_around_errata): New function.
4783 (pass_work_around_errata): New pass definition.
4784 (insert_pass_work_around_errata) New pass insert definition to
4785 insert pass_work_around_errata just after delayed-branch scheduling.
4786 (sparc_option_override): Insert the pass.
4787 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4789 2013-04-10 David S. Miller <davem@davemloft.net>
4791 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4792 or -mcpu=hypersparc.
4794 * target.def (cstore_mode): New hook.
4795 * target.h: Include insn-codes.h
4796 * targhooks.c: Likewise.
4797 (default_cstore_mode): New function.
4798 * targhooks.h: Declare it.
4799 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4800 * doc/tm.texi: Rebuild.
4801 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4802 target hook, rather than inspecting the insn_data.
4803 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4804 (TARGET_CSTORE_MODE): Redefine.
4805 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4807 * config/sparc/predicates.md (cstore_result_operand): New special
4809 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4810 Use it for operand 0.
4811 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4812 (*snesi_special): Likewise.
4813 (*snesi_zero): Likewise.
4814 (*seqsi_zero): Likewise.
4815 (*sltu_insn): Likewise.
4816 (*sgeu_insn): Likewise.
4817 (*seqdi_special): Make operand 0 and comparison operation be of
4819 (*snedi_special): Likewise.
4820 (*snedi_special_vis3): Likewise.
4821 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4822 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4823 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4824 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4825 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4826 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4827 (*sltu_extend_sp64): Likewise.
4828 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4829 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4830 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4831 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4832 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4834 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4836 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4837 (aarch64_start_file): Use the new function.
4839 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4840 Jason Merrill <jason@redhat.com>
4842 * common.opt: Add -gdwarf.
4843 * opts.c (common_handle_option): Handle it.
4844 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4846 2013-04-10 Richard Biener <rguenther@suse.de>
4848 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4849 (execute_one_ipa_transform_pass): But unconditionally here.
4850 (execute_one_pass): And here.
4851 (init_optimization_passes): Remove reload pass.
4852 * tree-pass.h (TODO_ggc_collect): Remove.
4853 (pass_reload): Likewise.
4854 * ira.c (do_reload): Merge into ...
4856 (rest_of_handle_reload): Remove.
4857 (pass_reload): Likewise.
4858 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4859 of reload for vzeroupper pass placement.
4860 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4861 and todo_flags_finish of all passes.
4863 2013-04-10 Richard Biener <rguenther@suse.de>
4865 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4866 first_const_oprnd field, rename first_def_type to first_op_type.
4867 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4868 (vect_get_and_check_slp_defs): Always use the type of the
4869 operand. Allow mixed vect_external_def, vect_constant_def types.
4870 (vect_get_constant_vectors): Handle mixed vect_external_def,
4871 vect_constant_def types.
4873 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4875 PR tree-optimization/55524
4876 * tree-ssa-math-opts.c
4877 (convert_mult_to_fma): Don't use an fms construct
4878 when we don't have an fms operation, but fnma, and it looks
4879 likely that we'll be able to use the latter.
4881 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4883 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4885 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4886 inline fail caused by overwritable functions.
4888 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4890 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4891 unnecessary bits in the constant power of two case.
4893 2013-04-10 Richard Biener <rguenther@suse.de>
4895 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4896 broken code swapping operands.
4897 (vect_build_slp_tree): Do not compute load permutations here.
4898 (vect_analyze_slp_instance): Compute load permutations here,
4899 after building the SLP tree.
4901 2013-04-09 Christian Bruel <christian.bruel@st.com>
4903 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4904 of next/prev_real_insn.
4906 2013-04-09 Jan Hubicka <jh@suse.cz>
4908 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4909 Drop aliased parameter.
4910 (function_and_variable_visibility): Do not handle alias pairs.
4911 * cgraph.c (varpool_externally_visible_p): Update prototype.
4912 * varpool.c (varpool_add_new_variable): Update.
4914 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4916 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4918 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4920 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4922 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4924 2013-04-09 Marek Polacek <polacek@redhat.com>
4926 PR tree-optimization/48762
4927 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
4929 2013-04-09 Richard Biener <rguenther@suse.de>
4931 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4933 (vect_build_slp_tree): Likewise.
4934 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4935 calculating the cost of a SLP instance.
4936 (vect_analyze_slp_instance): Use it from here, after building
4939 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4942 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4943 expand_omp_for_static_chunk): Use simple_p = true in
4944 force_gimple_operand_gsi calls when assigning to addressable decls.
4946 2013-04-09 Jeff Law <law@redhat.com>
4948 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4949 when the boolean was created by converting a wider object which
4950 had a boolean range.
4952 2013-04-09 Richard Biener <rguenther@suse.de>
4954 * tree-vectorizer.h (slp_void_p): Remove.
4955 (slp_tree): Typedef before _slp_tree declaration.
4956 (struct _slp_tree): Use a vector of slp_tree as children.
4957 (vect_get_place_in_interleaving_chain): Remove.
4958 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4960 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4962 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4963 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4964 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4965 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4966 Use slp_node instead of slp_void_p and adjust.
4968 2013-04-09 Richard Biener <rguenther@suse.de>
4970 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4971 work that is not necessary.
4973 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4975 PR tree-optimization/56854
4976 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4977 forward into clobber stmts if it would change MEM_REF lhs into
4980 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4982 * tree.c (type_hash_lookup, type_hash_add): Make static.
4983 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4985 2013-04-09 Richard Biener <rguenther@suse.de>
4987 * tree.h (unsave_expr_now): Remove.
4988 * tree-inline.c (mark_local_for_remap_r): Remove.
4989 (unsave_expr_1): Likewise.
4990 (unsave_r): Likewise.
4991 (unsave_expr_now): Likewise.
4992 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4993 (propagate_tree_value): Likewise.
4995 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4997 * doc/rtl.texi (sequence): Rewrite documentation to match the
4998 current use of SEQUENCE rtl objects.
4999 * rtl.def (SEQUENCE): Likewise.
5001 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5002 Update documentation.
5003 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5004 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5006 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5008 2013-04-08 Teresa Johnson <tejohnson@google.com>
5010 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5011 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
5013 (estimate_edge_size_and_time): Add comment to suggest using rounding
5015 (estimate_node_size_and_time): Ditto.
5016 (remap_edge_change_prob): Use helper rounding divide methods.
5017 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5018 (gimple_mod_pow2_value_transform): Ditto.
5019 (gimple_mod_subtract_transform): Ditto.
5020 (gimple_ic_transform): Ditto.
5021 (gimple_stringops_transform): Ditto.
5022 * stmt.c (conditional_probability): Ditto.
5023 (emit_case_dispatch_table): Ditto.
5024 * lto-cgraph.c (merge_profile_summaries): Ditto.
5025 * tree-optimize.c (execute_fixup_cfg): Ditto.
5026 * cfgcleanup.c (try_forward_edges): Ditto.
5027 * cfgloopmanip.c (scale_loop_profile): Ditto.
5029 (duplicate_loop_to_header_edge): Ditto.
5030 (lv_adjust_loop_entry_edge): Ditto.
5031 * tree-vect-loop.c (vect_transform_loop): Ditto.
5032 * profile.c (compute_branch_probabilities): Ditto.
5033 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5034 * lto-streamer-in.c (input_cfg): Ditto.
5035 * gimple-streamer-in.c (input_bb): Ditto.
5036 * ipa-cp.c (update_profiling_info): Ditto.
5037 (update_specialized_profile): Ditto.
5038 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5039 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
5041 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5042 (compute_trg_info): Ditto.
5043 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5044 (purge_dead_edges): Ditto.
5045 * loop-unswitch.c (unswitch_loop): Ditto.
5046 * cgraphclones.c (cgraph_clone_edge): Ditto.
5047 (cgraph_clone_node): Ditto.
5048 * tree-inline.c (copy_bb): Ditto.
5049 (copy_edges_for_bb): Ditto.
5050 (initialize_cfun): Ditto.
5051 (copy_cfg_body): Ditto.
5052 (expand_call_inline): Ditto.
5054 2013-04-08 Kai Tietz <ktietz@redhat.com>
5056 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5057 TARGET_CYGWIN64 by TARGET_64BIT.
5059 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5061 * config/epiphany/epiphany.md (GPR_1): New constant.
5062 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5063 * config/epiphany/epiphany.c (gen_compare_reg):
5064 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5065 is already in place.
5066 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5067 Don't require being called during rtl expansion; If y operlaps r0,
5069 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5070 (epiphany_expand_epilogue): Likewise.
5072 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5073 Don't use CC_FPmode for ORDERED / UNORDERED.
5074 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5076 * config/epiphany/constraints.md (CnL): New constraint.
5077 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5078 * config/epiphany/predicates.md (add_operand): Allow 1024.
5080 * config/epiphany/epiphany.md (logical_op): New code iterator.
5081 (op_mnc): New code attribute.
5082 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5083 (mov_f+1, mov_f+2): New peephole2 patterns.
5085 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5086 (cstoresi4): Also allow re-use of zero result when doing a NE
5087 comparison to a non-zero operand.
5088 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5090 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5091 Use gen_addsi3_i / gen_subsi3_i.
5093 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5097 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5098 contain anything but clobbers, at most one __builtin_stack_restore,
5099 optionally debug stmts and final resx, and if it has at least one
5100 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5101 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5102 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5103 which isn't defaut definition, remove them.
5104 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5105 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5106 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5107 with MEM_REF LHS with SSA_NAME address.
5109 2013-04-08 Jeff Law <law@redhat.com>
5111 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
5113 2013-04-08 Richard Biener <rguenther@suse.de>
5115 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5117 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5118 determined vector type.
5119 (vect_analyze_data_refs): Likewise.
5120 (vect_get_new_vect_var): Adjust.
5121 (vect_create_destination_var): Preserve SSA name versions.
5122 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5123 not dump anything here.
5125 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5127 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5128 Add member lr_slot_known.
5129 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5131 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5132 Remove code that sets lr_slot_offset according to what a previous
5133 version of epiphany_emit_save_restore used to do.
5134 (epiphany_emit_save_restore): When doing an lr save or restore,
5135 set/verify lr_slot_known and lr_slot_offset.
5137 2013-04-08 Xinyu Qi <xyqi@marvell.com>
5140 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
5143 2013-04-08 Richard Biener <rguenther@suse.de>
5145 * alias.c (find_base_term): Fix thinko in previous change.
5147 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5149 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5150 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5151 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5152 if possible to compute val.
5153 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5154 For QImode integers don't require anything about precision. Use
5155 const_with_all_bytes_same to find out if the constant doesn't have
5156 repeated bytes in it.
5158 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5160 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5163 2013-04-08 Marek Polacek <polacek@redhat.com>
5165 PR rtl-optimization/48182
5166 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5169 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5172 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5173 nuses, make sure we have a label.
5175 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5178 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5179 (rs6000_emit_swdiv_low_precision): Remove.
5180 (rs6000_emit_swdiv): Rewrite to handle between one and four
5181 iterations of Newton-Raphson generally; modify required number of
5182 iterations for some cases.
5183 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5185 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5187 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5188 set-but-unused variable.
5190 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5191 basic blocks of released function bodies garbage-collectable.
5193 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5194 (struct rtl_opt_pass): Add TODO_df_finish.
5196 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5198 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5200 * config/arm/constraints.md (q): New constraint.
5201 * config/arm/ldrdstrd.md: New file.
5202 * config/arm/arm.md (ldrdstrd.md) New include.
5203 (arm_movdi): Use "q" instead of "r" constraint
5204 for double-word memory access.
5205 (movdf_soft_insn): Likewise.
5206 * config/arm/vfp.md (movdi_vfp): Likewise.
5207 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
5208 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
5209 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5210 (mem_ok_for_ldrd_strd): Likewise.
5211 (output_move_double): Update assertion.
5213 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5215 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5217 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5219 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5220 define_insn_and_split.
5221 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5223 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5225 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5226 define_insn_and_split.
5227 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
5228 (shiftsi3_compare): New pattern.
5230 * config/arm/unspecs.md (UNSPEC_RRX): New.
5232 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5234 * config/arm/arm.md (negdi_extendsidi): New pattern.
5235 (negdi_zero_extendsidi): Likewise.
5237 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5239 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5240 define_insn_and_split.
5241 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5242 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5244 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5246 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5247 define_insn_and_split.
5248 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5249 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5251 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5253 * config/arm/arm.md (subsi3_carryin): New pattern.
5254 (subsi3_carryin_const): Likewise.
5255 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5256 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5258 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5260 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5262 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5264 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
5265 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
5267 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5269 * config/arm/arm.c (arm_expand_builtin): Change fcode
5270 type to unsigned int.
5272 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5274 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5276 2013-04-04 Ian Lance Taylor <iant@google.com>
5278 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5281 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5284 * df-scan.c (df_insn_delete): Disable failing assert.
5286 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5288 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5289 New function prototype.
5290 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5291 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5292 (arm_builtin_vectorized_function): New function.
5294 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5296 * config/arm/arm_neon_builtins.def: New file.
5297 * config/arm/arm.c (neon_builtin_data): Move contents to
5298 arm_neon_builtins.def.
5299 (enum arm_builtins): Include neon builtin definitions.
5300 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
5301 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
5303 2013-04-04 Marek Polacek <polacek@redhat.com>
5305 PR tree-optimization/48186
5306 * predict.c (maybe_hot_frequency_p): Return false if
5307 HOT_BB_FREQUENCY_FRACTION is 0.
5308 (cgraph_maybe_hot_edge_p): Likewise.
5310 2013-04-04 Richard Biener <rguenther@suse.de>
5312 PR tree-optimization/56826
5313 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5316 2013-04-04 Richard Biener <rguenther@suse.de>
5318 PR tree-optimization/56213
5319 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
5320 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
5322 2013-04-04 Richard Biener <rguenther@suse.de>
5324 PR tree-optimization/56837
5325 * tree-loop-distribution.c (classify_partition): For non-zero
5326 values require that the value has the same precision as its
5327 mode to be useful as memset value.
5329 2013-04-03 Nick Clifton <nickc@redhat.com>
5331 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
5332 (fmssf4): Use fmsf.s on E3V5 architectures.
5333 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5334 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5336 2013-04-03 Jeff Law <law@redhat.com>
5338 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5339 (lra-eliminations.o): Likewise.
5341 2013-04-03 Teresa Johnson <tejohnson@google.com>
5343 * gcov-io.c (compute_working_sets): Moved most of body of old
5344 compute_working_sets here from profile.c.
5345 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
5346 (gcov_working_set_t): Moved typedef here from basic-block.h
5347 (compute_working_set): Declare.
5348 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5349 (get_working_sets): Renamed from compute_working_set,
5350 replace most of body with call to new compute_working_sets.
5351 (get_exec_counts): Replace call to compute_working_sets
5352 to get_working_sets.
5353 * profile.h (get_working_sets): Renamed from compute_working_set.
5354 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
5355 to get_working_sets.
5356 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5357 * gcov-dump.c (dump_working_sets): New function.
5359 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5361 * hwint.c (sext_hwi, zext_hwi): New functions.
5362 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5363 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5364 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5365 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5366 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5367 (sext_hwi, zext_hwi): New functions.
5369 2013-04-03 Jeff Law <law@redhat.com>
5371 PR tree-optimization/56799
5372 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5373 back test for widening conversion erroneously dropped in prior change.
5375 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5378 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5379 instead of next_real_insn.
5381 2013-04-03 Marek Polacek <polacek@redhat.com>
5384 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
5386 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5389 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5391 (thumb1_output_casesi): Likewise.
5392 (thumb2_output_casesi): Likewise.
5394 2013-04-03 Richard Biener <rguenther@suse.de>
5396 PR tree-optimization/56817
5397 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5399 (tree_unroll_loops_completely_1): ... new function to manually
5400 walk the loop tree, properly defering outer loops of unrolled
5401 loops to later iterations.
5403 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5405 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5406 (vectorizable_load): Likewise.
5407 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5408 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5410 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5412 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5415 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5417 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5419 2013-04-03 Bin Cheng <bin.cheng@arm.com>
5421 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5423 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5425 PR tree-optimization/56790
5426 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5429 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5431 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5433 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5434 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5437 2013-04-03 Jakub Jelinek <jakub@redhat.com>
5440 * tree.h (force_folding_builtin_constant_p): New decl.
5441 * builtins.c (force_folding_builtin_constant_p): New variable.
5442 (fold_builtin_constant_p): Fold immediately also if
5443 force_folding_builtin_constant_p.
5445 2013-04-03 Richard Biener <rguenther@suse.de>
5447 PR tree-optimization/56812
5448 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5449 DRs of the same interleaving chain are independent.
5451 2013-04-02 Jason Merrill <jason@redhat.com>
5453 * gdbinit.in (pbb): Use debug fn.
5455 2013-04-02 Lawrence Crowl <crowl@google.com>
5457 * sese.h (struct ivtype_map_elt_s): Remove unused.
5458 (extern debug_ivtype_map): Remove unused.
5459 (extern eq_ivtype_map_elts): Remove unused.
5460 * sese.c (debug_ivtype_map): Removed unused.
5461 (debug_ivtype_map_1): Removed unused.
5462 (debug_ivtype_elt): Remove unused.
5463 (eq_ivtype_map_elts): Remove unused.
5466 2013-04-02 Kai Tietz <ktietz@redhat.com>
5469 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5470 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
5471 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5473 (legitimize_pe_coff_symbol): Likewise.
5474 (is_imported_p): New helper-function.
5475 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5476 for Windows x64 targets.
5477 (ix86_expand_prologue): Optimize for pe-coff targets.
5478 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5479 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5480 medium/large code-model.
5481 (legitimize_pic_address): Likewise.
5482 (legitimize_tls_address): Likewise.
5483 (ix86_expand_call): Likewise.
5484 (x86_output_mi_thunk): Likewise.
5485 (get_dllimport_decl): Add new beimport argument.
5486 (construct_plt_address): Don't assert for x64 pe-coff targets.
5487 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5489 (SYMBOL_FLAG_STUBVAR): New macro.
5490 (SYMBOL_REF_STUBVAR_P): Likewise.
5491 * config/i386/winnt.c (stub_list): New structure.
5492 (stub_head): New local variable.
5493 (i386_pe_record_stub): New function.
5494 (i386_pe_file_end): Emit refptr-stubs.
5496 2013-04-02 Jakub Jelinek <jakub@redhat.com>
5498 PR rtl-optimization/56745
5499 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5500 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5503 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5504 and both of them are MEM_REFs, just compare first argument for
5505 equality and attempt to deal even with differing offsets.
5508 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5509 of gimple_clobber_p to be MEM_REF.
5510 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5511 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5512 after gimplification.
5513 * asan.c (get_mem_ref_of_assignment): Don't instrument
5514 gimple_clobber_p stmts.
5515 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5516 gimple_clobber_p stmt if they have MEM_REF lhs and
5517 are dead because of another gimple_clobber_p stmt.
5518 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5519 gimple_clobber_p stmts like debug stmts.
5520 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5521 that refer to unused VAR_DECLs or uninitialized values.
5522 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5523 gimple_clobber_p stmts if they refer to removed parameters.
5524 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5527 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
5529 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5530 using SWI48 mode attribute.
5532 2013-04-02 Wei Mi <wmi@google.com>
5534 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5535 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5536 *<rotate_insn><mode>3_mask in i386.md.
5538 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5540 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5542 2013-04-02 Richard Biener <rguenther@suse.de>
5544 PR tree-optimization/56778
5545 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5546 Runtime alias tests are not supported for gather loads.
5547 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5548 stmts referenced from SSA operands before updating SSA form.
5550 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5551 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5553 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
5554 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5555 * config/arm/cortex-a53.md: New file.
5556 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5557 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5558 * config/arm/arm.c (arm_issue_rate): Likewise.
5559 * config/arm/arm-tune.md: Regenerate
5560 * config/arm/arm-tables.opt: Regenerate.
5561 * config/arm/arm-cores.def: Add cortex-a53.
5563 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5565 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5568 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5570 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5571 scalar load/store operations using B/H registers.
5572 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5574 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5576 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5578 * config/aarch64/aarch64.c
5579 (aarch64_simd_scalar_immediate_valid_for_move): New.
5580 * config/aarch64/aarch64-protos.h
5581 (aarch64_simd_scalar_immediate_valid_for_move): New.
5582 * config/aarch64/constraints.md (Dh, Dq): New.
5583 * config/aarch64/iterators.md (hq): New.
5585 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5587 * reorg.c (get_branch_condition): Deal with conditional returns.
5588 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5590 2013-04-01 Wei Mi <wmi@google.com>
5592 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5593 Truncate operand 2 using %b asm operand modifier.
5594 (*<shift_insn><mode>3_mask): Ditto.
5595 (*<rotate_insn><mode>3_mask): Ditto.
5597 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5600 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5602 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5604 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5606 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5608 2013-03-30 Lawrence Crowl <crowl@google.com>
5610 * dse.c (clear_alias_sets): Remove never set.
5611 (disqualified_clear_alias_sets): Remove never set.
5612 (clear_alias_mode_pool): Remove never set.
5613 (dse_step0): Remove condition that is never true.
5614 (canon_address): Remove condition that is never true.
5615 (dse_step7): Remove condition that is never true.
5616 (rest_of_handle_dse): Remove condition that is never true.
5617 (rest_of_handle_dse::did_global): Remove never read from above.
5618 (dse_step2_spill): Remove never called from above.
5619 (dse_step5_spill): Remove never called from above.
5621 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5623 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5624 JUMP_TABLE_DATA changes.
5625 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5626 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5627 (Insns) <jump_table_data>: New entry.
5628 * doc/tm.texi: Regenerate.
5630 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5632 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5633 for table jump at the end of a basic block using tablejump_p.
5634 * targhooks.c (default_invalid_within_doloop): Likewise.
5635 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5636 target hook implementation that is identical to the default hook.
5637 (rs6000_invalid_within_doloop): Remove.
5639 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5640 unused variable from tablejump_p call.
5642 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5643 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5644 (INSN_DELETED_P): Likewise.
5645 (emit_jump_table_data): New prototype.
5646 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5647 after 4th as unused.
5648 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5649 * sched-vis.c (print_insn): Likewise.
5650 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5651 insn for compatibility with back ends that use next_active_insn to
5652 identify jump table data.
5653 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5654 (remove_insn): Likewise.
5655 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5657 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5658 (emit_jump_table_data): New function.
5660 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5661 basic block, a JUMP_TABLE_DATA never is.
5662 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5663 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5664 off from code handling real insns.
5665 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5666 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5667 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5668 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5669 is not a NONDEBUG_INSN_P.
5670 * ira-costs.c (scan_one_insn): Likewise.
5671 * jump.c (mark_all_labels): Likewise.
5672 (mark_jump_label_1): Likewise.
5673 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5674 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5676 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5677 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5678 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5679 JUMP_TABLE_DATA_P insns.
5680 (calculate_elim_costs_all_insns): Likewise.
5681 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5682 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5683 (delete_output_reload): Code style fixups.
5684 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5685 insn flags on this non-insn.
5686 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5687 as scheduling barriers, for pre-change compatibility.
5688 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5689 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5691 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5692 redundant JUMP_TABLE_DATA_P test.
5693 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5694 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5695 (frv_for_each_packet): Likewise.
5696 * config/i386/i386.c (min_insn_size): Likewise.
5697 (ix86_avoid_jump_mispredicts): Likewise.
5698 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5699 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5700 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5701 (mips16_insn_length): Robustify.
5702 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5703 (mips16_split_long_branches): Likewise.
5704 * config/pa/pa.c (pa_combine_instructions): Likewise.
5705 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5706 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5707 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5708 as contributing to pool range lengths.
5709 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5710 Remove redundant JUMP_TABLE_DATA_P test.
5711 (sh_loop_align): Likewise.
5712 (split_branches): Likewise.
5713 (sh_insn_length_adjustment): Likewise.
5714 * config/spu/spu.c (get_branch_target): Likewise.
5716 2013-03-29 Jan Hubicka <jh@suse.cz>
5718 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5719 gcov streaming; stream hot bb threshold to ltrans.
5720 * predict.c (get_hot_bb_threshold): Break out from ....
5721 (maybe_hot_count_p): ... here.
5722 (set_hot_bb_threshold): New function.
5723 * lto-section-in.c (lto_section_name): Add profile.
5724 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5725 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5727 (histogram_entry): New structure.
5728 (histogram, histogram_pool): New global vars.
5729 (histogram_hash): New structure.
5730 (histogram_hash::hash): New method.
5731 (histogram_hash::equal): Likewise.
5732 (account_time_size): New function.
5733 (cmp_counts): New function.
5734 (dump_histogram): New function.
5735 (ipa_profile_generate_summary): New function.
5736 (ipa_profile_write_summary): New function.
5737 (ipa_profile_read_summary): New function.
5738 (ipa_profile): Decide on threshold.
5739 (pass_ipa_profile): Add ipa_profile_write_summary and
5740 ipa_profile_read_summary.
5741 * Makefile.in (ipa.o): Update dependencies.
5742 * lto-streamer.h (LTO_section_ipa_profile): New section.
5744 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5746 * tree.h (VAR_P): New.
5748 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5751 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5753 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5755 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5756 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5757 (control_flow_insn_p): Likewise.
5758 * cfgrtl.c (duplicate_insn_chain): Likewise.
5759 * final.c (get_attr_length_1): Likewise.
5760 (shorten_branches): Likewise.
5761 (final_scan_insn): Likewise.
5762 * function.c (instantiate_virtual_regs): Likewise.
5763 * gcse.c (insert_insn_end_basic_block): Likewise.
5764 * ira-costs.c (scan_one_insn): Likewise.
5765 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5766 * lra.c (check_rtl): Likewise.
5767 * reload1.c (elimination_costs_in_insn): Likewise.
5768 * reorg.c (follow_jumps): Likewise.
5770 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5771 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5772 (thumb_far_jump_used_p): Likewise.
5773 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5774 (workaround_speculation): Likewise.
5775 (add_sched_insns_for_speculation): Likewise.
5776 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5777 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5778 (frv_for_each_packet): Likewise.
5779 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5780 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5781 (final_emit_insn_group_barriers): Likewise.
5782 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5783 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5784 (mips16_insn_length): Likewise.
5785 * config/pa/pa.c (pa_reorg): Likewise.
5786 (pa_combine_instructions): Likewise.
5787 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5788 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5789 (sh_reorg): Likewise.
5790 (split_branches): Likewise.
5791 * config/spu/spu.c (get_branch_target): Likewise.
5793 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5796 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5798 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
5799 Fix declaration name.
5801 2013-03-28 Lawrence Crowl <crowl@google.com>
5803 * graphds.h (struct graph.indicies): Remove unused.
5804 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5805 (SCOP_ORIGINAL_PDDRS): Remove unused.
5806 * sese.h (extern insert_loop_close_phis): Removed unused.
5807 (extern insert_guard_phis): Removed unused.
5808 (extern ivtype_map_elt_info): Removed unused.
5809 (new_ivtype_map_elt): Removed unused.
5810 * sese.c (ivtype_map_elt_info): Removed unused.
5812 2013-03-28 Lawrence Crowl <crowl@google.com>
5814 * Makefile.in: Add several missing include dependences.
5816 (test-dump.o): New. This object is not added to any executable,
5817 but is present for ad-hoc testing.
5819 (debug (const bitmap_head_def &)): New.
5820 (debug (const bitmap_head_def *)): New.
5822 (extern debug (const bitmap_head_def &)): New.
5823 (extern debug (const bitmap_head_def *)): New.
5825 (debug (edge_def &)): New.
5826 (debug (edge_def *)): New.
5828 (debug (basic_block_def &)): New.
5829 (debug (basic_block_def *)): New.
5831 (dump_node (const_tree, int, FILE *)): Correct source file.
5833 (debug (die_struct &)): New.
5834 (debug (die_struct *)): New.
5836 (extern debug (die_struct &)): New.
5837 (extern debug (die_struct *)): New.
5838 * gimple-pretty-print.c
5839 (debug (gimple_statement_d &)): New.
5840 (debug (gimple_statement_d *)): New.
5841 * gimple-pretty-print.h
5842 (extern debug (gimple_statement_d &)): New.
5843 (extern debug (gimple_statement_d *)): New.
5845 (debug (ira_allocno_copy &)): New.
5846 (debug (ira_allocno_copy *)): New.
5847 (debug (ira_allocno &)): New.
5848 (debug (ira_allocno *)): New.
5850 (extern debug (ira_allocno_copy &)): New.
5851 (extern debug (ira_allocno_copy *)): New.
5852 (extern debug (ira_allocno &)): New.
5853 (extern debug (ira_allocno *)): New.
5855 (debug (live_range &)): New.
5856 (debug (live_range *)): New.
5858 (debug (lra_live_range &)): New.
5859 (debug (lra_live_range *)): New.
5861 (debug (lra_live_range &)): New.
5862 (debug (lra_live_range *)): New.
5864 (debug (omega_pb_d &)): New.
5865 (debug (omega_pb_d *)): New.
5867 (extern debug (omega_pb_d &)): New.
5868 (extern debug (omega_pb_d *)): New.
5870 (debug (const rtx_def &)): New.
5871 (debug (const rtx_def *)): New.
5873 (debug_tree (tree): Move within file.
5874 (debug_raw (const tree_node &)): New.
5875 (debug_raw (const tree_node *)): New.
5876 (dump_tree_via_hooks (const tree_node *, int)): New.
5877 (debug (const tree_node &)): New.
5878 (debug (const tree_node *)): New.
5879 (debug_verbose (const tree_node &)): New.
5880 (debug_verbose (const tree_node *)): New.
5881 (debug_head (const tree_node &)): New.
5882 (debug_head (const tree_node *)): New.
5883 (debug_body (const tree_node &)): New.
5884 (debug_body (const tree_node *)): New.
5885 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5886 (debug (vec<tree, va_gc> &)): New.
5887 (debug (vec<tree, va_gc> *)): New.
5889 (extern debug (const rtx_def &)): New.
5890 (extern debug (const rtx_def *)): New.
5892 (debug_raw (simple_bitmap_def &)): New.
5893 (debug_raw (simple_bitmap_def *)): New.
5894 (debug (simple_bitmap_def &)): New.
5895 (debug (simple_bitmap_def *)): New.
5897 (extern debug (simple_bitmap_def &)): New.
5898 (extern debug (simple_bitmap_def *)): New.
5899 (extern debug_raw (simple_bitmap_def &)): New.
5900 (extern debug_raw (simple_bitmap_def *)): New.
5902 (debug (vinsn_def &)): New.
5903 (debug (vinsn_def *)): New.
5904 (debug_verbose (vinsn_def &)): New.
5905 (debug_verbose (vinsn_def *)): New.
5906 (debug (expr_def &)): New.
5907 (debug (expr_def *)): New.
5908 (debug_verbose (expr_def &)): New.
5909 (debug_verbose (expr_def *)): New.
5910 (debug (vec<rtx> &)): New.
5911 (debug (vec<rtx> *)): New.
5913 (extern debug (vinsn_def &)): New.
5914 (extern debug (vinsn_def *)): New.
5915 (extern debug_verbose (vinsn_def &)): New.
5916 (extern debug_verbose (vinsn_def *)): New.
5917 (extern debug (expr_def &)): New.
5918 (extern debug (expr_def *)): New.
5919 (extern debug_verbose (expr_def &)): New.
5920 (extern debug_verbose (expr_def *)): New.
5921 (extern debug (vec<rtx> &)): New.
5922 (extern debug (vec<rtx> *)): New.
5924 (_list_iter_cond_expr): Make inline instead of static.
5926 (debug (sreal &)): New.
5927 (debug (sreal *)): New.
5929 (extern debug (sreal &)): New.
5930 (extern debug (sreal *)): New.
5932 (extern debug_raw (const tree_node &)): New.
5933 (extern debug_raw (const tree_node *)): New.
5934 (extern debug (const tree_node &)): New.
5935 (extern debug (const tree_node *)): New.
5936 (extern debug_verbose (const tree_node &)): New.
5937 (extern debug_verbose (const tree_node *)): New.
5938 (extern debug_head (const tree_node &)): New.
5939 (extern debug_head (const tree_node *)): New.
5940 (extern debug_body (const tree_node &)): New.
5941 (extern debug_body (const tree_node *)): New.
5942 (extern debug (vec<tree, va_gc> &)): New.
5943 (extern debug (vec<tree, va_gc> *)): New.
5945 (debug (struct loop &)): New.
5946 (debug (struct loop *)): New.
5947 (debug_verbose (struct loop &)): New.
5948 (debug_verbose (struct loop *)): New.
5949 * tree-dump.c: Add header dependence.
5951 (extern debug (struct loop &)): New.
5952 (extern debug (struct loop *)): New.
5953 (extern debug_verbose (struct loop &)): New.
5954 (extern debug_verbose (struct loop *)): New.
5956 (debug (data_reference &)): New.
5957 (debug (data_reference *)): New.
5958 (debug (vec<data_reference_p> &)): New.
5959 (debug (vec<data_reference_p> *)): New.
5960 (debug (vec<ddr_p> &)): New.
5961 (debug (vec<ddr_p> *)): New.
5963 (extern debug (data_reference &)): New.
5964 (extern debug (data_reference *)): New.
5965 (extern debug (vec<data_reference_p> &)): New.
5966 (extern debug (vec<data_reference_p> *)): New.
5967 (extern debug (vec<ddr_p> &)): New.
5968 (extern debug (vec<ddr_p> *)): New.
5970 (debug (pt_solution &)): New.
5971 (debug (pt_solution *)): New.
5973 (extern debug (pt_solution &)): New.
5974 (extern debug (pt_solution *)): New.
5976 (debug (_var_map &)): New.
5977 (debug (_var_map *)): New.
5978 (debug (tree_live_info_d &)): New.
5979 (debug (tree_live_info_d *)): New.
5981 (extern debug (_var_map &)): New.
5982 (extern debug (_var_map *)): New.
5983 (extern debug (tree_live_info_d &)): New.
5984 (extern debug (tree_live_info_d *)): New.
5986 2013-03-28 Jan Hubicka <jh@suse.cz>
5988 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5990 2013-03-28 Ian Bolton <ian.bolton@arm.com>
5992 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5993 record only when desired or required.
5995 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
5997 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5998 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6000 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6002 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6003 (*andsi3_compare0_uxtw): New pattern.
6004 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6005 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6007 2013-03-28 Jan Hubicka <jh@suse.cz>
6009 * data-streamer-in.c (streamer_read_gcov_count): New function.
6010 * gimple-streamer-out.c: Include value-prof.h.
6011 (output_gimple_stmt): Output histogram.
6012 (output_bb): Use streamer_write_gcov_count.
6013 * value-prof.c: Include data-streamer.h
6014 (dump_histogram_value): Add HIST_TYPE_MAX.
6015 (stream_out_histogram_value): New function.
6016 (stream_in_histogram_value): New function.
6017 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6018 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6019 * data-streamer-out.c (streamer_write_gcov_count): New function.
6020 (streamer_write_gcov_count_stream): New function.
6021 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6022 (lto_output_node): Likewise.
6023 (input_node, input_edge): Likewise.
6024 * lto-streamer-out.c (output_cfg): Update streaming.
6025 * lto-streamer-in.c (input_cfg): Likewise.
6026 * data-streamer.h (streamer_write_gcov_count,
6027 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6028 * gimple-streamer-in.c: Include value-prof.h
6029 (input_gimple_stmt): Input histograms.
6030 (input_bb): Update profile streaming.
6032 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6034 * genmodes.c (emit_max_int): New function.
6035 (emit_insn_modes_h): Added call to emit_max_function.
6036 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6038 * machmode.def: Fixed comment.
6040 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6042 * combine.c (try_combine): Removed useless assert.
6043 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6045 2013-03-28 Marek Polacek <polacek@redhat.com>
6046 Richard Biener <rguenther@suse.de>
6048 PR tree-optimization/56695
6049 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6050 build signed result of a vector comparison.
6051 * tree-cfg.c (verify_gimple_comparison): Check that a result
6052 of a vector comparison has signed type.
6054 2013-03-28 Richard Biener <rguenther@suse.de>
6056 PR tree-optimization/37021
6057 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6058 do not restrict gaps between groups.
6059 * tree-vect-stmts.c (vectorizable_load): Properly account for
6060 a gap between groups.
6062 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6064 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6065 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6068 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6070 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6071 * doc/extend.texi (Named Address Spaces): Ditto.
6072 (Variable Attributes): Ditto.
6074 2013-03-27 Kai Tietz <ktietz@redhat.com>
6076 * config.build: Add support for cygwin x64 target.
6077 * config.gcc: Likewise.
6078 * config.host: Likewise.
6079 * configure.ac: Likewise
6080 * configure: Regenerated.
6082 2013-03-27 Kai Tietz <ktietz@redhat.com>
6084 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6085 * config/i386/t-cygwin-w64: New file.
6086 * config/i386/cygwin-w64.h: New file.
6087 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6088 and add support for x64-cygwin target.
6089 (CPP_SPEC): Likewise.
6090 (CXX_WRAP_SPEC_LIST): Undefine before define.
6091 (LIBGCJ_SONAME): Use 15 as version.
6093 2013-03-27 Richard Biener <rguenther@suse.de>
6095 PR tree-optimization/56716
6096 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6097 dumping for ref nodes.
6099 2013-03-27 Martin Jambor <mjambor@suse.cz>
6101 PR tree-optimization/55334
6102 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6103 restricted pointers to arrays.
6105 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6107 * Makefile.in (.SUFFIXES): Add .cc.
6108 (.c.o): Apply same recipe for implicit rule .cc.o.
6110 2013-03-27 Richard Biener <rguenther@suse.de>
6112 PR tree-optimization/37021
6113 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6114 REALPART/IMAGPART_EXPRs around the supported refs.
6115 * tree-ssa-structalias.c (find_func_aliases): Assume that
6116 floating-point values are not used to transfer pointers.
6118 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6120 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6121 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6122 * doc/tm.texi: Regenerate.
6123 * targhooks.h (default_has_ifunc_p): New.
6124 * targhooks.c (default_has_ifunc_p): Ditto.
6125 * config/linux-protos.h: New file.
6126 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
6127 this hook for linux which disables support of indirect functions in
6129 * config/linux-android.c: New file.
6130 * config/t-linux-android.c: Ditto.
6131 * config.gcc: Added new object file linux-android.o.
6132 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
6133 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
6134 * varasm.c (do_assemble_alias): Likewise.
6135 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6136 doesn't support indirect functions.
6137 * configure: Regenerate.
6139 2013-03-27 Bin Cheng <bin.cheng@arm.com>
6142 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6143 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6146 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6148 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6150 2013-03-27 Terry Guo <terry.guo@arm.com>
6152 * config/arm/arm-cores.def: Added core cortex-r7.
6153 * config/arm/arm-tune.md: Regenerated.
6154 * config/arm/arm-tables.opt: Regenerated.
6155 * doc/invoke.texi: Added entry for core cortex-r7.
6157 2013-03-27 Walter Lee <walt@tilera.com>
6159 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6160 double-decrement of next_scratch_regno.
6162 2013-03-27 Walter Lee <walt@tilera.com>
6164 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
6166 (insn_v1mulus): Ditto.
6167 (insn_v2muls): Ditto.
6169 2013-03-27 Walter Lee <walt@tilera.com>
6171 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
6172 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6174 2013-03-27 Walter Lee <walt@tilera.com>
6176 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
6177 (*sibcall_value): Ditto.
6179 2013-03-27 Walter Lee <walt@tilera.com>
6181 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6182 (insn_mnz_v8qi): ... this ...
6183 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6185 (insn_v<n>mnz): Replaced by ...
6186 (insn_v1mnz): ... this ...
6187 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6189 (insn_mz_<mode>): Replaced by ...
6190 (insn_mz_v8qi): ... this ...
6191 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6193 (insn_v<n>mz): Replaced by ...
6194 (insn_v1mz): ... this ...
6195 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6198 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6200 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6202 2013-03-26 Roland McGrath <mcgrathr@google.com>
6204 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6205 than fprintf with a non-constant, non-format string.
6207 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6209 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6210 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6211 operand 0 predicate.
6212 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6213 attribute. Use general_x64nomem_operand as operand 1 predicate.
6214 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6215 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6216 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6217 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6218 (mov<mode>_insv_1): Remove expander. Merge insn with
6219 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6220 Use general_x64nomem_operand as operand 1 predicate.
6221 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6222 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6223 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6224 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6225 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6226 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6227 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6228 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6229 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6230 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6231 (general_x64nomem_operand): Ditto.
6233 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6235 * config/rtems.opt: Add -pthread option.
6237 2013-03-26 Richard Biener <rguenther@suse.de>
6239 * alias.c (find_base_term): Avoid redundant and not used recursion.
6240 (base_alias_check): Get the initial base term from the caller.
6241 (true_dependence_1): Compute and pass base terms to base_alias_check.
6242 (write_dependence_p): Likewise.
6243 (may_alias_p): Likewise.
6245 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6247 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6248 PC-relative load in SI modes and above only.
6250 2013-03-26 Xinyu Qi <xyqi@marvell.com>
6252 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
6253 * config/arm/iwmmxt.md (WCGR0): Update.
6254 (WCGR1, WCGR2, WCGR3): Likewise.
6256 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6258 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6259 Use x64 and nox64 isa attributes.
6261 2013-03-26 Richard Biener <rguenther@suse.de>
6263 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6264 alignment computations and rely on get_object_alignment_1
6265 for the !TYPE_P case.
6266 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6268 2013-03-26 Walter Lee <walt@tilera.com>
6270 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6271 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6273 2013-03-25 Jeff Law <law@redhat.com>
6275 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6276 check for INTEGRAL_TYPE_P that was missing due to checking in
6277 wrong version of prior patch.
6279 2013-03-25 Walter Lee <walt@tilera.com>
6281 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6282 TILEGX_INSN_SHUFFLEBYTES1.
6283 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6285 (tilegx_builtins): Ditto.
6286 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6288 2013-03-25 Walter Lee <walt@tilera.com>
6290 * config/tilegx/tilegx.md (floatsisf2): New pattern.
6291 (floatunssisf2): New pattern.
6292 (floatsidf2): New pattern.
6293 (floatunssidf2): New pattern.
6295 2013-03-25 Walter Lee <walt@tilera.com>
6297 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6298 tests for constraint J, K, N, P.
6300 2013-03-25 Walter Lee <walt@tilera.com>
6302 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6303 Use indirect/pcrel encoding.
6304 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6307 2013-03-25 Steve Ellcey <sellcey@mips.com>
6309 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6310 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6311 * config/mips/mips.c (mips_option_override): Set IMADD default.
6312 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6313 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6314 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6315 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6316 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6318 2013-03-25 Jeff Law <law@redhat.com>
6320 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6321 slightly to avoid creating and folding useless trees. Simplify
6322 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6324 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
6326 * config/i386/i386.md (*zero_extendsidi2): Merge with
6327 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6328 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6329 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6330 targets. Clarify comment.
6332 2013-03-25 Martin Jambor <mjambor@suse.cz>
6334 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6335 pass-through jump functions differently.
6336 (ipa_read_jump_function): Likewise. Also use setter functions to set
6339 2013-03-25 Martin Jambor <mjambor@suse.cz>
6341 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6342 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6344 (ipa_get_indirect_edge_target): New function.
6345 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6346 ipa_get_indirect_edge_target. Update all callers.
6347 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6348 ipa_get_indirect_edge_target_1 instead of calling
6349 ipa_get_indirect_edge_target.
6350 (create_specialized_node): Pass aggvlas to
6351 ipcp_discover_new_direct_edges.
6353 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6355 * config/arm/arm.md (f_sels, f_seld): New types.
6356 (*cmov<mode>): New pattern.
6357 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6360 2013-03-25 Kai Tietz <ktietz@redhat.com>
6362 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6363 POSIX-printf for mingw-hosted builds.
6365 2013-03-25 Richard Biener <rguenther@suse.de>
6368 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6369 must-not-throw stmt location.
6371 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6373 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6374 Emit load-acquire versions when acq is true.
6375 (arm_emit_store_exclusive): Add rel parameter.
6376 Emit store-release versions when rel is true.
6377 (arm_split_compare_and_swap): Use acquire-release instructions
6379 of barriers when appropriate.
6380 (arm_split_atomic_op): Likewise.
6381 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6382 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6383 (VUNSPEC_SLX): Likewise.
6384 (VUNSPEC_LDA): Likewise.
6385 (VUNSPEC_STL): Likewise.
6386 * config/arm/sync.md (atomic_load<mode>): New pattern.
6387 (atomic_store<mode>): Likewise.
6388 (arm_load_acquire_exclusive<mode>): Likewise.
6389 (arm_load_acquire_exclusivesi): Likewise.
6390 (arm_load_acquire_exclusivedi): Likewise.
6391 (arm_store_release_exclusive<mode>): Likewise.
6393 2013-03-25 Catherine Moore <clm@codesourcery.com>
6395 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6396 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6397 * config/mip/predicates.md (lwsp_swsp_operand,
6398 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6399 sb16_operand, db4_operand, db7_operand, ib3_operand,
6400 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6401 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6402 andi16_operand): New predicates.
6403 * config/mips/mips.md (compression): New attribute.
6404 (enabled): New attribute.
6405 (length): Consider compression in computing length.
6406 (shift_compression): New code attribute.
6407 (*add<mode>3): New operands. Record compression.
6408 (sub<mode>3): Likewise.
6409 (one_cmpl<mode>2): Likewise.
6410 (*and<mode>3): Likewise.
6411 (*ior<mode>3): Likewise.
6412 (unnamed pattern for xor): Likewise.
6413 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6414 (*<optab><mode>3): Likewise.
6415 (*mov<mode>_internal: Likewise.
6416 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6417 (mips_unsigned_immediate_p): New.
6418 (umips_lwsp_swsp_address_p): New.
6419 (m16_based_address_p): New.
6420 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6421 (mips_unsigned_immediate_p): New prototype.
6422 (lwsp_swsp_address_p): New prototype.
6423 (m16_based_address_p): New prototype.
6424 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6425 (mips_signed_immediate_p): New function.
6426 (m16_based_address_p): New function.
6427 (lwsp_swsp_address_p): New function.
6428 (mips_print_operand_punctuation): Recognize short delay slot insns
6429 for microMIPS.add<mode>3"
6431 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6434 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6435 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6437 2013-03-25 Richard Biener <rguenther@suse.de>
6439 PR tree-optimization/56689
6440 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6443 2013-03-25 Richard Biener <rguenther@suse.de>
6445 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6447 (memory_references): Likewise.
6448 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6449 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6450 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6451 (gather_mem_refs_in_loops): Fold into ...
6452 (analyze_memory_references): ... this. Move initialization
6453 to tree_ssa_lim_initialize.
6454 (fill_always_executed_in): Rename to ...
6455 (fill_always_executed_in_1): ... this.
6456 (fill_always_executed_in): Move contains_call computation to
6457 this new function from ...
6458 (tree_ssa_lim_initialize): ... here.
6459 (tree_ssa_lim): Call fill_always_executed_in.
6461 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6463 * postreload.c (reload_combine): Fix code detecting returns.
6465 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6467 * function.c (emit_use_return_register_into_block): On cc0 targets,
6468 do not emit the sequence between cc0 setter and user.
6470 2013-03-25 Kai Tietz <ktietz@redhat.com>
6472 * config/i386/predicates.md (local_symbolic_operand): Interpret
6473 dll-imported symbols as none-local.
6475 2013-03-25 Richard Biener <rguenther@suse.de>
6477 * tree-ssa-loop-im.c (struct depend): Remove.
6478 (struct lim_aux_data): Make depends a vec of gimples.
6479 (free_lim_aux_data): Adjust.
6480 (add_dependency): Likewise.
6481 (set_level): Likewise.
6483 2013-03-25 Richard Biener <rguenther@suse.de>
6486 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6487 the pointer returned by calls with ECF_MALLOC set.
6489 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6491 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6493 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6495 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
6496 using MMXMODE mode iterator.
6497 (*move<mode>_internal): Merge with *movv2sf_internal and
6498 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6500 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6502 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6503 (record_last_mem_set_info): Likewise.
6505 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6506 of XNEWVEC followed by memset.
6507 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6509 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6511 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6512 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6513 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6514 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6515 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6516 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6517 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6518 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6519 BARRIER_P instead of GET_CODE.
6521 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6523 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6524 inaccuracy in the probing code.
6526 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6527 (ctrapdi4): Likewise.
6529 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6531 * calls.c (expand_call): Add missing guard to code handling return
6532 of non-BLKmode structures in MSB.
6533 * function.c (expand_function_end): Likewise.
6535 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6537 * combine.c (try_combine): Adjust comment. Do not add the set of
6538 insn #0 if the destination indirectly is set or dies in insn #2.
6539 Tidy up code to distribute a new note.
6541 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6543 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6544 also for alternatives 16 and 17.
6546 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6548 * config/i386/sse.md (*mov<mode>_internal): Merge with
6549 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6550 Emit insn template depending on type attribute. Use
6551 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6552 movd instead of movq mnemonic for interunit moves. Rewrite mode
6553 attribute calculation. Remove unit attribute calculation.
6554 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6555 Set prefix_data16 attribute for DImode ssemov types.
6556 Use Ym instead of y for SSE-MMX conversion alternatives.
6557 Reorder operand constraints.
6559 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6561 * df.h (df_insn_delete): Adjust prototype.
6562 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6563 and let it decide whether mark the basic block dirty.
6564 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6565 * df-scan.c (df_insn_info_delete): New helper function, split
6566 off from df_insn_delete.
6567 (df_scan_free_bb_info): Use it.
6568 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6570 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6571 that the insn is actually an insn and it has a non-NULL basic block.
6572 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6574 2013-03-22 Richard Biener <rguenther@suse.de>
6576 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6578 (mem_ref_alloc): Do not allocate them.
6579 (refs_independent_p): Do not query or maintain a cache.
6581 2013-03-22 Richard Biener <rguenther@suse.de>
6583 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6584 (gather_mem_refs_in_loops): Do not compute it.
6585 (analyze_memory_references): Do not allocate it.
6586 (tree_ssa_lim_finalize): Do not free it.
6587 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6589 2013-03-22 Richard Biener <rguenther@suse.de>
6591 * is-a.h (as_a): Use gcc_checking_assert.
6593 2013-03-22 Ian Bolton <ian.bolton@arm.com>
6595 * config/aarch64/aarch64.c (aarch64_print_operand): New
6596 format specifier for printing a constant in hex.
6597 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6598 format specifier for printing second operand.
6600 2013-03-22 Richard Biener <rguenther@suse.de>
6602 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6604 (gather_mem_refs_in_loops): Perform store accumulation here.
6605 (create_vop_ref_mapping_loop): Remove.
6606 (create_vop_ref_mapping): Likewise.
6607 (analyze_memory_references): Initialize refs_stored_in_loop.
6608 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
6609 (record_indep_loop): Remove.
6610 (record_dep_loop): New function.
6611 (ref_indep_loop_p_1): Adjust to only walk over references
6612 in the loop, not its subloops.
6613 (ref_indep_loop_p): Rename to ...
6614 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6615 maintaining a more fine-grained cache.
6616 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6617 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6619 2013-03-22 Richard Biener <rguenther@suse.de>
6621 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6622 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6623 aggregate mem_ref_loc.
6624 (free_mem_ref_locs): Inline into ...
6625 (memref_free): ... this and adjust.
6626 (mem_ref_alloc): Adjust.
6627 (mem_ref_locs_alloc): Remove.
6628 (record_mem_ref_loc): Adjust.
6629 (get_all_locs_in_loop): Rewrite into ...
6630 (for_all_locs_in_loop): ... this iterator.
6631 (rewrite_mem_ref_loc): New functor.
6632 (rewrite_mem_refs): Use for_all_locs_in_loop.
6633 (sm_set_flag_if_changed): New functor.
6634 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6635 (ref_always_accessed): New functor.
6636 (ref_always_accessed_p): Use for_all_locs_in_loop.
6638 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6640 * tree-pass.h (PROP_gimple_lvec): New.
6641 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6642 (init_optimization_passes): Move pass_lower_vector.
6643 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6645 (pass_lower_vector): Provide PROP_gimple_lvec.
6646 (pass_lower_vector_ssa): Likewise.
6647 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6649 2013-03-21 Mark Wielaard <mjw@redhat.com>
6651 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6653 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6655 * config/i386/i386.md (*movdi_internal): Disparage slightly
6656 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6657 conversion alternatives.
6659 2013-03-21 Jakub Jelinek <jakub@redhat.com>
6662 * diagnostic.def (DK_WERROR): New kind.
6663 * diagnostic.h (werrorcount): Define.
6664 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6665 promoted to DK_ERROR, increment DK_WERROR counter instead of
6667 * toplev.c (toplev_main): Call print_ignored_options even if
6668 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6669 even if just werrorcount is non-zero.
6672 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6674 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6675 (string_cst_pool_decl): New function.
6676 (optimize_one_addr_into_implicit_ptr): New function.
6677 (resolve_addr_in_expr): Optimize DWARF location expression
6678 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6679 which doesn't live in memory, but has DW_AT_location or
6680 DW_AT_const_value, or refers to a string literal, into
6681 DW_OP_GNU_implicit_pointer.
6682 (optimize_location_into_implicit_ptr): New function.
6683 (resolve_addr): If removing DW_AT_location of a variable because
6684 it was DW_OP_addr of address of the variable, but the variable doesn't
6685 live in memory, try to emit const value attribute for the initializer.
6687 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6689 * tree.h (VECTOR_TYPE_P): New macro.
6690 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6692 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6693 VEC_COND_EXPR cannot be lvalues.
6694 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6696 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6698 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6699 Restrict the transformation to equal modes.
6701 2013-03-21 Richard Biener <rguenther@suse.de>
6703 PR tree-optimization/39326
6704 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6705 (MEM_ANALYZABLE): Adjust.
6706 (record_mem_ref_loc): Move bitmap ops ...
6707 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6708 unanalyzable refs, do not record locations for it.
6709 (analyze_memory_references): Allocate ref zero as shared
6711 (refs_independent_p): Do not test for unanalyzed mems here.
6712 (ref_indep_loop_p_1): Special-case disambiguation against
6714 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
6716 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6718 * config/arm/arm-protos.h (tune_params): Add
6719 prefer_neon_for_64bits field.
6720 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6721 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6722 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6723 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6724 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6725 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6726 (arm_option_override): Handle -mneon-for-64bits new option.
6727 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6728 (prefer_neon_for_64bits): Declare new variable.
6729 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
6730 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
6731 (arch_enabled): Handle new arch types. Remove support for onlya8
6733 (one_cmpldi2): Use new arch names.
6734 (zero_extend<mode>di2, extend<mode>di2): Ditto.
6735 * config/arm/arm.opt (mneon-for-64bits): Add option.
6736 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6737 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6738 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6740 * doc/invoke.texi (-mneon-for-64bits): Document.
6742 2013-03-21 Richard Biener <rguenther@suse.de>
6744 PR tree-optimization/39326
6745 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6746 (sort_bbs_in_loop_postorder_cmp): New function.
6747 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
6749 2013-03-21 Richard Biener <rguenther@suse.de>
6751 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6752 (vect_insert_into_interleaving_chain): Likewise.
6753 (vect_drs_dependent_in_basic_block): Inline ...
6754 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6756 (vect_analyze_data_ref_dependence): ... here. Simplify.
6757 (vect_check_interleaving): Simplify.
6758 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6759 (vect_slp_analyze_data_ref_dependences): ... this new function.
6760 (dr_group_sort_cmp): New function.
6761 (vect_analyze_data_ref_accesses): Compute data-reference groups
6762 here instead of in vect_analyze_data_ref_dependence. Use
6763 a more efficient algorithm.
6764 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6765 vect_slp_analyze_data_ref_dependences. Call
6766 vect_analyze_data_ref_accesses earlier.
6767 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6768 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6769 (vect_slp_analyze_data_ref_dependences): New prototype.
6771 2013-03-21 Richard Biener <rguenther@suse.de>
6773 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6774 ref is stored in the loop.
6775 (find_refs_for_sm): Walk only over all stores.
6776 (store_motion_loop): Allocate from lim_bitmap_obstack.
6777 (store_motion): Likewise.
6779 2013-03-21 Richard Biener <rguenther@suse.de>
6781 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6782 Update virtual SSA form.
6784 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6786 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6787 * configure: Regenerate.
6788 * config.in: Regenerate.
6789 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6790 if !HAVE_LD_EH_FRAME_CIEV3.
6792 2013-03-21 Richard Biener <rguenther@suse.de>
6794 * tree-cfg.c (verify_expr_no_block): New function.
6795 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6796 nor DECL_VALUE_EXPR have locations with associated blocks.
6797 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6798 (clear_unused_block_pointer): Remove code dealing with
6799 blocks in DECL_DEBUG_EXPR locations.
6801 2013-03-21 Richard Biener <rguenther@suse.de>
6803 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6804 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6805 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6806 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6807 instead of DECL_DEBUG_EXPR_IS_FROM.
6808 * gimplify.c (gimplify_modify_expr): Likewise.
6809 * tree-cfg.c (verify_expr_location_1): Likewise.
6810 * tree-complex.c (create_one_component_var): Likewise.
6811 * tree-sra.c (create_access_replacement): Likewise.
6812 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6813 (clear_unused_block_pointer): Likewise.
6814 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6815 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6816 * var-tracking.c (var_debug_decl): Likewise.
6817 (track_expr_p): Likewise.
6818 * tree-inline.c (add_local_variables): Likewise. Set
6819 DECL_HAS_DEBUG_EXPR_P after copying it.
6820 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6821 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6823 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6826 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6827 * configure: Regenerate.
6828 * config.in: Regenerate.
6829 * config/i386/i386.md (*movdf_internal): Use
6830 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6831 movd instead of movq mnemonic for interunit moves.
6832 (*movdi_internal): Ditto.
6834 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6836 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6837 (abd<mode>_3): New pattern.
6838 (aba<mode>_3): New pattern.
6839 (fabd<mode>_3): New pattern.
6841 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6843 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6844 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6845 occurrence of REGISTER_PREFIX as its empty string.
6847 2013-03-20 Jeff Law <law@redhat.com>
6849 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6850 addititional equivalences for equality comparisons between an SSA_NAME
6851 and a constant where the SSA_NAME was set from a widening conversion.
6853 2013-03-20 Walter Lee <walt@tilera.com>
6855 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6857 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6859 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6860 depending on type attribute.
6861 (*movti_internal): Ditto.
6862 (*movtf_internal): Ditto.
6863 (*movxf_internal): Ditto.
6864 (*movdf_internal): Ditto.
6865 (*movsf_internal): Ditto.
6867 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6869 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6870 maybe_vex for sselog1 and ssemov types.
6871 (*movdi_internal): Reorder operand constraints.
6872 (*movsi_internal): Ditto. Set prefix attribute to
6873 maybe_vex for sselog1 and ssemov types.
6874 (*movtf_internal): Set prefix attribute to maybe_vex
6875 for sselog1 and ssemov types.
6876 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6877 DImode ssemov types. Reorder operand constraints.
6878 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6879 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6880 attribute for SImode ssemov types. Reorder operand constraints.
6882 2013-03-20 Martin Jambor <mjambor@suse.cz>
6884 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6885 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6887 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6889 * config/rs6000/predicates.md (indexed_address, update_address_mem
6890 update_indexed_address_mem): New predicates.
6891 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6892 attribute for load/store instructions.
6893 * config/rs6000/dfp.md (movsd_store): Likewise.
6894 (movsd_load): Likewise.
6895 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6896 (unnamed HI->DI extend define_insn): Likewise.
6897 (unnamed SI->DI extend define_insn): Likewise.
6898 (unnamed QI->SI extend define_insn): Likewise.
6899 (unnamed QI->HI extend define_insn): Likewise.
6900 (unnamed HI->SI extend define_insn): Likewise.
6901 (unnamed HI->SI extend define_insn): Likewise.
6902 (extendsfdf2_fpr): Likewise.
6903 (movsi_internal1): Likewise.
6904 (movsi_internal1_single): Likewise.
6905 (movhi_internal): Likewise.
6906 (movqi_internal): Likewise.
6907 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6908 attribute for load/store instructions.
6909 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6911 (mov<mode>_softfloat): Likewise.
6912 (mov<mode>_hardfloat32): Likewise.
6913 (mov<mode>_hardfloat64): Likewise.
6914 (mov<mode>_softfloat64): Likewise.
6915 (movdi_internal32): Likewise.
6916 (movdi_internal64): Likewise.
6917 (probe_stack_<mode>): Likewise.
6919 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6921 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6922 floating point, and decimal floating point to reload iterator.
6924 * config/rs6000/constraints.md (wl constraint): New constraints to
6925 return FLOAT_REGS if certain options are used to reduce the number
6926 of separate patterns that exist in the file.
6927 (wx constraint): Likewise.
6928 (wz constraint): Likewise.
6930 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6931 -mdebug=reg, print wg, wl, wx, and wz constraints.
6932 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6933 Initialize the reload functions for 64-bit binary/decimal floating
6935 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6936 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6937 create the buffer on the stack to overcome not having a 32-bit
6939 (rs6000_emit_move): Likewise.
6940 (rs6000_secondary_memory_needed_rtx): Likewise.
6941 (rs6000_alloc_sdmode_stack_slot): Likewise.
6942 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6943 via xxlxor, just like DFmode 0.0.
6945 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6946 define as 1 if we are running on a power7 or newer.
6947 (enum r6000_reg_class_enum): Add new constraints.
6949 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6950 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6951 with other moves by using conditional constraits (wg). Use LFIWZX
6952 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
6953 (movsd splitter): Likewise.
6954 (movsd_hardfloat): Likewise.
6955 (movsd_softfloat): Likewise.
6957 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6958 binary and decimal floating point moves.
6959 (fmove_ok): New attributes to combine binary and decimal floating
6960 point moves, and to combine power6x (mfpgpr) moves along normal
6962 (real_value_to_target): Likewise.
6969 (movsf): Combine binary and decimal floating point moves. Combine
6970 power6x (mfpgpr) moves with other moves by using conditional
6971 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
6972 (mov<mode> for SFmode/SDmode); Likewise.
6973 (SFmode/SDmode splitters): Likewise.
6974 (movsf_hardfloat): Likewise.
6975 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6976 (movsf_softfloat): Likewise.
6977 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6979 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6980 wx and wz constraints.
6982 * config/rs6000/constraints.md (wg constraint): New constraint to
6983 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6985 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6988 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6989 -mdebug=reg, print wg, wl, wx, and wz constraints.
6990 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6991 Initialize the reload functions for 64-bit binary/decimal floating
6993 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6994 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6995 create the buffer on the stack to overcome not having a 32-bit
6997 (rs6000_emit_move): Likewise.
6998 (rs6000_secondary_memory_needed_rtx): Likewise.
6999 (rs6000_alloc_sdmode_stack_slot): Likewise.
7000 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7001 via xxlxor, just like DFmode 0.0.
7003 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7004 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7005 with other moves by using conditional constraits (wg). Use LFIWZX
7006 and STFIWX for loading SDmode on power7.
7007 (movdd splitters): Likewise.
7008 (movdd_hardfloat32): Likewise.
7009 (movdd_softfloat32): Likewise.
7010 (movdd_hardfloat64_mfpgpr): Likewise.
7011 (movdd_hardfloat64): Likewise.
7012 (movdd_softfloat64): Likewise.
7014 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7015 64-bit binary and decimal floating point moves.
7016 (FMOVE64X): Likewise.
7017 (movdf): Combine 64-bit binary and decimal floating point moves.
7018 Combine power6x (mfpgpr) moves with other moves by using
7019 conditional constraits (wg).
7020 (mov<mode> for DFmode/DDmode): Likewise.
7021 (DFmode/DDmode splitters): Likewise.
7022 (movdf_hardfloat32): Likewise.
7023 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7024 (movdf_softfloat32): Likewise.
7025 (movdf_hardfloat64_mfpgpr): Likewise.
7026 (movdf_hardfloat64): Likewise.
7027 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7028 (movdf_softfloat64): Likewise.
7029 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7030 (reload_<mode>_load): Move to later in the file so they aren't in
7031 the middle of the floating point move insns.
7032 (reload_<mode>_store): Likewise.
7034 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7037 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7038 constraint if -mdebug=reg.
7039 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7040 Enable using dd reload support if needed.
7042 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7043 binary and decimal floating point moves in rs6000.md.
7044 (movtd_internal): Likewise.
7046 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7047 decimal floating point moves.
7049 (movtf_internal): Likewise.
7050 (mov<mode>_internal, TDmode/TFmode): Likewise.
7051 (movtf_softfloat): Likewise.
7052 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7054 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7055 movdi_internal64, using wg constraint for move direct operations.
7056 (movdi_internal64): Likewise.
7058 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7059 MODES_TIEABLE_P for selected modes. Print the numerical value of
7060 the various virtual registers. Use GPR/FPR first/last values,
7061 instead of hard coding the register numbers. Print which modes
7062 have reload functions registered.
7063 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7064 settings before/after setting cpu, target and subtarget settings.
7065 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7066 and for secondary reload failures in rs6000_secondary_reload_inner.
7067 (rs6000_secondary_reload_fail): Likewise.
7068 (rs6000_secondary_reload_inner): Likewise.
7070 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7071 macros for first/last GPR and FPR registers.
7072 (LAST_GPR_REGNO): Likewise.
7073 (FIRST_FPR_REGNO): Likewise.
7074 (LAST_FPR_REGNO): Likewise.
7076 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7077 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7078 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7079 (vcond<mode><mode>): Likewise.
7080 (vcondu<mode><mode>): Likewise.
7081 (vector_gtu<mode>): Likewise.
7082 (vector_gte<mode>): Likewise.
7083 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7084 to prevent the compiler from converting DImode operations to TImode.
7085 (ior<mode>3): Likewise.
7086 (and<mode>3): Likewise.
7087 (one_cmpl<mode>2): Likewise.
7088 (nor<mode>3): Likewise.
7089 (andc<mode>3): Likewise.
7091 * config/rs6000/constraints.md (wt constraint): New constraint
7092 that returns VSX_REGS if TImode is allowed in VSX registers.
7094 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7097 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7098 similar to TImode, but it is restricted to being in the GPRs.
7100 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7101 TImode to occupy a single VSX register.
7103 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7104 -mvsx-timode for power7/power8.
7105 (power7 cpu): Likewise.
7106 (power8 cpu): Likewise.
7108 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7109 sure that TFmode/TDmode take up two registers if they are ever
7110 allowed in the upper VSX registers.
7111 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7113 (rs6000_init_hard_regno_mode_ok): Likewise.
7114 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7115 constraint. Print if LRA is turned on.
7116 (rs6000_option_override_internal): Give an error if -mvsx-timode
7117 and VSX is not enabled.
7118 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7119 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7120 to reg+offset addressing. Use PTImode when checking offset
7121 addresses for validity.
7122 (reg_offset_addressing_ok_p): Likewise.
7123 (rs6000_legitimate_offset_address_p): Likewise.
7124 (rs6000_legitimize_address): Likewise.
7125 (rs6000_legitimize_reload_address): Likewise.
7126 (rs6000_legitimate_address_p): Likewise.
7127 (rs6000_eliminate_indexed_memrefs): Likewise.
7128 (rs6000_emit_move): Likewise.
7129 (rs6000_secondary_reload): Likewise.
7130 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7131 reloads to fpr registers to continue to use reg+offset addressing,
7132 but 64-bit reloads to altivec registers need reg+reg addressing.
7133 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7134 it. Treat LO_SUM like a PLUS operation.
7135 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
7136 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
7137 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7138 registers to share a register with a smaller sized type, since VSX
7139 puts scalars in the upper 64-bits.
7140 (print_operand): Add support for PTImode.
7141 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7142 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7143 registers, but don't have arithmetic support.
7144 (rs6000_memory_move_cost): Add test for VSX.
7145 (rs6000_opt_masks): Add -mvsx-timode.
7147 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7150 (VSr): Use wt constraint for TImode.
7151 (VSv): Drop TImode support.
7152 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7153 (vsx_movti_64bit): Likewise.
7154 (vsx_movti_32bit): Likewise.
7155 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7156 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7157 one '?' on the appropriate output constraint. Do not allow TImode
7158 logical operations on 32-bit systems.
7159 (vsx_ior<mode>3): Likewise.
7160 (vsx_xor<mode>3): Likewise.
7161 (vsx_one_cmpl<mode>2): Likewise.
7162 (vsx_nor<mode>3): Likewise.
7163 (vsx_andc<mode>3): Likewise.
7164 (vsx_concat_<mode>): Likewise.
7165 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7167 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7168 OPTION_MASK_VSX_TIMODE.
7169 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7170 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7172 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7173 (TI2 iterator): New iterator for TImode, PTImode.
7174 (wd mode attribute): Add values for vector types.
7175 (movti_string): Replace TI move operations with operations for TImode
7176 and PTImode. Add support for TImode being allowed in VSX registers.
7177 (mov<mode>_string, TImode/PTImode): Likewise.
7178 (movti_ppc64): Likewise.
7179 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7180 (TI mode splitters): Likewise.
7182 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7185 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
7187 PR tree-optimization/56355
7188 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7189 Also handle integers with undefined overflow.
7191 2013-03-20 Catherine Moore <clm@codesourcery.com>
7192 Maciej W. Rozycki <macro@codesourcery.com>
7193 Tom de Vries <tom@codesourcery.com>
7194 Nathan Sidwell <nathan@codesourcery.com>
7195 Iain Sandoe <iain@codesourcery.com>
7196 Nathan Froyd <froydnj@codesourcery.com>
7197 Chao-ying Fu <fu@mips.com>
7199 * doc/extend.texi: (micromips, nomicromips, nocompression):
7200 Document new function attributes.
7201 * doc/invoke.texi (minterlink-compressed, mmicromips,
7202 m14k, m14ke, m14kec): Document new options.
7203 (minterlink-mips16): Update documentation.
7204 * doc/md.texi (ZC, ZD): Document new constraints.
7205 * configure.ac (gcc_cv_as_micromips): Check if linker
7206 supports the .set micromips directive.
7207 * configure: Regenerate.
7208 * config.in: Regenerate.
7209 * config/mips/mips-tables.opt: Regenerate.
7210 * config/mips/micromips.md: New file.
7211 * constraints.md (ZC, ZD): New constraints.
7212 * config/mips/predicates.md (movep_src_register): New predicate.
7213 (movep_src_operand): New predicate.
7214 (non_volatile_mem_operand): New predicate.
7215 * config/mips/mips.md (multimem): New type.
7216 (length): Differentiate between 17-bit and 18-bit branch offsets.
7217 (MOVEP1, MOVEP2): New mode iterator.
7218 (mov_<load>l): Use ZC constraint.
7219 (mov_<load>r): Likewise.
7220 (mov_<store>l): Likewise.
7221 (mov_<store>r): Likewise.
7222 (*branch_equality<mode>_inverted): Add microMIPS support.
7223 (*branch_equality<mode>): Likewise.
7224 (*jump_absolute): Likewise.
7225 (indirect_jump_<mode>): Likewise.
7226 (tablejump_<mode>): Likewise.
7227 (<optab>_internal): Likewise.
7228 (sibcall_internal): Likewise.
7229 (sibcall_value_internal): Likewise.
7230 (prefetch): Use constraint ZD.
7231 * config/mips/mips.opt (minterlink-compressed): New option.
7232 (minterlink-mips16): Now an alias for minterlink-compressed.
7233 (mmicromips): New option.
7234 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7235 (compare_and_swap_12): Likewise.
7236 (sync_add<mode>): Likewise.
7237 (sync_<optab>_12): Likewise.
7238 (sync_old_<optab>_12): Likewise.
7239 (sync_new_<optab>_12): Likewise.
7240 (sync_nand_12): Likewise.
7241 (sync_old_nand_12): Likewise.
7242 (sync_new_nand_12): Likewise.
7243 (sync_sub<mode>): Likewise.
7244 (sync_old_add<mode>): Likewise.
7245 (sync_old_sub<mode>): Likewise.
7246 (sync_new_add<mode>): Likewise.
7247 (sync_new_sub<mode>): Likewise.
7248 (sync_<optab><mode>): Likewise.
7249 (sync_old_<optab><mode>): Likewise.
7250 (sync_new_<optab><mode>): Likewise.
7251 (sync_nand<mode>): Likewise.
7252 (sync_old_nand<mode>): Likewise.
7253 (sync_new_nand<mode>): Likewise.
7254 (sync_lock_test_and_set<mode>): Likewise.
7255 (test_and_set_12): Likewise.
7256 (atomic_compare_and_swap<mode>): Likewise.
7257 (atomic_exchange<mode>_llsc): Likewise.
7258 (atomic_fetch_add<mode>_llsc): Likewise.
7259 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7260 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7261 (umips_save_restore_pattern_p): Likewise.
7262 (umips_load_store_pair_p): Likewise.
7263 (umips_output_load_store_pair): Likewise.
7264 (umips_movep_target_p): Likewise.
7265 (umips_12bit_offset_address_p): Likewise.
7266 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7267 (mips_base_mips16): Rename this...
7268 (mips_base_compression_flags): ...to this. Update all uses.
7269 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7270 (mips_mips16_decl_p): Delete.
7271 (mips_nomips16_decl_p): Delete.
7272 (mips_get_compress_on_flags): New function.
7273 (mips_get_compress_off_flags): New function.
7274 (mips_get_compress_mode): New function.
7275 (mips_get_compress_on_name): New function.
7276 (mips_get_compress_off_name): New function.
7277 (mips_insert_attributes): Support multiple compression types.
7278 (mips_merge_decl_attributes): Likewise.
7279 (umips_12bit_offset_address_p): New function.
7280 (mips_start_function_definition): Emit .set micromips directive.
7281 (mips_call_may_need_jalx_p): New function.
7282 (mips_function_ok_for_sibcall): Add microMIPS support.
7283 (mips_print_operand_punctuation): Support short delay slots and
7285 (umips_swm_mask, umips_swm_encoding): New.
7286 (umips_build_save_restore): New function.
7287 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7288 (was_mips16_p): Remove.
7289 (old_compression_mode): New.
7290 (mips_set_compression_mode): New function.
7291 (mips_set_current_function): Add microMIPS support.
7292 (mips_option_override): Likewise.
7293 (umips_save_restore_pattern_p): New function.
7294 (umips_output_save_restore): New function.
7295 (umips_load_store_pair_p_1): New function.
7296 (umips_load_store_pair_p): New function.
7297 (umips_output_load_store_pair_1): New function.
7298 (umips_output_load_store_pair): New function.
7299 (umips_movep_target_p) New function.
7300 (mips_prepare_pch_save): Add microMIPS support.
7301 * config/mips/mips.h (TARGET_COMPRESSION): New.
7302 (TARGET_CPU_CPP_BUILTINS): Update macro
7303 to use new compression flags and to support microMIPS.
7304 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7305 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7306 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7307 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7308 (ASM_SPEC): Support mmicromips and mno-micromips.
7309 (M16STORE_REG_P): New macro.
7310 (MIPS_CALL): Support TARGET_MICROMIPS.
7311 (MICROMIPS_J): New macro.
7312 (mips_base_mips16): Rename this...
7313 (mips_base_compression_flags): ...to this.
7314 (UMIPS_12BIT_OFFSET_P): New macro.
7315 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7316 (MULTILIB_DIRNAMES): Likewise.
7317 2013-03-20 Richard Biener <rguenther@suse.de>
7319 PR tree-optimization/56661
7320 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7321 the result does not have to be distinct.
7323 2013-03-20 Richard Biener <rguenther@suse.de>
7325 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7328 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7329 Steven Bosscher <steven@gcc.gnu.org>
7331 PR rtl-optimization/56605
7332 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7334 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7337 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7338 that require movd instead of movq.
7340 2013-03-20 Richard Biener <rguenther@suse.de>
7342 * tree-ssa-structalias.c (struct variable_info): Add pointer
7343 to the first field of an aggregate with sub-vars. Make
7344 this and the pointer to the next subfield its ID.
7345 (vi_next): New function.
7346 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7347 storedanything_id, integer_id): Increment by one.
7348 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7349 get_call_clobber_vi): Adjust.
7350 (solution_set_expand): Simplify and speedup.
7351 (solution_set_add): Inline into ...
7352 (set_union_with_increment): ... this. Adjust accordingly.
7353 (do_sd_constraint): Likewise.
7354 (do_ds_constraint): Likewise.
7355 (do_complex_constraint): Simplify.
7356 (build_pred_graph): Adjust.
7357 (solve_graph): Likewise. Simplify and speedup.
7358 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7359 get_constraint_for_component_ref, get_constraint_for_1,
7360 first_vi_for_offset, first_or_preceding_vi_for_offset,
7361 create_function_info_for, create_variable_info_for_1,
7362 create_variable_info_for, intra_create_variable_infos): Adjust.
7363 (init_base_vars): Push NULL for ID zero.
7364 (compute_points_to_sets): Adjust.
7366 2013-03-20 Richard Biener <rguenther@suse.de>
7368 * cfgloop.c (verify_loop_structure): Streamline and avoid
7369 ICEing on corrupt loop tree.
7370 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7373 2013-03-20 Richard Biener <rguenther@suse.de>
7375 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7376 check whether an SSA update is needed.
7378 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7380 * config/mips/constraints.md (T): Rename to...
7384 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7385 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7387 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7389 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7390 (*subsi3_carryin_uxtw): Likewise.
7392 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7394 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7395 (*rorsi3_insn_uxtw): Likewise.
7397 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7399 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7400 (*extrsi5_insn_uxtw): Likewise.
7402 2013-03-19 Richard Biener <rguenther@suse.de>
7404 PR tree-optimization/56273
7405 * passes.c (init_optimization_passes): Move second VRP after DOM.
7407 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
7409 * config/i386/i386.md (*movti_internal): Merge from
7410 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7411 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7412 nox64 isa attributes.
7414 2013-03-18 Richard Biener <rguenther@suse.de>
7416 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7418 (merge_node_constraints): Likewise.
7419 (build_succ_graph): Likewise.
7420 (valid_graph_edge): Inline into single caller.
7421 (unify_nodes): Likewise. Use bitmap_set_bit return value
7423 (scc_visit): Fix formatting and variable use.
7424 (do_sd_constraint): Use gcc_checking_assert.
7425 (do_ds_constraint): Likewise.
7426 (do_complex_constraint): Likewise.
7427 (condense_visit): Likewise. Cleanup.
7428 (dump_pred_graph): New function.
7429 (perform_var_substitution): Dump the pred-graph before
7430 variable substitution.
7431 (find_equivalent_node): Use gcc_checking_assert.
7432 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7434 2013-03-18 Richard Biener <rguenther@suse.de>
7436 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7437 Remove cond_expr_stmt_list argument and do not gimplify the
7439 (vect_loop_versioning): Adjust.
7440 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7441 Cleanup to use less temporaries.
7442 (vect_create_data_ref_ptr): Cleanup.
7444 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7446 PR tree-optimization/56635
7447 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7448 require types_compatible_p types.
7450 2013-03-18 Nick Clifton <nickc@redhat.com>
7452 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7455 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7456 Add missing line to comment describing function.
7458 2013-03-18 Richard Biener <rguenther@suse.de>
7460 PR tree-optimization/56210
7461 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7462 Handle string / character search functions.
7463 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7465 2013-03-18 Richard Biener <rguenther@suse.de>
7468 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7469 and implement properly.
7470 * gimple.h (gimple_cond_single_var_p): Remove.
7472 2013-03-18 Richard Biener <rguenther@suse.de>
7474 * tree-data-ref.h (find_data_references_in_loop): Declare.
7475 * tree-data-ref.c (get_references_in_stmt): Use a stack
7476 vector pre-allocated in the callers.
7477 (find_data_references_in_stmt): Adjust.
7478 (graphite_find_data_references_in_stmt): Likewise.
7479 (create_rdg_vertices): Likewise.
7480 (find_data_references_in_loop): Export.
7481 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7482 Compute dependences here...
7483 (vect_analyze_data_refs): ...not here. When we encounter
7484 a non-vectorizable data reference in basic-block vectorization
7485 truncate the data reference vector. Do not bother to
7486 fixup data-dependence information for gather loads.
7487 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7488 of data references, as reported.
7490 2013-03-18 Richard Biener <rguenther@suse.de>
7492 PR tree-optimization/3713
7493 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7494 has_constants and expr.
7495 (stmt_has_constants): Properly valueize SSA names when deciding
7496 whether the stmt has constants.
7498 2013-03-18 Richard Biener <rguenther@suse.de>
7500 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7501 whole function when there is nothing to do.
7502 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7503 * tree-vectorizer.c (vectorize_loops): Update virtual and
7504 loop-closed SSA once.
7505 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7507 2013-03-18 Richard Biener <rguenther@suse.de>
7510 * domwalk.c (bb_postorder): New global static.
7511 (cmp_bb_postorder): New function.
7512 (walk_dominator_tree): Replace scheme imposing an order for
7513 visiting dominator sons by one sorting them at the time they
7514 are pushed on the stack.
7516 2013-03-18 Richard Biener <rguenther@suse.de>
7518 PR tree-optimization/39326
7519 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7520 (struct mem_ref): Replace mem member with ao_ref typed member.
7521 (MEM_ANALYZABLE): Adjust.
7522 (memref_eq): Likewise.
7523 (mem_ref_alloc): Likewise.
7524 (gather_mem_refs_stmt): Likewise.
7525 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7526 (execute_sm_if_changed_flag_set): Adjust.
7527 (execute_sm): Likewise.
7528 (ref_always_accessed_p): Likewise.
7529 (refs_independent_p): Likewise.
7530 (can_sm_ref_p): Likewise.
7532 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7535 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7536 return 1 even for !unsignedp.
7538 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7540 * config/i386/i386.md (isa): Add x64 and nox64.
7541 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7542 (*pushtf): Enable *roF alternative for x64 isa only.
7543 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7544 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7545 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7546 (*movtf_internal): Merge from *movtf_internal_rex64 and
7547 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7548 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7549 nox64 isa attributes.
7550 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7551 nox64 isa attributes.
7552 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7554 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7556 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7558 2013-03-17 Jakub Jelinek <jakub@redhat.com>
7561 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7562 class names. Remove trailing comma after "ALL_REGS".
7564 2013-03-16 Jan Hubicka <jh@suse.cz>
7566 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7567 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7568 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7569 of cgraph_get_create_node.
7570 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7572 2013-03-16 Jason Merrill <jason@redhat.com>
7575 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7576 with DW_AT_default_value.
7578 2013-03-16 Jakub Jelinek <jakub@redhat.com>
7580 * BASE-VER: Set to 4.9.0.
7582 2013-03-14 Andi Kleen <ak@linux.intel.com>
7585 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7586 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7587 Document _x* TSX intrinsics.
7589 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7590 David Holsgrove <david.holsgrove@xilinx.com>
7592 * configure.ac: Add MicroBlaze TLS support detection.
7593 * configure: Regenerate.
7594 * config/microblaze/microblaze-protos.h
7595 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7596 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7597 * config/microblaze/microblaze.c (microblaze_address_type): Add
7598 ADDRESS_TLS and tls_reloc address types.
7599 (microblaze_address_info): Add tls_reloc.
7600 (TARGET_HAVE_TLS): Define.
7601 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7602 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
7603 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7604 load_tls_operand, microblaze_call_tls_get_addr,
7605 microblaze_legitimize_tls_address): New functions.
7606 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7607 (get_base_reg): Use microblaze_tls_symbol_p.
7608 (microblaze_classify_address): Handle TLS.
7609 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7610 label_mentioned_p and microblaze_tls_referenced_p.
7611 (microblaze_legitimize_address): Handle TLS.
7612 (microblaze_address_insns): Handle ADDRESS_TLS.
7613 (pic_address_needs_scratch): Handle TLS.
7614 (print_operand_address): Handle TLS.
7615 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7616 (microblaze_expand_move): Handle TLS.
7617 (microblaze_legitimate_constant_p): Check
7618 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
7619 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7620 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7621 (PIC_OFFSET_TABLE_REGNUM): Set.
7622 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7623 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7624 (addsi3, movsi_internal2, movdf_internal): Update constraints
7625 * config/microblaze/predicates.md (arith_plus_operand): Define
7626 (move_operand): Redefine as move_src_operand,
7627 check microblaze_tls_referenced_p.
7629 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7631 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7632 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7634 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7636 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7639 2013-03-14 Jakub Jelinek <jakub@redhat.com>
7641 PR tree-optimization/53265
7642 * common.opt (Waggressive-loop-optimizations): New option.
7643 * tree-ssa-loop-niter.c: Include tree-pass.h.
7644 (do_warn_aggressive_loop_optimizations): New function.
7645 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7646 if number_of_latch_executions returned constant.
7647 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7648 early. If number_of_latch_executions returned constant, set
7649 nb_iterations_upper_bound back to it.
7650 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7652 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7653 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7655 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7656 (MULTILIB_OSDIRNAMES): Set.
7657 * genmultilib: If defaultosdirname doesn't start with :: , set
7658 defaultosdirname2 instead, clear it and emit two . multilib_raw
7659 entries instead of just one.
7661 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7663 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7664 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7665 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7666 (SUBTARGET_OVERRIDE_OPTIONS): New.
7668 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7671 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7672 (musermode): Convert to Var(TARGET_USERMODE).
7673 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7674 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7675 * config/sh/sh.c (sh_option_override): Use
7676 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7677 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7679 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7681 (udivsi3_i4_single, divsi3_i4_single): Use
7682 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7684 2013-03-13 Dave Korn <dave.korn.cygwin@....>
7686 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7689 2013-03-13 Richard Biener <rguenther@suse.de>
7691 PR tree-optimization/56608
7692 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7693 calls when vectorizing basic-blocks.
7695 2013-03-13 Jakub Jelinek <jakub@redhat.com>
7698 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7701 2013-03-12 Jakub Jelinek <jakub@redhat.com>
7703 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7705 2013-03-11 Jan Hubicka <jh@suse.cz>
7708 * lto-streamer-out.c (output_symbol_p): Skip references from
7709 constructors of external variables.
7711 2013-03-11 Jan Hubicka <jh@suse.cz>
7714 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7716 * emit-rtl.c (verify_rtx_sharing): Likewise.
7717 (copy_insn_1): Likewise.
7718 * rtl.c (copy_rtx): Likewise.
7720 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
7723 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7724 output_operand_lossage message.
7726 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
7729 * arm.c (shift_op): Validate RTL pattern on the fly.
7730 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7733 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7736 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7737 new call patterns that clobber %fr12.
7738 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7739 split and postreload patterns.
7740 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7741 registers %fr12 and %fr12R as call used.
7743 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7745 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7746 (canon_address, record_store, replace_read, check_mem_read_rtx,
7747 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7748 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7749 rest_of_handle_dse): Likewise.
7751 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7754 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7756 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7757 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7758 (save_optabs_if_changed): Replace with...
7759 (init_tree_optimization_optabs): ...this.
7760 * optabs.c (save_optabs_if_changed): Rename to...
7761 (init_tree_optimization_optabs): ...this. Take the optimization node
7762 as argument. Do nothing if the base optabs are already correct.
7763 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7764 to recompute optabs.
7765 * function.h (function): Remove optabs field.
7766 * function.c (invoke_set_current_function_hook): Call
7767 init_tree_optimization_optabs. Use the result to initialize
7770 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
7772 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7773 if GTMA_HAS_NO_INSTRUMENTATION.
7774 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7775 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7776 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7777 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7778 GTMA_HAS_NO_INSTRUMENTATION.
7780 2013-03-08 Jakub Jelinek <jakub@redhat.com>
7782 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7785 2013-03-08 Marek Polacek <polacek@redhat.com>
7786 Jakub Jelinek <jakub@redhat.com>
7788 PR tree-optimization/56478
7789 * predict.c (is_comparison_with_loop_invariant_p): Change the
7790 type of loop_step to tree.
7791 (predict_loops): Adjust.
7792 (predict_iv_comparison): Perform the computations on double_ints.
7794 2013-03-08 Richard Biener <rguenther@suse.de>
7796 PR tree-optimization/56570
7797 * tree-cfg.c (verify_expr_location_1): Verify locations for
7799 * tree-sra.c (create_access_replacement): Strip locations
7800 from DECL_DEBUG_EXPRs.
7802 2013-03-08 Richard Biener <rguenther@suse.de>
7804 * tree-inline.c (expand_call_inline): Do not associate
7805 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7806 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7808 2013-03-08 Richard Biener <rguenther@suse.de>
7810 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7811 or block changes with -Og. Fix for location / block encoding
7812 changes and PHI arguments with locations.
7814 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7816 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7818 (struct output_info): Likewise.
7819 (register_overhead): Remove bad gcc_assert.
7820 (bitmap_find_bit): If there is only a single bitmap element, do not
7821 count a miss as a search.
7822 (print_statistics): Update for counter type changes.
7823 (dump_bitmap_statistics): Likewise. Print headers such that they
7824 are properly lined up with the printed counters.
7826 2013-03-07 Jakub Jelinek <jakub@redhat.com>
7828 PR tree-optimization/56559
7829 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7830 check that it has only a single use.
7832 2013-03-07 Richard Biener <rguenther@suse.de>
7834 * doc/invoke.texi (fwhole-program): Discourage use in combination
7837 2013-03-06 Jakub Jelinek <jakub@redhat.com>
7839 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7841 PR tree-optimization/56539
7842 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7843 instead of GSI_CONTINUE_LINKING as last argument to
7844 force_gimple_operand_gsi. Adjust function comment.
7846 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7850 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7851 promoted mode, convert the result back to the original mode.
7853 2013-03-06 Richard Biener <rguenther@suse.de>
7856 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7857 (insert_updated_phi_nodes_compare_uids): New function.
7858 (update_ssa): Sort symbols_to_rename after UID before
7859 traversing it to insert PHI nodes.
7861 2013-03-06 Richard Biener <rguenther@suse.de>
7864 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7865 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7868 2013-02-13 Richard Biener <rguenther@suse.de>
7871 * varasm.c (output_constant_def_1): Get the decl representing
7872 the constant as argument.
7873 (output_constant_def): Wrap output_constant_def_1.
7874 (make_decl_rtl): Use output_constant_def_1 with the decl
7875 representing the constant.
7876 (build_constant_desc): Optionally re-use a decl already
7877 representing the constant.
7878 (tree_output_constant_def): Adjust.
7880 2013-03-06 Joey Ye <joey.ye@arm.com>
7883 * gcc.c (convert_white_space): New function.
7884 (main): Handles white space in function name.
7886 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7889 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7890 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7891 to SH_DIV_CALL_TABLE for TARGET_SH2.
7892 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7894 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7897 2013-03-05 Sterling Augustine <saugustine@google.com>
7898 Cary Coutant <ccoutant@google.com>
7901 * dwarf2out.c (resolve_addr): Don't call
7902 remove_loc_list_addr_table_entries a second time for the same
7905 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7908 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7909 (avoid_complex_debug_insns): New function.
7910 (expand_debug_locations): Call it.
7912 PR rtl-optimization/56484
7913 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7914 lifetimes of hard registers on small register class machines.
7916 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7918 * config/microblaze/microblaze-protos.h: Rename
7919 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
7920 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
7922 (microblaze_fast_interrupt_function_p): New function.
7923 (microblaze_is_interrupt_handler): Rename to
7924 microblaze_is_interrupt_variant and add fast_interrupt check.
7925 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7926 (save_restore_insns): Likewise.
7927 (compute_frame_size): Likewise.
7928 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7929 (microblaze_globalize_label): Likewise.
7930 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7931 * config/microblaze/microblaze.md: Use wrapper
7932 microblaze_is_interrupt_variant.
7934 2013-03-05 Kai Tietz <ktietz@redhat.com>
7936 * sdbout.c (sdbout_one_type): Switch to current function's section
7937 supporting cold/hot.
7939 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7941 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7944 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7947 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7948 if VALGRIND_GET_VBITS is defined, temporarily make object
7949 memory all defined, and restore previous valgrind addressability
7950 and definability afterwards. Free this_object at the end.
7953 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7954 right before calling lra_create_live_ranges, also call it
7955 when clearing live_p. Only call lra_clear_live_ranges
7956 at the end if live_p.
7959 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7961 2013-03-05 Richard Biener <rguenther@suse.de>
7963 PR tree-optimization/56521
7964 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7967 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7970 * except.h (remove_unreachable_eh_regions): New prototype.
7971 * except.c (remove_eh_handler_splicer): New function, split out
7972 of remove_eh_handler.
7973 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7974 warning about running it on many EH regions one at a time.
7975 (remove_unreachable_eh_regions_worker): New function, walk the
7976 EH tree in depth-first order and remove non-marked regions.
7977 (remove_unreachable_eh_regions): New function.
7978 * tree-eh.c (mark_reachable_handlers): New function, split out
7979 from remove_unreachable_handlers.
7980 (remove_unreachable_handlers): Use mark_reachable_handlers and
7981 remove_unreachable_eh_regions.
7982 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7983 and remove_unreachable_eh_regions.
7985 2013-03-05 Richard Biener <rguenther@suse.de>
7988 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7989 not freeing them until the end.
7991 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7993 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7995 2013-03-05 Richard Biener <rguenther@suse.de>
7997 PR tree-optimization/56270
7998 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7999 of loads after scheduling an SLP instance.
8001 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8003 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8005 (check_gcc_parallelize): Run guality.exp as a separate job from
8006 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8007 struct-layout-1.exp with stackalign.exp.
8009 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8012 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8013 load_index sbitmap even if some bit in it isn't set.
8016 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8017 (discover_iteration_bound_by_body_walk): Change queues to
8018 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8019 spelling in comment. Call safe_push on queues[bound_index] directly.
8020 Release queues[queue_index] in every iteration unconditionally.
8021 Release bounds vector.
8024 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8025 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8026 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8029 2013-03-05 Richard Biener <rguenther@suse.de>
8032 * tree-inline.c (remap_blocks_to_null): New function.
8033 (expand_call_inline): When expanding a call stmt without
8034 an associated block inline remap all callee blocks to NULL.
8036 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8038 PR rtl-optimization/56494
8039 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8040 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8041 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8044 * sel-sched-ir.c (free_sched_pools): Release
8045 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8046 if succs_info_pool.max_top isn't -1.
8049 * opts.c (opts_obstack, opts_concat): Moved to...
8050 * opts-common.c (opts_obstack, opts_concat): ... here.
8052 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8055 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8057 2013-03-04 Martin Jambor <mjambor@suse.cz>
8059 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8060 all appropriate places.
8062 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8064 PR tree-optimization/56424
8065 * ipa-split.c (split_function): Do not set the RSO flag if result is
8066 not by reference and its type is a register type.
8068 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8070 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8071 (microblaze_legitimate_pic_operand): Likewise
8072 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8073 new function microblaze_legitimate_pic_operand
8074 * config/microblaze/microblaze-protos.h
8075 (microblaze_legitimate_pic_operand): Declare.
8077 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8079 * config/microblaze/predicates.md (call_insn_simple_operand):
8080 New predicate for supported rtx code types.
8081 * config/microblaze/microblaze.md (call_internal1): Use
8082 call_insn_simple_operand predicate.
8084 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8087 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8088 partitions.ordered_remove.
8091 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8092 vec_oprnds0.create (1) for modifier == NONE.
8095 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8096 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8097 vec_oprnds1 right before pushing anything to it for
8101 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8102 set nbbs to 0 instead of having separate code path.
8103 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8104 instead of false as last argument if returning NULL.
8106 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8108 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8109 the attribute is now called "target" instead of "option".
8110 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8111 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8112 attribute/pragma name for TARGET_OPTION_VALID_P and
8113 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8114 * doc/tm.texi: Regenerated.
8116 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
8118 * config/microblaze/microblaze.c:
8119 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8120 * config/microblaze/microblaze.h: Add -mxl-reorder to
8122 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8123 instructions emitted if TARGET_REORDER.
8124 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8125 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8128 2013-03-01 Xinliang David Li <davidxl@google.com>
8130 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8133 2013-03-01 Jakub Jelinek <jakub@redhat.com>
8136 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8137 vector even when returning true. Fix up function comment formatting.
8140 * ira-build.c (ira_loop_nodes_count): New variable.
8141 (create_loop_tree_nodes): Initialize it.
8142 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8145 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8146 method on dr_chain and result_chain.
8147 * tree-vect-stmts.c (vectorizable_store): Only call
8148 result_chain.create if j == 0.
8151 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8152 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8153 before overwriting it.
8155 2013-03-01 Tobias Burnus <burnus@net-b.de>
8157 * doc/extended.texi (C Extensions): Change order in @menu
8159 (Other MIPS Built-in Functions): Move last MIPS entry before
8160 "picoChip Built-in Functions".
8161 (SH Built-in Functions): Move after RX Built-in Functions.
8162 * doc/gcc.texi (Introduction): Change order in @menu
8164 * doc/md.texi (Constraints): Ditto.
8165 * gty.texi (Type Information): Ditto.
8166 (User-provided marking routines for template types): Make
8168 * doc/invoke.texi (AArch64 Options): Move before
8169 "Adapteva Epiphany Options".
8171 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8172 Jakub Jelinek <jakub@redhat.com>
8175 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8176 no_address_safety_analysis attribute.
8177 * doc/extend.texi (no_address_safety_attribute): Rename to
8178 no_sanitize_address attribute, mention no_address_safety_analysis
8179 attribute as deprecated alias.
8181 2013-02-28 Jakub Jelinek <jakub@redhat.com>
8184 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8185 type to vec<vec<tree> > *.
8186 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8187 to be vec<tree> instead of vec<tree> *, set vec_defs
8188 to vNULL and call vec_defs.create (number_of_vects), adjust other
8190 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8191 vectorizable_condition): Adjust vect_get_slp_defs callers.
8193 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8195 * config/aarch64/aarch64.c
8196 (aarch64_float_const_representable): Remove unused variable.
8198 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8200 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8202 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8204 * config/aarch64/aarch64-builtins.c
8205 (aarch64_init_simd_builtins): Make static.
8207 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8209 * config/aarch64/aarch64.c
8210 (aarch64_simd_make_constant): Make static.
8212 2013-02-28 Martin Jambor <mjambor@suse.cz>
8214 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8215 with no initialization to the RHS of debug statements.
8217 2013-02-28 Martin Jambor <mjambor@suse.cz>
8219 PR tree-optimization/56294
8220 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8222 (get_access_replacement): Do not call create_access_replacement.
8223 Assert a replacement exists.
8224 (get_repl_default_def_ssa_name): Create the replacement declaration
8227 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8229 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8232 2013-02-28 Marek Polacek <polacek@redhat.com>
8234 PR rtl-optimization/56466
8235 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8236 if we're changing a loop.
8237 (peel_loops_completely): Likewise.
8239 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8242 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8244 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8247 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8248 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8249 INTX_FTYPE_FX, FX_FTYPE_INTX.
8250 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8252 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8254 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8255 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8256 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8257 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8258 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8259 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8260 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8261 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8262 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8263 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8264 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8265 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8266 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8267 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8268 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8269 (avrxmega6): Increase max flash segments from 5 to 6.
8270 * config/avr/t-multilib: Regenerate.
8271 * config/avr/avr-tables.opt: Regenerate.
8272 * doc/avr-mmcu.texi: Regenerate.
8274 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8276 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8277 (avr_device_to_arch): Rename to avr_device_to_ld.
8278 (avr_device_to_as): New prototype.
8279 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8280 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8281 * config/avr/driver-avr.c (avr_device_to_as): New.
8282 (avr_device_to_arch): Rename to avr_device_to_ld.
8284 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8287 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8288 method on dr_chain and result_chain.
8291 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8292 pointer_set_destroy on not_executed_last_iteration.
8295 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
8298 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8299 FOR_EACH_DEFINED_FUNCTION when freeing state.
8302 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8304 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8308 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8309 known_aggs[i].items and release known_aggs vector.
8312 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8314 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8316 * config/microblaze/microblaze.c (microblaze_emit_compare):
8317 Use xor for EQ/NE comparisions.
8318 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8319 (cbranchsf4): Adjust operator to comparison_operator.
8321 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8324 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8326 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8327 vec_safe_push, always update *slot.
8328 (redirect_edge_var_map_clear): Use vec_free.
8329 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8330 (free_var_map_entry): Use vec_free.
8331 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8332 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8334 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
8337 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8338 when the may_trap_p bit of the exprs being merged differs.
8339 Reorder tests for speculativeness in the logical and operator.
8341 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8343 * incpath.c (add_standard_paths): Use reconcat instead of concat
8344 where appropriate and avoid leaking memory.
8346 * opts.h: Include obstack.h.
8347 (opts_concat): New prototype.
8348 (opts_obstack): New declaration.
8349 * opts.c (opts_concat): New function.
8350 (opts_obstack): New variable.
8351 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8352 (finish_options): Use opts_concat instead of concat
8353 and XOBNEWVEC instead of XNEWVEC.
8354 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8355 generate_option): Likewise.
8356 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8357 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8360 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8361 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8363 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8366 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8368 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8370 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8371 (arm_block_move_unaligned_straight): Likewise.
8372 (arm_adjust_block_mem): Likewise.
8374 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8377 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8378 temp, cond and label.
8379 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8382 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8383 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8386 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8387 of prologue/epilogue functions.
8390 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8391 Remove unused variable cfa_offset.
8392 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8395 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8396 type promotion to unsigned.
8399 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8400 for HOST_WIDE_INT of 32 bit / same size as int.
8401 (arm_block_move_unaligned_straight): Likewise.
8402 (arm_adjust_block_mem): Likewise.
8405 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8408 2013-02-26 Marek Polacek <polacek@redhat.com>
8410 PR tree-optimization/56426
8411 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
8413 2013-02-26 Richard Biener <rguenther@suse.de>
8416 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8417 unused variable loops.
8419 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8421 PR tree-optimization/56448
8422 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8423 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8424 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8425 later operands of the references, or even first operand for
8426 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8428 PR tree-optimization/56443
8429 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8430 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8431 to type_for_mode langhook.
8433 2013-02-25 Matt Turner <mattst88@gmail.com>
8435 * doc/invoke.texi: Document r4700.
8437 2013-02-25 Richard Biener <rguenther@suse.de>
8439 PR tree-optimization/56175
8440 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8442 (simplify_bitwise_binary): ... here. Also guard the conversion
8443 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8445 2013-02-25 Catherine Moore <clm@codesourcery.com>
8448 2013-02-24 Catherine Moore <clm@codesourcery.com>
8449 Maciej W. Rozycki <macro@codesourcery.com>
8450 Tom de Vries <tom@codesourcery.com>
8451 Nathan Sidwell <nathan@codesourcery.com>
8452 Iain Sandoe <iain@codesourcery.com>
8453 Nathan Froyd <froydnj@codesourcery.com>
8454 Chao-ying Fu <fu@mips.com>
8456 * doc/extend.texi: (micromips, nomicromips, nocompression):
8457 Document new function attributes.
8458 * doc/invoke.texi (minterlink-compressed, mmicromips,
8459 m14k, m14ke, m14kec): Document new options.
8460 (minterlink-mips16): Update documentation.
8461 * doc/md.texi (ZC, ZD): Document new constraints.
8462 * configure.ac (gcc_cv_as_micromips): Check if linker
8463 supports the .set micromips directive.
8464 * configure: Regenerate.
8465 * config.in: Regenerate.
8466 * config/mips/mips-tables.opt: Regenerate.
8467 * config/mips/micromips.md: New file.
8468 * constraints.md (ZC, AD): New constraints.
8469 * config/mips/predicates.md (movep_src_register): New predicate.
8470 (movep_src_operand): New predicate.
8471 (non_volatile_mem_operand): New predicate.
8472 * config/mips/mips.md (multimem): New type.
8473 (length): Differentiate between 17-bit and 18-bit branch offsets.
8474 (MOVEP1, MOVEP2): New mode iterator.
8475 (mov_<load>l): Use ZC constraint.
8476 (mov_<load>r): Likewise.
8477 (mov_<store>l): Likewise.
8478 (mov_<store>r): Likewise.
8479 (*branch_equality<mode>_inverted): Add microMIPS support.
8480 (*branch_equality<mode>): Likewise.
8481 (*jump_absolute): Likewise.
8482 (indirect_jump_<mode>): Likewise.
8483 (tablejump_<mode>): Likewise.
8484 (<optab>_internal): Likewise.
8485 (sibcall_internal): Likewise.
8486 (sibcall_value_internal): Likewise.
8487 (prefetch): Use constraint ZD.
8488 * config/mips/mips.opt (minterlink-compressed): New option.
8489 (minterlink-mips16): Now an alias for minterlink-compressed.
8490 (mmicromips): New option.
8491 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8492 (compare_and_swap_12): Likewise.
8493 (sync_add<mode>): Likewise.
8494 (sync_<optab>_12): Likewise.
8495 (sync_old_<optab>_12): Likewise.
8496 (sync_new_<optab>_12): Likewise.
8497 (sync_nand_12): Likewise.
8498 (sync_old_nand_12): Likewise.
8499 (sync_new_nand_12): Likewise.
8500 (sync_sub<mode>): Likewise.
8501 (sync_old_add<mode>): Likewise.
8502 (sync_old_sub<mode>): Likewise.
8503 (sync_new_add<mode>): Likewise.
8504 (sync_new_sub<mode>): Likewise.
8505 (sync_<optab><mode>): Likewise.
8506 (sync_old_<optab><mode>): Likewise.
8507 (sync_new_<optab><mode>): Likewise.
8508 (sync_nand<mode>): Likewise.
8509 (sync_old_nand<mode>): Likewise.
8510 (sync_new_nand<mode>): Likewise.
8511 (sync_lock_test_and_set<mode>): Likewise.
8512 (test_and_set_12): Likewise.
8513 (atomic_compare_and_swap<mode>): Likewise.
8514 (atomic_exchange<mode>_llsc): Likewise.
8515 (atomic_fetch_add<mode>_llsc): Likewise.
8516 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8517 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8518 (umips_save_restore_pattern_p): Likewise.
8519 (umips_load_store_pair_p): Likewise.
8520 (umips_output_load_store_pair): Likewise.
8521 (umips_movep_target_p): Likewise.
8522 (umips_12bit_offset_address_p): Likewise.
8523 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8524 (mips_base_mips16): Rename this...
8525 (mips_base_compression_flags): ...to this. Update all uses.
8526 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8527 (mips_mips16_decl_p): Delete.
8528 (mips_nomips16_decl_p): Delete.
8529 (mips_get_compress_on_flags): New function.
8530 (mips_get_compress_off_flags): New function.
8531 (mips_get_compress_mode): New function.
8532 (mips_get_compress_on_name): New function.
8533 (mips_get_compress_off_name): New function.
8534 (mips_insert_attributes): Support multiple compression types.
8535 (mips_merge_decl_attributes): Likewise.
8536 (umips_12bit_offset_address_p): New function.
8537 (mips_start_function_definition): Emit .set micromips directive.
8538 (mips_call_may_need_jalx_p): New function.
8539 (mips_function_ok_for_sibcall): Add microMIPS support.
8540 (mips_print_operand_punctuation): Support short delay slots and
8542 (umips_swm_mask, umips_swm_encoding): New.
8543 (umips_build_save_restore): New function.
8544 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8545 (was_mips16_p): Remove.
8546 (old_compression_mode): New.
8547 (mips_set_compression_mode): New function.
8548 (mips_set_current_function): Add microMIPS support.
8549 (mips_option_override): Likewise.
8550 (umips_save_restore_pattern_p): New function.
8551 (umips_output_save_restore): New function.
8552 (umips_load_store_pair_p_1): New function.
8553 (umips_load_store_pair_p): New function.
8554 (umips_output_load_store_pair_1): New function.
8555 (umips_output_load_store_pair): New function.
8556 (umips_movep_target_p) New function.
8557 (mips_prepare_pch_save): Add microMIPS support.
8558 * config/mips/mips.h (TARGET_COMPRESSION): New.
8559 (TARGET_CPU_CPP_BUILTINS): Update macro
8560 to use new compression flags and to support microMIPS.
8561 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8562 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8563 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8564 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8565 (ASM_SPEC): Support mmicromips and mno-micromips.
8566 (M16STORE_REG_P): New macro.
8567 (MIPS_CALL): Support TARGET_MICROMIPS.
8568 (MICROMIPS_J): New macro.
8569 (mips_base_mips16): Rename this...
8570 (mips_base_compression_flags): ...to this.
8571 (UMIPS_12BIT_OFFSET_P): New macro.
8572 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8573 (MULTILIB_DIRNAMES): Likewise.
8575 2013-02-25 Tom de Vries <tom@codesourcery.com>
8577 PR rtl-optimization/56131
8578 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8579 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8580 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8582 2013-02-25 Tobias Burnus <burnus@net-b.de>
8584 * doc/invoke.texi (-fsanitize=): Move from optimization
8585 to debugging options.
8587 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8589 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8591 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8592 Alexander Monakov <amonakov@ispras.ru>
8595 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8596 flush pending lists also on non-jumps. Adjust comment.
8598 2013-02-24 Catherine Moore <clm@codesourcery.com>
8599 Maciej W. Rozycki <macro@codesourcery.com>
8600 Tom de Vries <tom@codesourcery.com>
8601 Nathan Sidwell <nathan@codesourcery.com>
8602 Iain Sandoe <iain@codesourcery.com>
8603 Nathan Froyd <froydnj@codesourcery.com>
8604 Chao-ying Fu <fu@mips.com>
8606 * doc/extend.texi: (micromips, nomicromips, nocompression):
8607 Document new function attributes.
8608 * doc/invoke.texi (minterlink-compressed, mmicromips,
8609 m14k, m14ke, m14kec): Document new options.
8610 (minterlink-mips16): Update documentation.
8611 * doc/md.texi (ZC, ZD): Document new constraints.
8612 * configure.ac (gcc_cv_as_micromips): Check if linker
8613 supports the .set micromips directive.
8614 * configure: Regenerate.
8615 * config.in: Regenerate.
8616 * config/mips/mips-tables.opt: Regenerate.
8617 * config/mips/micromips.md: New file.
8618 * constraints.md (ZC, AD): New constraints.
8619 * config/mips/predicates.md (movep_src_register): New predicate.
8620 (movep_src_operand): New predicate.
8621 (non_volatile_mem_operand): New predicate.
8622 * config/mips/mips.md (multimem): New type.
8623 (length): Differentiate between 17-bit and 18-bit branch offsets.
8624 (MOVEP1, MOVEP2): New mode iterator.
8625 (mov_<load>l): Use ZC constraint.
8626 (mov_<load>r): Likewise.
8627 (mov_<store>l): Likewise.
8628 (mov_<store>r): Likewise.
8629 (*branch_equality<mode>_inverted): Add microMIPS support.
8630 (*branch_equality<mode>): Likewise.
8631 (*jump_absolute): Likewise.
8632 (indirect_jump_<mode>): Likewise.
8633 (tablejump_<mode>): Likewise.
8634 (<optab>_internal): Likewise.
8635 (sibcall_internal): Likewise.
8636 (sibcall_value_internal): Likewise.
8637 (prefetch): Use constraint ZD.
8638 * config/mips/mips.opt (minterlink-compressed): New option.
8639 (minterlink-mips16): Now an alias for minterlink-compressed.
8640 (mmicromips): New option.
8641 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8642 (compare_and_swap_12): Likewise.
8643 (sync_add<mode>): Likewise.
8644 (sync_<optab>_12): Likewise.
8645 (sync_old_<optab>_12): Likewise.
8646 (sync_new_<optab>_12): Likewise.
8647 (sync_nand_12): Likewise.
8648 (sync_old_nand_12): Likewise.
8649 (sync_new_nand_12): Likewise.
8650 (sync_sub<mode>): Likewise.
8651 (sync_old_add<mode>): Likewise.
8652 (sync_old_sub<mode>): Likewise.
8653 (sync_new_add<mode>): Likewise.
8654 (sync_new_sub<mode>): Likewise.
8655 (sync_<optab><mode>): Likewise.
8656 (sync_old_<optab><mode>): Likewise.
8657 (sync_new_<optab><mode>): Likewise.
8658 (sync_nand<mode>): Likewise.
8659 (sync_old_nand<mode>): Likewise.
8660 (sync_new_nand<mode>): Likewise.
8661 (sync_lock_test_and_set<mode>): Likewise.
8662 (test_and_set_12): Likewise.
8663 (atomic_compare_and_swap<mode>): Likewise.
8664 (atomic_exchange<mode>_llsc): Likewise.
8665 (atomic_fetch_add<mode>_llsc): Likewise.
8666 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8667 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8668 (umips_save_restore_pattern_p): Likewise.
8669 (umips_load_store_pair_p): Likewise.
8670 (umips_output_load_store_pair): Likewise.
8671 (umips_movep_target_p): Likewise.
8672 (umips_12bit_offset_address_p): Likewise.
8673 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8674 (mips_base_mips16): Rename this...
8675 (mips_base_compression_flags): ...to this. Update all uses.
8676 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8677 (mips_mips16_decl_p): Delete.
8678 (mips_nomips16_decl_p): Delete.
8679 (mips_get_compress_on_flags): New function.
8680 (mips_get_compress_off_flags): New function.
8681 (mips_get_compress_mode): New function.
8682 (mips_get_compress_on_name): New function.
8683 (mips_get_compress_off_name): New function.
8684 (mips_insert_attributes): Support multiple compression types.
8685 (mips_merge_decl_attributes): Likewise.
8686 (umips_12bit_offset_address_p): New function.
8687 (mips_start_function_definition): Emit .set micromips directive.
8688 (mips_call_may_need_jalx_p): New function.
8689 (mips_function_ok_for_sibcall): Add microMIPS support.
8690 (mips_print_operand_punctuation): Support short delay slots and
8692 (umips_swm_mask, umips_swm_encoding): New.
8693 (umips_build_save_restore): New function.
8694 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8695 (was_mips16_p): Remove.
8696 (old_compression_mode): New.
8697 (mips_set_compression_mode): New function.
8698 (mips_set_current_function): Add microMIPS support.
8699 (mips_option_override): Likewise.
8700 (umips_save_restore_pattern_p): New function.
8701 (umips_output_save_restore): New function.
8702 (umips_load_store_pair_p_1): New function.
8703 (umips_load_store_pair_p): New function.
8704 (umips_output_load_store_pair_1): New function.
8705 (umips_output_load_store_pair): New function.
8706 (umips_movep_target_p) New function.
8707 (mips_prepare_pch_save): Add microMIPS support.
8708 * config/mips/mips.h (TARGET_COMPRESSION): New.
8709 (TARGET_CPU_CPP_BUILTINS): Update macro
8710 to use new compression flags and to support microMIPS.
8711 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8712 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8713 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8714 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8715 (ASM_SPEC): Support mmicromips and mno-micromips.
8716 (M16STORE_REG_P): New macro.
8717 (MIPS_CALL): Support TARGET_MICROMIPS.
8718 (MICROMIPS_J): New macro.
8719 (mips_base_mips16): Rename this...
8720 (mips_base_compression_flags): ...to this.
8721 (UMIPS_12BIT_OFFSET_P): New macro.
8722 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8723 (MULTILIB_DIRNAMES): Likewise.
8725 2013-02-24 Jakub Jelinek <jakub@redhat.com>
8728 * target-globals.c (save_target_globals): For init_reg_sets and
8729 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8731 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8733 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8734 * config/aarch64/t-aarch64
8735 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8737 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8740 * lra-constraints.c (process_alt_operands): Reload operand
8741 conflicting with earlier clobber only if no more other conflicting
8744 2013-02-22 Jakub Jelinek <jakub@redhat.com>
8747 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8748 if not linking a shared library.
8750 2013-02-22 Seth LaForge <sethml@google.com>
8752 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8754 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8756 * config/arm/arm.md (split for extendsidi): Update condition.
8757 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8758 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8759 (qhs_zextenddi_cstr): Likewise.
8761 2013-02-21 Jakub Jelinek <jakub@redhat.com>
8764 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8765 avoid signed wrapping.
8766 (expand_mult): Handle properly multiplication by
8767 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8768 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8769 in the compiler if coeff is HOST_WIDE_INT_MIN.
8770 (expand_divmod): Don't make ext_op1 static, change it's type to
8771 uhwi. Avoid undefined behavior in -INTVAL (op1).
8773 PR rtl-optimization/50339
8774 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8776 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8777 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8778 into splitting_ashiftrt field.
8779 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8781 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8784 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
8787 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8788 are sure to go irrevocable.
8790 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
8792 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8793 scalars are valid operands.
8795 2013-02-21 Martin Jambor <mjambor@suse.cz>
8797 PR tree-optimization/56310
8798 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8799 only matching indices and non-negative final offsets.
8800 (intersect_aggregates_with_edge): Pass src_idx to
8801 agg_replacements_to_vector. Pass src_idx insstead of index to
8802 intersect_with_agg_replacements.
8804 2013-02-21 Martin Jambor <mjambor@suse.cz>
8806 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8807 instead of hard-wired defaults.
8809 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8811 * doc/invoke.texi (MIPS Options): Update documentation of the
8812 floating-point multiply-accumulate instruction restrictions.
8814 2013-02-21 Kostya Serebryany <kcc@google.com>
8816 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8817 asan_shadow_offset on x86_64 linux.
8819 2013-02-21 Richard Biener <rguenther@suse.de>
8821 PR tree-optimization/56415
8823 2013-02-11 Richard Biener <rguenther@suse.de>
8825 PR tree-optimization/56273
8826 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8829 2013-02-21 Jakub Jelinek <jakub@redhat.com>
8832 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8836 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8837 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8839 2013-02-20 Jan Hubicka <jh@suse.cz>
8841 PR tree-optimization/56265
8842 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8843 when target is referenced for first time.
8845 2013-02-20 Richard Biener <rguenther@suse.de>
8847 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8848 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8849 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8850 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8851 not return anything.
8852 (rename_ssa_copies): Do not remove unused locals.
8853 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
8854 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
8855 * passes.c (execute_function_todo): Do not schedule unused locals
8856 removal if cleanup_tree_cfg did something.
8857 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8858 about the number of removed locals.
8860 2013-02-20 Richard Biener <rguenther@suse.de>
8862 PR tree-optimization/56398
8863 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
8865 2013-02-20 Martin Jambor <mjambor@suse.cz>
8867 PR tree-optimization/55334
8868 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8869 restricted pointers to arrays.
8871 2013-02-20 Richard Biener <rguenther@suse.de>
8872 Jakub Jelinek <jakub@redhat.com>
8874 PR tree-optimization/56396
8875 * tree-ssa-ccp.c (n_const_val): New static variable.
8876 (get_value): Return NULL for SSA names we don't have a lattice
8878 (ccp_initialize): Initialize n_const_val.
8879 * tree-ssa-copy.c (n_copy_of): New static variable.
8880 (init_copy_prop): Initialize n_copy_of.
8881 (get_value): Return NULL_TREE for SSA names we don't have a
8884 2013-02-20 Martin Jambor <mjambor@suse.cz>
8886 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8888 2013-02-20 Richard Biener <rguenther@suse.de>
8890 * genpreds.c (write_lookup_constraint): Do not compare first
8891 letter of the constraint again.
8893 2013-02-20 Richard Biener <rguenther@suse.de>
8895 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8897 (get_use_iv_cost): Terminate hashtable walk when coming across
8900 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8902 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8903 reassociation for avx2 targets.
8905 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8907 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8908 Add version check for v8.10.a to enable microblaze_has_clz
8909 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
8910 version and TARGET_PATTERN_COMPARE check
8911 * config/microblaze/microblaze.md: New clzsi2 instruction
8913 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8915 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
8916 function before branching.
8918 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8920 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8922 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8924 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8927 * sel-sched.c: Include ira.h.
8928 (implicit_clobber_conflict_p): New function.
8929 (moveup_expr): Use it.
8930 * Makefile.in (sel-sched.o): Depend on ira.h.
8932 2013-02-19 Richard Biener <rguenther@suse.de>
8934 PR tree-optimization/56384
8935 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8936 (vn_hash_type): Split out from ...
8937 (vn_hash_constant_with_type): ... here.
8938 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8939 (vn_phi_eq): Compare types from vn_phi_s structure.
8940 (vn_phi_lookup): Populate vn_phi_s type.
8941 (vn_phi_insert): Likewise.
8943 2013-02-19 Jakub Jelinek <jakub@redhat.com>
8945 PR tree-optimization/56350
8946 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8947 if haven't found reduction or nested cycle operand, rather than
8948 asserting we must find it.
8950 PR tree-optimization/56381
8951 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8954 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
8955 Jakub Jelinek <jakub@redhat.com>
8958 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8959 (swap_optab_enable): Same.
8960 (init_all_optabs): Use argument instead of global.
8961 * tree.h (struct tree_optimization_option): New field target_optabs.
8962 * expr.h (init_all_optabs): Add argument to prototype.
8963 (TREE_OPTIMIZATION_OPTABS): New.
8964 (save_optabs_if_changed): Protoize.
8965 * optabs.h: Declare this_fn_optabs.
8966 * optabs.c (save_optabs_if_changed): New.
8967 Declare this_fn_optabs.
8968 (init_optabs): Add argument to init_all_optabs() call.
8969 * function.c (invoke_set_current_function_hook): Handle per
8971 * function.h (struct function): New field optabs.
8972 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8973 optimization_current_node has changed.
8974 * target-globals.h (save_target_globals_default_opts): Protoize.
8975 * target-globals.c (save_target_globals_default_opts): New.
8977 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8980 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8981 registers %fr12 and %fr12R as call used.
8984 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
8985 and HImode, require all displacements to be an integer multiple of
8987 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8988 only allow QImode and HImode when reload is in progress and strict is
8989 true. Likewise for symbolic addresses. Use base14_operand to check
8990 displacements in REG+BASE addresses.
8992 2013-02-18 Richard Biener <rguenther@suse.de>
8994 PR tree-optimization/56366
8995 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8996 handle sign-conversion of outer-loop initial induction value.
8998 2013-02-18 Richard Biener <rguenther@suse.de>
9001 * cfghooks.c (merge_blocks): If we merge a latch into another
9002 block adjust references to it.
9003 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9004 (verify_loop_structure): Verify that a recorded latch is in fact
9007 2013-02-18 Richard Biener <rguenther@suse.de>
9009 PR tree-optimization/56321
9010 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9011 order SSA name release and virtual operand unlinking.
9013 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9015 * config/microblaze/microblaze.md (save_stack_block): Define.
9016 (restore_stack_block): Likewise.
9018 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9020 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9021 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9022 * config/microblaze/microblaze.c (microblaze_option_override):
9023 Bail out early for PIC modes when target does not support PIC.
9025 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9027 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
9028 Replace with a microblaze version.
9029 (microblaze_trampoline_init): Adapt for microblaze.
9030 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
9033 2013-02-16 Jakub Jelinek <jakub@redhat.com>
9034 Dodji Seketeli <dodji@redhat.com>
9037 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
9038 (instrument_mem_region_access): Do not forget to always put
9039 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9040 0) statement, even for cases where either 'base' or 'base + len'
9041 are not instrumented -- because they have been previously
9042 instrumented. Simplify the logic by putting all the statements
9043 instrument 'base + len' inside a sequence, and then insert that
9044 sequence right before the current insertion point. Then, to
9045 instrument 'base + len', just get an iterator on that statement.
9046 And do not forget to update the pointer to iterator the function
9047 received as argument.
9049 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9051 PR rtl-optimization/56348
9052 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9054 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9056 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9057 (clean_graph_dump_file): Pass base to start_graph_dump.
9059 2013-02-14 Richard Henderson <rth@redhat.com>
9062 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9064 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9066 * collect2-aix.h: Define F_LOADONLY.
9068 2013-02-14 Richard Biener <rguenther@suse.de>
9071 * varasm.c (output_constant_def_1): Get the decl representing
9072 the constant as argument.
9073 (output_constant_def): Wrap output_constant_def_1.
9074 (make_decl_rtl): Use output_constant_def_1 with the decl
9075 representing the constant.
9076 (build_constant_desc): Optionally re-use a decl already
9077 representing the constant.
9078 (tree_output_constant_def): Adjust.
9080 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9083 * asan.c (instrument_builtin_call): Really put the length of the
9084 second source argument into src1_len.
9086 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9088 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9089 argument. If it is false, don't create edge from then_bb to
9091 (insert_if_then_before_iter): Pass true to it.
9092 (build_check_stmt): Pass false to it.
9093 (transform_statements): Flush hash table only on extended basic
9094 block boundaries, rather than at the beginning of every bb.
9095 Don't flush hash table on nonfreeing_call_p calls.
9096 * tree-flow.h (nonfreeing_call_p): New prototype.
9097 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9099 2013-02-13 David S. Miller <davem@davemloft.net>
9101 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9103 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9106 * ira.c (max_regno_before_ira): Move from ...
9108 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9111 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9113 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9115 2013-02-13 Richard Biener <rguenther@suse.de>
9118 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9119 globals in MEM_REFs.
9121 2013-02-13 Richard Biener <rguenther@suse.de>
9123 * loop-init.c (loop_optimizer_init): Clear loop state when
9124 re-initializing preserved loops.
9125 * loop-unswitch.c (unswitch_single_loop): Return whether
9126 we unswitched the loop. Do not verify loop state here.
9127 (unswitch_loops): When we unswitched a loop discover new loops.
9129 2013-02-13 Kostya Serebryany <kcc@google.com>
9131 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9133 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9135 2013-02-12 Dodji Seketeli <dodji@redhat.com>
9137 Avoid instrumenting duplicated memory access in the same basic block
9138 * Makefile.in (asan.o): Add new dependency on hash-table.h
9139 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9140 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9141 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9142 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9143 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9144 (get_mem_ref_of_assignment): New functions.
9145 (get_mem_refs_of_builtin_call): Extract from
9146 instrument_builtin_call and tweak a little bit to make it fit with
9148 (instrument_builtin_call): Use the new
9149 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9150 of is_gimple_builtin_call.
9151 (instrument_derefs, instrument_mem_region_access): Insert the
9152 instrumented memory reference into the hash table.
9153 (maybe_instrument_assignment): Renamed instrument_assignment into
9154 this, and change it to advance the iterator when instrumentation
9155 actually happened and return true in that case. This makes it
9156 homogeneous with maybe_instrument_assignment, and thus give a
9157 chance to callers to be more 'regular'.
9158 (transform_statements): Clear the memory reference hash table
9159 whenever we enter a new BB, when we cross a function call, or when
9160 we are done transforming statements. Use
9161 maybe_instrument_assignment instead of instrumentation. No more
9162 need to special case maybe_instrument_assignment and advance the
9163 iterator after calling it; it's now handled just like
9164 maybe_instrument_call. Update comment.
9166 2013-02-13 Richard Biener <rguenther@suse.de>
9168 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9169 Fix loop discovery code.
9171 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9174 * lra-constraints.c (process_alt_operands): Match early clobber
9175 operand with itself. Check conflicts with earlyclobber only if
9176 the operand is not reloaded. Prefer to reload conflicting operand
9177 if earlyclobber and matching operands are the same.
9179 2013-02-12 Richard Biener <rguenther@suse.de>
9182 * lto-streamer-out.c (write_symbol): Do not output symbols
9183 for hard register variables.
9185 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
9188 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9189 (umulsidi3_insn, mulsidi3_insn): New insns.
9191 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
9193 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9194 (struct tune_params): Add vec_costs field.
9195 * config/arm/arm.c (arm_builtin_vectorization_cost)
9196 (arm_add_stmt_cost): New functions.
9197 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9198 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9199 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9200 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9201 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9202 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9203 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9205 2013-02-12 Richard Biener <rguenther@suse.de>
9208 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9209 decls again if possible.
9211 2013-02-12 Richard Biener <rguenther@suse.de>
9214 * tree-ssa.c (verify_ssa_name): Fix check, move
9215 SSA_NAME_IN_FREE_LIST check up.
9217 2013-02-12 Jakub Jelinek <jakub@redhat.com>
9218 Steven Bosscher <steven@gcc.gnu.org>
9220 PR rtl-optimization/56151
9221 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9222 equal to op0 or op1, and last_insn pattern is CODE operation
9223 with MEM dest and one of the operands matches that MEM.
9225 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9227 * doc/extend.texi: Document Function Multiversioning and "default"
9228 parameter string to target attribute.
9229 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9230 target attribute parameter is "default".
9231 (ix86_compare_version_priority): Remove checks for target attribute.
9232 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9233 Remove check for target attribute equal to NULL. Add assert.
9234 (ix86_generate_version_dispatcher_body): Change error to sorry.
9236 2013-02-11 Iain Sandoe <iain@codesourcery.com>
9237 Jack Howarth <howarth@bromo.med.uc.edu>
9238 Patrick Marlier <patrick.marlier@gmail.com>
9241 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9242 define ENDFILE_SPEC as TM_DESTRUCTOR.
9243 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9245 2013-02-11 Alexander Potapenko <glider@google.com>
9246 Jack Howarth <howarth@bromo.med.uc.edu>
9247 Jakub Jelinek <jakub@redhat.com>
9250 * config/darwin.c (cdtor_record): Rename ctor_record.
9251 (sort_cdtor_records): Rename sort_ctor_records.
9252 (finalize_dtors): New routine to sort destructors by
9253 priority before use in assemble_integer.
9254 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9256 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
9258 PR rtl-optimization/56275
9259 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9260 offset is non-negative and less than cmode size before
9261 calling simplify_subreg.
9263 2013-02-11 Richard Biener <rguenther@suse.de>
9265 PR tree-optimization/56264
9266 * cfgloop.h (fix_loop_structure): Adjust prototype.
9267 * loop-init.c (fix_loop_structure): Return the number of
9268 newly discovered loops.
9269 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9270 are discovered, do a full loop-closed SSA rewrite.
9272 2013-02-11 Richard Biener <rguenther@suse.de>
9274 PR tree-optimization/56273
9275 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9277 (check_array_ref): Fix missing newline in dumps.
9278 (search_for_addr_array): Likewise.
9280 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
9282 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9284 2013-02-09 Jakub Jelinek <jakub@redhat.com>
9287 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9289 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9291 PR rtl-optimization/56246
9292 * lra-constraints.c (simplify_operand_subreg): Try to reuse
9294 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9295 constraints are satisfied.
9297 2013-02-08 Jeff Law <law@redhat.com>
9300 * emit-rtl.c (reg_is_parm_p): New function.
9301 * regs.h (reg_is_parm_p): New prototype.
9302 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9303 callee-clobbered registers.
9305 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9308 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9309 If there is no implicit builtin declaration, just return NULL.
9311 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9313 * config/i386/sse.md (FMAMODEM): New mode iterator.
9314 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9315 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9317 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9319 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9320 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9321 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9323 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9325 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9326 (microblaze*-*-elf): Likewise.
9327 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9329 * config/microblaze/microblaze-c.c: Add builtin defines for
9330 _LITTLE_ENDIAN and _BIG_ENDIAN.
9331 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9332 add to TARGET_DEFAULT flags.
9333 Expand ASM_SPEC and LINK_SPEC.
9334 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9335 * config/microblaze/microblaze.md: Update extendsidi2 and
9336 movdi_internal instructions to use low-order / high-order reg
9338 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9339 options and inversemask / mask of LITTLE_ENDIAN.
9340 * config/microblaze/t-microblaze: Expand multilib options to
9341 include mlittle-endian (le) and update exceptions patterns.
9343 2013-02-08 Jakub Jelinek <jakub@redhat.com>
9345 PR rtl-optimization/56195
9346 * lra-constraints.c (get_reload_reg): Don't reuse regs
9347 if they have smaller mode than requested, if they have
9348 wider mode than requested, try to return a SUBREG.
9350 PR tree-optimization/56250
9351 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9352 if type is unsigned and code isn't MULT_EXPR.
9354 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9356 PR tree-optimization/56064
9357 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9358 bits according to mode.
9359 * fixed-value.h (fixed_from_double_int)
9360 (const_fixed_from_double_int): Adjust comments.
9362 2013-02-08 Richard Biener <rguenther@suse.de>
9365 * lto-streamer.h (struct data_in): Remove current_file, current_line
9366 and current_col members.
9367 * lto-streamer-out.c (lto_output_location): Stream changed bits
9368 en-block for efficiency.
9369 * lto-streamer-in.c (clear_line_info): Remove.
9370 (lto_input_location): Cache current file, line and column
9371 globally via local statics. Read changed bits en-block.
9372 (input_function): Do not call clear_line_info.
9373 (lto_read_body): Likewise.
9374 (lto_input_toplevel_asms): Likewise.
9376 2013-02-08 Michael Matz <matz@suse.de>
9378 PR tree-optimization/52448
9379 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9380 (nt_call_phase): New static.
9381 (add_or_mark_expr): Only mark accesses with newer phase than any
9383 (nonfreeing_call_p): New.
9384 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9385 (nt_fini_block): Keep blocks marked as visited.
9386 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9388 2013-02-08 Richard Biener <rguenther@suse.de>
9390 * ira.c (ira): Free broken dominator information.
9392 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9394 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9396 2013-02-08 Marek Polacek <polacek@redhat.com>
9398 * cfgloop.c (verify_loop_structure): Add more checking of headers.
9400 2013-02-08 Richard Biener <rguenther@suse.de>
9403 * cfgloop.h (flow_loops_find): Adjust.
9404 (bb_loop_header_p): Declare.
9405 * cfgloop.c (bb_loop_header_p): New function split out from ...
9406 (flow_loops_find): ... here. Adjust function signature,
9407 support incremental loop structure update.
9408 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9409 * cfgloopmanip.c (fix_loop_structure): Move ...
9410 * loop-init.c (fix_loop_structure): ... here.
9411 (apply_loop_flags): Split out from ...
9412 (loop_optimizer_init): ... here.
9413 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9414 in incremental mode, only remove dead loops here.
9416 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9419 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9420 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9421 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9422 (*round<mode>3.libgcc): New insns for fixed-modes.
9423 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9424 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9425 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9426 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9427 implementations. Define to __builtin_avr_absFX,
9428 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9429 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9430 __builtin_avr_countlsFX, respectively.
9431 * config/avr/avr-c.c (target.h): Include it.
9432 (enum avr_builtin_id): New enum.
9433 (avr_resolve_overloaded_builtin): New static function.
9434 (avr_register_target_pragmas): Use it to set
9435 targetm.resolve_overloaded_builtin.
9436 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9437 tree nodes used by DEF_BUILTIN.
9438 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9439 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9440 <AVR_BUILTIN_xxBITS>: Same.
9442 2013-02-08 Richard Biener <rguenther@suse.de>
9444 * cfgloop.c (verify_loop_structure): Properly handle
9445 a loop exiting to another loop header.
9446 * ira-int.h (ira_loops): Remove.
9447 * ira.c (ira_loops): Remove.
9448 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9449 (do_reload): Use loop_optimizer_finalize.
9450 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9451 number_of_loops to access the loop tree.
9452 (more_one_region_p): Likewise.
9453 (finish_loop_tree_nodes): Likewise.
9454 (rebuild_regno_allocno_maps): Likewise.
9455 (mark_loops_for_removal): Likewise.
9456 (mark_all_loops_for_removal): Likewise.
9457 (remove_unnecessary_regions): Likewise.
9458 (ira_build): Likewise.
9459 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9461 2013-02-08 Richard Biener <rguenther@suse.de>
9463 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9464 * ipa-pure-const.c (analyze_function): Avoid calling
9465 mark_irreducible_loops twice.
9466 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
9468 2013-02-07 David S. Miller <davem@davemloft.net>
9470 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9472 * var-tracking.c (vt_add_function_parameter): Test the presence of
9473 HAVE_window_save properly and do not remap argument registers when
9474 we have a leaf function.
9476 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
9479 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9481 * config/i386/i386.c (ix86_print_operand): Ditto.
9483 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9485 * lra-constraints.c (process_alt_operands): Fix recently added comment.
9487 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9489 PR rtl-optimization/56225
9490 * lra-constraints.c (process_alt_operands): Check that reload hard
9491 reg can hold value for strict_low_part.
9493 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9496 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9497 dwarf2out_end_function.
9498 (in_first_function_p, maybe_at_text_label_p,
9499 first_loclabel_num_not_at_text_label): New variables.
9500 (dwarf2out_var_location): In the first function find out
9501 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
9502 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9505 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9507 PR rtl-optimization/56178
9508 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9509 SUBREG of a register. Tidy up related block of code.
9510 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9511 note if the source is a register or a SUBREG of a register.
9513 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9516 * config/rs6000/rs6000.md (ptrm): New mode attr.
9517 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9518 call_value_indirect_aix<pttrsize>,
9519 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9522 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9524 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9525 if -bnortl. Convert to strcmp and strncmp.
9527 2013-02-07 Alan Modra <amodra@gmail.com>
9530 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9531 addresses won't wrap when offsetting.
9532 (rs6000_secondary_reload): Provide secondary reloads needed for
9533 wrapping LO_SUM addresses.
9535 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9537 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9538 MACH, just __MACH__.
9540 2013-02-06 Richard Biener <rguenther@suse.de>
9542 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9543 instead of calling fix_loop_structure.
9545 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9548 * omp-low.c (use_pointer_for_field): Return false if
9549 lower_send_shared_vars doesn't generate any copy-out code.
9551 2013-02-06 Tom de Vries <tom@codesourcery.com>
9553 PR rtl-optimization/56131
9554 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9555 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9556 of the label is NULL. Add comment.
9558 2013-02-05 Jakub Jelinek <jakub@redhat.com>
9560 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9563 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9564 (STATIC_LIBTSAN_LIBS): Likewise.
9565 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9566 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9567 is defined, don't add anything else beyond that.
9568 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9569 (LINK_COMMAND_SPEC): Use them.
9571 PR tree-optimization/56205
9572 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9573 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9574 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9576 2013-02-05 Richard Biener <rguenther@suse.de>
9578 PR tree-optimization/53342
9579 PR tree-optimization/53185
9580 * tree-vectorizer.h (vect_check_strided_load): Remove.
9581 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9582 not disallow peeling for vectorized strided loads.
9583 (vect_check_strided_load): Make static and simplify.
9584 (vect_analyze_data_refs): Adjust.
9585 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9586 correctly when vectorizing strided loads.
9588 2013-02-05 Richard Biener <rguenther@suse.de>
9590 * doc/install.texi: Refer to ISL, not PPL.
9592 2013-02-05 Jan Hubicka <jh@suse.cz>
9594 PR tree-optimization/55789
9595 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9597 2013-02-05 Jan Hubicka <jh@suse.cz>
9599 PR tree-optimization/55789
9600 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9601 the dead call anyway.
9603 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9606 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9608 2013-02-04 Alexander Potapenko <glider@google.com>
9609 Jack Howarth <howarth@bromo.med.uc.edu>
9610 Jakub Jelinek <jakub@redhat.com>
9613 * config/darwin.c (sort_ctor_records): Stabilized qsort
9614 on constructor priority by using original position.
9615 (finalize_ctors): New routine to sort constructors by
9616 priority before use in assemble_integer.
9617 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9619 2013-02-04 Jakub Jelinek <jakub@redhat.com>
9622 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9623 about visibility on artificial decls.
9624 * config/sol2.c (solaris_assemble_visibility): Likewise.
9626 2013-02-04 Kai Tietz <ktietz@redhat.com>
9629 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9630 argument and improve checking of return-argument types for 16-byte
9632 (ix86_function_value_1): Add additional valtype argument on call
9633 of function_value_64.
9634 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9635 handling infunction_value_64 function.
9637 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9639 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
9641 2013-02-04 Richard Biener <rguenther@suse.de>
9643 PR tree-optimization/56188
9644 * tree-ssa-structalias.c (label_visit): Consider case with
9645 initially non-empty points-to set.
9646 (perform_var_substitution): Dump node mapping and clean up.
9648 2013-02-04 Richard Guenther <rguenther@suse.de>
9651 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9652 node prevail as last resort.
9653 (lto_symtab_merge_decls): Remove guard on LTRANS here.
9654 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
9656 2013-02-04 Richard Biener <rguenther@suse.de>
9658 PR tree-optimization/56113
9659 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9661 (equiv_class_lookup_or_add): ... this.
9662 (label_visit): Adjust and fix error in previous patch.
9663 (perform_var_substitution): Adjust.
9665 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9667 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9668 * config/sh/sh4-300.md: Likewise.
9669 * config/sh/sh4a.md: Likewise.
9670 * config/sh/constraints.md: Likewise.
9671 * config/sh/sh.md: Likewise.
9672 * config/sh/netbsd-elf.h: Likewise.
9673 * config/sh/predicates.md: Likewise.
9674 * config/sh/sh-protos.h: Likewise.
9675 * config/sh/ushmedia.h: Likewise.
9676 * config/sh/linux.h: Likewise.
9677 * config/sh/sh.c: Likewise.
9678 * config/sh/superh.h: Likewise.
9679 * config/sh/elf.h: Likewise.
9680 * config/sh/sh4.md: Likewise.
9681 * config/sh/sh.h: Likewise.
9683 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9685 * config/pa/constraints.md: Adjust unused letters. Change "T"
9686 constraint to match_test floating_point_store_memory_operand().
9687 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9688 (base14_operand): New.
9689 (floating_point_store_memory_operand): New.
9690 (integer_store_memory_operand): Revise to use base14_operand and
9691 reg_plus_base_memory_operand.
9692 (move_dest_operand): Allow symbolic_memory_operands.
9693 (symbolic_memory_operand): Check for LO_SOM.
9694 (symbolic_operand): Change default case to break.
9695 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9696 CONST_DOUBLE values to be reloaded by putting them into memory when
9697 the destination is a floating point register.
9698 (movdf): Remove code to handle CONST_DOUBLE.
9700 (reload_indf_r1): New.
9701 (reload_insf_r1): New.
9702 Consistently use "Q" and "T" constraints with integer and floating
9703 point move instructions, respectively.
9704 (movdi): Remove FAIL.
9705 Change predicate for source operand unamed DImode move from
9706 general_operand to move_src_operand.
9707 (umulsidi3): Change predicate for destination operand to
9709 Likewise for similar unamed patterns.
9710 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9711 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9712 (hppa_legitimize_address): Simplify mask calculation.
9713 (pa_emit_move_sequence): Revised handling of secondary reloads from
9714 REG+D addresses for floating point loads and stores. Directly handle
9715 loading CONST0_RTX (mode) to a floating point register.
9716 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9717 to floating point registers. Don't restrict secondary reloads to
9718 floating point registers to integer modes. Revise some comments and
9720 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9721 (pa_legitimate_address_p): New.
9722 (pa_legitimize_reload_address): New.
9723 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9724 (STRICT_REG_OK_FOR_BASE_P): New.
9725 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9726 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9728 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
9729 Andrew Dixie <andrewd@gentrack.com>
9731 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9734 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9736 * expmed.c (extract_bit_field_1): Pass the full width of the
9737 structure to get_best_reg_extraction_insn.
9739 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
9742 * configure.ac (use_cxa_atexit): Add AIX.
9743 * configure: Regenerate.
9745 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9747 2013-02-01 Jakub Jelinek <jakub@redhat.com>
9750 * final.c (need_profile_function): New variable.
9751 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9752 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9753 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9754 notes, targetm.asm_out.function_prologue doesn't emit anything,
9755 HAVE_prologue and profiler should be emitted before prologue,
9756 set need_profile_function instead of emitting it.
9757 (final_scan_insn): If need_profile_function, emit
9758 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9759 NOTE_INSN_FUNCTION_BEG note.
9761 2013-02-01 Richard Henderson <rth@redhat.com>
9763 * config/rs6000/rs6000.md (smulditi3): New.
9766 * config/alpha/alpha.md (umulditi3): New.
9768 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
9770 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9771 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9773 2013-02-01 Richard Biener <rguenther@suse.de>
9775 PR tree-optimization/56113
9776 * tree-ssa-structalias.c (label_visit): Reduce work for
9777 single-predecessor nodes.
9779 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9781 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9782 range isn't testing for zero.
9784 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9787 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9789 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9790 Nick Clifton <nickc@redhat.com>
9792 * config/v850/constraints.md (Q): Define as a memory constraint.
9793 * config/v850/predicates.md (label_ref_operand): New predicate.
9794 (e3v5_shift_operand): New predicate.
9795 (ior_operator): New predicate.
9796 * config/v850/t-v850: Add e3v5 multilib.
9797 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9798 (v850_gen_movdi): Prototype.
9799 * config/v850/v850.c: Add support for e3v5 architecture.
9800 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9802 (construct_save_jarl): Add e3v5 long JARL support.
9803 (v850_adjust_insn_length): New function. Adjust length of call
9804 insns when using e3v5 instructions.
9805 (v850_gen_movdi): New function: Generate instructions to move a
9807 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9808 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9809 (TARGET_USE_FPU): Enable for e3v5.
9810 (CONST_OK_FOR_W): New macro.
9811 (ADJUST_INSN_LENGTH): Define.
9812 * config/v850/v850.md (UNSPEC_LOOP): Define.
9813 (attr cpu): Add v850e3v5.
9814 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9815 (movdi): New pattern.
9816 (movdi_internal): New pattern.
9817 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9818 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9819 (cstoresf4): Likewise.
9820 (cstoredf4): Likewise.
9821 (insv): New pattern.
9822 (rotlso3_a): New pattern.
9823 (rotlsi3_b): New pattern
9824 (rotlsi3_v850e3v5): New pattern.
9825 (doloop_begin): New pattern.
9826 (fix_loop_counter): New pattern.
9827 (doloop_end): New pattern.
9828 (branch_normal): Add e3v5 long branch support.
9829 (branch_invert): Likewise.
9830 (branch_z_normal): Likewise.
9831 (branch_z_invert): Likewise.
9832 (branch_nz_normal): Likewise.
9833 (branch_nz_invert): Likewise.
9834 (call_internal_short): Add e3v5 register-indirect JARL support.
9835 (call_internal_long): Likewise.
9836 (call_value_internal_short): Likewise.
9837 (call_value_internal_long): Likewise.
9838 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9839 (mloop): New option.
9840 * config.gcc: Add support for configuring v840e3v5 target.
9841 * doc/invoke.texi: Document new v850 specific command line options.
9843 2013-01-31 Paul Koning <ni1d@arrl.net>
9847 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9848 children if parent is a class.
9849 (prune_unused_types_prune): Don't add DW_AT_declaration.
9851 2013-01-31 Richard Biener <rguenther@suse.de>
9853 PR tree-optimization/56157
9854 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9855 match up operand with SLP child.
9857 2013-01-31 Jason Merrill <jason@redhat.com>
9860 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9861 parameters the first time.
9862 (gen_scheduled_generic_parms_dies): Check completeness here.
9864 2013-01-31 Richard Biener <rguenther@suse.de>
9867 * common.opt (faggressive-loop-optimizations): New flag,
9869 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9870 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9871 infer_loop_bounds_from_undefined by it.
9873 2013-01-31 Richard Biener <rguenther@suse.de>
9875 PR tree-optimization/56150
9876 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9877 visit virtual operands.
9878 (find_uses_to_rename_bb): Likewise.
9880 2013-01-31 Richard Biener <rguenther@suse.de>
9882 PR tree-optimization/56150
9883 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9884 mixed store non-store stmts.
9886 2013-01-30 Jakub Jelinek <jakub@redhat.com>
9889 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9890 LIBASAN_EARLY_SPEC is defined.
9891 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9892 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9894 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9897 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9898 invalid args instead of ICEing on it.
9899 (ix86_valid_target_attribute_tree): Return error_mark_node if
9900 ix86_valid_target_attribute_inner_p failed.
9901 (ix86_valid_target_attribute_p): Return false only if
9902 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9903 target("default") attribute.
9904 (sorted_attr_string): Change argument from const char * to tree,
9905 merge in all target attribute arguments rather than just one.
9906 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9907 instead of free. Avoid using strcat.
9908 (ix86_mangle_function_version_assembler_name): Mangle
9909 target("default") as if no target attribute is present. Adjust
9910 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9911 instead of xmalloc and XDELETEVEC instead of free.
9912 (ix86_function_versions): Don't return true if one of the decls
9913 doesn't have target attribute. If they don't and one of the decls
9914 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9915 sorted_attr_string caller. Use XDELETEVEC instead of free.
9916 (ix86_supports_function_versions): Remove.
9917 (make_name): Fix up formatting.
9918 (make_dispatcher_decl): Remove resolver_name and its initialization.
9919 Avoid leaking memory.
9920 (is_function_default_version): Return true if there is
9921 target("default") attribute rather than no target attribute at all.
9922 (make_resolver_func): Avoid leaking memory.
9923 (ix86_generate_version_dispatcher_body): Likewise.
9924 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9925 * target.def (supports_function_versions): Remove.
9926 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9927 * doc/tm.texi: Regenerated.
9929 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9931 PR rtl-optimization/56144
9932 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9933 for values with side effects.
9935 2013-01-30 Richard Biener <rguenther@suse.de>
9937 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9938 (sparseset_pop): Likewise.
9939 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9940 to be able to use quick_push in the worker loop.
9942 2013-01-30 Marek Polacek <polacek@redhat.com>
9944 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9946 2013-01-30 Richard Biener <rguenther@suse.de>
9949 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
9951 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
9953 PR tree-optimization/56064
9954 * fixed-value.c (fixed_from_double_int): New function.
9955 * fixed-value.h (fixed_from_double_int): New prototype.
9956 (const_fixed_from_double_int): New static inline function.
9957 * fold-const.c (native_interpret_fixed): New static function.
9958 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9959 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9960 (native_encode_fixed): New static function.
9961 (native_encode_expr) <FIXED_CST>: Use it.
9962 (native_interpret_int): Move double_int worker code to...
9963 * double-int.c (double_int::from_buffer): ...this new static method.
9964 * double-int.h (double_int::from_buffer): Prototype it.
9966 2013-01-30 Richard Biener <rguenther@suse.de>
9968 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9969 New pointer-map and obstack.
9970 (init_alias_vars): Allocate pointer-map and obstack.
9971 (delete_points_to_sets): Free them.
9972 (find_what_var_points_to): Cache result.
9973 (find_what_p_points_to): Adjust for changed interface of
9974 find_what_var_points_to.
9975 (compute_points_to_sets): Likewise.
9976 (ipa_pta_execute): Likewise.
9978 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9980 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9981 * configure: Regenerate.
9982 * config.in: Regenerate.
9983 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9984 #nobits/#progbits if supported.
9986 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9989 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9990 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9991 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9993 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9995 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9996 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
9998 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10000 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10001 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
10003 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10005 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10007 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10008 * config/arm/cortex-a7.md: New bypasses using
10009 arm_mac_accumulator_is_result.
10011 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10013 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
10014 (cortex_a7_neon_mla): Likewise.
10015 (cortex_a7_fpfmad): New reservation.
10016 (cortex_a7_fpmacs): Use ffmas and update required units.
10017 (cortex_a7_fpmuld): Update required units and latency.
10018 (cortex_a7_fpmacd): Likewise.
10019 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10020 (cortex_a7_neon). Likewise.
10021 (bypass) Update participating units.
10023 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10025 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10026 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10028 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10029 (vfp_fmul): Use ffmad.
10030 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10031 (cortex_r4_fmacd): Use ffmad.
10032 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10033 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10034 (cortex_a9_fmacd): Use ffmad.
10035 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10036 (cortex_a8_vfp_macd): Use ffmad.
10037 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10038 (cortex_a5_fpmacd): Use ffmad.
10039 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10040 (cortex_a15_vfp_macd): Use ffmad.
10041 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
10043 2013-01-29 Jason Merrill <jason@redhat.com>
10046 * varasm.c (default_assemble_visibility): Don't warn about
10047 visibility on artificial decls.
10049 2013-01-29 Richard Biener <rguenther@suse.de>
10051 PR tree-optimization/56113
10052 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10054 (label_visit): Free duplicate bitmaps and record the leader instead.
10055 (perform_var_substitution): Adjust.
10057 2013-01-29 Richard Biener <rguenther@suse.de>
10059 PR tree-optimization/55270
10060 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10061 the CFG, schedule loops for fixup.
10063 2013-01-29 Nick Clifton <nickc@redhat.com>
10065 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10068 2013-01-28 Leif Ekblad <leif@rdos.net>
10070 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10071 * config/i386/i386.h (TARGET_RDOS): New macro.
10072 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10073 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10074 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10075 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10076 DEFAULT_LARGE_SECTION_THRESHOLD.
10077 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10078 * config/i386/rdos.h: New file.
10079 * config/i386/rdos64.h: New file.
10081 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10084 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10087 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10089 PR rtl-optimization/56117
10090 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10091 call cselib_lookup_from_insn on the MEM before calling
10092 add_insn_mem_dependence.
10094 2013-01-28 Richard Biener <rguenther@suse.de>
10096 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10097 to a stmt that didn't have one.
10098 (copy_phis_for_bb): Likewise for PHI arguments.
10099 (copy_debug_stmt): Likewise for debug stmts.
10101 2013-01-28 Richard Biener <rguenther@suse.de>
10103 PR tree-optimization/56034
10104 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
10105 (partition_builtin_p): Adjust.
10106 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10107 it is the last partition.
10108 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10109 up the vertex for the definition.
10110 (classify_partition): Classify whether a partition is a
10111 PKIND_REDUCTION, thus has uses outside of the loop.
10112 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10113 Merge all PKIND_REDUCTION partitions into the last partition.
10114 (tree_loop_distribution): Seed partitions from reductions as well.
10116 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10118 PR tree-optimization/56125
10119 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10120 pow(x,c) into sqrt(x) * powi(x, n/2) or
10121 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10122 optimizing for size.
10123 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10124 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10127 PR tree-optimization/56094
10128 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10129 to UNKNOWN_LOCATION while gimplifying expr.
10131 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
10134 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10135 operand 0 in movabs insn template for -masm=intel asm alternative.
10136 (*movabs<mode>_2): Ditto for operand 1.
10138 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
10141 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10144 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10146 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10149 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10151 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10152 Undef to avoid warning.
10154 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10156 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10157 * configure: Regenerate.
10159 2013-01-25 Jakub Jelinek <jakub@redhat.com>
10161 PR tree-optimization/56098
10162 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10163 for stmts with volatile ops.
10164 (cond_store_replacement): Don't optimize if assign has volatile ops.
10165 (cond_if_else_store_replacement_1): Don't optimize if either
10166 then_assign or else_assign have volatile ops.
10167 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10170 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10172 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10174 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10176 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10177 missing ':' in asm example.
10179 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10181 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10182 entries into lane and laneq entries.
10183 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10184 Remove AdvSIMD scalar modes.
10185 (aarch64_sq<r>dmulh_laneq<mode>): New.
10186 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10188 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10189 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10190 * config/aarch64/iterators.md (VCOND): New.
10193 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10196 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10197 Add NULL LIBNAME argument to existing definitions.
10198 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10199 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10200 * config/avr/avr.c (DEF_BUILTIN): Same.
10201 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10202 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10203 implementation is available (DECL_ASSEMBLER_NAME is set).
10204 (avr_fold_absfx): New static function.
10205 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10206 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10207 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10208 AVR_BUILTIN_ABSLLK.
10209 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10210 (abshk, absk, abslk, absllk): Provide as static inline functions.
10212 2013-01-25 Marek Polacek <polacek@redhat.com>
10214 PR tree-optimization/56035
10215 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10217 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
10219 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10220 (*movtf_internal_rex64): Add (!o,C) alternative
10221 (*movxf_internal_rex64): Ditto.
10222 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10224 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
10226 * doc/invoke.texi: fix typo.
10227 * doc/objc.texi: fix typo.
10229 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10231 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10232 for the first two alternatives.
10234 2013-01-24 Diego Novillo <dnovillo@google.com>
10236 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
10237 (ggc-zone.o): Remove.
10238 * configure.ac: Remove option --with-gc.
10239 * configure: Re-generate.
10240 * doc/install.texi: Remove documentation for --with-gc.
10241 * gengtype.c (write_enum_defn): Remove. Update all users.
10242 (write_Types_process_field): Remove generation of gt_e_* argument.
10243 (output_type_enum): Remove. Update all users.
10244 (write_enum_defn): Remove. Update all users.
10245 (enum alloc_zone): Remove. Update all users.
10246 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
10247 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10248 Update all callers.
10249 (struct ptr_data): Remove field TYPE. Update all users.
10250 (gt_pch_note_object): Remove argument TYPE. Update all users.
10251 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10253 * ggc-none.c (ggc_alloc_typed_stat): Remove.
10254 (struct alloc_zone): Remove.
10255 (ggc_internal_alloc_zone_stat): Remove.
10256 (ggc_internal_cleared_alloc_zone_stat): Remove.
10257 * ggc-page.c (ggc_alloc_typed_stat): Remove.
10258 (ggc_pch_count_object): Remove last argument. Update all users.
10259 (ggc_pch_alloc_object): Remove last argument. Update all users.
10260 (struct alloc_zone): Remove.
10261 * ggc-zone.c: Remove.
10262 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
10263 (struct alloc_zone): Remove.
10264 (ggc_alloc_typed_stat): Remove.
10265 (ggc_alloc_typed): Remove.
10266 (ggc_splay_alloc): Remove first argument.
10267 (rtl_zone): Remove. Update all users.
10268 (tree_zone): Remove. Update all users.
10269 (tree_id_zone): Remove. Update all users.
10270 (ggc_internal_zone_alloc_stat): Remove. Update all users.
10271 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
10272 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
10273 * tree-ssanames.c: Remove references to zone allocator in comments.
10275 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
10277 * config/avr/avr.c (avr_out_fract): Make register numbers that
10278 might be outside of source operand signed.
10280 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
10282 * config/i386/constraints.md (Yf): New constraint.
10283 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10284 of f constraint to conditionaly disable x87 register preferences.
10285 (*movdf_internal): Ditto.
10286 (*movsf_internal): Ditto.
10288 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10290 PR inline-asm/55934
10291 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10292 that have operands with impossible constraints.
10293 Add a FIXME for a speed-up opportunity.
10294 * lra-constraints.c (process_alt_operands): Verify that a class
10295 selected from constraints on asms is valid for the operand mode.
10296 (curr_insn_transform): Remove incorrect comment.
10298 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
10300 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10301 TOC operand is a valid symbol ref in the constant pool.
10303 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10305 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
10307 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
10310 * config/avr/stdfix.h: New file.
10311 * t-avr (stdfix-gcc.h): New rule to build it.
10312 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10314 2013-01-23 Kostya Serebryany <kcc@google.com>
10316 * config/darwin.h: remove dependency on
10317 CoreFoundation (asan on Mac OS).
10319 2013-01-23 Jakub Jelinek <jakub@redhat.com>
10322 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10323 instead of cmpdi_operand for first comparison operand.
10324 Don't assert that comparison operands aren't both constants.
10326 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10328 * doc/install.texi (Downloading the Source): Update references to
10329 downloading separate components.
10331 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10333 * doc/extend.texi (__int128): Improve grammar.
10335 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
10338 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10339 alternative to (o,r).
10340 (*movdi_internal_rex64): Remove (!o,n) alternative.
10341 (DImode immediate->memory splitter): Remove.
10342 (DImode immediate->memory peephole2): Remove.
10343 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10344 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10345 alternative to (!o,*r).
10346 (*movtf_internal_sse): New pattern.
10347 (*movxf_internal_rex64): New pattern.
10348 (*movxf_internal): Disable for TARGET_64BIT.
10349 (*movdf_internal_rex64): Remove (!o,F) alternative.
10351 2013-01-22 Jakub Jelinek <jakub@redhat.com>
10353 PR middle-end/56074
10354 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10355 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10356 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10357 stmt locations where LOCATION_LOCUS of the stmt location is
10358 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10361 * config/i386/i386.md (UNSPEC_STOS): New.
10362 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10363 *strsetqi_1): Add UNSPEC_STOS.
10365 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10368 * doc/invoke.texi: Remove left over -Wsynth example.
10370 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10372 PR tree-optimization/56051
10373 * fold-const.c (fold_binary_loc): Don't fold
10374 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10375 a narrowing conversion, or widening conversion from signed
10378 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10380 PR rtl-optimization/56023
10381 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10382 dependent on debug instruction.
10384 2013-01-21 Martin Jambor <mjambor@suse.cz>
10386 PR middle-end/56022
10387 * function.c (allocate_struct_function): Call
10388 invoke_set_current_function_hook earlier.
10390 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10392 * reload1.c (init_reload): Only initialize reload_obstack
10393 during the first call.
10395 2013-01-21 Marek Polacek <polacek@redhat.com>
10397 * cfgloop.c (verify_loop_structure): Fix up grammar.
10399 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10401 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10402 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10404 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10407 * config/arm/marvell-pj4.md: Update copyright year.
10408 Fix up use of alu to alu_reg and simple_alu_imm.
10410 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10412 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10414 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10417 * lra-constraints.c (curr_insn_transform): Don't reuse original
10418 insn for secondary memory move when memory mode should be different.
10420 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10422 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10423 atomic_storedi_1): New patterns.
10425 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10427 btver2 pipeline descriptions.
10428 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10430 * config/i386/i386.md (btver2_decode): New type attributes.
10431 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
10433 * config/i386/btver2.md: New file describing btver2 pipelines.
10435 2013-01-19 Andrew Pinski <apinski@cavium.com>
10437 PR tree-optimization/52631
10438 * tree-ssa-sccvn (visit_use): Before looking up the original
10439 statement, try looking up the simplified expression.
10441 2013-01-19 Anthony Green <green@moxielogic.com>
10443 * config/moxie/moxie.c (moxie_expand_prologue): Set
10444 current_function_static_stack_size.
10446 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10448 PR tree-optimization/56029
10449 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10450 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10452 2013-01-18 Sharad Singhai <singhai@google.com>
10454 PR tree-optimization/55995
10455 * dumpfile.c (dump_loc): Print location only if available.
10456 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10458 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10461 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10462 secondary memory move.
10463 (inherit_reload_reg): Use rclass instead of cl for
10464 check_secondary_memory_needed_p.
10466 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10468 PR middle-end/56015
10469 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
10470 the case where writing real complex part of target modifies op1.
10472 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10474 * config/aarch64/aarch64-simd.md
10475 (aarch64_vcond_internal<mode>): Handle unordered cases.
10476 * config/aarch64/iterators.md (v_cmp_result): New.
10478 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10479 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10481 * config/arm/marvell-pj4.md: New file.
10482 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10483 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10484 (generic_vfp): Likewise.
10485 * config/arm/arm-cores.def: Add marvell-pj4.
10486 * config/arm/arm-tune.md: Regenerate.
10487 * config/arm/arm-tables.opt: Regenerate.
10488 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10489 * doc/invoke.texi: Document marvell-pj4.
10491 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10493 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10495 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10500 * var-tracking.c (negative_power_of_two_p): New.
10501 (global_get_addr_cache, local_get_addr_cache): New.
10502 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10503 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10505 (vt_stack_offset_p): Remove.
10506 (vt_canon_true_dep): Always canonicalize loc's address.
10507 (clobber_overlapping_mems): Make sure we have a MEM.
10508 (local_get_addr_clear_given_value): New.
10509 (val_reset): Clear local cached entries.
10510 (compute_bb_dataflow): Create and release the local cache.
10511 Disable duplicate MEMs clobbering.
10512 (emit_notes_in_bb): Clobber MEMs likewise.
10513 (vt_emit_notes): Create and release the local cache.
10514 (vt_initialize, vt_finalize): Create and release the global
10515 cache, respectively.
10516 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
10518 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10520 PR libmudflap/53359
10521 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10522 not found in the symtab.
10524 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10527 PR rtl-optimization/55547
10528 PR rtl-optimization/53827
10531 * alias.c (offset_overlap_p): New, factored out of...
10532 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10533 the conservative special case for symbolic constants. Don't
10534 adjust zero sizes on alignment.
10536 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10538 PR rtl-optimization/52573
10539 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10540 REG_UNUSED for the same register.
10542 2013-01-17 Richard Biener <rguenther@suse.de>
10543 Marek Polacek <polacek@redhat.com>
10545 PR rtl-optimization/55833
10546 * loop-unswitch.c (unswitch_loops): Move loop verification...
10547 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10548 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10549 Set it to true when we're removing a loop from hierarchy tree in
10550 an irreducible region.
10551 (fix_bb_placements): Adjust caller.
10552 (fix_loop_placements): Likewise.
10554 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
10556 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10557 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10558 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10559 Remove ID. Adjust comments.
10560 * config/avr/avr-c.c (avr_builtin_name): Remove.
10561 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10562 * config/avr/avr.c (avr_tolower): New static function.
10563 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10564 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10565 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10568 2013-01-17 Jan Hubicka <jh@suse.cz>
10570 PR tree-optimization/55273
10571 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10573 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
10576 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10577 store through atomic_store<mode>_1.
10578 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10580 2013-01-17 Martin Jambor <mjambor@suse.cz>
10582 PR tree-optimizations/55264
10583 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10584 for virtual methods.
10585 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10586 virtual methods before inlining is over.
10587 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10589 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10592 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10594 PR rtl-optimization/56005
10595 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10596 pending reads for prefetch.
10598 2013-01-16 Ian Bolton <ian.bolton@arm.com>
10600 * config/aarch64/aarch64.md
10601 (*cstoresi_neg_uxtw): New pattern.
10602 (*cmovsi_insn_uxtw): New pattern.
10603 (*<optab>si3_uxtw): New pattern.
10604 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10605 (*<optab>si3_insn_uxtw): New pattern.
10606 (*bswapsi2_uxtw): New pattern.
10608 2013-01-16 Richard Biener <rguenther@suse.de>
10610 * tree-inline.c (tree_function_versioning): Remove set but
10611 never used variable.
10613 2013-01-16 Richard Biener <rguenther@suse.de>
10615 PR tree-optimization/55964
10616 * tree-flow.h (rename_variables_in_loop): Remove.
10617 (rename_variables_in_bb): Likewise.
10618 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10619 (copy_loop_before): Adjust and delete update-ssa status.
10620 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
10621 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
10622 (rename_variables_in_loop): Remove.
10623 (slpeel_update_phis_for_duplicate_loop): Likewise.
10624 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10625 use available cfg machinery instead of duplicating it.
10626 Update PHI nodes and perform poor-mans SSA update here.
10627 (slpeel_tree_peel_loop_to_edge): Adjust.
10629 2013-01-16 Richard Biener <rguenther@suse.de>
10631 PR tree-optimization/54767
10632 PR tree-optimization/53465
10633 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10634 (vrp_visit_phi_node): For PHI arguments coming via backedges
10635 drop all symbolical range information.
10636 (execute_vrp): Compute backedges.
10638 2013-01-16 Richard Biener <rguenther@suse.de>
10640 * doc/install.texi: Update CLooG and ISL requirements to
10643 2013-01-16 Christian Bruel <christian.bruel@st.com>
10646 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10647 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10648 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10650 2013-01-16 DJ Delorie <dj@redhat.com>
10652 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10653 (UNSPECV_SP_SWITCH_E): New.
10654 (sp_switch_1): Change to an unspec.
10655 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10658 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
10660 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10661 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10662 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10663 (expand_mem_thread_fence): Ditto.
10664 (expand_mem_signal_fence): Ditto.
10665 (expand_atomic_load): Ditto.
10666 (expand_atomic_store): Ditto.
10668 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
10670 PR rtl-optimization/55547
10671 PR rtl-optimization/53827
10674 * alias.c (memrefs_conflict_p): Set sizes to negative after
10677 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10680 * function.c (thread_prologue_and_epilogue_insns): Always
10681 add crtl->drap_reg to set_up_by_prologue.set, even if
10682 stack_realign_drap is false.
10684 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10686 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10687 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10688 *call): Fix indention.
10690 2013-01-15 Tom de Vries <tom@codesourcery.com>
10693 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10696 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10698 PR rtl-optimization/55153
10699 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10701 2013-01-15 Martin Jambor <mjambor@suse.cz>
10703 PR tree-optimization/55920
10704 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10705 accesses as grp_to_be_debug_replaced.
10707 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10709 PR tree-optimization/55920
10710 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10711 there is non-useless type conversion needed from debug rhs to lhs,
10712 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10714 2013-01-15 Joseph Myers <joseph@codesourcery.com>
10715 Mikael Pettersson <mikpe@it.uu.se>
10718 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10720 (ASM_OUTPUT_CASE_LABEL): Remove.
10721 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10722 * final.c (shorten_branches): Update alignment of labels before
10723 jump tables if CASE_VECTOR_SHORTEN_MODE.
10725 2013-01-15 Richard Biener <rguenther@suse.de>
10728 * system.h: Do not include gmp.h for building host tools.
10730 2013-01-15 Richard Biener <rguenther@suse.de>
10732 PR middle-end/55882
10733 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10734 account for bitpos when computing alignment.
10736 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10738 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10739 (ix86_target_macros_internal): Likewise.
10741 * config/i386/i386.c (m_CORE2I7): Removed.
10742 (m_CORE_HASWELL): New macro.
10743 (m_CORE_ALL): Likewise.
10744 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10745 (initial_ix86_arch_features): Likewise.
10746 (processor_target_table): Initializations for Core avx2.
10747 (cpu_names): New names "core-avx2".
10748 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10749 PROCESSOR_CORE_HASWELL.
10750 (ix86_issue_rate): New case.
10751 (ia32_multipass_dfa_lookahead): Likewise.
10752 (ix86_sched_init_global): Likewise.
10754 * config/i386/i386.h (TARGET_HASWELL): New macro.
10755 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10756 (processor_type): New PROCESSOR_HASWELL.
10758 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10760 PR tree-optimization/55955
10761 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10762 *SHIFT_EXPR and *ROTATE_EXPR codes.
10764 PR tree-optimization/48766
10765 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10766 -ftrapv disable -fwrapv.
10768 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10771 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10772 etc. to 1 and not to __flash.
10773 Use LL suffix for __INT24_MAX__ with -mint8.
10774 Use ULL suffix for __UINT24_MAX__ with -mint8.
10776 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10778 * config/avr/avr-arch.h
10779 (struct base_arch_s): Use typedef avr_arch_t instead.
10780 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10781 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10782 * config/avr/avr.c: Same.
10783 * config/avr/avr-devices.c: Same.
10784 * config/avr/driver-avr.c: Same.
10785 * config/avr/gen-avr-mmcu-texi.c: Same.
10786 * config/avr/avr-mcus.def: Adjust comment.
10788 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10790 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10791 * config/aarch64/iterators.md (VALLDI): New.
10793 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
10794 Andi Kleen <ak@linux.intel.com>
10797 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10798 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10801 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10803 * config/avr/avr-stdint.h: Remove trailing blanks.
10804 * config/avr/avr-log.h: Same.
10805 * config/avr/avr-arch.h: Same.
10806 * config/avr/avr-devices.c: Same.
10807 * config/avr/avr-dimode.md: Same.
10808 * config/avr/predicates.md: Same.
10809 * config/avr/avr-c.c: Same. And fix typo.
10811 * config/avr/avr-protos.h: Same. And:
10812 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10813 (init_cumulative_args): Rename to avr_init_cumulative_args.
10814 (expand_prologue): Rename to avr_expand_prologue.
10815 (expand_epilogue): Rename to avr_expand_epilogue.
10816 (adjust_insn_length): Rename to avr_adjust_insn_length.
10817 (notice_update_cc): Rename to avr_notice_update_cc.
10818 (final_prescan_insn): Rename to avr_final_prescan_insn.
10819 * config/avr/avr.c: Same.
10820 * config/avr/avr.h: Same.
10821 * config/avr/avr.md: Remove trailing blanks.
10822 (prologue): Use avr_expand_prologue.
10823 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10825 2013-01-14 Richard Biener <rguenther@suse.de>
10827 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10828 verify_location, collect_subblocks): New functions.
10829 (verify_gimple_in_cfg): Verify that locations only reference
10830 BLOCKs in the functions BLOCK tree.
10832 2013-01-14 Richard Biener <rguenther@suse.de>
10834 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10836 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10838 (insert_out_of_ssa_copy_on_edge): Likewise.
10839 (rewrite_close_phi_out_of_ssa): Likewise.
10840 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10842 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10843 propagated constants.
10844 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10847 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10849 * config/avr/avr-modes.def: Add GPL copyright notice.
10851 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
10853 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10854 MEMMODEL_MASK to determine memory model.
10855 (atomic_store<mode>): Ditto from operands[2].
10856 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10858 2013-01-13 Jakub Jelinek <jakub@redhat.com>
10861 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
10862 (fold_gimple_assign): Don't call unshare_expr here.
10863 (fold_ctor_reference): Call unshare_expr.
10865 2013-01-13 Terry Guo <terry.guo@arm.com>
10867 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10868 * doc/fragments.texi: Document MULTILIB_REUSE.
10869 * gcc.c (multilib_reuse): New internal spec.
10870 (set_multilib_dir): Also search multilib from multilib_reuse.
10871 * genmultilib (tmpmultilib3): Refactor code.
10872 (tmpmultilib4): Ditto.
10873 (multilib_reuse): New multilib argument.
10875 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10877 * Makefile.in: Update copyright.
10879 2013-01-12 Tom de Vries <tom@codesourcery.com>
10881 PR middle-end/55890
10882 * calls.c (expand_call): Check if arg_nr is valid.
10884 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10886 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10887 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
10888 documentation. Add missing '__' in front of
10889 __builtin_ia32_packssdw256.
10891 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10894 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10895 NO_REGS for larl operands.
10896 (s390_reload_larl_operand): Use s390_load_address instead of
10899 2013-01-11 Richard Biener <rguenther@suse.de>
10901 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10902 (verify_node_sharing): ... here.
10903 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10905 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10907 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10908 Substitute TREECHECKING.
10909 * configure: Regenerate.
10910 * Makefile.in (TREECHECKING): New.
10912 2013-01-11 Richard Guenther <rguenther@suse.de>
10914 PR tree-optimization/44061
10915 * tree-vrp.c (extract_range_basic): Compute zero as
10916 value-range for __builtin_constant_p of function parameters.
10918 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10920 Update copyright years.
10922 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10924 PR rtl-optimization/55672
10925 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10926 const to be eliminable.
10928 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
10930 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10931 * configure: Regenerate.
10933 2013-01-10 Richard Biener <rguenther@suse.de>
10935 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
10937 2013-01-10 Richard Biener <rguenther@suse.de>
10940 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10941 locations for virtual PHI arguments.
10942 (rewrite_update_phi_arguments): Likewise.
10944 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10946 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10949 2013-01-10 Jakub Jelinek <jakub@redhat.com>
10951 PR tree-optimization/55921
10952 * tree-complex.c (expand_complex_asm): New function.
10953 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10955 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10958 * config/s390/s390.c (s390_symref_operand_p)
10959 (s390_loadrelative_operand_p): Merge the two functions.
10960 (s390_check_qrst_address, print_operand_address): Add parameters
10961 to s390_loadrelative_operand_p invokation.
10962 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10963 (s390_reload_larl_operand, s390_secondary_reload): Use
10964 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10965 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10967 2013-01-09 Mike Stump <mikestump@comcast.net>
10969 * dse.c (record_store): Remove unnecessary assert.
10971 2013-01-09 Jan Hubicka <jh@suse.cz>
10973 PR tree-optimization/55569
10974 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10975 * cfgloop.h (scale_loop_profile): Likewise.
10977 2013-01-09 Jan Hubicka <jh@suse.cz>
10980 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10982 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10984 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10986 PR middle-end/55114
10987 * expr.h (maybe_emit_group_store): Declare.
10988 * expr.c (maybe_emit_group_store): New function.
10989 * builtins.c (expand_builtin_int_roundingfn): Call it.
10990 (expand_builtin_int_roundingfn_2): Likewise.
10992 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10994 PR rtl-optimization/55829
10995 * lra-constraints.c (match_reload): Add code for absent output.
10996 (curr_insn_transform): Add code for reloads of matched inputs
10999 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
11001 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11002 attribute of movddup insn to DF.
11003 (*vec_interleave_lowv2df): Ditto.
11004 (vec_dupv2df): Ditto.
11006 2013-01-09 Jan Hubicka <jh@suse.cz>
11008 PR tree-optimiation/55875
11009 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11010 EVERY_ITERATION parameter.
11011 (number_of_iterations_exit): Check if exit is executed every iteration.
11012 (idx_infer_loop_bounds): Similarly here.
11013 (n_of_executions_at_most): Simplify
11014 to only test for cases where statement is dominated by the
11015 particular bound; handle correctly the "postdominance" test.
11016 (scev_probably_wraps_p): Use max loop iterations info
11017 as a global bound first.
11019 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
11020 Nick Clifton <nickc@redhat.com>
11022 * config/v850/v850.md (cbranchsf4): New pattern.
11023 (cstoresf4): New pattern.
11024 (cbranchdf4): New pattern.
11025 (cstoredf4): New pattern.
11026 (movsicc): Disallow floating point comparisons.
11027 (cmpsf_le_insn): Fix order of operators.
11028 (cmpsf_lt_insn): Likewise.
11029 (cmpsf_eq_insn): Likewise.
11030 (cmpdf_le_insn): Likewise.
11031 (cmpdf_lt_insn): Likewise.
11032 (cmpdf_eq_insn): Likewise.
11033 (cmpsf_ge_insn): Use LE comparison.
11034 (cmpdf_ge_insn): Likewise.
11035 (cmpsf_gt_insn): Use LT comparison.
11036 (cmpdf_gt_insn): Likewise.
11037 (cmpsf_ne_insn): Delete pattern.
11038 (cmpdf_ne_insn): Delete pattern.
11039 * config/v850/v850.c (v850_gen_float_compare): Use
11040 gen_cmpdf_eq_insn for NE comparison.
11041 (v850_float_z_comparison_operator)
11042 (v850_float_nz_comparison_operator): Move from here ...
11043 * config/v850/predicates.md: ... to here. Move GT and GE
11044 comparisons into v850_float_z_comparison_operator.
11045 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11047 (v850_float_nz_comparison_operator): Likewise.
11049 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11051 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11052 with calls to gen_insvsi/gen_insvdi.
11054 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11056 * config/i386/i386.c (initial_ix86_tune_features): Set up
11057 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11059 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11060 Jakub Jelinek <jakub@redhat.com>
11062 PR tree-optimization/48189
11063 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11064 If nitercst is 0, don't predict the exit edge.
11066 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11068 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11069 in asm_fprintf with reg_names.
11070 (aarch64_print_operand_address): Likewise.
11071 (aarch64_return_addr): Likewise.
11072 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11074 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11076 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11077 (INT_U6_BITS): Likewise.
11078 * config/pa/predicates.md (uint6_operand): New predicate.
11079 (shift5_operand, shift6_operand): Likewise.
11080 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11082 (lshrdi3): Use shift6_operand.
11083 (shrpsi4, shrpdi4): New insn patterns.
11084 (extzv): Delete expander.
11085 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11086 predicates in unamed zero extract patterns. Tighten common constraint.
11087 (extv): Delete expander.
11088 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11089 predicates in unamed sign extract patterns. Tighten common constraint.
11090 (insv): Delete expander.
11091 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11092 predicates in unamed insert patterns. Tighten common constraint.
11093 Change uint32_operand predicate to uint6_operand predicate in unamed
11094 DImode pattern to insert constant values of type 1...1xxxx.
11096 2013-01-04 Jan Hubicka <jh@suse.cz>
11098 PR tree-optimization/55823
11099 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11102 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11103 Uros Bizjak <ubizjak@gmail.com>
11105 PR rtl-optimization/55845
11106 * df-problems.c (can_move_insns_across): Stop scanning at
11107 volatile_insn_p source instruction or give up if
11108 across_from .. across_to range contains any volatile_insn_p
11111 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11113 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11114 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11116 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
11117 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
11119 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11122 * asan.c (asan_clear_shadow): New function.
11123 (asan_emit_stack_protection): Use it.
11125 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11127 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11128 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11129 with tab instead of space.
11131 2013-01-08 Nick Clifton <nickc@redhat.com>
11133 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11134 register bank 0 at the start of an interrupt handler.
11135 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11138 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11140 * config/aarch64/aarch64-simd.md
11141 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11142 (aarch64_simd_bsl): Likewise.
11143 (aarch64_vcond_internal<mode>): Likewise.
11144 (vcond<mode><mode>): Likewise.
11145 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11146 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11148 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11150 * config/aarch64/aarch64-builtins.c
11151 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11153 2013-01-08 Martin Jambor <mjambor@suse.cz>
11156 * tree-sra.c (analyze_access_subtree): Return true also after
11157 potentially creating a debug-only replacement.
11159 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11161 PR middle-end/55890
11162 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11164 PR tree-optimization/54120
11165 * tree-vrp.c (range_fits_type_p): Don't allow
11166 src_precision < precision from signed vr to unsigned_p
11167 if vr->min or vr->max is negative.
11168 (simplify_float_conversion_using_ranges): Test can_float_p
11169 against CODE_FOR_nothing.
11171 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11172 Richard Biener <rguenther@suse.de>
11174 PR middle-end/55851
11175 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11176 types instead of just INTEGER_TYPE types.
11178 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
11180 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11183 2013-01-07 Steve Ellcey <sellcey@mips.com>
11186 * config/mips/mips.opt: Change mad to mmad to match documentation.
11188 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11191 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11192 .progmemx.data now.
11194 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11197 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11198 (avr_addrspace_t): Add .section_name field.
11199 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11201 (avr_addrspace): Same. Initialize .section_name. Remove last
11202 NULL entry. Put __memx into .progmemx.data.
11203 (progmem_section_prefix): Remove.
11204 (avr_asm_init_sections): No need to initialize progmem_section.
11205 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11206 section name prefix.
11207 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11208 retrieve the progmem section.
11209 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11210 boundary to run over avr_addrspace[].
11211 (avr_register_target_pragmas): Ditto.
11213 2013-01-06 Jakub Jelinek <jakub@redhat.com>
11215 * varasm.c (output_constant_def_contents): For asan_protect_global
11216 protected strings, adjust DECL_ALIGN if needed, before testing for
11218 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11219 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11221 (output_object_block): For asan protected decls, emit asan padding
11222 after their contents.
11223 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11224 (asan_finish_file): Test it here instead.
11226 2013-01-07 Nick Clifton <nickc@redhat.com>
11227 Matthias Klose <doko@debian.org>
11228 Doug Kwan <dougkwan@google.com>
11229 H.J. Lu <hongjiu.lu@intel.com>
11232 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11234 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11236 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11238 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
11240 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11242 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11245 * doc/install.texi (Cross-Compiler-Specific Options): Document
11248 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11250 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11251 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11252 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11253 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11254 vqmovun_high_s64): Fix source operand number and update copyright.
11256 2013-01-07 Richard Biener <rguenther@suse.de>
11258 PR middle-end/55890
11259 * gimple.h (gimple_call_builtin_p): New overload.
11260 * gimple.c (validate_call): New function.
11261 (gimple_call_builtin_p): Likewise.
11262 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11263 Use gimple_call_builtin_p.
11264 (find_func_clobbers): Likewise.
11265 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11266 (strlen_optimize_stmt): Likewise.
11268 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11270 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11271 (vld1q_dup_*): Likewise.
11272 (vld1_*): Likewise.
11273 (vld1q_*): Likewise.
11274 (vld1_lane_*): Likewise.
11275 (vld1q_lane_*): Likewise.
11277 2013-01-07 Richard Biener <rguenther@suse.de>
11279 * lto-streamer.h (LTO_minor_version): Bump to 2.
11281 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11283 * config/aarch64/aarch64-protos.h
11284 (aarch64_const_double_zero_rtx_p): Rename to...
11285 (aarch64_float_const_zero_rtx_p): ...this.
11286 (aarch64_float_const_representable_p): New.
11287 (aarch64_output_simd_mov_immediate): Likewise.
11288 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11289 move immediate case.
11290 * config/aarch64/aarch64.c
11291 (aarch64_const_double_zero_rtx_p): Rename to...
11292 (aarch64_float_const_zero_rtx_p): ...this.
11293 (aarch64_print_operand): Allow printing of new constants.
11294 (aarch64_valid_floating_const): New.
11295 (aarch64_legitimate_constant_p): Check for valid floating-point
11297 (aarch64_simd_valid_immediate): Likewise.
11298 (aarch64_vect_float_const_representable_p): New.
11299 (aarch64_float_const_representable_p): Likewise.
11300 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11301 (aarch64_output_simd_mov_immediate): New.
11302 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11303 (*movdf_aarch64): Likewise.
11304 * config/aarch64/constraints.md (Ufc): New.
11305 (Y): call aarch64_float_const_zero_rtx.
11306 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11308 2013-01-07 Richard Biener <rguenther@suse.de>
11310 PR tree-optimization/55888
11311 PR tree-optimization/55862
11312 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11313 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11314 not if it is contained therein.
11316 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11318 * config/avr/t-avr: Typo.
11320 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11323 * config/avr/t-avr: Don't automatically rebuild
11324 $(srcdir)/config/avr/t-multilib
11325 $(srcdir)/config/avr/avr-tables.opt
11326 $(srcdir)/doc/avr-mmcu.texi
11327 (avr-mcus): New phony target to build them on request.
11328 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11329 * avr/avr-mcus.def: Adjust comments.
11331 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
11333 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11335 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11337 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11339 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11341 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11343 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
11345 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11346 to generate profiling.
11347 * config/rs6000/aix64.h (LIB_SPEC): Same.
11349 2013-01-04 Andrew Pinski <apinski@cavium.com>
11351 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11353 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11355 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
11357 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11359 (ix86_expand_move): Ditto.
11360 (ix86_zero_extend_to_Pmode): Ditto.
11361 (ix86_expand_call): Ditto.
11362 (ix86_expand_special_args_builtin): Ditto.
11363 (ix86_expand_builtin): Ditto.
11365 2013-01-04 Richard Biener <rguenther@suse.de>
11367 PR tree-optimization/55862
11368 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11369 translating them through PHI nodes.
11371 2013-01-04 Martin Jambor <mjambor@suse.cz>
11373 PR tree-optimization/55755
11374 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11375 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11377 2013-01-04 Marek Polacek <polacek@redhat.com>
11379 PR middle-end/55859
11380 * opts.c (default_options_optimization): Clarify error message.
11382 2013-01-04 Richard Biener <rguenther@suse.de>
11384 PR middle-end/55863
11385 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11388 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11391 * config/pa/pa.md (movsi): Revert previous change.
11392 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11395 2013-01-03 Richard Henderson <rth@redhat.com>
11397 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11398 after eliminating TLS symbols.
11400 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
11403 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11404 * graphite-poly.c (debug_gmp_value): Likewise.
11406 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
11409 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11410 selected code model, define __code_mode_small__, __code_model_medium__,
11411 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11412 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11413 xchg temporary register with %k. Declare temporary register as
11415 [__x86_64__]: For medium and large code models, preserve %rbx register.
11417 2013-01-03 Richard Biener <rguenther@suse.de>
11419 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
11420 (dump_subscript): Adjust.
11421 (finalize_ddr_dependent): Do not dump redundant info.
11422 (analyze_siv_subscript): Adjust.
11423 (subscript_dependence_tester): Likewise.
11424 (compute_affine_dependence): Likewise.
11426 2013-01-03 Richard Biener <rguenther@suse.de>
11429 2013-01-03 Richard Biener <rguenther@suse.de>
11431 PR tree-optimization/55857
11432 * tree-vect-stmts.c (vectorizable_load): Do not setup
11433 re-alignment for invariant loads.
11435 2013-01-02 Richard Biener <rguenther@suse.de>
11437 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11438 invariant load do not generate a vector load from the scalar location.
11440 2013-01-03 Richard Biener <rguenther@suse.de>
11442 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11443 for not vectorizing.
11444 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11445 not build INDIRECT_REFs, call get_name once only.
11446 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11447 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11449 2013-01-03 Richard Biener <rguenther@suse.de>
11451 PR tree-optimization/55857
11452 * tree-vect-stmts.c (vectorizable_load): Do not setup
11453 re-alignment for invariant loads.
11455 2013-01-03 Richard Biener <rguenther@suse.de>
11458 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11459 prefer a built-in decl.
11461 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11463 * gcc.c (process_command): Update copyright notice dates.
11464 * gcov.c (print_version): Likewise.
11465 * gcov-dump.c (print_version): Likewise.
11467 PR rtl-optimization/55838
11468 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11469 iv0.step, iv1.step and step.
11471 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11472 Marc Glisse <marc.glisse@inria.fr>
11474 PR tree-optimization/55832
11475 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11476 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11477 integer_{one,zero}_node.
11479 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11482 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11483 * var-tracking.c (reverse_op): Don't add reverse ops to
11484 VALUEs that have already
11485 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
11487 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11489 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11491 2013-01-02 Teresa Johnson <tejohnson@google.com>
11493 * dumpfile.c (dump_loc): Print filename with location.
11494 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11495 new location_t parameter to emit complete unroll message with
11496 new dump framework.
11497 (canonicalize_loop_induction_variables): Compute loops location
11498 and pass to try_unroll_loop_completely.
11499 * loop-unroll.c (report_unroll_peel): New function.
11500 (peel_loops_completely): Use new dump format with location
11501 for main dumpfile message, and invoke report_unroll_peel on success.
11502 (decide_unrolling_and_peeling): Ditto.
11503 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11504 by report_unroll_peel.
11505 (decide_peel_completely): Ditto.
11506 (decide_unroll_constant_iterations): Ditto.
11507 (decide_unroll_runtime_iterations): Ditto.
11508 (decide_peel_simple): Ditto.
11509 (decide_unroll_stupid): Ditto.
11510 * cfgloop.c (get_loop_location): New function.
11511 * cfgloop.h (get_loop_location): Declare.
11513 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11515 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11518 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11520 PR middle-end/55198
11521 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11522 BLKmode objects when EXPAND_MEMORY is specified.
11524 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11526 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11528 (fold_builtin_cpu): Do not share cpu model decls across statements.
11530 2013-01-02 Jason Merrill <jason@redhat.com>
11533 * tree.c (build_array_type_1): Revert earlier change.
11535 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11537 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11539 * config/aarch64/aarch64-tune.md: Re-generate.
11541 2013-01-02 Richard Biener <rguenther@suse.de>
11543 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11544 invariant load do not generate a vector load from the scalar location.
11546 2013-01-02 Richard Biener <rguenther@suse.de>
11549 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11550 * configure: Regenerate.
11552 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11554 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11555 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11556 (expand_builtin_int_roundingfn_2): Keep the original target around
11557 for the fallback case.
11559 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11561 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11562 to be clear for sign changes.
11564 2013-01-01 Jan Hubicka <jh@suse.cz>
11566 * ipa-inline-analysis.c: Fix formatting.
11568 2013-01-01 Jakub Jelinek <jakub@redhat.com>
11570 PR tree-optimization/55831
11571 * tree-vect-loop.c (get_initial_def_for_induction): Use
11572 gsi_after_labels instead of gsi_start_bb.
11574 Copyright (C) 2013 Free Software Foundation, Inc.
11576 Copying and distribution of this file, with or without modification,
11577 are permitted in any medium without royalty provided the copyright
11578 notice and this notice are preserved.